From 32a6a5ce37499adb7a88b81d9832639c53ecf58b Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 13 Aug 2024 14:29:51 -0400 Subject: Support more binops --- repl.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3