no longer need to thread a Grammar through Parser.Table
[sbp.git] / src / edu / berkeley / sbp / Node.java
index 93548fe..100f89f 100644 (file)
@@ -74,7 +74,7 @@ final class Node
         if (r.numPops()!=0)  reduce(r, r.numPops()-1, phase(), only);
         else {
             Input.Region region = phase().getLocation().createRegion(phase().getLocation());
-            new Result(r.rewrite(region, phase().parser().cache()), this, r, phase());
+            new Result(r.rewrite(region), this, r, phase());
         }
     }
 
@@ -89,7 +89,7 @@ final class Node
                 if (pos>0)  child.reduce(r, pos-1, target, null);
                 else {
                     Input.Region region = child.phase().getLocation().createRegion(target.getLocation());
-                    new Reduction(child, r, r.rewrite(region, phase().parser().cache()), target);
+                    new Reduction(child, r, r.rewrite(region), target);
                 }
             }
         holder[pos] = old;