diff options
author | volth <volth@webmaster.ms> | 2018-05-16T06·55+0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-16T06·55+0000 |
commit | 49b7cf1813d71b2c9d09f7c69408061774c01c51 (patch) | |
tree | 87e356eaf95ba871006fce1d05852ae6a48bc321 /src/libexpr | |
parent | 8a6a14e1f5006543f63117fb1f0a81a0b1024ebd (diff) |
add `mod' and bitwise builtins: remove infix functions
Diffstat (limited to 'src/libexpr')
-rw-r--r-- | src/libexpr/parser.y | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/libexpr/parser.y b/src/libexpr/parser.y index 6beb28868e8a..eee48887dc22 100644 --- a/src/libexpr/parser.y +++ b/src/libexpr/parser.y @@ -338,13 +338,6 @@ expr_op | expr_op '-' expr_op { $$ = new ExprApp(CUR_POS, new ExprApp(new ExprVar(data->symbols.create("__sub")), $1), $3); } | expr_op '*' expr_op { $$ = new ExprApp(CUR_POS, new ExprApp(new ExprVar(data->symbols.create("__mul")), $1), $3); } | expr_op '/' expr_op { $$ = new ExprApp(CUR_POS, new ExprApp(new ExprVar(data->symbols.create("__div")), $1), $3); } - | expr_op '%' expr_op { $$ = new ExprApp(CUR_POS, new ExprApp(new ExprVar(data->symbols.create("__mod")), $1), $3); } - | expr_op '&' expr_op { $$ = new ExprApp(CUR_POS, new ExprApp(new ExprVar(data->symbols.create("__bin_and")), $1), $3); } - | expr_op '|' expr_op { $$ = new ExprApp(CUR_POS, new ExprApp(new ExprVar(data->symbols.create("__bin_or")), $1), $3); } - | expr_op '^' expr_op { $$ = new ExprApp(CUR_POS, new ExprApp(new ExprVar(data->symbols.create("__bin_xor")), $1), $3); } - | expr_op '<<' expr_op { $$ = new ExprApp(CUR_POS, new ExprApp(new ExprVar(data->symbols.create("__bin_shl")), $1), $3); } - | expr_op '>>>' expr_op { $$ = new ExprApp(CUR_POS, new ExprApp(new ExprVar(data->symbols.create("__bin_unsigned_shr")), $1), $3); } - | expr_op '>>' expr_op { $$ = new ExprApp(CUR_POS, new ExprApp(new ExprVar(data->symbols.create("__bin_signed_shr")), $1), $3); } | expr_op CONCAT expr_op { $$ = new ExprOpConcatLists(CUR_POS, $1, $3); } | expr_app ; |