Package org.openzen.zenscript.lexer
Class DFA<T>
java.lang.Object
org.openzen.zenscript.lexer.DFA<T>
- Type Parameters:
T- final type
Implements a DFA. Used as intermediate form when compiling an NFA to a
CompiledDFA for usage in a TokenStream.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDFA(Class<T> tokenClass, DFA.DFAState<T> initial) Constructs a new DFA with the specified initial state. -
Method Summary
-
Field Details
-
NOFINAL
public static final int NOFINAL- See Also:
-
-
Constructor Details
-
DFA
Constructs a new DFA with the specified initial state.- Parameters:
tokenClass- token classinitial- initial state
-
-
Method Details