use of org.antlr.analysis.RuleClosureTransition in project antlrworks by antlr.
the class FAFactory method targetStateOfTransition.
public NFAState targetStateOfTransition(Transition transition) {
NFAState target;
if (transition instanceof RuleClosureTransition) {
RuleClosureTransition rct = (RuleClosureTransition) transition;
target = rct.followState;
} else {
target = (NFAState) transition.target;
}
return target;
}
Aggregations