refactoring to eliminate Token.result()
[sbp.git] / src / edu / berkeley / sbp / Walk.java
index 4f133a4..f8f8d4f 100644 (file)
@@ -138,10 +138,10 @@ abstract class Walk<T> {
             eof = false;
             cs = cso.empty();
 
-            if (e instanceof Parser.Table.Top) eof = true;
+            if (e instanceof Parser.Top) eof = true;
             for(Element x : all) {
                 boolean matched = false;
-                if (x instanceof Parser.Table.Top) walk(x); // because this symbol might not appear in any other Sequence
+                if (x instanceof Parser.Top) walk(x); // because this symbol might not appear in any other Sequence
                 if (!(x instanceof Sequence)) continue;
                 Sequence a = (Sequence)x;
                 Position mp = null;