Commit 1245c8f7 authored by Andrei Paskevich's avatar Andrei Paskevich

fix semicolon precedence in the parser

parent d8311c4d
......@@ -222,6 +222,7 @@ end
/* Precedences */
%nonassoc prec_mark
%nonassoc prec_fun
%nonassoc IN
%right SEMICOLON
%nonassoc prec_no_else
......@@ -1140,7 +1141,7 @@ fun_defn:
;
fun_expr:
| FUN list1_binder spec ARROW spec expr
| FUN list1_binder spec ARROW spec expr %prec prec_fun
{ mk_expr (Efun ($2, ($6, spec_union $3 $5))) }
;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment