Package | Description |
---|---|
org.antlr.v4.runtime | |
org.antlr.v4.runtime.atn |
Modifier and Type | Class and Description |
---|---|
class |
BufferedTokenStream
Buffer all input tokens but do on-demand fetching of new tokens from lexer.
|
class |
CommonTokenStream
The most common stream of tokens where every token is buffered up
and tokens are filtered for a certain channel (the parser will only
see these tokens).
|
class |
UnbufferedTokenStream<T extends Token> |
Modifier and Type | Field and Description |
---|---|
protected TokenStream |
Parser._input
The input stream.
|
protected TokenStream |
TokenStreamRewriter.tokens
Our source stream
|
Modifier and Type | Method and Description |
---|---|
TokenStream |
Parser.getInputStream() |
TokenStream |
TokenStreamRewriter.getTokenStream() |
TokenStream |
Parser.getTokenStream() |
Modifier and Type | Method and Description |
---|---|
void |
Parser.setTokenStream(TokenStream input)
Set the token stream and reset the parser.
|
Constructor and Description |
---|
NoViableAltException(Parser recognizer,
TokenStream input,
Token startToken,
Token offendingToken,
ATNConfigSet deadEndConfigs,
ParserRuleContext ctx) |
Parser(TokenStream input) |
TokenStreamRewriter(TokenStream tokens) |
Modifier and Type | Field and Description |
---|---|
protected TokenStream |
ParserATNSimulator._input |
Modifier and Type | Method and Description |
---|---|
int |
ParserATNSimulator.adaptivePredict(TokenStream input,
int decision,
ParserRuleContext outerContext) |
protected int |
ParserATNSimulator.execATN(DFA dfa,
DFAState s0,
TokenStream input,
int startIndex,
ParserRuleContext outerContext)
Performs ATN simulation to compute a predicted alternative based
upon the remaining input, but also updates the DFA cache to avoid
having to traverse the ATN again for the same input sequence.
|
protected int |
ParserATNSimulator.execATNWithFullContext(DFA dfa,
DFAState D,
ATNConfigSet s0,
TokenStream input,
int startIndex,
ParserRuleContext outerContext) |
String |
ParserATNSimulator.getLookaheadName(TokenStream input) |
protected NoViableAltException |
ParserATNSimulator.noViableAlt(TokenStream input,
ParserRuleContext outerContext,
ATNConfigSet configs,
int startIndex) |
Copyright © 1992-2013 ANTLR. All Rights Reserved.