Package | Description |
---|---|
org.antlr.v4.runtime | |
org.antlr.v4.runtime.atn | |
org.antlr.v4.runtime.tree.xpath |
Modifier and Type | Class and Description |
---|---|
class |
Lexer
A lexer is recognizer that draws input symbols from a character stream.
|
class |
LexerInterpreter |
class |
Parser
This is all the parsing support code essentially; most of it is error recovery stuff.
|
class |
ParserInterpreter
A parser simulator that mimics what ANTLR's generated
parser code does.
|
Modifier and Type | Method and Description |
---|---|
Recognizer<?,?> |
RecognitionException.getRecognizer()
Gets the
Recognizer where this exception occurred. |
Modifier and Type | Method and Description |
---|---|
void |
BaseErrorListener.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)
Upon syntax error, notify any interested parties.
|
void |
ANTLRErrorListener.syntaxError(Recognizer<?,?> recognizer,
Object offendingSymbol,
int line,
int charPositionInLine,
String msg,
RecognitionException e)
Upon syntax error, notify any interested parties.
|
void |
ProxyErrorListener.syntaxError(Recognizer<?,?> recognizer,
Object offendingSymbol,
int line,
int charPositionInLine,
String msg,
RecognitionException e) |
String |
CommonToken.toString(Recognizer r) |
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 parserCallStack)
For context independent predicates, we evaluate them without a local
context (i.e., null context).
|
boolean |
SemanticContext.Predicate.eval(Recognizer<?,?> parser,
RuleContext parserCallStack) |
boolean |
SemanticContext.PrecedencePredicate.eval(Recognizer<?,?> parser,
RuleContext parserCallStack) |
boolean |
SemanticContext.AND.eval(Recognizer<?,?> parser,
RuleContext parserCallStack)
For context independent predicates, we evaluate them without a local
context (i.e., null context).
|
boolean |
SemanticContext.OR.eval(Recognizer<?,?> parser,
RuleContext parserCallStack)
For context independent predicates, we evaluate them without a local
context (i.e., null context).
|
SemanticContext |
SemanticContext.evalPrecedence(Recognizer<?,?> parser,
RuleContext parserCallStack)
Evaluate the precedence predicates for the context and reduce the result.
|
SemanticContext |
SemanticContext.PrecedencePredicate.evalPrecedence(Recognizer<?,?> parser,
RuleContext parserCallStack) |
SemanticContext |
SemanticContext.AND.evalPrecedence(Recognizer<?,?> parser,
RuleContext parserCallStack) |
SemanticContext |
SemanticContext.OR.evalPrecedence(Recognizer<?,?> parser,
RuleContext parserCallStack) |
String |
PredictionContext.toString(Recognizer<?,?> recog) |
String |
ATNConfig.toString(Recognizer<?,?> recog,
boolean showAlt) |
String[] |
PredictionContext.toStrings(Recognizer<?,?> recognizer,
int currentState) |
String[] |
PredictionContext.toStrings(Recognizer<?,?> recognizer,
PredictionContext stop,
int currentState) |
Modifier and Type | Class and Description |
---|---|
class |
XPathLexer
Mimic the old XPathLexer from .g4 file
|
Modifier and Type | Method and Description |
---|---|
void |
XPathLexerErrorListener.syntaxError(Recognizer<?,?> recognizer,
Object offendingSymbol,
int line,
int charPositionInLine,
String msg,
RecognitionException e) |
Copyright © 1992–2018 ANTLR. All rights reserved.