public class ATN extends Object
Modifier and Type | Field and Description |
---|---|
List<DecisionState> |
decisionToState
Each subrule/rule is a decision point and we must track them so we
can go back later and build DFA predictors for them.
|
int |
grammarType |
static int |
INVALID_ALT_NUMBER |
static int |
LEXER |
int |
maxTokenType |
Map<String,TokensStartState> |
modeNameToStartState |
List<TokensStartState> |
modeToStartState |
static int |
PARSER |
int[] |
ruleToActionIndex |
RuleStartState[] |
ruleToStartState |
RuleStopState[] |
ruleToStopState |
int[] |
ruleToTokenType |
List<ATNState> |
states |
Constructor and Description |
---|
ATN()
Used for runtime deserialization of ATNs from strings
|
Modifier and Type | Method and Description |
---|---|
void |
addState(ATNState state) |
int |
defineDecisionState(DecisionState s) |
DecisionState |
getDecisionState(int decision) |
int |
getNumberOfDecisions() |
IntervalSet |
nextTokens(ATNState s)
Compute the set of valid tokens that can occur starting in s and staying in same rule.
|
IntervalSet |
nextTokens(ATNState s,
RuleContext ctx)
Compute the set of valid tokens that can occur starting in s.
|
void |
removeState(ATNState state) |
public static final int INVALID_ALT_NUMBER
public static final int PARSER
public static final int LEXER
@NotNull public final List<DecisionState> decisionToState
public RuleStartState[] ruleToStartState
public RuleStopState[] ruleToStopState
@NotNull public final Map<String,TokensStartState> modeNameToStartState
public int grammarType
public int maxTokenType
public int[] ruleToTokenType
public int[] ruleToActionIndex
@NotNull public final List<TokensStartState> modeToStartState
public IntervalSet nextTokens(ATNState s, RuleContext ctx)
public IntervalSet nextTokens(ATNState s)
public int defineDecisionState(@NotNull DecisionState s)
public DecisionState getDecisionState(int decision)
public int getNumberOfDecisions()
Copyright © 1992-2013 ANTLR. All Rights Reserved.