| 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.
|
| 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 | |
| Vocabulary |
This interface provides information about the vocabulary used by a
recognizer.
|
| WritableToken |
| Class | Description |
|---|---|
| ANTLRFileStream |
This is an
ANTLRInputStream that is loaded from a file all at once
when you construct the object. |
| ANTLRInputStream |
Vacuum all input from a
Reader/InputStream and then treat it
like a char[] buffer. |
| 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.
|
| 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> | |
| VocabularyImpl |
This class provides a default implementation of the
Vocabulary
interface. |
| 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.
|