fr.umlv.tatoo.runtime.parser
Class LookaheadMap<T,V>

java.lang.Object
  extended by 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.


Constructor Summary
LookaheadMap()
           
 
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
 

Constructor Detail

LookaheadMap

public LookaheadMap()
Method Detail

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.