| Package | Description |
|---|---|
| org.antlr.v4.runtime | |
| org.antlr.v4.runtime.atn | |
| org.antlr.v4.runtime.misc |
| Modifier and Type | Field and Description |
|---|---|
protected Pair<TokenSource,CharStream> |
Lexer._tokenFactorySourcePair |
protected static Pair<TokenSource,CharStream> |
CommonToken.EMPTY_SOURCE
An empty
Pair which is used as the default value of
CommonToken.source for tokens that do not have a source. |
protected Pair<TokenSource,CharStream> |
CommonToken.source
This is the backing field for
CommonToken.getTokenSource() and
CommonToken.getInputStream(). |
| Modifier and Type | Field and Description |
|---|---|
protected Deque<Pair<ParserRuleContext,Integer>> |
ParserInterpreter._parentContextStack
This stack corresponds to the _parentctx, _parentState pair of locals
that would exist on call stack frames with a recursive descent parser;
in the generated function for a left-recursive rule you'd see:
private EContext e(int _p) throws RecognitionException {
ParserRuleContext _parentctx = _ctx; // Pair.a
int _parentState = getState(); // Pair.b
...
|
| Modifier and Type | Method and Description |
|---|---|
Symbol |
TokenFactory.create(Pair<TokenSource,CharStream> source,
int type,
String text,
int channel,
int start,
int stop,
int line,
int charPositionInLine)
This is the method used to create tokens in the lexer and in the
error handling strategy.
|
CommonToken |
CommonTokenFactory.create(Pair<TokenSource,CharStream> source,
int type,
String text,
int channel,
int start,
int stop,
int line,
int charPositionInLine) |
| Constructor and Description |
|---|
CommonToken(Pair<TokenSource,CharStream> source,
int type,
int channel,
int start,
int stop) |
| Modifier and Type | Method and Description |
|---|---|
protected Pair<ATNConfigSet,ATNConfigSet> |
ParserATNSimulator.splitAccordingToSemanticValidity(ATNConfigSet configs,
ParserRuleContext outerContext)
Walk the list of configurations and split them according to
those that have preds evaluating to true/false.
|
| Modifier and Type | Method and Description |
|---|---|
List<Pair<K,V>> |
MultiMap.getPairs() |
Copyright © 1992-2015 ANTLR. All Rights Reserved.