| Package | Description |
|---|---|
| org.antlr.v4.runtime | |
| org.antlr.v4.runtime.atn |
| Modifier and Type | Class and Description |
|---|---|
class |
ANTLRFileStream
This is an ANTLRInputStream that is loaded from a file
all at once when you construct the object.
|
class |
ANTLRInputStream
Vacuum all input from a Reader/InputStream and then treat it like a char[] buffer.
|
class |
UnbufferedCharStream
Do not buffer up the entire char stream.
|
| Modifier and Type | Field and Description |
|---|---|
CharStream |
Lexer._input |
| Modifier and Type | Field and Description |
|---|---|
protected Pair<TokenSource,CharStream> |
Lexer._tokenFactorySourcePair |
protected Pair<TokenSource,CharStream> |
CommonToken.source |
| Modifier and Type | Method and Description |
|---|---|
CharStream |
TokenSource.getInputStream()
From what character stream was this token created? You don't have to
implement but it's nice to know where a Token comes from if you have
include files etc...
|
CharStream |
Token.getInputStream()
Gets the
CharStream from which this token was derived. |
CharStream |
LexerNoViableAltException.getInputStream() |
CharStream |
Lexer.getInputStream() |
CharStream |
CommonToken.getInputStream() |
| 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 |
|---|
Lexer(CharStream input) |
LexerNoViableAltException(Lexer lexer,
CharStream input,
int startIndex,
ATNConfigSet deadEndConfigs) |
| Constructor and Description |
|---|
CommonToken(Pair<TokenSource,CharStream> source,
int type,
int channel,
int start,
int stop) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
LexerATNSimulator.accept(CharStream input,
int ruleIndex,
int actionIndex,
int index,
int line,
int charPos) |
protected void |
LexerATNSimulator.captureSimState(LexerATNSimulator.SimState settings,
CharStream input,
DFAState dfaState) |
protected boolean |
LexerATNSimulator.closure(CharStream input,
LexerATNConfig config,
ATNConfigSet configs,
boolean currentAltReachedAcceptState,
boolean speculative)
Since the alternatives within any lexer decision are ordered by
preference, this method stops pursuing the closure as soon as an accept
state is reached.
|
protected ATNConfigSet |
LexerATNSimulator.computeStartState(CharStream input,
ATNState p) |
void |
LexerATNSimulator.consume(CharStream input) |
protected boolean |
LexerATNSimulator.evaluatePredicate(CharStream input,
int ruleIndex,
int predIndex,
boolean speculative)
Evaluate a predicate specified in the lexer.
|
protected int |
LexerATNSimulator.execATN(CharStream input,
DFAState ds0) |
protected int |
LexerATNSimulator.failOrAccept(LexerATNSimulator.SimState prevAccept,
CharStream input,
ATNConfigSet reach,
int t) |
LexerATNConfig |
LexerATNSimulator.getEpsilonTarget(CharStream input,
LexerATNConfig config,
Transition t,
ATNConfigSet configs,
boolean speculative) |
protected void |
LexerATNSimulator.getReachableConfigSet(CharStream input,
ATNConfigSet closure,
ATNConfigSet reach,
int t)
Given a starting configuration set, figure out all ATN configurations
we can reach upon input
t. |
String |
LexerATNSimulator.getText(CharStream input)
Get the text matched so far for the current token.
|
int |
LexerATNSimulator.match(CharStream input,
int mode) |
protected int |
LexerATNSimulator.matchATN(CharStream input) |
Copyright © 1992-2013 ANTLR. All Rights Reserved.