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.
|
syntaxError
public void reportAmbiguity(@NotNull Parser recognizer, DFA dfa, int startIndex, int stopIndex, @NotNull BitSet ambigAlts, @NotNull ATNConfigSet configs)
ANTLRErrorListener
reportAmbiguity
in interface ANTLRErrorListener
reportAmbiguity
in class BaseErrorListener
public void reportAttemptingFullContext(@NotNull Parser recognizer, @NotNull DFA dfa, int startIndex, int stopIndex, @NotNull ATNConfigSet configs)
reportAttemptingFullContext
in interface ANTLRErrorListener
reportAttemptingFullContext
in class BaseErrorListener
public void reportContextSensitivity(@NotNull Parser recognizer, @NotNull DFA dfa, int startIndex, int stopIndex, @NotNull ATNConfigSet configs)
ANTLRErrorListener
reportContextSensitivity
in interface ANTLRErrorListener
reportContextSensitivity
in class BaseErrorListener
Copyright © 1992-2013 ANTLR. All Rights Reserved.