- public int toInt() { return idx; }
-
- public boolean lame() {
- for(Position p : this)
- for(Position p2 = p; p2!=null; p2=p2.next())
- if (p2.isLast() && !p2.owner().lame)
- return false;
- return true;
- }
- /*
- public boolean isResolvable(Token t) {
- boolean found = false;
- for(Reduction r : getReductions(t)) {
- Position p = r.position;
- if (!p.isRightNullable(cache)) continue;
- if (p.owner().firstp()==p) continue;
- if (found) {
- // found two items meeting criteria #1
- return false;
- } else {
- found = true;
- continue;
- }
- if (p.element()==null) continue;
- Topology first = new Walk.First(top(), cache).walk(p.element());
- if (first.contains(t))
- }
- }
- */
-