| Package | Description |
|---|---|
| org.antlr.v4.runtime | |
| org.antlr.v4.runtime.atn |
| Modifier and Type | Method and Description |
|---|---|
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 |
|---|---|
protected SimulatorState |
ProfilingATNSimulator.currentState |
SimulatorState |
DecisionEventInfo.state
The simulator state containing additional information relevant to the
prediction state when the current event occurred, or
null if no
additional information is relevant or available. |
| Modifier and Type | Method and Description |
|---|---|
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) |
SimulatorState |
ProfilingATNSimulator.getCurrentState() |
protected SimulatorState |
ProfilingATNSimulator.getStartState(DFA dfa,
TokenStream input,
ParserRuleContext outerContext,
boolean useContext) |
protected SimulatorState |
ParserATNSimulator.getStartState(DFA dfa,
TokenStream input,
ParserRuleContext outerContext,
boolean useContext) |
| Modifier and Type | Method and Description |
|---|---|
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 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 int |
ParserATNSimulator.handleNoViableAlt(TokenStream input,
int startIndex,
SimulatorState previous)
This method is used to improve the localization of error messages by
choosing an alternative rather than throwing a
NoViableAltException in particular prediction scenarios where the
ATNSimulator.ERROR state was reached during ATN simulation. |
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 |
|---|
AmbiguityInfo(int decision,
SimulatorState state,
BitSet ambigAlts,
TokenStream input,
int startIndex,
int stopIndex)
Constructs a new instance of the
AmbiguityInfo class with the
specified detailed ambiguity information. |
ContextSensitivityInfo(int decision,
SimulatorState state,
TokenStream input,
int startIndex,
int stopIndex)
Constructs a new instance of the
ContextSensitivityInfo class
with the specified detailed context sensitivity information. |
DecisionEventInfo(int decision,
SimulatorState state,
TokenStream input,
int startIndex,
int stopIndex,
boolean fullCtx) |
ErrorInfo(int decision,
SimulatorState state,
TokenStream input,
int startIndex,
int stopIndex)
Constructs a new instance of the
ErrorInfo class with the
specified detailed syntax error information. |
LookaheadEventInfo(int decision,
SimulatorState state,
int predictedAlt,
TokenStream input,
int startIndex,
int stopIndex,
boolean fullCtx)
Constructs a new instance of the
LookaheadEventInfo class with
the specified detailed lookahead information. |
PredicateEvalInfo(SimulatorState state,
int decision,
TokenStream input,
int startIndex,
int stopIndex,
SemanticContext semctx,
boolean evalResult,
int predictedAlt)
Constructs a new instance of the
PredicateEvalInfo class with the
specified detailed predicate evaluation information. |
Copyright © 1992–2024 Daniel Sun. All rights reserved.