diff options
| author | Michael Williamson <mike@zwobble.org> | 2025-02-02 18:59:42 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2025-02-02 19:07:53 +0000 |
| commit | 7001d0eef3e6139c3033570a463e02d845f3cbac (patch) | |
| tree | 1280f04b2bb5ce6b120c8fb3df56c7d77aa1ca10 /src/main/java | |
| parent | 72f814103f94f65f02c67d1ee0bd0f76768bddad (diff) | |
Compile typed relational int operations into Shid instructions
Diffstat (limited to 'src/main/java')
| -rw-r--r-- | src/main/java/org/shedlang/compiler/shid/ShidCodeGen.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/org/shedlang/compiler/shid/ShidCodeGen.java b/src/main/java/org/shedlang/compiler/shid/ShidCodeGen.java index 1d7c94b6..02838d99 100644 --- a/src/main/java/org/shedlang/compiler/shid/ShidCodeGen.java +++ b/src/main/java/org/shedlang/compiler/shid/ShidCodeGen.java @@ -39,6 +39,14 @@ public class ShidCodeGen { new ShidIntAdd(node.source()); case INT_EQUALS -> new ShidIntEquals(node.source()); + case INT_GREATER_THAN -> + new ShidIntGreaterThan(node.source()); + case INT_GREATER_THAN_OR_EQUAL -> + new ShidIntGreaterThanOrEqual(node.source()); + case INT_LESS_THAN -> + new ShidIntLessThan(node.source()); + case INT_LESS_THAN_OR_EQUAL -> + new ShidIntLessThanOrEqual(node.source()); case INT_NOT_EQUAL -> new ShidIntNotEqual(node.source()); case INT_SUB -> |
