public class HbsErrorReporter extends Object implements org.antlr.v4.runtime.ANTLRErrorListener
Constructor and Description |
---|
HbsErrorReporter(String filename)
Creates a new
HbsErrorReporter . |
Modifier and Type | Method and Description |
---|---|
void |
reportAmbiguity(org.antlr.v4.runtime.Parser recognizer,
org.antlr.v4.runtime.dfa.DFA dfa,
int startIndex,
int stopIndex,
boolean exact,
BitSet ambigAlts,
org.antlr.v4.runtime.atn.ATNConfigSet configs) |
void |
reportAttemptingFullContext(org.antlr.v4.runtime.Parser recognizer,
org.antlr.v4.runtime.dfa.DFA dfa,
int startIndex,
int stopIndex,
BitSet conflictingAlts,
org.antlr.v4.runtime.atn.ATNConfigSet configs) |
void |
reportContextSensitivity(org.antlr.v4.runtime.Parser recognizer,
org.antlr.v4.runtime.dfa.DFA dfa,
int startIndex,
int stopIndex,
int prediction,
org.antlr.v4.runtime.atn.ATNConfigSet configs) |
void |
syntaxError(org.antlr.v4.runtime.Recognizer<?,?> recognizer,
Object offendingSymbol,
int line,
int charPositionInLine,
String msg,
org.antlr.v4.runtime.RecognitionException e) |
public HbsErrorReporter(String filename)
HbsErrorReporter
.filename
- The file's name. Required.public void syntaxError(org.antlr.v4.runtime.Recognizer<?,?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, org.antlr.v4.runtime.RecognitionException e)
syntaxError
in interface org.antlr.v4.runtime.ANTLRErrorListener
public void reportAmbiguity(org.antlr.v4.runtime.Parser recognizer, org.antlr.v4.runtime.dfa.DFA dfa, int startIndex, int stopIndex, boolean exact, BitSet ambigAlts, org.antlr.v4.runtime.atn.ATNConfigSet configs)
reportAmbiguity
in interface org.antlr.v4.runtime.ANTLRErrorListener
public void reportAttemptingFullContext(org.antlr.v4.runtime.Parser recognizer, org.antlr.v4.runtime.dfa.DFA dfa, int startIndex, int stopIndex, BitSet conflictingAlts, org.antlr.v4.runtime.atn.ATNConfigSet configs)
reportAttemptingFullContext
in interface org.antlr.v4.runtime.ANTLRErrorListener
public void reportContextSensitivity(org.antlr.v4.runtime.Parser recognizer, org.antlr.v4.runtime.dfa.DFA dfa, int startIndex, int stopIndex, int prediction, org.antlr.v4.runtime.atn.ATNConfigSet configs)
reportContextSensitivity
in interface org.antlr.v4.runtime.ANTLRErrorListener
Copyright © 2022. All rights reserved.