diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-07-12 20:23:23 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-07-12 20:23:23 +0100 |
| commit | 5b999386f081b1f7e5259e26ffd33ea85e3e7a2b (patch) | |
| tree | b0bac012a2fcd9dae29295f0fe2dad3968b0bafb /src/main/java/org/shedlang/compiler/stackir | |
| parent | 84807c9365168b8b5c0ce277a341d78a222cef33 (diff) | |
Add incomplete type-checking for if expressions
Diffstat (limited to 'src/main/java/org/shedlang/compiler/stackir')
| -rw-r--r-- | src/main/java/org/shedlang/compiler/stackir/StackCompiler.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/org/shedlang/compiler/stackir/StackCompiler.java b/src/main/java/org/shedlang/compiler/stackir/StackCompiler.java index 70f38cf6..7365a8b4 100644 --- a/src/main/java/org/shedlang/compiler/stackir/StackCompiler.java +++ b/src/main/java/org/shedlang/compiler/stackir/StackCompiler.java @@ -72,6 +72,9 @@ public class StackCompiler { case TypedCallNode typedCallNode -> compileCall(typedCallNode); + case TypedIfNode typedIfNode -> + throw new UnsupportedOperationException("TODO"); + case TypedIntLiteralNode typedIntLiteralNode -> compileIntLiteral(typedIntLiteralNode); |
