fr.umlv.tatoo.runtime.parser
Class LookaheadMap<T,V>
java.lang.Object
fr.umlv.tatoo.runtime.parser.LookaheadMap<T,V>
- Type Parameters:
T
- type of terminals.V
- type of versions.
public abstract class LookaheadMap<T,V>
- extends Object
Map each parser state with the set of terminals the parser that will
not lead to an error from this state.
Method Summary |
abstract Set<? extends T> |
getLookahead(int state,
V version)
Returns the current lookahead set of terminal |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LookaheadMap
public LookaheadMap()
getLookahead
public abstract Set<? extends T> getLookahead(int state,
V version)
- Returns the current lookahead set of terminal
- Parameters:
state
- current parser state.version
- current parser version.
- Returns:
- the current lookahead set of terminal.