So far the variable/argument declaration is parsed manually throughout the parser, we need a function (e.g. declaration) that produces this and make it uniform. The grammar is:
id {',' id } ':' type_expr
This should be used in productions like the let expression, custom-type fields and function arguments.
So far the variable/argument declaration is parsed manually throughout the parser, we need a function (e.g.
declaration
) that produces this and make it uniform. The grammar is:This should be used in productions like the
let
expression, custom-type fields and function arguments.