| Package | Description |
|---|---|
| org.antlr.v4.runtime | |
| org.antlr.v4.runtime.atn | |
| org.antlr.v4.runtime.dfa |
| Modifier and Type | Method and Description |
|---|---|
protected <T extends Token> |
DiagnosticErrorListener.getDecisionDescription(Parser recognizer,
DFA dfa) |
void |
ProxyParserErrorListener.reportAmbiguity(Parser recognizer,
DFA dfa,
int startIndex,
int stopIndex,
boolean exact,
BitSet ambigAlts,
ATNConfigSet configs) |
void |
ParserErrorListener.reportAmbiguity(Parser recognizer,
DFA dfa,
int startIndex,
int stopIndex,
boolean exact,
BitSet ambigAlts,
ATNConfigSet configs)
This method is called by the parser when a full-context prediction
results in an ambiguity.
|
void |
DiagnosticErrorListener.reportAmbiguity(Parser recognizer,
DFA dfa,
int startIndex,
int stopIndex,
boolean exact,
BitSet ambigAlts,
ATNConfigSet configs) |
void |
BaseErrorListener.reportAmbiguity(Parser recognizer,
DFA dfa,
int startIndex,
int stopIndex,
boolean exact,
BitSet ambigAlts,
ATNConfigSet configs) |
void |
ProxyParserErrorListener.reportAttemptingFullContext(Parser recognizer,
DFA dfa,
int startIndex,
int stopIndex,
BitSet conflictingAlts,
SimulatorState conflictState) |
void |
ParserErrorListener.reportAttemptingFullContext(Parser recognizer,
DFA dfa,
int startIndex,
int stopIndex,
BitSet conflictingAlts,
SimulatorState conflictState)
This method is called when an SLL conflict occurs and the parser is about
to use the full context information to make an LL decision.
|
void |
DiagnosticErrorListener.reportAttemptingFullContext(Parser recognizer,
DFA dfa,
int startIndex,
int stopIndex,
BitSet conflictingAlts,
SimulatorState conflictState) |
void |
BaseErrorListener.reportAttemptingFullContext(Parser recognizer,
DFA dfa,
int startIndex,
int stopIndex,
BitSet conflictingAlts,
SimulatorState conflictState) |
void |
ProxyParserErrorListener.reportContextSensitivity(Parser recognizer,
DFA dfa,
int startIndex,
int stopIndex,
int prediction,
SimulatorState acceptState) |
void |
ParserErrorListener.reportContextSensitivity(Parser recognizer,
DFA dfa,
int startIndex,
int stopIndex,
int prediction,
SimulatorState acceptState)
This method is called by the parser when a full-context prediction has a
unique result.
|
void |
DiagnosticErrorListener.reportContextSensitivity(Parser recognizer,
DFA dfa,
int startIndex,
int stopIndex,
int prediction,
SimulatorState acceptState) |
void |
BaseErrorListener.reportContextSensitivity(Parser recognizer,
DFA dfa,
int startIndex,
int stopIndex,
int prediction,
SimulatorState acceptState) |
| Modifier and Type | Field and Description |
|---|---|
DFA[] |
ATN.decisionToDFA |
DFA[] |
ATN.modeToDFA |
| Modifier and Type | Method and Description |
|---|---|
DFA[] |
ATN.getDecisionToDFA() |
DFA |
LexerATNSimulator.getDFA(int mode) |
| Modifier and Type | Method and Description |
|---|---|
protected DFAState |
ParserATNSimulator.addDFAContextState(DFA dfa,
ATNConfigSet configs,
int returnContext,
PredictionContextCache contextCache)
See comment on LexerInterpreter.addDFAState.
|
protected DFAState |
ParserATNSimulator.addDFAEdge(DFA dfa,
DFAState fromState,
int t,
IntegerList contextTransitions,
ATNConfigSet toConfigs,
PredictionContextCache contextCache) |
protected DFAState |
ParserATNSimulator.addDFAState(DFA dfa,
ATNConfigSet configs,
PredictionContextCache contextCache)
See comment on LexerInterpreter.addDFAState.
|
protected SimulatorState |
ProfilingATNSimulator.computeReachSet(DFA dfa,
SimulatorState previous,
int t,
PredictionContextCache contextCache) |
protected SimulatorState |
ParserATNSimulator.computeReachSet(DFA dfa,
SimulatorState previous,
int t,
PredictionContextCache contextCache) |
protected SimulatorState |
ProfilingATNSimulator.computeStartState(DFA dfa,
ParserRuleContext globalContext,
boolean useContext) |
protected SimulatorState |
ParserATNSimulator.computeStartState(DFA dfa,
ParserRuleContext globalContext,
boolean useContext) |
protected Tuple2<DFAState,ParserRuleContext> |
ProfilingATNSimulator.computeTargetState(DFA dfa,
DFAState s,
ParserRuleContext remainingGlobalContext,
int t,
boolean useContext,
PredictionContextCache contextCache) |
protected Tuple2<DFAState,ParserRuleContext> |
ParserATNSimulator.computeTargetState(DFA dfa,
DFAState s,
ParserRuleContext remainingGlobalContext,
int t,
boolean useContext,
PredictionContextCache contextCache)
Compute a target state for an edge in the DFA, and attempt to add the
computed state and corresponding edge to the DFA.
|
protected DFAState |
ParserATNSimulator.createDFAState(DFA dfa,
ATNConfigSet configs) |
protected int |
ParserATNSimulator.execATN(DFA dfa,
TokenStream input,
int startIndex,
SimulatorState initialState)
Performs ATN simulation to compute a predicted alternative based
upon the remaining input, but also updates the DFA cache to avoid
having to traverse the ATN again for the same input sequence.
|
protected int |
ParserATNSimulator.execDFA(DFA dfa,
TokenStream input,
int startIndex,
SimulatorState state) |
protected SimulatorState |
ProfilingATNSimulator.getStartState(DFA dfa,
TokenStream input,
ParserRuleContext outerContext,
boolean useContext) |
protected SimulatorState |
ParserATNSimulator.getStartState(DFA dfa,
TokenStream input,
ParserRuleContext outerContext,
boolean useContext) |
protected void |
ProfilingATNSimulator.reportAmbiguity(DFA dfa,
DFAState D,
int startIndex,
int stopIndex,
boolean exact,
BitSet ambigAlts,
ATNConfigSet configs) |
protected void |
ParserATNSimulator.reportAmbiguity(DFA dfa,
DFAState D,
int startIndex,
int stopIndex,
boolean exact,
BitSet ambigAlts,
ATNConfigSet configs)
If context sensitive parsing, we know it's ambiguity not conflict
|
protected void |
ProfilingATNSimulator.reportAttemptingFullContext(DFA dfa,
BitSet conflictingAlts,
SimulatorState conflictState,
int startIndex,
int stopIndex) |
protected void |
ParserATNSimulator.reportAttemptingFullContext(DFA dfa,
BitSet conflictingAlts,
SimulatorState conflictState,
int startIndex,
int stopIndex) |
protected void |
ProfilingATNSimulator.reportContextSensitivity(DFA dfa,
int prediction,
SimulatorState acceptState,
int startIndex,
int stopIndex) |
protected void |
ParserATNSimulator.reportContextSensitivity(DFA dfa,
int prediction,
SimulatorState acceptState,
int startIndex,
int stopIndex) |
| Constructor and Description |
|---|
DFASerializer(DFA dfa,
Recognizer<?,?> parser) |
DFASerializer(DFA dfa,
String[] tokenNames)
Deprecated.
Use
DFASerializer(DFA, Vocabulary) instead. |
DFASerializer(DFA dfa,
String[] tokenNames,
String[] ruleNames,
ATN atn)
Deprecated.
Use
DFASerializer(DFA, Vocabulary, String[], ATN) instead. |
DFASerializer(DFA dfa,
Vocabulary vocabulary) |
DFASerializer(DFA dfa,
Vocabulary vocabulary,
String[] ruleNames,
ATN atn) |
DFAState(DFA dfa,
ATNConfigSet configs)
Constructs a new
DFAState for a DFA. |
LexerDFASerializer(DFA dfa) |
Copyright © 1992–2024 Daniel Sun. All rights reserved.