aboutsummaryrefslogtreecommitdiff
path: root/repl.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-08-13 14:29:51 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-08-13 14:29:51 -0400
commit32a6a5ce37499adb7a88b81d9832639c53ecf58b (patch)
tree2ff049a156e618009dc6ec43331111697b3bc34b /repl.c
parentb608d7fbbbec9a838c5608ed692c8315bf22db11 (diff)
Support more binops
Diffstat (limited to 'repl.c')
-rw-r--r--repl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/repl.c b/repl.c
index d17d5699..a9ccd8b7 100644
--- a/repl.c
+++ b/repl.c
@@ -406,6 +406,8 @@ void eval(env_t *env, ast_t *ast, void *dest)
switch (binop->op) {
CASE_OP(MULT, times) CASE_OP(DIVIDE, divided_by) CASE_OP(PLUS, plus) CASE_OP(MINUS, minus)
CASE_OP(RSHIFT, right_shifted) CASE_OP(LSHIFT, left_shifted)
+ CASE_OP(MOD, modulo) CASE_OP(MOD1, modulo1)
+ CASE_OP(AND, bit_and) CASE_OP(OR, bit_or) CASE_OP(XOR, bit_xor)
default: break;
}
#undef CASE_OP