X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fsbp%2FParser.java;h=a4406281be17ef679c41aad85aa08ea6a5b86b35;hp=b2445b0675e146e302eccc727e09d41116c19f4c;hb=b320f26b6e2cc13dcfcd810c7d5b507b942e8c70;hpb=8c293278cc3351b872f691c0b866367747bad44a diff --git a/src/edu/berkeley/sbp/Parser.java b/src/edu/berkeley/sbp/Parser.java index b2445b0..a440628 100644 --- a/src/edu/berkeley/sbp/Parser.java +++ b/src/edu/berkeley/sbp/Parser.java @@ -144,7 +144,7 @@ public abstract class Parser { // 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()))); + state.shifts.addAll(state.gotoSetTerminals.subset(((Atom)p.element()).underlying())); } if (top instanceof IntegerTopology) for(State state : all_states.values()) { @@ -237,7 +237,7 @@ public abstract class Parser { Atom a = (Atom)position.element(); HashSet hp = new HashSet(); reachable(position.next(), hp); - bag0.addAll(a, hp); + bag0.addAll(a.underlying(), hp); } // Step 1b: for each _minimal, contiguous_ set of characters having an identical next-position