summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/expr.lm1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/expr.lm b/src/compiler/expr.lm
index c5548cc..b17cc39 100644
--- a/src/compiler/expr.lm
+++ b/src/compiler/expr.lm
@@ -167,6 +167,7 @@ context collapser
| [number::type WS `~] { lhs.value = parse value[$bitnot(r1.value)] }
| [number::type WS number::type WS `*] { lhs.value = parse value[$(r1.value * r3.value)] }
| [number::type WS number::type WS `/] { lhs.value = parse value[$(r1.value / r3.value)] }
+ | [number::type WS number::type WS `%] { lhs.value = parse value[$modulo(r1.value, r3.value)] }
| [number::type WS number::type WS `#+] { lhs.value = parse value[$(r1.value + r3.value)] }
| [number::type WS number::type WS `#-] { lhs.value = parse value[$(r1.value - r3.value)] }
| [number::type WS number::type WS `<<] { lhs.value = parse value[$shiftl(r1.value, r3.value)] }