| Interface | Description |
|---|---|
| ANTLRErrorListener |
How to emit recognition errors.
|
| ANTLRErrorStrategy |
The interface for defining strategies to deal with syntax errors encountered
during a parse by ANTLR-generated parsers.
|
| CharStream |
A source of characters for an ANTLR lexer.
|
| IntStream |
A simple stream of symbols whose values are represented as integers.
|
| RuntimeMetaData.Listener |
This interface defines a listener which handles notifications about
mismatched ANTLR Tool and/or Runtime versions.
|
| Token |
A token has properties: text, type, line, character position in the line
(so we can ignore tabs), token channel, index, and source from which
we obtained this token.
|
| TokenFactory<Symbol extends Token> |
The default mechanism for creating tokens.
|
| TokenSource |
A source of tokens must provide a sequence of tokens via
TokenSource.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 | |
| WritableToken |
| Class | Description |
|---|---|
| ANTLRFileStream |
This is an
ANTLRInputStream that is loaded from a file all at once
when you construct the object. |
| ANTLRInputStream | |
| BailErrorStrategy |
This implementation of
ANTLRErrorStrategy responds to syntax errors
by immediately canceling the parse operation with a
ParseCancellationException. |
| BaseErrorListener |
Provides an empty default implementation of
ANTLRErrorListener. |
| BufferedTokenStream |
This implementation of
TokenStream loads tokens from a
TokenSource on-demand, and places the tokens in a buffer to provide
access to any previous token by index. |
| CommonToken | |
| CommonTokenFactory |
This default implementation of
TokenFactory creates
CommonToken objects. |
| CommonTokenStream |
This class extends
BufferedTokenStream with functionality to filter
token streams to tokens on a particular channel (tokens where
Token.getChannel() returns a particular value). |
| ConsoleErrorListener | |
| DefaultErrorStrategy |
This is the default implementation of
ANTLRErrorStrategy used for
error reporting and recovery in ANTLR parsers. |
| DiagnosticErrorListener |
This implementation of
ANTLRErrorListener can be used to identify
certain potential correctness and performance problems in grammars. |
| InterpreterRuleContext |
This class extends
ParserRuleContext by allowing the value of
InterpreterRuleContext.getRuleIndex() to be explicitly set for the context. |
| Lexer |
A lexer is recognizer that draws input symbols from a character stream.
|
| LexerInterpreter | |
| ListTokenSource |
Provides an implementation of
TokenSource as a wrapper around a list
of Token objects. |
| Parser |
This is all the parsing support code essentially; most of it is error recovery stuff.
|
| Parser.TrimToSizeListener | |
| ParserInterpreter |
A parser simulator that mimics what ANTLR's generated
parser code does.
|
| ParserRuleContext |
A rule invocation record for parsing.
|
| ProxyErrorListener |
This implementation of
ANTLRErrorListener dispatches all calls to a
collection of delegate listeners. |
| Recognizer<Symbol,ATNInterpreter extends ATNSimulator> | |
| RuleContext |
A rule context is a record of a single rule invocation.
|
| RuntimeMetaData |
This class provides access to the current version of the ANTLR 4 runtime
library as compile-time and runtime constants, along with methods for
checking for matching version numbers and notifying listeners in the case
where a version mismatch is detected.
|
| RuntimeMetaData.DefaultListener |
This class provides a default implementation of
RuntimeMetaData.Listener which
responds to mismatched versions by throwing the provided
RuntimeMetaData.VersionMismatchException if the reported version mismatch
indicates the versions differ by more than the major and
minor version components. |
| TokenStreamRewriter |
Useful for rewriting out a buffered input token stream after doing some
augmentation or other manipulations on it.
|
| UnbufferedCharStream |
Do not buffer up the entire char stream.
|
| UnbufferedTokenStream<T extends Token> |
| Exception | Description |
|---|---|
| FailedPredicateException |
A semantic predicate failed during validation.
|
| InputMismatchException |
This signifies any kind of mismatched input exceptions such as
when the current input does not match the expected token.
|
| LexerNoViableAltException | |
| NoViableAltException |
Indicates that the parser could not decide which of two or more paths
to take based upon the remaining input.
|
| RecognitionException |
The root of the ANTLR exception hierarchy.
|
| RuntimeMetaData.VersionMismatchException |
This class provides detailed information about a mismatch between the
version of the tool a parser was generated with, the version of the
runtime a parser was compiled against, and/or the currently executing
version of the runtime.
|
Copyright © 1992–2014 ANTLR. All rights reserved.