forked from jasder/antlr
commit
d9ec5c02fb
|
@ -1269,7 +1269,7 @@ public class ParserATNSimulator extends ATNSimulator {
|
||||||
succeeded.add(c);
|
succeeded.add(c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return new Pair(succeeded,failed);
|
return new Pair<ATNConfigSet, ATNConfigSet>(succeeded,failed);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Look through a list of predicate/alt pairs, returning alts for the
|
/** Look through a list of predicate/alt pairs, returning alts for the
|
||||||
|
|
|
@ -109,8 +109,18 @@ public abstract class Transition {
|
||||||
|
|
||||||
public abstract int getSerializationType();
|
public abstract int getSerializationType();
|
||||||
|
|
||||||
/** Are we epsilon, action, sempred? */
|
/**
|
||||||
public boolean isEpsilon() { return false; }
|
* Determines if the transition is an "epsilon" transition.
|
||||||
|
*
|
||||||
|
* <p>The default implementation returns {@code false}.</p>
|
||||||
|
*
|
||||||
|
* @return {@code true} if traversing this transition in the ATN does not
|
||||||
|
* consume an input symbol; otherwise, {@code false} if traversing this
|
||||||
|
* transition consumes (matches) an input symbol.
|
||||||
|
*/
|
||||||
|
public boolean isEpsilon() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
public IntervalSet label() { return null; }
|
public IntervalSet label() { return null; }
|
||||||
|
|
Loading…
Reference in New Issue