Top Interfaces Classes
[default module]

Package org.antlr.runtime


Interface Summary

Modifier and TypeInterface and Description
public interface
CharStream

A source of characters for an ANTLR lexer

public interface
IntStream

A simple stream of integers used when all I care about is the char or token type sequence (such as interpretation).

public interface
public interface
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.

public interface
TokenStream

A stream of tokens accessing tokens from a TokenSource

Class Summary

Modifier and TypeClass and Description
public class
ANTLRFileStream

This is a char buffer stream that is loaded from a file all at once when you construct the object.

public class
ANTLRInputStream

A kind of ReaderStream that pulls from an InputStream.

public class
ANTLRReaderStream

Vacuum all input from a Reader and then treat it like a StringStream.

public class
ANTLRStringStream

A pretty quick CharStream that pulls all data from an array directly.

public abstract class
BaseRecognizer

A generic recognizer that can handle recognizers generated from lexer, parser, and tree grammars.

public class
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.

public class
BufferedTokenStream

Buffer all input tokens but do on-demand fetching of new tokens from lexer.

public class
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.

public class
ClassicToken

A Token object like we'd use in ANTLR 2.x; has an actual string created and associated with this object.

public class
public 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).

public class
DFA

A DFA implemented as a set of transition tables.

public class
EarlyExitException

The recognizer did not match anything for a (..)+ loop.

public class
FailedPredicateException

A semantic predicate failed during validation.

public 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).

public abstract class
Lexer

A lexer is recognizer that draws input symbols from a character stream.

public class
public class
public class
public class
MismatchedTokenException

A mismatched char or Token or tree node

public class
public class
MissingTokenException

We were expecting a token but it's not found.

public class
public class
Parser

A parser for TokenStreams.

public class
ParserRuleReturnScope

Rules that return more than a single value must return an object containing all the values.

public class
RecognitionException

The root of the ANTLR exception hierarchy.

public class
RecognizerSharedState

The set of fields needed by an abstract recognizer to recognize input and recover from errors etc...

public class
RuleReturnScope

Rules can return start/stop info as well as possible trees and templates

public class
public class
TokenRewriteStream

Useful for dumping out the input stream after doing some augmentation or other manipulations.

public class
UnbufferedTokenStream

A token stream that pulls tokens from the code source on-demand and without tracking a complete buffer of the tokens.

public class
UnwantedTokenException

An extra token while parsing a TokenStream