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

Feature/main concisefunction #830

Closed unironically closed 5 months ago

unironically commented 5 months ago

Changes

Resolves #799.

Introduced aspect for shortFunctionDcl in 460cb8308c1355eec2f8d0c5863bd331e08c41ef to define equations contributing to genFiles and errors, which generate a Main file and check the function signature respectively.

Refactored a number of existing main functions to the more concise form.

Documentation

No code documentation needed for main function refactoring or aspect production declaration.

Accompanying update to the website at https://github.com/melt-umn/melt-website/pull/58.

Testing

Concise main functions tested by refactoring main functions in select tutorial programs.