Allow (optional) semicolon after returns clause

master
Timothy Bourke 7 years ago committed by Gwenaël Delaval
parent 685c3aa862
commit 9de1a96843

@ -198,9 +198,11 @@ label_ty:
returns: RETURNS | EQUAL {}
;
opt_semicolon: | /* empty */ | SEMICOL {}
node_dec:
| u=unsafe n=node_or_fun f=ident pc=node_params LPAREN i=in_params RPAREN
returns LPAREN o=out_params RPAREN
returns LPAREN o=out_params RPAREN opt_semicolon
c=contract b=block(LET) TEL
{{ n_name = f;
n_stateful = n;

Loading…
Cancel
Save