summaryrefslogtreecommitdiffstats
path: root/parsing/parser.mly
diff options
context:
space:
mode:
Diffstat (limited to 'parsing/parser.mly')
-rw-r--r--parsing/parser.mly2
1 files changed, 2 insertions, 0 deletions
diff --git a/parsing/parser.mly b/parsing/parser.mly
index 94c17342c..ed872b57d 100644
--- a/parsing/parser.mly
+++ b/parsing/parser.mly
@@ -385,6 +385,8 @@ expr:
{ mkexp(Pexp_ifthenelse($2, $4, None)) }
| expr SEMI expr
{ mkexp(Pexp_sequence($1, $3)) }
+ | expr SEMI
+ { mkexp(Pexp_sequence($1, mkexp(Pexp_construct(Lident "()", None)))) }
| WHILE expr DO expr DONE
{ mkexp(Pexp_while($2, $4)) }
| FOR val_ident EQUAL expr direction_flag expr DO expr DONE