diff options
Diffstat (limited to 'Typecheck.java')
-rw-r--r-- | Typecheck.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Typecheck.java b/Typecheck.java index f08e1e7..3115c31 100644 --- a/Typecheck.java +++ b/Typecheck.java @@ -21,9 +21,8 @@ public class Typecheck { // // Build the symbol table. Top-down visitor, inherits from // // GJDepthFirst<R,A>. R=Void, A=Integer. - SymTableVis<Void,Integer> pv = - new SymTableVis<Void,Integer>(); - root.accept(pv, 0); + SymTableVis pv = new SymTableVis(); + root.accept(pv, new ArrayList<TypeInstance>()); HashMap<String, AbstractInstance> symt = pv.symt; PrintFilter.print("===================================================", true); |