public class DefineGrammarItemsWalker extends antlr.TreeParser implements DefineGrammarItemsWalkerTokenTypes
Modifier and Type | Field and Description |
---|---|
static String[] |
_tokenNames |
protected int |
blockLevel |
protected GrammarAST |
currentRewriteBlock |
protected GrammarAST |
currentRewriteRule |
protected String |
currentRuleName |
protected Grammar |
grammar |
protected int |
outerAltNum |
protected GrammarAST |
root |
_retTree, astFactory, ASTNULL, inputState, returnAST, tokenNames, traceDepth
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, DOT, DOUBLE_ANGLE_STRING_LITERAL, DOUBLE_QUOTE_STRING_LITERAL, EOA, EOB, EOF, EOR, EPSILON, ESC, ETC, FORCED_ACTION, FRAGMENT, GATED_SEMPRED, ID, IMPLIES, IMPORT, 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, STRAY_BRACKET, STRING_LITERAL, SYN_SEMPRED, SYNPRED, TEMPLATE, TOKEN_REF, TOKENS, TREE_BEGIN, TREE_GRAMMAR, WILDCARD, WS, WS_LOOP, WS_OPT, XDIGIT
Constructor and Description |
---|
DefineGrammarItemsWalker() |
Modifier and Type | Method and Description |
---|---|
void |
action(antlr.collections.AST _t) |
void |
actions(antlr.collections.AST _t) |
void |
alternative(antlr.collections.AST _t) |
void |
ast_suffix(antlr.collections.AST _t) |
void |
atom(antlr.collections.AST _t,
GrammarAST scope) |
void |
attrScope(antlr.collections.AST _t) |
void |
block(antlr.collections.AST _t) |
void |
blockAction(antlr.collections.AST _t) |
int |
countAltsForRule(antlr.collections.AST _t) |
void |
delegateGrammars(antlr.collections.AST _t) |
void |
dotBlock(antlr.collections.AST _t) |
void |
dotLoop(antlr.collections.AST _t)
Track the .* and .+ idioms and make them nongreedy by default.
|
void |
ebnf(antlr.collections.AST _t) |
void |
element(antlr.collections.AST _t) |
void |
exceptionGroup(antlr.collections.AST _t) |
void |
exceptionHandler(antlr.collections.AST _t) |
void |
finallyClause(antlr.collections.AST _t) |
protected void |
finish() |
void |
grammar(antlr.collections.AST _t,
Grammar g) |
void |
grammarSpec(antlr.collections.AST _t) |
String |
modifier(antlr.collections.AST _t) |
void |
optionsSpec(antlr.collections.AST _t) |
void |
reportError(antlr.RecognitionException ex) |
void |
rewrite_alternative(antlr.collections.AST _t) |
void |
rewrite_atom(antlr.collections.AST _t) |
void |
rewrite_block(antlr.collections.AST _t) |
void |
rewrite_ebnf(antlr.collections.AST _t) |
void |
rewrite_element(antlr.collections.AST _t) |
void |
rewrite_template(antlr.collections.AST _t) |
void |
rewrite_tree(antlr.collections.AST _t) |
void |
rewrite(antlr.collections.AST _t) |
void |
rule(antlr.collections.AST _t) |
void |
ruleAction(antlr.collections.AST _t,
Rule r) |
void |
rules(antlr.collections.AST _t) |
void |
ruleScopeSpec(antlr.collections.AST _t,
Rule r) |
void |
tokenSpec(antlr.collections.AST _t) |
void |
tokensSpec(antlr.collections.AST _t) |
protected void |
trackInlineAction(GrammarAST actionAST) |
void |
tree(antlr.collections.AST _t) |
protected void |
trimGrammar()
Remove any lexer rules from a COMBINED; already passed to lexer
|
protected Grammar grammar
protected GrammarAST root
protected String currentRuleName
protected GrammarAST currentRewriteBlock
protected GrammarAST currentRewriteRule
protected int outerAltNum
protected int blockLevel
public static final String[] _tokenNames
public void reportError(antlr.RecognitionException ex)
reportError
in class antlr.TreeParser
protected void finish()
protected void trimGrammar()
protected void trackInlineAction(GrammarAST actionAST)
public final void grammar(antlr.collections.AST _t, Grammar g) throws antlr.RecognitionException
antlr.RecognitionException
public final void grammarSpec(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void attrScope(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void optionsSpec(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void delegateGrammars(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void tokensSpec(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void actions(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void rules(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void action(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void tokenSpec(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void rule(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final String modifier(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void ruleScopeSpec(antlr.collections.AST _t, Rule r) throws antlr.RecognitionException
antlr.RecognitionException
public final void ruleAction(antlr.collections.AST _t, Rule r) throws antlr.RecognitionException
antlr.RecognitionException
public final void block(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void exceptionGroup(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final int countAltsForRule(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void blockAction(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void alternative(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void rewrite(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void element(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void exceptionHandler(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void finallyClause(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void atom(antlr.collections.AST _t, GrammarAST scope) throws antlr.RecognitionException
antlr.RecognitionException
public final void ebnf(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void tree(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void dotLoop(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void dotBlock(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void ast_suffix(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void rewrite_alternative(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void rewrite_block(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void rewrite_element(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void rewrite_template(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void rewrite_atom(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void rewrite_ebnf(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void rewrite_tree(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
Copyright © 2020. All rights reserved.