public class DiagnosticErrorListener extends BaseErrorListener
| Constructor and Description |
|---|
DiagnosticErrorListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
reportAmbiguity(Parser recognizer,
DFA dfa,
int startIndex,
int stopIndex,
BitSet ambigAlts,
ATNConfigSet configs)
Called when the parser detects a true ambiguity: an input
sequence can be matched literally by two or more pass through
the grammar.
|
void |
reportAttemptingFullContext(Parser recognizer,
DFA dfa,
int startIndex,
int stopIndex,
ATNConfigSet configs) |
void |
reportContextSensitivity(Parser recognizer,
DFA dfa,
int startIndex,
int stopIndex,
ATNConfigSet configs)
Called by the parser when it find a conflict that is resolved
by retrying the parse with full context.
|
syntaxErrorpublic void reportAmbiguity(@NotNull Parser recognizer, DFA dfa, int startIndex, int stopIndex, @NotNull BitSet ambigAlts, @NotNull ATNConfigSet configs)
ANTLRErrorListenerreportAmbiguity in interface ANTLRErrorListenerreportAmbiguity in class BaseErrorListenerpublic void reportAttemptingFullContext(@NotNull Parser recognizer, @NotNull DFA dfa, int startIndex, int stopIndex, @NotNull ATNConfigSet configs)
reportAttemptingFullContext in interface ANTLRErrorListenerreportAttemptingFullContext in class BaseErrorListenerpublic void reportContextSensitivity(@NotNull Parser recognizer, @NotNull DFA dfa, int startIndex, int stopIndex, @NotNull ATNConfigSet configs)
ANTLRErrorListenerreportContextSensitivity in interface ANTLRErrorListenerreportContextSensitivity in class BaseErrorListenerCopyright © 1992-2013 ANTLR. All Rights Reserved.