Package | Description |
---|---|
org.antlr.grammar.v3 | |
org.antlr.runtime | |
org.antlr.runtime.debug | |
org.antlr.runtime.tree | |
org.antlr.tool |
Modifier and Type | Method and Description |
---|---|
static ANTLRParser |
ANTLRParser.createParser(TokenStream input) |
Constructor and Description |
---|
ANTLRParser(TokenStream input) |
ANTLRParser(TokenStream input,
RecognizerSharedState state) |
ANTLRv3Parser(TokenStream input) |
ANTLRv3Parser(TokenStream input,
RecognizerSharedState state) |
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 |
LegacyCommonTokenStream
The most common stream of tokens is one where every token is buffered up
and tokens are prefiltered for a certain channel (the parser will only
see these tokens and cannot change the filter channel number during the
parse).
|
class |
TokenRewriteStream
Useful for dumping out the input stream after doing some
augmentation or other manipulations.
|
class |
UnbufferedTokenStream
A token stream that pulls tokens from the code source on-demand and
without tracking a complete buffer of the tokens.
|
Modifier and Type | Field and Description |
---|---|
TokenStream |
Parser.input |
Modifier and Type | Method and Description |
---|---|
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 |
---|
Parser(TokenStream input) |
Parser(TokenStream input,
RecognizerSharedState state) |
Modifier and Type | Class and Description |
---|---|
class |
DebugTokenStream |
Modifier and Type | Field and Description |
---|---|
TokenStream |
DebugTokenStream.input |
Modifier and Type | Method and Description |
---|---|
TokenStream |
DebugTreeNodeStream.getTokenStream() |
Modifier and Type | Method and Description |
---|---|
Object |
DebugTreeAdaptor.errorNode(TokenStream input,
Token start,
Token stop,
RecognitionException e) |
Constructor and Description |
---|
DebugParser(TokenStream input,
DebugEventListener dbg) |
DebugParser(TokenStream input,
DebugEventListener dbg,
RecognizerSharedState state)
Create a normal parser except wrap the token stream in a debug
proxy that fires consume events.
|
DebugParser(TokenStream input,
RecognizerSharedState state) |
DebugTokenStream(TokenStream input,
DebugEventListener dbg) |
Modifier and Type | Field and Description |
---|---|
protected TokenStream |
TreeRewriter.originalTokenStream |
protected TokenStream |
TreeFilter.originalTokenStream |
protected TokenStream |
CommonTreeNodeStream.tokens
If this tree (root) was created from a
TokenStream , track it. |
protected TokenStream |
BufferedTreeNodeStream.tokens
IF this tree (root) was created from a token stream, track it.
|
Modifier and Type | Method and Description |
---|---|
TokenStream |
TreeNodeStream.getTokenStream()
If the tree associated with this stream was created from a
TokenStream , you can specify it here. |
TokenStream |
CommonTreeNodeStream.getTokenStream() |
TokenStream |
BufferedTreeNodeStream.getTokenStream() |
Modifier and Type | Method and Description |
---|---|
Object |
BaseTreeAdaptor.errorNode(TokenStream input,
Token start,
Token stop,
RecognitionException e)
create tree node that holds the start and stop tokens associated
with an error.
|
Object |
TreeAdaptor.errorNode(TokenStream input,
Token start,
Token stop,
RecognitionException e)
Return a tree node representing an error.
|
void |
CommonTreeNodeStream.setTokenStream(TokenStream tokens) |
void |
BufferedTreeNodeStream.setTokenStream(TokenStream tokens) |
Constructor and Description |
---|
CommonErrorNode(TokenStream input,
Token start,
Token stop,
RecognitionException e) |
Modifier and Type | Class and Description |
---|---|
static class |
Interp.FilteringTokenStream |
Copyright © 1992–2015 ANTLR. All rights reserved.