computeTargetState method
Compute a target state for an edge in the DFA, and attempt to add the computed state and corresponding edge to the DFA.
@param dfa The DFA @param previousD The current DFA state @param t The next input symbol
@return The computed target DFA state for the given input symbol
t
. If t
does not lead to a valid DFA state, this method
returns {@link #ERROR}.
Implementation
@override
DFAState? computeTargetState(DFA dfa, DFAState previousD, int t) {
final state = super.computeTargetState(dfa, previousD, t);
currentState = state;
return state;
}