// 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()));
}
}
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