Closed unironically closed 10 months ago
I'm leaving reviewing your changes to Lucas. However, I noticed in your documentation notes that the documentation you added is all in the form of doc comments. As this is a user-facing change, you should also update the website to document the changes.
Have now modified the MELT website with and removed the redundant syntax Lucas mentioned.
Changes
Implementing issue #555 - making type signatures on lambdas optional. This replaces the use of the
ProductionRHS
nonterminal with the newLambdaRHS
, andProductionRHSElem
withLambdaRHSElem
. Lambda syntax is defined as:Suggested in #555,
freshType()
is invoked to produce a fresh type variable in productions where no explicit type is given.Documentation
Doc comments included with new
LambdaRHS
/LambdaRHSElem
productions. Also added to existinglambda_c
andlambdap
productions incompiler:modification:lambda_fn
.Testing
No new tests added. Existing tests such as those under
silver_features
cover lambda syntax.