public class AssignTokenTypesWalker extends antlr.TreeParser implements AssignTokenTypesWalkerTokenTypes
| Modifier and Type | Field and Description |
|---|---|
static String[] |
_tokenNames |
protected static GrammarAST |
charAlias |
protected static GrammarAST |
charAlias2 |
protected String |
currentRuleName |
protected Grammar |
grammar |
protected static GrammarAST |
stringAlias |
protected static GrammarAST |
stringAlias2 |
_retTree, astFactory, ASTNULL, inputState, returnAST, tokenNames, traceDepthACTION, ACTION_CHAR_LITERAL, ACTION_ESC, ACTION_STRING_LITERAL, ALT, AMPERSAND, ARG, ARG_ACTION, ARGLIST, ASSIGN, BACKTRACK_SEMPRED, BANG, BLOCK, CHAR_LITERAL, CHAR_RANGE, CHARSET, 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 |
|---|
AssignTokenTypesWalker() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
alias(GrammarAST t,
GrammarAST s) |
protected void |
aliasTokenIDsAndLiterals(Grammar root) |
void |
alternative(antlr.collections.AST _t) |
protected void |
assignStringTypes(Grammar root) |
protected void |
assignTokenIDTypes(Grammar root) |
void |
ast_suffix(antlr.collections.AST _t) |
void |
atom(antlr.collections.AST _t) |
void |
attrScope(antlr.collections.AST _t) |
void |
block(antlr.collections.AST _t) |
void |
charSet(antlr.collections.AST _t) |
void |
charSetElement(antlr.collections.AST _t) |
protected void |
defineStringLiteralsFromDelegates() |
protected void |
defineTokenNamesAndLiteralsInGrammar(Grammar root) |
void |
defineTokens(Grammar root) |
void |
delegateGrammars(antlr.collections.AST _t) |
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) |
void |
grammar(antlr.collections.AST _t,
Grammar g) |
void |
grammarSpec(antlr.collections.AST _t) |
protected void |
init(Grammar root) |
protected void |
initASTPatterns() |
void |
modifier(antlr.collections.AST _t) |
void |
option(antlr.collections.AST _t,
Map opts) |
Map |
optionsSpec(antlr.collections.AST _t) |
Object |
optionValue(antlr.collections.AST _t) |
void |
reportError(antlr.RecognitionException ex) |
void |
rewrite(antlr.collections.AST _t) |
void |
rule(antlr.collections.AST _t) |
void |
rules(antlr.collections.AST _t) |
void |
ruleScopeSpec(antlr.collections.AST _t) |
void |
tokenSpec(antlr.collections.AST _t) |
void |
tokensSpec(antlr.collections.AST _t) |
protected void |
trackString(GrammarAST t) |
protected void |
trackToken(GrammarAST t) |
protected void |
trackTokenRule(GrammarAST t,
GrammarAST modifier,
GrammarAST block) |
void |
tree(antlr.collections.AST _t) |
protected Grammar grammar
protected String currentRuleName
protected static GrammarAST stringAlias
protected static GrammarAST charAlias
protected static GrammarAST stringAlias2
protected static GrammarAST charAlias2
public static final String[] _tokenNames
public void reportError(antlr.RecognitionException ex)
reportError in class antlr.TreeParserprotected void initASTPatterns()
protected void trackString(GrammarAST t)
protected void trackToken(GrammarAST t)
protected void trackTokenRule(GrammarAST t, GrammarAST modifier, GrammarAST block)
protected void alias(GrammarAST t, GrammarAST s)
public void defineTokens(Grammar root)
protected void defineStringLiteralsFromDelegates()
protected void assignStringTypes(Grammar root)
protected void aliasTokenIDsAndLiterals(Grammar root)
protected void assignTokenIDTypes(Grammar root)
protected void defineTokenNamesAndLiteralsInGrammar(Grammar root)
protected void init(Grammar root)
public final void grammar(antlr.collections.AST _t,
Grammar g)
throws antlr.RecognitionException
antlr.RecognitionExceptionpublic final void grammarSpec(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionExceptionpublic final Map optionsSpec(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionExceptionpublic final void delegateGrammars(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionExceptionpublic final void tokensSpec(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionExceptionpublic final void attrScope(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionExceptionpublic final void rules(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionExceptionpublic final void option(antlr.collections.AST _t,
Map opts)
throws antlr.RecognitionException
antlr.RecognitionExceptionpublic final Object optionValue(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionExceptionpublic final void charSet(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionExceptionpublic final void charSetElement(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionExceptionpublic final void tokenSpec(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionExceptionpublic final void rule(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionExceptionpublic final void modifier(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionExceptionpublic final void ruleScopeSpec(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionExceptionpublic final void block(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionExceptionpublic final void exceptionGroup(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionExceptionpublic final void alternative(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionExceptionpublic final void rewrite(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionExceptionpublic final void element(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionExceptionpublic final void exceptionHandler(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionExceptionpublic final void finallyClause(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionExceptionpublic final void atom(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionExceptionpublic final void ebnf(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionExceptionpublic final void tree(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionExceptionpublic final void ast_suffix(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionExceptionCopyright © 2015. All Rights Reserved.