Package antlr

Interface Summary

ANTLRGrammarParseBehavior
ANTLRTokdefParserTokenTypes
ANTLRTokenTypes
ASTVisitor
CharFormatterInterface used by BitSet to format elements of the set when converting to string
GrammarAnalyzerA GrammarAnalyzer computes lookahead from Grammar (which contains a grammar symbol table) and can then answer questions about the grammar.
LLkGrammarAnalyzer
TokenManagerInterface that describes the set of defined tokens
TokenStream
ToolErrorHandler

Class Summary

ActionElement
ActionTransInfo This class contains information about how an action was translated (using the AST conversion rules).
AlternativeIntermediate data class holds information about an alternative
AlternativeBlockA list of alternatives
AlternativeElement
ANTLRError
ANTLRException
ANTLRHashString
ANTLRLexer
ANTLRParser
ANTLRStringBuffer
ANTLRTokdefLexer
ANTLRTokdefParserSimple lexer/parser for reading token definition files in support of the import/export vocab option for grammars.
ASTFactoryAST Support code shared by TreeParser and Parser.
ASTIterator
ASTNULLTypeThere is only one instance of this class *
ASTPairASTPair: utility class used for manipulating a pair of ASTs representing the current AST root and current AST sibling.
BaseAST A Child-Sibling Tree.
BlockContextBlockContext stores the information needed when creating an alternative (list of elements).
BlockEndElementAll alternative blocks are "terminated" by BlockEndElements unless they are rule blocks (in which case they use RuleEndElement).
BlockWithImpliedExitPath
ByteBufferA Stream of characters fed to the lexer from a InputStream that can be rewound via mark()/rewind() methods.
CharBufferA Stream of characters fed to the lexer from a InputStream that can be rewound via mark()/rewind() methods.
CharLiteralElement
CharQueueA circular buffer object used by CharBuffer
CharRangeElement
CharScanner
CharStreamException Anything that goes wrong while generating a stream of characters
CharStreamIOException Wrap an IOException in a CharStreamException
CodeGeneratorA generic ANTLR code generator.
CommonASTCommon AST node implementation
CommonASTWithHiddenTokensA CommonAST whose initialization copies hidden token information from the Token used to create a node.
CommonHiddenStreamToken
CommonToken
CppBlockFinishingInfo
CppCharFormatter
CppCodeGeneratorGenerate MyParser.cpp, MyParser.hpp, MyLexer.cpp, MyLexer.hpp and MyParserTokenTypes.hpp
CSharpBlockFinishingInfo
CSharpCharFormatter
CSharpCodeGeneratorGenerates MyParser.cs, MyLexer.cs and MyParserTokenTypes.cs
CSharpNameSpace ANTLR Translator Generator Project led by Terence Parr at http://www.jGuru.com Software rights: http://www.antlr.org/license.html Container for a C++ namespace specification.
DefaultFileLineFormatter
DefaultToolErrorHandler
DefineGrammarSymbolsDefineGrammarSymbols is a behavior for the ANTLRParser that adds all the token and rule symbols to the grammar symbol table.
DiagnosticCodeGeneratorGenerate MyParser.txt, MyLexer.txt and MyParserTokenTypes.txt
DocBookCodeGeneratorGenerate P.sgml, a cross-linked representation of P with or without actions
DumpASTVisitorSimple class to dump the contents of an AST to the output
ExceptionHandler
ExceptionSpec
FileCopyException
FileLineFormatter
GrammarA Grammar holds a set of rules (which are stored in a symbol table).
GrammarAtomA GrammarAtom is either a token ref, a character ref, or string.
GrammarElementA GrammarElement is a generic node in our data structure that holds a grammar in memory.
GrammarSymbolA GrammarSymbol is a generic symbol that can be added to the symbol table for a grammar.
HTMLCodeGeneratorGenerate P.html, a cross-linked representation of P with or without actions
ImportVocabTokenManagerStatic implementation of the TokenManager, used for importVocab option
InputBufferA Stream of characters fed to the lexer from a InputStream that can be rewound via mark()/rewind() methods.
JavaBlockFinishingInfo
JavaCharFormatter
JavaCodeGeneratorGenerate MyParser.java, MyLexer.java and MyParserTokenTypes.java
LexerGrammarLexer-specific grammar subclass
LexerSharedInputStateThis object contains the data associated with an input stream of characters.
LLkAnalyzerA linear-approximate LL(k) grammar analzyer.
LLkParserAn LL(k) parser.
LookaheadThis object holds all information needed to represent the lookahead for any particular lookahead computation for a single lookahead depth.
MakeGrammar
MismatchedCharException
MismatchedTokenException
NameSpace ANTLR Translator Generator Project led by Terence Parr at http://www.jGuru.com Software rights: http://www.antlr.org/license.html Container for a C++ namespace specification.
NoViableAltException
NoViableAltForCharException
OneOrMoreBlock
ParserA generic ANTLR parser (LL(k) for k>=1) containing a bunch of utility routines useful at any lookahead depth.
ParserGrammarParser-specific grammar subclass
ParserSharedInputStateThis object contains the data associated with an input stream of tokens.
ParseTree
ParseTreeRule
ParseTreeToken
PreservingFileWriterPreservingFileWriter only overwrites target if the new file is different.
PythonBlockFinishingInfo
PythonCharFormatter
PythonCodeGeneratorGenerate MyParser.java, MyLexer.java and MyParserTokenTypes.java
RecognitionException
RuleBlockA list of alternatives and info contained in the rule definition.
RuleEndElementContains a list of all places that reference this enclosing rule.
RuleRefElement
RuleSymbol
SemanticException
SimpleTokenManager
StringLiteralElement
StringLiteralSymbol
StringUtils
SynPredBlock
TokenA token is minimally a token type.
TokenBufferA Stream of Token objects fed to the parser from a Tokenizer that can be rewound via mark()/rewind() methods.
TokenQueueA private circular buffer object used by the token buffer
TokenRangeElement
TokenRefElement
TokenStreamBasicFilterThis object is a TokenStream that passes through all tokens except for those that you tell it to discard.
TokenStreamException Anything that goes wrong while generating a stream of tokens.
TokenStreamHiddenTokenFilterThis object filters a token stream coming from a lexer or another TokenStream so that only certain token channels get transmitted to the parser.
TokenStreamIOException Wraps an IOException in a TokenStreamException
TokenStreamRecognitionException Wraps a RecognitionException in a TokenStreamException so you can pass it along.
TokenStreamRetryException Aborted recognition of current token.
TokenStreamRewriteEngineThis token stream tracks the *entire* token stream coming from a lexer, but does not pass on the whitespace (or whatever else you want to discard) to the parser.
TokenStreamRewriteEngine.DeleteOp
TokenStreamRewriteEngine.InsertBeforeOp
TokenStreamRewriteEngine.ReplaceOp
TokenStreamRewriteEngine.RewriteOperation
TokenStreamSelectorA token stream MUX (multiplexor) knows about n token streams and can multiplex them onto the same channel for use by token stream consumer like a parser.
TokenSymbol
TokenWithIndexThis token knows what index 0..n-1 it is from beginning of stream.
Tool
TreeBlockContextThe context needed to add root,child elements to a Tree.
TreeElementA TreeElement is a block with one alternative and a root node
TreeParser
TreeParserSharedInputStateThis object contains the data associated with an input AST.
TreeSpecifierNode
TreeWalkerGrammarParser-specific grammar subclass
Version
WildcardElement
ZeroOrMoreBlock