diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-07-19 21:20:09 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-07-19 21:20:09 +0100 |
| commit | 4b1740153be9fb525b9b9a7c9a8e693332390eea (patch) | |
| tree | b5b75601deb7ef3bb59d8bf514a984edd20245e1 /src/main/java | |
| parent | 6e7df5e2a5cf3edf4d027dc0deb6f62498794913 (diff) | |
Add Patio code gen for push-unit
Diffstat (limited to 'src/main/java')
| -rw-r--r-- | src/main/java/org/shedlang/compiler/patio/PatioCodeGen.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/org/shedlang/compiler/patio/PatioCodeGen.java b/src/main/java/org/shedlang/compiler/patio/PatioCodeGen.java index 1f15b380..eda2081e 100644 --- a/src/main/java/org/shedlang/compiler/patio/PatioCodeGen.java +++ b/src/main/java/org/shedlang/compiler/patio/PatioCodeGen.java @@ -19,6 +19,9 @@ public class PatioCodeGen { case LocalStoreInstruction localStore -> P.vector(new PatioLocalStore(localStore.name(), localStore.source())); + case PushUnitInstruction pushUnit -> + P.vector(new PatioPushInt(0, pushUnit.source())); + case ReturnInstruction return_ -> P.vector(new PatioReturn(return_.source())); |
