|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.umlv.tatoo.runtime.tools.LookaheadMapFactory
public class LookaheadMapFactory
Helper methods to create a LookaheadMap.
This class provide two implementations :
hashLookaheadMap(ParserTable)
that use a classical hash table.
enumLookaheadMap(ParserTable)
that only works if terminals are specified using an enum.
By default, the Tatoo java backend generates terminals as an enum.
| Method Summary | ||
|---|---|---|
static
|
enumLookaheadMap(ParserTable<T,?,?,V> table)
Returns a map that contains, for a specific version, the mapping between a terminal and its lookahead set. |
|
static
|
hashLookaheadMap(ParserTable<T,?,?,V> table)
Returns a map that contains, for a specific version, the mapping between a terminal and its lookahead set. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <V extends Enum<V>,T extends Enum<T>> LookaheadMap<T,V> enumLookaheadMap(ParserTable<T,?,?,V> table)
T - type of terminal enumeration.V - type of version.table - the table produced by Tatoo.
hashLookaheadMap(ParserTable)public static <V,T> LookaheadMap<T,V> hashLookaheadMap(ParserTable<T,?,?,V> table)
T - type of terminal enumeration.V - type of version.table - the table produced by Tatoo.
.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||