Package org.openzen.zenscript.lexer
Class NFA.NFAState<T>
java.lang.Object
org.openzen.zenscript.lexer.NFA.NFAState<T>
- Type Parameters:
T- final type
- Enclosing class:
- NFA<T extends Comparable<T>>
Represents an NFA state.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTransition(int label, NFA.NFAState<T> next) Adds a transition.voidSets the final state of this state.
-
Constructor Details
-
NFAState
public NFAState()Creates a new state.
-
-
Method Details
-
addTransition
Adds a transition.- Parameters:
label- transition labelnext- next state
-
setFinal
Sets the final state of this state.- Parameters:
finalCode- final code
-