protected void |
DefaultErrorStrategy.beginErrorCondition(Parser recognizer) |
This method is called to enter error recovery mode when a recognition
exception is reported.
|
protected void |
DefaultErrorStrategy.consumeUntil(Parser recognizer,
IntervalSet set) |
Consume tokens until one matches the given token set.
|
protected void |
DefaultErrorStrategy.endErrorCondition(Parser recognizer) |
This method is called to leave error recovery mode after recovering from
a recognition exception.
|
protected String |
DiagnosticErrorListener.getDecisionDescription(Parser recognizer,
DFA dfa) |
|
protected IntervalSet |
DefaultErrorStrategy.getErrorRecoverySet(Parser recognizer) |
|
protected IntervalSet |
DefaultErrorStrategy.getExpectedTokens(Parser recognizer) |
|
protected Token |
DefaultErrorStrategy.getMissingSymbol(Parser recognizer) |
Conjure up a missing token during error recovery.
|
boolean |
ANTLRErrorStrategy.inErrorRecoveryMode(Parser recognizer) |
Tests whether or not recognizer is in the process of recovering
from an error.
|
boolean |
DefaultErrorStrategy.inErrorRecoveryMode(Parser recognizer) |
Tests whether or not recognizer is in the process of recovering
from an error.
|
void |
ANTLRErrorStrategy.recover(Parser recognizer,
RecognitionException e) |
This method is called to recover from exception e .
|
void |
BailErrorStrategy.recover(Parser recognizer,
RecognitionException e) |
Instead of recovering from exception e , re-throw it wrapped
in a ParseCancellationException so it is not caught by the
rule function catches.
|
void |
DefaultErrorStrategy.recover(Parser recognizer,
RecognitionException e) |
This method is called to recover from exception e .
|
Token |
ANTLRErrorStrategy.recoverInline(Parser recognizer) |
This method is called when an unexpected symbol is encountered during an
inline match operation, such as match(int) .
|
Token |
BailErrorStrategy.recoverInline(Parser recognizer) |
Make sure we don't attempt to recover inline; if the parser
successfully recovers, it won't throw an exception.
|
Token |
DefaultErrorStrategy.recoverInline(Parser recognizer) |
This method is called when an unexpected symbol is encountered during an
inline match operation, such as match(int) .
|
void |
ANTLRErrorListener.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 |
BaseErrorListener.reportAmbiguity(Parser recognizer,
DFA dfa,
int startIndex,
int stopIndex,
boolean exact,
BitSet ambigAlts,
ATNConfigSet configs) |
|
void |
DiagnosticErrorListener.reportAmbiguity(Parser recognizer,
DFA dfa,
int startIndex,
int stopIndex,
boolean exact,
BitSet ambigAlts,
ATNConfigSet configs) |
|
void |
ProxyErrorListener.reportAmbiguity(Parser recognizer,
DFA dfa,
int startIndex,
int stopIndex,
boolean exact,
BitSet ambigAlts,
ATNConfigSet configs) |
|
void |
ANTLRErrorListener.reportAttemptingFullContext(Parser recognizer,
DFA dfa,
int startIndex,
int stopIndex,
BitSet conflictingAlts,
ATNConfigSet configs) |
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 |
BaseErrorListener.reportAttemptingFullContext(Parser recognizer,
DFA dfa,
int startIndex,
int stopIndex,
BitSet conflictingAlts,
ATNConfigSet configs) |
|
void |
DiagnosticErrorListener.reportAttemptingFullContext(Parser recognizer,
DFA dfa,
int startIndex,
int stopIndex,
BitSet conflictingAlts,
ATNConfigSet configs) |
|
void |
ProxyErrorListener.reportAttemptingFullContext(Parser recognizer,
DFA dfa,
int startIndex,
int stopIndex,
BitSet conflictingAlts,
ATNConfigSet configs) |
|
void |
ANTLRErrorListener.reportContextSensitivity(Parser recognizer,
DFA dfa,
int startIndex,
int stopIndex,
int prediction,
ATNConfigSet configs) |
This method is called by the parser when a full-context prediction has a
unique result.
|
void |
BaseErrorListener.reportContextSensitivity(Parser recognizer,
DFA dfa,
int startIndex,
int stopIndex,
int prediction,
ATNConfigSet configs) |
|
void |
DiagnosticErrorListener.reportContextSensitivity(Parser recognizer,
DFA dfa,
int startIndex,
int stopIndex,
int prediction,
ATNConfigSet configs) |
|
void |
ProxyErrorListener.reportContextSensitivity(Parser recognizer,
DFA dfa,
int startIndex,
int stopIndex,
int prediction,
ATNConfigSet configs) |
|
void |
ANTLRErrorStrategy.reportError(Parser recognizer,
RecognitionException e) |
|
void |
DefaultErrorStrategy.reportError(Parser recognizer,
RecognitionException e) |
|
protected void |
DefaultErrorStrategy.reportFailedPredicate(Parser recognizer,
FailedPredicateException e) |
|
protected void |
DefaultErrorStrategy.reportInputMismatch(Parser recognizer,
InputMismatchException e) |
|
void |
ANTLRErrorStrategy.reportMatch(Parser recognizer) |
This method is called by when the parser successfully matches an input
symbol.
|
void |
DefaultErrorStrategy.reportMatch(Parser recognizer) |
This method is called by when the parser successfully matches an input
symbol.
|
protected void |
DefaultErrorStrategy.reportMissingToken(Parser recognizer) |
This method is called to report a syntax error which requires the
insertion of a missing token into the input stream.
|
protected void |
DefaultErrorStrategy.reportNoViableAlternative(Parser recognizer,
NoViableAltException e) |
|
protected void |
DefaultErrorStrategy.reportUnwantedToken(Parser recognizer) |
This method is called to report a syntax error which requires the removal
of a token from the input stream.
|
void |
ANTLRErrorStrategy.reset(Parser recognizer) |
Reset the error handler state for the specified recognizer .
|
void |
DefaultErrorStrategy.reset(Parser recognizer) |
Reset the error handler state for the specified recognizer .
|
protected Token |
DefaultErrorStrategy.singleTokenDeletion(Parser recognizer) |
This method implements the single-token deletion inline error recovery
strategy.
|
protected boolean |
DefaultErrorStrategy.singleTokenInsertion(Parser recognizer) |
This method implements the single-token insertion inline error recovery
strategy.
|
void |
ANTLRErrorStrategy.sync(Parser recognizer) |
This method provides the error handler with an opportunity to handle
syntactic or semantic errors in the input stream before they result in a
RecognitionException .
|
void |
BailErrorStrategy.sync(Parser recognizer) |
Make sure we don't attempt to recover from problems in subrules.
|
void |
DefaultErrorStrategy.sync(Parser recognizer) |
|
String |
ParserRuleContext.toInfoString(Parser recognizer) |
Used for rule context info debugging during parse-time, not so much for ATN debugging
|
String |
RuleContext.toStringTree(Parser recog) |
Print out a whole tree, not just a node, in LISP format
(root child1 ..
|