BaseErrorListener

Provides an empty default implementation of {@link ANTLRErrorListener}. The default implementation of each method does nothing, but can be overridden as necessary.

Members

Functions

reportAmbiguity
void reportAmbiguity(InterfaceParser recognizer, DFA dfa, size_t startIndex, size_t stopIndex, bool exact, BitSet ambigAlts, ATNConfigSet configs)
Undocumented in source. Be warned that the author may not have intended to support it.
reportAttemptingFullContext
void reportAttemptingFullContext(InterfaceParser recognizer, DFA dfa, size_t startIndex, size_t stopIndex, BitSet conflictingAlts, ATNConfigSet configs)
Undocumented in source. Be warned that the author may not have intended to support it.
reportContextSensitivity
void reportContextSensitivity(InterfaceParser recognizer, DFA dfa, size_t startIndex, size_t stopIndex, int prediction, ATNConfigSet configs)
Undocumented in source. Be warned that the author may not have intended to support it.
syntaxError
void syntaxError(InterfaceRecognizer recognizer, Object offendingSymbol, int line, int charPositionInLine, string msg, RecognitionException e)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From ANTLRErrorListener

syntaxError
void syntaxError(InterfaceRecognizer recognizer, Object offendingSymbol, int line, int charPositionInLine, string msg, RecognitionException e)

Upon syntax error, notify any interested parties. This is not how to recover from errors or compute error messages. {@link ANTLRErrorStrategy} specifies how to recover from syntax errors and how to compute error messages. This listener's job is simply to emit a computed message, though it has enough information to create its own message in many cases.

reportAmbiguity
void reportAmbiguity(InterfaceParser recognizer, DFA dfa, size_t startIndex, size_t stopIndex, bool exact, BitSet ambigAlts, ATNConfigSet configs)

This method is called by the parser when a full-context prediction results in an ambiguity.

reportAttemptingFullContext
void reportAttemptingFullContext(InterfaceParser recognizer, DFA dfa, size_t startIndex, size_t 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.

reportContextSensitivity
void reportContextSensitivity(InterfaceParser recognizer, DFA dfa, size_t startIndex, size_t stopIndex, int prediction, ATNConfigSet configs)

This method is called by the parser when a full-context prediction has a unique result.

Meta