Top Interfaces Classes
module antlr

Package org.antlr.tool


Interface Summary

Modifier and TypeInterface and Description
public interface
ANTLRErrorListener

Defines behavior of object able to handle error messages from ANTLR including both tool errors like "can't write file" and grammar ambiguity warnings.

Class Summary

Modifier and TypeClass and Description
public class
AssignTokenTypesBehavior

Move all of the functionality from assign.types.g grammar file.

public class
Attribute

Track the names of attributes define in arg lists, return values, scope blocks etc...

public class
AttributeScope

Track the attributes within a scope.

public class
BuildDependencyGenerator

Given a grammar file, show the dependencies on .tokens etc...

public class
CompositeGrammar

A tree of component (delegate) grammars.

public class
CompositeGrammarTree

A tree of grammars

public class
DOTGenerator

The DOT (part of graphviz) generation aspect.

public class
ErrorManager

Defines all the errors ANTLR can generator for both the tool and for issues with a grammar.

public class
FASerializer

An aspect of FA (finite automata) that knows how to dump them to serialized strings.

public class
Grammar

Represents a grammar in memory.

public class
GrammarAnalysisAbortedMessage

Reports the condition that ANTLR's LL(*) analysis engine terminated early.

public class
GrammarAST

Grammars are first converted to ASTs using this class and then are converted to NFAs via a tree walker.

public class
GrammarDanglingStateMessage

Reports a potential parsing issue with a decision; the decision is nondeterministic in some way.

public class
public class
GrammarNonDeterminismMessage

Reports a potential parsing issue with a decision; the decision is nondeterministic in some way.

public class
public class
GrammarReport2

Simplifying report dramatically for LL(*) paper.

public class
GrammarSanity

Factor out routines that check sanity of rules, alts, grammars, etc..

public class
GrammarSemanticsMessage

A problem with the symbols and/or meaning of a grammar such as rule redefinition.

public class
GrammarSerializerFoo

Serialize a grammar into a highly compressed form with only the info needed to recognize sentences.

public class
GrammarSpelunker

Load a grammar file and scan it just until we learn a few items of interest.

public class
GrammarSyntaxMessage

A problem with the syntax of your antlr grammar such as "The '{' came as a complete surprise to me at this point in your program"

public class
GrammarUnreachableAltsMessage

Reports a potential parsing issue with a decision; the decision is nondeterministic in some way.

public class
Interp

Interpret any ANTLR grammar: java Interp file.g tokens-to-ignore start-rule input-file java Interp C.g 'WS COMMENT' program t.c where the WS and COMMENT are the names of tokens you want to have the parser ignore.

public class
Interpreter

The recognition interpreter/engine for grammars.

public class
LeftRecursionCyclesMessage

Similar to LeftRecursionMessage except this is used for announcing cycles found by walking rules without decisions; the other msg is invoked when a decision DFA construction finds a problem in closure.

public class
public abstract class
Message

The ANTLR code calls methods on ErrorManager to report errors etc...

public class
public class
NFAFactory

Routines to construct StateClusters from EBNF grammar constructs.

public class
NonRegularDecisionMessage

More a single alternative recurses so this decision is not regular.

public class
RandomPhrase

Generate a random phrase given a grammar.

public class
RecursionOverflowMessage

Indicates recursion overflow.

public class
Rule

Combine the info associated with a rule.

public class
public class
Strip

A basic action stripper.

public class
ToolMessage

A generic message from the tool such as "file not found" type errors; there is no reason to create a special object for each error unlike the grammar errors, which may be rather complex.

public class
ToolSTGroupFile

This extension of STGroupFile automatically sets the group's STErrorListener to ErrorManager#getSTErrorListener().