melt-umn / silver

An attribute grammar-based programming language for composable language extensions
http://melt.cs.umn.edu/silver/
GNU Lesser General Public License v3.0
58 stars 7 forks source link

Addition of concise function syntax #819

Closed unironically closed 9 months ago

unironically commented 9 months ago

Changes

Addressing https://github.com/melt-umn/silver/issues/454, implementing concise function declaration syntax as a compiler extension.

Each concise function declaration forwards to a global lambda expression. This is to avoid the decoration involved with the verbose function declaration style.

Documentation

Testing

Tests added for concise function syntax under silver_features (https://github.com/melt-umn/silver/commit/718d707b17bf08ec982ef43cf8f393ce019213fd). This includes tests with and without type variables and constraints.