diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-07-20 17:18:59 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-07-20 17:18:59 +0100 |
| commit | b566789e4dd17ab81fc73917d24cb9bf2a678707 (patch) | |
| tree | be94df676a45e4ef375fd533c7505e85c9f12a75 /src/main/java/org/shedlang/compiler/backends | |
| parent | 4a6e046a50e68ca90cae7725362e922fd3ca2f58 (diff) | |
Create data element for namespace value
Diffstat (limited to 'src/main/java/org/shedlang/compiler/backends')
| -rw-r--r-- | src/main/java/org/shedlang/compiler/backends/PatioBackend.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/shedlang/compiler/backends/PatioBackend.java b/src/main/java/org/shedlang/compiler/backends/PatioBackend.java index 53ab3c6b..bde6f901 100644 --- a/src/main/java/org/shedlang/compiler/backends/PatioBackend.java +++ b/src/main/java/org/shedlang/compiler/backends/PatioBackend.java @@ -21,6 +21,8 @@ public class PatioBackend implements Backend { ) { System.out.println("main: " + config.main()); + var context = PatioCodeGenContext.forTypeInfo(typeInfo); + for (var namespaceEntry : namespaces.entrySet()) { var namespaceName = namespaceEntry.getKey(); var instructions = namespaceEntry.getValue(); @@ -30,7 +32,7 @@ public class PatioBackend implements Backend { var compilationUnit = PatioCodeGen.generateNamespace( namespaceName, instructions, - PatioCodeGenContext.EMPTY + context ); var builder = new StringBuilder(); |
