Package | Description |
---|---|
org.antlr.v4.runtime | |
org.antlr.v4.runtime.atn |
Modifier and Type | Class and Description |
---|---|
class |
Lexer
A lexer is recognizer that draws input symbols from a character stream.
|
class |
Parser
This is all the parsing support code essentially; most of it is error recovery stuff.
|
Modifier and Type | Method and Description |
---|---|
Recognizer<?,?> |
RecognitionException.getRecognizer()
Gets the
Recognizer where this exception occurred. |
Modifier and Type | Method and Description |
---|---|
void |
ProxyErrorListener.syntaxError(Recognizer<?,?> recognizer,
Object offendingSymbol,
int line,
int charPositionInLine,
String msg,
RecognitionException e) |
void |
ConsoleErrorListener.syntaxError(Recognizer<?,?> recognizer,
Object offendingSymbol,
int line,
int charPositionInLine,
String msg,
RecognitionException e) |
void |
BaseErrorListener.syntaxError(Recognizer<?,?> recognizer,
Object offendingSymbol,
int line,
int charPositionInLine,
String msg,
RecognitionException e) |
void |
ANTLRErrorListener.syntaxError(Recognizer<?,?> recognizer,
Object offendingSymbol,
int line,
int charPositionInLine,
String msg,
RecognitionException e)
Upon syntax error, notify any interested parties.
|
String |
RuleContext.toString(Recognizer<?,?> recog) |
String |
RuleContext.toString(Recognizer<?,?> recog,
RuleContext stop) |
Constructor and Description |
---|
RecognitionException(Recognizer<?,?> recognizer,
IntStream input,
ParserRuleContext ctx) |
RecognitionException(String message,
Recognizer<?,?> recognizer,
IntStream input,
ParserRuleContext ctx) |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
SemanticContext.eval(Recognizer<?,?> parser,
RuleContext outerContext)
For context independent predicates, we evaluate them without a local
context (i.e., null context).
|
boolean |
SemanticContext.Predicate.eval(Recognizer<?,?> parser,
RuleContext outerContext) |
boolean |
SemanticContext.AND.eval(Recognizer<?,?> parser,
RuleContext outerContext) |
boolean |
SemanticContext.OR.eval(Recognizer<?,?> parser,
RuleContext outerContext) |
String |
PredictionContext.toString(Recognizer<?,?> recog) |
String |
ATNConfig.toString(Recognizer<?,?> recog,
boolean showAlt) |
String |
PredictionContext.toString(Recognizer<?,?> recog,
RuleContext stop) |
String[] |
PredictionContext.toStrings(Recognizer<?,?> recognizer,
int currentState) |
String[] |
PredictionContext.toStrings(Recognizer<?,?> recognizer,
PredictionContext stop,
int currentState) |
Copyright © 1992-2013 ANTLR. All Rights Reserved.