Some minor fixes in parser.

This commit is contained in:
Ondrej Zajicek 2011-10-26 20:06:36 +02:00
parent 14a8f396e1
commit 78e33c29bb

View file

@ -242,7 +242,7 @@ f_generate_ec(u16 kind, struct f_inst *tk, struct f_inst *tv)
}
return rv;
};
}
@ -619,8 +619,8 @@ constant:
;
constructor:
'(' term ',' term ')' { $$ = f_generate_dpair($2, $4); };
| '(' ec_kind ',' term ',' term ')' { $$ = f_generate_ec($2, $4, $6); };
'(' term ',' term ')' { $$ = f_generate_dpair($2, $4); }
| '(' ec_kind ',' term ',' term ')' { $$ = f_generate_ec($2, $4, $6); }
;