diff options
Diffstat (limited to 'boil')
-rw-r--r-- | boil/library/BoilSimp.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/boil/library/BoilSimp.java b/boil/library/BoilSimp.java index 0c391db..1de93d1 100644 --- a/boil/library/BoilSimp.java +++ b/boil/library/BoilSimp.java @@ -8,12 +8,14 @@ import java.util.*; public class BoilSimp extends GJDepthFirst<String,String> { - private String vapor; // the collected vapor program - private TypeFactory tf = new TypeFactory(); // the shared type generator + private String vapor; // the collected vapor program + private TypeFactory tf; // the shared type generator private SymbolTable symt; - public void setSymbolTable(SymbolTable symt) { + public BoilSimp(SymbolTable symt) { this.symt = symt; + this.vapor = ""; + this.tf = new TypeFactory(); } public String getVapor() { @@ -76,7 +78,6 @@ public class BoilSimp extends GJDepthFirst<String,String> { * f2 -> <EOF> */ public String visit(Goal n, String args) { - this.vapor = ""; String mod = ""; n.f0.accept(this, args); n.f1.accept(this, args); |