summaryrefslogtreecommitdiff
path: root/J2V.java
diff options
context:
space:
mode:
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());
}