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
57 stars 7 forks source link

Fix/implicit annotations #793

Closed RandomActsOfGrammar closed 1 year ago

RandomActsOfGrammar commented 1 year ago

Changes

Closes #776. Applications with annotation arguments were previously disallowed in implicit equations. This allows calling such functions, including monadic functions with annotation arguments (e.g. applying a "function" of type Maybe<(ResultTy ::= ArgTy; anno::AnnoTy)>).

Documentation

This adds comments in the explaining the code for handling annotations.

This implements the expected behavior, so it does not need any documentation for users.