Package antlr
Class ANTLRParser
java.lang.Object
antlr.Parser
antlr.LLkParser
antlr.ANTLRParser
- All Implemented Interfaces:
ANTLRTokenTypes
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String[]
static final BitSet
static final BitSet
static final BitSet
static final BitSet
static final BitSet
static final BitSet
static final BitSet
static final BitSet
static final BitSet
static final BitSet
static final BitSet
static final BitSet
(package private) Tool
(package private) ANTLRGrammarParseBehavior
protected int
Fields inherited from class antlr.Parser
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth
Fields inherited from interface antlr.ANTLRTokenTypes
ACTION, ARG_ACTION, ASSIGN, BANG, CARET, CHAR_LITERAL, CLOSE_ELEMENT_OPTION, COLON, COMMA, COMMENT, DIGIT, DOC_COMMENT, EOF, ESC, IMPLIES, INT, INTERNAL_RULE_REF, LITERAL_catch, LITERAL_charVocabulary, LITERAL_class, LITERAL_exception, LITERAL_extends, LITERAL_header, LITERAL_lexclass, LITERAL_Lexer, LITERAL_options, LITERAL_Parser, LITERAL_private, LITERAL_protected, LITERAL_public, LITERAL_returns, LITERAL_throws, LITERAL_tokens, LITERAL_TreeParser, LPAREN, ML_COMMENT, NESTED_ACTION, NESTED_ARG_ACTION, NOT_OP, NULL_TREE_LOOKAHEAD, OPEN_ELEMENT_OPTION, OPTIONS, OR, PLUS, QUESTION, RANGE, RCURLY, RPAREN, RULE_REF, SEMI, SEMPRED, SL_COMMENT, STAR, STRING_LITERAL, TOKEN_REF, TOKENS, TREE_BEGIN, WILDCARD, WS, WS_LOOP, WS_OPT, XDIGIT
-
Constructor Summary
ConstructorsModifierConstructorDescriptionANTLRParser
(TokenBuffer tokenBuf) protected
ANTLRParser
(TokenBuffer tokenBuf, int k) ANTLRParser
(TokenBuffer tokenBuf, ANTLRGrammarParseBehavior behavior_, Tool tool_) ANTLRParser
(TokenStream lexer) protected
ANTLRParser
(TokenStream lexer, int k) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
final int
final void
block()
final BitSet
charSet()
final void
classDef()
final void
final void
element()
final void
final void
final void
final void
final void
final void
final void
final void
grammar()
final Token
id()
final void
final void
final void
notTerminal
(Token label) final Token
final void
final void
parserSpec
(String doc) final Token
Match a.b.c.d qualified ids; WILDCARD here is overloaded as id separator; that is, I need a reference to the '.' token.final void
void
Parser error-reporting function can be overridden in subclassvoid
void
Parser error-reporting function can be overridden in subclassvoid
Parser warning-reporting function can be overridden in subclassfinal void
rootNode()
final void
rule()
final void
final void
rules()
final BitSet
final void
final String
final void
final void
final void
final void
final void
tree()
final void
final void
treeParserSpec
(String doc) Methods inherited from class antlr.Parser
addMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, getTokenTypeToASTClassMap, isDebugMode, mark, match, match, matchNot, panic, recover, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent
-
Field Details
-
behavior
ANTLRGrammarParseBehavior behavior -
antlrTool
Tool antlrTool -
blockNesting
protected int blockNesting -
_tokenNames
-
_tokenSet_0
-
_tokenSet_1
-
_tokenSet_2
-
_tokenSet_3
-
_tokenSet_4
-
_tokenSet_5
-
_tokenSet_6
-
_tokenSet_7
-
_tokenSet_8
-
_tokenSet_9
-
_tokenSet_10
-
_tokenSet_11
-
-
Constructor Details
-
ANTLRParser
-
ANTLRParser
-
ANTLRParser
-
ANTLRParser
-
ANTLRParser
-
-
Method Details
-
reportError
Description copied from class:Parser
Parser error-reporting function can be overridden in subclass- Overrides:
reportError
in classParser
-
reportError
Description copied from class:Parser
Parser error-reporting function can be overridden in subclass- Overrides:
reportError
in classParser
-
reportError
-
reportWarning
Description copied from class:Parser
Parser warning-reporting function can be overridden in subclass- Overrides:
reportWarning
in classParser
-
grammar
-
fileOptionsSpec
-
classDef
-
id
-
lexerSpec
-
treeParserSpec
-
parserSpec
-
rules
-
optionValue
-
parserOptionsSpec
-
treeParserOptionsSpec
-
lexerOptionsSpec
-
charSet
-
subruleOptionsSpec
-
qualifiedID
Match a.b.c.d qualified ids; WILDCARD here is overloaded as id separator; that is, I need a reference to the '.' token. -
setBlockElement
-
tokensSpec
-
tokensSpecOptions
-
superClass
-
rule
-
throwsSpec
-
ruleOptionsSpec
-
block
-
exceptionGroup
-
alternative
-
element
-
exceptionSpecNoLabel
-
exceptionSpec
-
exceptionHandler
-
elementNoOptionSpec
-
elementOptionSpec
-
range
-
terminal
-
notTerminal
-
ebnf
-
tree
-
rootNode
-
ast_type_spec
-