an addition operator, of sorts

This commit is contained in:
Stephen committed 2012-08-16 01:16:08 +01:00
1 parent 2002dc1a2f
commit fd738bface
4 files changed
+40 -2

No files matched your search

+7
View File
@@ -71,6 +71,13 @@ Exp ',' Exp {
$$ = gen_both($1, $3);
} |
Exp '+' Exp {
$$ = gen_noop();
block_append(&$$, gen_subexp($1));
block_append(&$$, gen_subexp($3));
block_append(&$$, gen_op_symbol(CALL_BUILTIN_3_1, "_plus"));
} |
Term {
$$ = $1;
}