Add general ? operator

This commit is contained in:
Nicolas Williams committed 2014-07-06 01:29:43 -05:00
1 parent 7fce34292e
commit 7d3a44a1e2
3 files changed
+22

No files matched your search

+4
View File
@@ -255,6 +255,10 @@ Term "as" '$' IDENT '|' Exp {
$$ = $2;
} |
Exp '?' {
$$ = gen_try($1, gen_op_simple(BACKTRACK));
} |
Exp '=' Exp {
$$ = gen_call("_assign", BLOCK(gen_lambda($1), gen_lambda($3)));