org.antlr.tool
Class DefineGrammarItemsWalker
java.lang.Object
antlr.TreeParser
org.antlr.tool.DefineGrammarItemsWalker
- All Implemented Interfaces:
- DefineGrammarItemsWalkerTokenTypes
public class DefineGrammarItemsWalker
- extends antlr.TreeParser
- implements DefineGrammarItemsWalkerTokenTypes
Fields inherited from interface org.antlr.tool.DefineGrammarItemsWalkerTokenTypes |
ACTION, ACTION_CHAR_LITERAL, ACTION_ESC, ACTION_STRING_LITERAL, ALT, AMPERSAND, ARG, ARG_ACTION, ARGLIST, ASSIGN, BACKTRACK_SEMPRED, BANG, BLOCK, CHAR_LITERAL, CHAR_RANGE, CLOSE_ELEMENT_OPTION, CLOSURE, COLON, COMBINED_GRAMMAR, COMMA, COMMENT, DIGIT, DOC_COMMENT, DOLLAR, DOUBLE_ANGLE_STRING_LITERAL, DOUBLE_QUOTE_STRING_LITERAL, EOA, EOB, EOF, EOR, EPSILON, ESC, FRAGMENT, GATED_SEMPRED, ID, IMPLIES, INITACTION, INT, INTERNAL_RULE_REF, LABEL, LEXER, LEXER_GRAMMAR, LITERAL_catch, LITERAL_finally, LITERAL_grammar, LITERAL_lexer, LITERAL_private, LITERAL_protected, LITERAL_public, LITERAL_returns, LITERAL_throws, LITERAL_tree, LPAREN, ML_COMMENT, NESTED_ACTION, NESTED_ARG_ACTION, NOT, NULL_TREE_LOOKAHEAD, OPEN_ELEMENT_OPTION, OPTIONAL, OPTIONS, OR, PARSER, PARSER_GRAMMAR, PLUS, PLUS_ASSIGN, POSITIVE_CLOSURE, QUESTION, RANGE, RCURLY, RET, REWRITE, ROOT, RPAREN, RULE, RULE_REF, SCOPE, SEMI, SEMPRED, SL_COMMENT, SRC, STAR, STRING_LITERAL, SYN_SEMPRED, SYNPRED, TEMPLATE, TOKEN_REF, TOKENS, TREE_BEGIN, TREE_GRAMMAR, WILDCARD, WS, WS_LOOP, WS_OPT, XDIGIT |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
grammar
protected Grammar grammar
root
protected GrammarAST root
currentRuleName
protected java.lang.String currentRuleName
currentRewriteBlock
protected GrammarAST currentRewriteBlock
currentRewriteRule
protected GrammarAST currentRewriteRule
outerAltNum
protected int outerAltNum
blockLevel
protected int blockLevel
_tokenNames
public static final java.lang.String[] _tokenNames
DefineGrammarItemsWalker
public DefineGrammarItemsWalker()
reportError
public void reportError(RecognitionException ex)
finish
protected void finish()
trimGrammar
protected void trimGrammar()
- Remove any lexer rules from a COMBINED; already passed to lexer
trackInlineAction
protected void trackInlineAction(GrammarAST actionAST)
grammar
public final void grammar(AST _t,
Grammar g)
throws RecognitionException
- Throws:
RecognitionException
grammarSpec
public final void grammarSpec(AST _t)
throws RecognitionException
- Throws:
RecognitionException
attrScope
public final void attrScope(AST _t)
throws RecognitionException
- Throws:
RecognitionException
optionsSpec
public final void optionsSpec(AST _t)
throws RecognitionException
- Throws:
RecognitionException
tokensSpec
public final void tokensSpec(AST _t)
throws RecognitionException
- Throws:
RecognitionException
actions
public final void actions(AST _t)
throws RecognitionException
- Throws:
RecognitionException
rules
public final void rules(AST _t)
throws RecognitionException
- Throws:
RecognitionException
action
public final void action(AST _t)
throws RecognitionException
- Throws:
RecognitionException
tokenSpec
public final void tokenSpec(AST _t)
throws RecognitionException
- Throws:
RecognitionException
rule
public final void rule(AST _t)
throws RecognitionException
- Throws:
RecognitionException
modifier
public final java.lang.String modifier(AST _t)
throws RecognitionException
- Throws:
RecognitionException
ruleScopeSpec
public final void ruleScopeSpec(AST _t,
Rule r)
throws RecognitionException
- Throws:
RecognitionException
ruleAction
public final void ruleAction(AST _t,
Rule r)
throws RecognitionException
- Throws:
RecognitionException
block
public final void block(AST _t)
throws RecognitionException
- Throws:
RecognitionException
exceptionGroup
public final void exceptionGroup(AST _t)
throws RecognitionException
- Throws:
RecognitionException
countAltsForRule
public final int countAltsForRule(AST _t)
throws RecognitionException
- Throws:
RecognitionException
blockAction
public final void blockAction(AST _t)
throws RecognitionException
- Throws:
RecognitionException
alternative
public final void alternative(AST _t)
throws RecognitionException
- Throws:
RecognitionException
rewrite
public final void rewrite(AST _t)
throws RecognitionException
- Throws:
RecognitionException
element
public final void element(AST _t)
throws RecognitionException
- Throws:
RecognitionException
exceptionHandler
public final void exceptionHandler(AST _t)
throws RecognitionException
- Throws:
RecognitionException
finallyClause
public final void finallyClause(AST _t)
throws RecognitionException
- Throws:
RecognitionException
atom
public final void atom(AST _t)
throws RecognitionException
- Throws:
RecognitionException
ebnf
public final void ebnf(AST _t)
throws RecognitionException
- Throws:
RecognitionException
tree
public final void tree(AST _t)
throws RecognitionException
- Throws:
RecognitionException
dotLoop
public final void dotLoop(AST _t)
throws RecognitionException
- Track the .* and .+ idioms and make them nongreedy by default.
- Throws:
RecognitionException
dotBlock
public final void dotBlock(AST _t)
throws RecognitionException
- Throws:
RecognitionException
ast_suffix
public final void ast_suffix(AST _t)
throws RecognitionException
- Throws:
RecognitionException
rewrite_alternative
public final void rewrite_alternative(AST _t)
throws RecognitionException
- Throws:
RecognitionException
rewrite_block
public final void rewrite_block(AST _t)
throws RecognitionException
- Throws:
RecognitionException
rewrite_element
public final void rewrite_element(AST _t)
throws RecognitionException
- Throws:
RecognitionException
rewrite_template
public final void rewrite_template(AST _t)
throws RecognitionException
- Throws:
RecognitionException
rewrite_atom
public final void rewrite_atom(AST _t)
throws RecognitionException
- Throws:
RecognitionException
rewrite_ebnf
public final void rewrite_ebnf(AST _t)
throws RecognitionException
- Throws:
RecognitionException
rewrite_tree
public final void rewrite_tree(AST _t)
throws RecognitionException
- Throws:
RecognitionException