X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fsbp%2FParser.java;h=9825a9fc776ad128f7fda47dcb325df33c7e3b40;hp=a4406281be17ef679c41aad85aa08ea6a5b86b35;hb=d28917b3c84c429e8fd6587717df9e90a894b18f;hpb=b320f26b6e2cc13dcfcd810c7d5b507b942e8c70 diff --git a/src/edu/berkeley/sbp/Parser.java b/src/edu/berkeley/sbp/Parser.java index a440628..9825a9f 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()).underlying())); + state.shifts.addAll(state.gotoSetTerminals.subset(((Atom)p.element()).getTokenTopology())); } 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.underlying(), hp); + bag0.addAll(a.getTokenTopology(), hp); } // Step 1b: for each _minimal, contiguous_ set of characters having an identical next-position