diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-08-13 14:29:51 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-08-13 14:29:51 -0400 |
| commit | 32a6a5ce37499adb7a88b81d9832639c53ecf58b (patch) | |
| tree | 2ff049a156e618009dc6ec43331111697b3bc34b /repl.c | |
| parent | b608d7fbbbec9a838c5608ed692c8315bf22db11 (diff) | |
Support more binops
Diffstat (limited to 'repl.c')
| -rw-r--r-- | repl.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |
