Package | Description |
---|---|
org.antlr.v4.runtime | |
org.antlr.v4.runtime.atn | |
org.antlr.v4.runtime.tree.xpath | |
org.antlr.v4.tool |
Modifier and Type | Class | 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 | Description |
---|---|---|
Recognizer<?,?> |
RecognitionException.getRecognizer() |
Gets the
Recognizer where this exception occurred. |
Modifier and Type | Method | Description |
---|---|---|
void |
ANTLRErrorListener.syntaxError(Recognizer<?,?> recognizer,
Object offendingSymbol,
int line,
int charPositionInLine,
String msg,
RecognitionException e) |
Upon syntax error, notify any interested parties.
|
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 |
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 | Description |
---|---|
RecognitionException(String message,
Recognizer<?,?> recognizer,
IntStream input,
ParserRuleContext ctx) |
|
RecognitionException(Recognizer<?,?> recognizer,
IntStream input,
ParserRuleContext ctx) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
SemanticContext.AND.eval(Recognizer<?,?> parser,
RuleContext parserCallStack) |
For context independent predicates, we evaluate them without a local
context (i.e., null context).
|
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.OR.eval(Recognizer<?,?> parser,
RuleContext parserCallStack) |
For context independent predicates, we evaluate them without a local
context (i.e., null context).
|
boolean |
SemanticContext.PrecedencePredicate.eval(Recognizer<?,?> parser,
RuleContext parserCallStack) |
|
boolean |
SemanticContext.Predicate.eval(Recognizer<?,?> parser,
RuleContext parserCallStack) |
|
SemanticContext |
SemanticContext.AND.evalPrecedence(Recognizer<?,?> parser,
RuleContext parserCallStack) |
|
SemanticContext |
SemanticContext.evalPrecedence(Recognizer<?,?> parser,
RuleContext parserCallStack) |
Evaluate the precedence predicates for the context and reduce the result.
|
SemanticContext |
SemanticContext.OR.evalPrecedence(Recognizer<?,?> parser,
RuleContext parserCallStack) |
|
SemanticContext |
SemanticContext.PrecedencePredicate.evalPrecedence(Recognizer<?,?> parser,
RuleContext parserCallStack) |
|
String |
ATNConfig.toString(Recognizer<?,?> recog,
boolean showAlt) |
|
String |
PredictionContext.toString(Recognizer<?,?> recog) |
|
String[] |
PredictionContext.toStrings(Recognizer<?,?> recognizer,
int currentState) |
|
String[] |
PredictionContext.toStrings(Recognizer<?,?> recognizer,
PredictionContext stop,
int currentState) |
Modifier and Type | Class | Description |
---|---|---|
class |
XPathLexer |
Mimic the old XPathLexer from .g4 file
|
Modifier and Type | Method | Description |
---|---|---|
void |
XPathLexerErrorListener.syntaxError(Recognizer<?,?> recognizer,
Object offendingSymbol,
int line,
int charPositionInLine,
String msg,
RecognitionException e) |
Modifier and Type | Class | Description |
---|---|---|
class |
GrammarParserInterpreter |
A heavier weight
ParserInterpreter that creates parse trees
that track alternative numbers for subtree roots. |
Copyright © 1992–2019 ANTLR. All rights reserved.