Allow (optional) semicolon after returns clause

This commit is contained in:
Timothy Bourke 2017-01-21 18:08:01 +01:00 committed by Gwenaël Delaval
parent 685c3aa862
commit 9de1a96843

View file

@ -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;