org.antlr.runtime |
|
Java Source File Name | Type | Comment |
ANTLRFileStream.java | Class | This is a char buffer stream that is loaded from a file
all at once when you construct the object. |
ANTLRInputStream.java | Class | A kind of ReaderStream that pulls from an InputStream. |
ANTLRReaderStream.java | Class | Vacuum all input from a Reader and then treat it like a StringStream. |
ANTLRStringStream.java | Class | A pretty quick CharStream that pulls all data from an array
directly. |
BaseRecognizer.java | Class | A generic recognizer that can handle recognizers generated from
lexer, parser, and tree grammars. |
BitSet.java | Class | 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. |
CharStream.java | Interface | |
CharStreamState.java | Class | 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.java | Class | A Token object like we'd use in ANTLR 2.x; has an actual string created
and associated with this object. |
CommonToken.java | Class | |
CommonTokenStream.java | Class | 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). |
DFA.java | Class | A DFA implemented as a set of transition tables.
Any state that has a semantic predicate edge is special; those states
are generated with if-then-else structures in a specialStateTransition()
which is generated by cyclicDFA template.
There are at most 32767 states (16-bit signed short).
Could get away with byte sometimes but would have to generate different
types and the simulation code too. |
EarlyExitException.java | Class | The recognizer did not match anything for a (..)+ loop. |
FailedPredicateException.java | Class | A semantic predicate failed during validation. |
IntStream.java | Interface | A simple stream of integers used when all I care about is the char
or token type sequence (such as interpretation). |
Lexer.java | Class | A lexer is recognizer that draws input symbols from a character stream.
lexer grammars result in a subclass of this object. |
MismatchedNotSetException.java | Class | |
MismatchedRangeException.java | Class | |
MismatchedSetException.java | Class | |
MismatchedTokenException.java | Class | |
MismatchedTreeNodeException.java | Class | |
NoViableAltException.java | Class | |
Parser.java | Class | A parser for TokenStreams. |
ParserRuleReturnScope.java | Class | Rules that return more than a single value must return an object
containing all the values. |
RecognitionException.java | Class | The root of the ANTLR exception hierarchy.
To avoid English-only error messages and to generally make things
as flexible as possible, these exceptions are not created with strings,
but rather the information necessary to generate an error. |
RuleReturnScope.java | Class | |
Token.java | Interface | |
TokenRewriteStream.java | Class | Useful for dumping out the input stream after doing some
augmentation or other manipulations.
You can insert stuff, replace, and delete chunks. |
TokenSource.java | Interface | 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.
Errors from the lexer are never passed to the parser. |
TokenStream.java | Interface | |