1
0
mirror of https://github.com/twiglet/cs2j.git synced 2025-01-18 13:15:17 +01:00

lambda body: expression -> statement by adding return

This commit is contained in:
Kevin Glynn 2011-05-19 22:30:17 +02:00
parent ea85f4a396
commit d71a5f83f2

View File

@ -982,7 +982,7 @@ implicit_anonymous_function_parameter_list:
implicit_anonymous_function_parameter:
identifier;
anonymous_function_body:
expression -> OPEN_BRACE[$expression.tree.Token, "{"] expression CLOSE_BRACE[$expression.tree.Token, "}"]
expression -> OPEN_BRACE[$expression.tree.Token, "{"] ^(RETURN[$expression.tree.Token, "return"] expression) CLOSE_BRACE[$expression.tree.Token, "}"]
| block ;
///////////////////////////////////////////////////////