summaryrefslogtreecommitdiff
path: root/J2V.java
diff options
context:
space:
mode:
authorbd-912 <bdunahu@colostate.edu>2024-04-15 19:02:37 -0600
committerbd-912 <bdunahu@colostate.edu>2024-04-15 19:02:37 -0600
commit57dfa970a0ab45fa69e71e8583fbb9fa267315e1 (patch)
tree3d67668cb42ae400d38281121f2046572b712d0e /J2V.java
parent04e9109f112f4cb7317416c2e31806f42663cb45 (diff)
Use class varaible to keep track of collected program in BoilSimp
Diffstat (limited to 'J2V.java')
-rw-r--r--J2V.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/J2V.java b/J2V.java
index 70c715f..2380f4e 100644
--- a/J2V.java
+++ b/J2V.java
@@ -15,8 +15,8 @@ public class J2V {
// Pretty-print the tree. PPrinter inherits from
// GJDepthFirst<R,A>. R=Void, A=String.
- PPrinter<Void,String> pp = new PPrinter<Void,String>();
- root.accept(pp, "");
+ // PPrinter<Void,String> pp = new PPrinter<Void,String>();
+ // root.accept(pp, "");
// Build the symbol table. Top-down visitor, inherits from
// GJDepthFirst<R,A>. R=Void, A=Integer.
@@ -25,10 +25,10 @@ public class J2V {
root.accept(new SymTableTopDown<Void>(), symt);
BoilSimp vp = new BoilSimp();
- String program = root.accept(vp, symt);
+ root.accept(vp, symt);
PrintFilter.print("===================================================", true);
- System.out.println(program);
+ System.out.println(vp.getVapor());
}