All Classes Interface Summary Class Summary Exception Summary
Class |
Description |
ANTLRFileStream |
This is a char buffer stream that is loaded from a file
all at once when you construct the object.
|
ANTLRInputStream |
A kind of ReaderStream that pulls from an InputStream.
|
ANTLRReaderStream |
Vacuum all input from a Reader and then treat it like a StringStream.
|
ANTLRStringStream |
A pretty quick CharStream that pulls all data from an array
directly.
|
BaseRecognizer |
A generic recognizer that can handle recognizers generated from
lexer, parser, and tree grammars.
|
BaseTree |
A generic tree implementation with no payload.
|
BaseTreeAdaptor |
A TreeAdaptor that works with any Tree implementation.
|
BitSet |
A stripped-down version of org.antlr.misc.BitSet that is just
good enough to handle runtime requirements such as FOLLOW sets
for automatic error recovery.
|
BlankDebugEventListener |
A blank listener that does nothing; useful for real classes so
they don't have to have lots of blank methods and are less
sensitive to updates to debug interface.
|
BufferedTokenStream |
Buffer all input tokens but do on-demand fetching of new tokens from
lexer.
|
BufferedTreeNodeStream |
A buffered stream of tree nodes.
|
CharStream |
A source of characters for an ANTLR lexer
|
CharStreamState |
When walking ahead with cyclic DFA or for syntactic predicates,
we need to record the state of the input stream (char index,
line, etc...) so that we can rewind the state after scanning ahead.
|
ClassicToken |
A Token object like we'd use in ANTLR 2.x; has an actual string created
and associated with this object.
|
CommonErrorNode |
A node representing erroneous token range in token stream
|
CommonToken |
|
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).
|
CommonTree |
A tree node that is wrapper for a Token object.
|
CommonTreeAdaptor |
A TreeAdaptor that works with any Tree implementation.
|
CommonTreeNodeStream |
|
DebugEventHub |
Broadcast debug events to multiple listeners.
|
DebugEventListener |
All debugging events that a recognizer can trigger.
|
DebugEventRepeater |
A simple event repeater (proxy) that delegates all functionality to the
listener sent into the ctor.
|
DebugEventSocketProxy |
A proxy debug event listener that forwards events over a socket to
a debugger (or any other listener) using a simple text-based protocol;
one event per line.
|
DebugParser |
|
DebugTokenStream |
|
DebugTreeAdaptor |
A TreeAdaptor proxy that fires debugging events to a DebugEventListener
delegate and uses the TreeAdaptor delegate to do the actual work.
|
DebugTreeNodeStream |
Debug any tree node stream.
|
DebugTreeParser |
|
DFA |
A DFA implemented as a set of transition tables.
|
DOTTreeGenerator |
A utility class to generate DOT diagrams (graphviz) from
arbitrary trees.
|
DoubleKeyMap<Key1,Key2,Value> |
Sometimes we need to map a key to a value but key is two pieces of data.
|
EarlyExitException |
The recognizer did not match anything for a (..)+ loop.
|
FailedPredicateException |
A semantic predicate failed during validation.
|
FastQueue<T> |
A queue that can dequeue and get(i) in O(1) and grow arbitrarily large.
|
IntArray |
A dynamic array that uses int not Integer objects.
|
IntStream |
A simple stream of integers used when all I care about is the char
or token type sequence (such as interpretation).
|
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).
|
Lexer |
A lexer is recognizer that draws input symbols from a character stream.
|
LookaheadStream<T> |
A lookahead queue that knows how to mark/release locations in the buffer for
backtracking purposes.
|
MismatchedNotSetException |
|
MismatchedRangeException |
|
MismatchedSetException |
|
MismatchedTokenException |
A mismatched char or Token or tree node
|
MismatchedTreeNodeException |
|
MissingTokenException |
We were expecting a token but it's not found.
|
NoViableAltException |
|
Parser |
A parser for TokenStreams.
|
ParserRuleReturnScope |
Rules that return more than a single value must return an object
containing all the values.
|
ParseTree |
A record of the rules used to match a token sequence.
|
ParseTreeBuilder |
This parser listener tracks rule entry/exit and token matches
to build a simple parse tree using ParseTree nodes.
|
PositionTrackingStream<T> |
|
Profiler |
Using the debug event interface, track what is happening in the parser
and record statistics about the runtime.
|
Profiler.DecisionDescriptor |
|
Profiler.DecisionEvent |
|
Profiler.ProfileStats |
|
RecognitionException |
The root of the ANTLR exception hierarchy.
|
RecognizerSharedState |
The set of fields needed by an abstract recognizer to recognize input
and recover from errors etc...
|
RemoteDebugEventSocketListener |
|
RemoteDebugEventSocketListener.ProxyToken |
|
RemoteDebugEventSocketListener.ProxyTree |
|
RewriteCardinalityException |
Base class for all exceptions thrown during AST rewrite construction.
|
RewriteEarlyExitException |
No elements within a (...)+ in a rewrite rule
|
RewriteEmptyStreamException |
Ref to ID or expr but no tokens in ID stream or subtrees in expr stream
|
RewriteRuleElementStream |
A generic list of elements tracked in an alternative to be used in
a -> rewrite rule.
|
RewriteRuleNodeStream |
Queues up nodes matched on left side of -> in a tree parser.
|
RewriteRuleSubtreeStream |
|
RewriteRuleTokenStream |
|
RuleReturnScope |
Rules can return start/stop info as well as possible trees and templates
|
SerializedGrammar |
|
Stats |
Stats routines needed by profiler etc...
|
Token |
|
TokenRewriteStream |
Useful for dumping out the input stream after doing some
augmentation or other manipulations.
|
TokenSource |
A source of tokens must provide a sequence of tokens via nextToken()
and also must reveal it's source of characters; CommonToken's text is
computed from a CharStream; it only store indices into the char stream.
|
TokenStream |
A stream of tokens accessing tokens from a TokenSource
|
TraceDebugEventListener |
Print out (most of) the events...
|
Tracer |
The default tracer mimics the traceParser behavior of ANTLR 2.x.
|
Tree |
What does a tree look like? ANTLR has a number of support classes
such as CommonTreeNodeStream that work on these kinds of trees.
|
TreeAdaptor |
How to create and navigate trees.
|
TreeFilter |
Cut-n-paste from material I'm not using in the book anymore (edit later
to make sense):
Now, how are we going to test these tree patterns against every
subtree in our original tree? In what order should we visit nodes?
For this application, it turns out we need a simple ``apply once''
rule application strategy and a ``down then up'' tree traversal
strategy.
|
TreeFilter.fptr |
|
TreeIterator |
Return a node stream from a doubly-linked tree whose nodes
know what child index they are.
|
TreeNodeStream |
A stream of tree nodes, accessing nodes from a tree of some kind
|
TreeParser |
A parser for a stream of tree nodes.
|
TreePatternLexer |
|
TreePatternParser |
|
TreeRewriter |
|
TreeRewriter.fptr |
|
TreeRuleReturnScope |
This is identical to the ParserRuleReturnScope except that
the start property is a tree nodes not Token object
when you are parsing trees.
|
TreeVisitor |
Do a depth first walk of a tree, applying pre() and post() actions
as we discover and finish nodes.
|
TreeVisitorAction |
How to execute code for node t when a visitor visits node t.
|
TreeWizard |
Build and navigate trees with this object.
|
TreeWizard.ContextVisitor |
|
TreeWizard.TreePattern |
When using %label:TOKENNAME in a tree for parse(), we must
track the label.
|
TreeWizard.TreePatternTreeAdaptor |
This adaptor creates TreePattern objects for use during scan()
|
TreeWizard.Visitor |
|
TreeWizard.WildcardTreePattern |
|
UnbufferedTokenStream |
A token stream that pulls tokens from the code source on-demand and
without tracking a complete buffer of the tokens.
|
UnwantedTokenException |
An extra token while parsing a TokenStream
|