removed illegal use of double-star
[sbp.git] / src / edu / berkeley / sbp / Parser.java
index 046e725..6986a4b 100644 (file)
@@ -153,7 +153,7 @@ public class Parser<T extends Token, R> {
                     // if the element following this position is an atom, copy the corresponding
                     // set of rows out of the "master" goto table and into this state's shift table
                     if (p.element() != null && p.element() instanceof Atom)
-                        state.shifts.addAll(state.gotoSetTerminals.subset(((Atom)p.element()).top()));
+                        state.shifts.addAll(state.gotoSetTerminals.subset(((Atom)p.element()).dup()));
                 }
         }
 
@@ -224,7 +224,7 @@ public class Parser<T extends Token, R> {
                     Atom a = (Atom)position.element();
                     HashSet<Position> hp = new HashSet<Position>();
                     position.next().reachable(hp);
-                    bag0.addAll(a.top(), /*clo.walk()*/hp);
+                    bag0.addAll(a.dup(), /*clo.walk()*/hp);
                 }
 
                 // Step 1b: for each _minimal, contiguous_ set of characters having an identical next-position