public class ToolANTLRParser extends ANTLRParser
ANTLRParser.action_return, ANTLRParser.actionElement_return, ANTLRParser.actionScopeName_return, ANTLRParser.alternative_return, ANTLRParser.alternativeEntry_return, ANTLRParser.altList_return, ANTLRParser.atom_return, ANTLRParser.block_return, ANTLRParser.blockEntry_return, ANTLRParser.blockSet_return, ANTLRParser.blockSuffix_return, ANTLRParser.delegateGrammar_return, ANTLRParser.delegateGrammars_return, ANTLRParser.ebnf_return, ANTLRParser.ebnfSuffix_return, ANTLRParser.element_return, ANTLRParser.elementEntry_return, ANTLRParser.elementOption_return, ANTLRParser.elementOptions_return, ANTLRParser.elements_return, ANTLRParser.exceptionGroup_return, ANTLRParser.exceptionHandler_return, ANTLRParser.finallyClause_return, ANTLRParser.grammarSpec_return, ANTLRParser.grammarType_return, ANTLRParser.id_return, ANTLRParser.labeledAlt_return, ANTLRParser.labeledElement_return, ANTLRParser.labeledLexerElement_return, ANTLRParser.lexerAlt_return, ANTLRParser.lexerAltList_return, ANTLRParser.lexerAtom_return, ANTLRParser.lexerBlock_return, ANTLRParser.lexerCommand_return, ANTLRParser.lexerCommandExpr_return, ANTLRParser.lexerCommandName_return, ANTLRParser.lexerCommands_return, ANTLRParser.lexerElement_return, ANTLRParser.lexerElements_return, ANTLRParser.lexerRule_return, ANTLRParser.lexerRuleBlock_return, ANTLRParser.localsSpec_return, ANTLRParser.modeSpec_return, ANTLRParser.notSet_return, ANTLRParser.option_return, ANTLRParser.optionsSpec_return, ANTLRParser.optionValue_return, ANTLRParser.parserRule_return, ANTLRParser.prequelConstruct_return, ANTLRParser.qid_return, ANTLRParser.range_return, ANTLRParser.rule_return, ANTLRParser.ruleAction_return, ANTLRParser.ruleAltList_return, ANTLRParser.ruleBlock_return, ANTLRParser.ruleEntry_return, ANTLRParser.rulePrequel_return, ANTLRParser.rulePrequels_return, ANTLRParser.ruleref_return, ANTLRParser.ruleReturns_return, ANTLRParser.rules_return, ANTLRParser.setElement_return, ANTLRParser.sync_return, ANTLRParser.terminal_return, ANTLRParser.throwsSpec_return, ANTLRParser.tokensSpec_return, ANTLRParser.v3tokenSpec_return, ANTLRParser.wildcard_return| Modifier and Type | Field and Description |
|---|---|
Tool |
tool |
ACTION, ACTION_CHAR_LITERAL, ACTION_ESC, ACTION_STRING_LITERAL, adaptor, ALT, ALTLIST, ARG, ARG_ACTION, ARG_OR_CHARSET, ARGLIST, ASSIGN, AT, BLOCK, CATCH, CHAR_RANGE, CLOSURE, COLON, COLONCOLON, COMBINED, COMMA, COMMENT, DOC_COMMENT, DOLLAR, DOT, ELEMENT_OPTIONS, EOF, EPSILON, ERRCHAR, ESC_SEQ, FINALLY, FOLLOW_ACTION_in_action1321, FOLLOW_ACTION_in_actionElement3089, FOLLOW_ACTION_in_actionElement3099, FOLLOW_ACTION_in_exceptionHandler1815, FOLLOW_ACTION_in_finallyClause1844, FOLLOW_ACTION_in_optionValue1063, FOLLOW_action_in_prequelConstruct949, FOLLOW_ACTION_in_ruleAction2026, FOLLOW_actionElement_in_element3063, FOLLOW_actionElement_in_lexerElement2529, FOLLOW_actionScopeName_in_action1313, FOLLOW_alternative_in_alternativeEntry4133, FOLLOW_alternative_in_altList2831, FOLLOW_alternative_in_altList2836, FOLLOW_alternative_in_labeledAlt2123, FOLLOW_altList_in_block3782, FOLLOW_ARG_ACTION_in_exceptionHandler1813, FOLLOW_ARG_ACTION_in_localsSpec1999, FOLLOW_ARG_ACTION_in_parserRule1596, FOLLOW_ARG_ACTION_in_ruleref3837, FOLLOW_ARG_ACTION_in_ruleReturns1936, FOLLOW_ASSIGN_in_delegateGrammar1130, FOLLOW_ASSIGN_in_elementOption4036, FOLLOW_ASSIGN_in_labeledElement3158, FOLLOW_ASSIGN_in_labeledLexerElement2564, FOLLOW_ASSIGN_in_option1004, FOLLOW_ASSIGN_in_v3tokenSpec1229, FOLLOW_AT_in_action1310, FOLLOW_AT_in_ruleAction2022, FOLLOW_atom_in_element3006, FOLLOW_atom_in_labeledElement3169, FOLLOW_block_in_blockEntry4164, FOLLOW_block_in_ebnf3227, FOLLOW_block_in_labeledElement3191, FOLLOW_blockSet_in_notSet3623, FOLLOW_blockSuffix_in_ebnf3251, FOLLOW_CATCH_in_exceptionHandler1811, FOLLOW_COLON_in_block3769, FOLLOW_COLON_in_lexerBlock2639, FOLLOW_COLON_in_lexerRule2175, FOLLOW_COLON_in_parserRule1664, FOLLOW_COLONCOLON_in_action1315, FOLLOW_COMMA_in_delegateGrammars1095, FOLLOW_COMMA_in_elementOptions3984, FOLLOW_COMMA_in_lexerCommands2704, FOLLOW_COMMA_in_throwsSpec1969, FOLLOW_COMMA_in_tokensSpec1162, FOLLOW_delegateGrammar_in_delegateGrammars1092, FOLLOW_delegateGrammar_in_delegateGrammars1097, FOLLOW_delegateGrammars_in_prequelConstruct868, FOLLOW_DOC_COMMENT_in_grammarSpec402, FOLLOW_DOC_COMMENT_in_lexerRule2164, FOLLOW_DOC_COMMENT_in_parserRule1543, FOLLOW_DOT_in_qid4114, FOLLOW_DOT_in_wildcard3551, FOLLOW_ebnf_in_element3058, FOLLOW_ebnfSuffix_in_blockSuffix3301, FOLLOW_ebnfSuffix_in_element2960, FOLLOW_ebnfSuffix_in_element3012, FOLLOW_ebnfSuffix_in_lexerElement2397, FOLLOW_ebnfSuffix_in_lexerElement2449, FOLLOW_ebnfSuffix_in_lexerElement2501, FOLLOW_element_in_elementEntry4144, FOLLOW_element_in_elements2916, FOLLOW_elementOption_in_elementOptions3981, FOLLOW_elementOption_in_elementOptions3986, FOLLOW_elementOptions_in_actionElement3101, FOLLOW_elementOptions_in_actionElement3131, FOLLOW_elementOptions_in_terminal3927, FOLLOW_elementOptions_in_terminal3950, FOLLOW_elementOptions_in_wildcard3553, FOLLOW_elements_in_alternative2872, FOLLOW_EOF_in_alternativeEntry4135, FOLLOW_EOF_in_blockEntry4166, FOLLOW_EOF_in_elementEntry4146, FOLLOW_EOF_in_grammarSpec550, FOLLOW_EOF_in_ruleEntry4156, FOLLOW_exceptionGroup_in_parserRule1705, FOLLOW_exceptionHandler_in_exceptionGroup1791, FOLLOW_FINALLY_in_finallyClause1842, FOLLOW_finallyClause_in_exceptionGroup1794, FOLLOW_FRAGMENT_in_lexerRule2167, FOLLOW_GRAMMAR_in_grammarType744, FOLLOW_GRAMMAR_in_grammarType771, FOLLOW_GRAMMAR_in_grammarType792, FOLLOW_grammarType_in_grammarSpec433, FOLLOW_GT_in_elementOptions3990, FOLLOW_id_in_action1319, FOLLOW_id_in_actionScopeName1350, FOLLOW_id_in_delegateGrammar1128, FOLLOW_id_in_delegateGrammar1133, FOLLOW_id_in_delegateGrammar1143, FOLLOW_id_in_elementOption4034, FOLLOW_id_in_grammarSpec435, FOLLOW_id_in_labeledAlt2132, FOLLOW_id_in_labeledElement3153, FOLLOW_id_in_labeledLexerElement2559, FOLLOW_id_in_lexerCommandExpr2756, FOLLOW_id_in_lexerCommandName2785, FOLLOW_id_in_modeSpec1391, FOLLOW_id_in_option1002, FOLLOW_id_in_qid4111, FOLLOW_id_in_qid4116, FOLLOW_id_in_ruleAction2024, FOLLOW_id_in_tokensSpec1159, FOLLOW_id_in_tokensSpec1164, FOLLOW_id_in_v3tokenSpec1223, FOLLOW_IMPORT_in_delegateGrammars1090, FOLLOW_INT_in_lexerCommandExpr2761, FOLLOW_INT_in_optionValue1074, FOLLOW_labeledAlt_in_ruleAltList2100, FOLLOW_labeledAlt_in_ruleAltList2105, FOLLOW_labeledElement_in_element2954, FOLLOW_labeledLexerElement_in_lexerElement2391, FOLLOW_LEXER_CHAR_SET_in_lexerAtom3425, FOLLOW_LEXER_CHAR_SET_in_setElement3725, FOLLOW_LEXER_in_actionScopeName1355, FOLLOW_LEXER_in_grammarType740, FOLLOW_lexerAlt_in_lexerAltList2282, FOLLOW_lexerAlt_in_lexerAltList2287, FOLLOW_lexerAltList_in_lexerBlock2652, FOLLOW_lexerAltList_in_lexerRuleBlock2246, FOLLOW_lexerAtom_in_labeledLexerElement2575, FOLLOW_lexerAtom_in_lexerElement2443, FOLLOW_lexerBlock_in_labeledLexerElement2592, FOLLOW_lexerBlock_in_lexerElement2495, FOLLOW_lexerCommand_in_lexerCommands2701, FOLLOW_lexerCommand_in_lexerCommands2706, FOLLOW_lexerCommandExpr_in_lexerCommand2728, FOLLOW_lexerCommandName_in_lexerCommand2724, FOLLOW_lexerCommandName_in_lexerCommand2745, FOLLOW_lexerCommands_in_lexerAlt2311, FOLLOW_lexerElement_in_lexerElements2354, FOLLOW_lexerElements_in_lexerAlt2305, FOLLOW_lexerRule_in_modeSpec1398, FOLLOW_lexerRule_in_rule1503, FOLLOW_lexerRuleBlock_in_lexerRule2177, FOLLOW_LOCALS_in_localsSpec1996, FOLLOW_localsSpec_in_parserRule1617, FOLLOW_LPAREN_in_block3749, FOLLOW_LPAREN_in_blockSet3658, FOLLOW_LPAREN_in_lexerBlock2625, FOLLOW_LPAREN_in_lexerCommand2726, FOLLOW_LT_in_elementOptions3979, FOLLOW_MODE_in_lexerCommandName2803, FOLLOW_MODE_in_modeSpec1389, FOLLOW_modeSpec_in_grammarSpec512, FOLLOW_NOT_in_notSet3591, FOLLOW_NOT_in_notSet3621, FOLLOW_notSet_in_atom3495, FOLLOW_notSet_in_lexerAtom3409, FOLLOW_option_in_optionsSpec967, FOLLOW_OPTIONS_in_optionsSpec964, FOLLOW_optionsSpec_in_block3761, FOLLOW_optionsSpec_in_lexerBlock2637, FOLLOW_optionsSpec_in_prequelConstruct845, FOLLOW_optionsSpec_in_rulePrequel1905, FOLLOW_optionValue_in_elementOption4039, FOLLOW_optionValue_in_option1007, FOLLOW_OR_in_altList2834, FOLLOW_OR_in_blockSet3663, FOLLOW_OR_in_lexerAltList2285, FOLLOW_OR_in_ruleAltList2103, FOLLOW_PARSER_in_actionScopeName1370, FOLLOW_PARSER_in_grammarType767, FOLLOW_parserRule_in_rule1498, FOLLOW_PLUS_ASSIGN_in_labeledElement3162, FOLLOW_PLUS_ASSIGN_in_labeledLexerElement2568, FOLLOW_PLUS_in_ebnfSuffix3358, FOLLOW_POUND_in_labeledAlt2129, FOLLOW_prequelConstruct_in_grammarSpec479, FOLLOW_qid_in_elementOption4026, FOLLOW_qid_in_optionValue1050, FOLLOW_qid_in_throwsSpec1966, FOLLOW_qid_in_throwsSpec1971, FOLLOW_QUESTION_in_ebnfSuffix3316, FOLLOW_QUESTION_in_ebnfSuffix3320, FOLLOW_QUESTION_in_ebnfSuffix3340, FOLLOW_QUESTION_in_ebnfSuffix3362, FOLLOW_range_in_atom3470, FOLLOW_range_in_lexerAtom3383, FOLLOW_RANGE_in_range3895, FOLLOW_range_in_setElement3715, FOLLOW_RARROW_in_lexerCommands2699, FOLLOW_RBRACE_in_optionsSpec973, FOLLOW_RBRACE_in_tokensSpec1168, FOLLOW_RBRACE_in_tokensSpec1187, FOLLOW_RBRACE_in_tokensSpec1203, FOLLOW_RETURNS_in_ruleReturns1933, FOLLOW_RPAREN_in_block3786, FOLLOW_RPAREN_in_blockSet3669, FOLLOW_RPAREN_in_lexerBlock2662, FOLLOW_RPAREN_in_lexerCommand2730, FOLLOW_rule_in_ruleEntry4154, FOLLOW_rule_in_rules1434, FOLLOW_RULE_REF_in_id4070, FOLLOW_RULE_REF_in_lexerAtom3398, FOLLOW_RULE_REF_in_parserRule1566, FOLLOW_RULE_REF_in_ruleref3835, FOLLOW_ruleAction_in_block3766, FOLLOW_ruleAction_in_rulePrequel1913, FOLLOW_ruleAltList_in_ruleBlock2064, FOLLOW_ruleBlock_in_parserRule1687, FOLLOW_rulePrequel_in_rulePrequels1879, FOLLOW_rulePrequels_in_parserRule1655, FOLLOW_ruleref_in_atom3487, FOLLOW_ruleReturns_in_parserRule1603, FOLLOW_rules_in_grammarSpec506, FOLLOW_SEMI_in_delegateGrammars1101, FOLLOW_SEMI_in_grammarSpec437, FOLLOW_SEMI_in_lexerRule2179, FOLLOW_SEMI_in_modeSpec1393, FOLLOW_SEMI_in_optionsSpec969, FOLLOW_SEMI_in_parserRule1696, FOLLOW_SEMI_in_v3tokenSpec1294, FOLLOW_SEMPRED_in_actionElement3119, FOLLOW_SEMPRED_in_actionElement3129, FOLLOW_setElement_in_blockSet3660, FOLLOW_setElement_in_blockSet3665, FOLLOW_setElement_in_notSet3593, FOLLOW_STAR_in_ebnfSuffix3336, FOLLOW_STRING_LITERAL_in_optionValue1058, FOLLOW_STRING_LITERAL_in_range3890, FOLLOW_STRING_LITERAL_in_range3901, FOLLOW_STRING_LITERAL_in_setElement3707, FOLLOW_STRING_LITERAL_in_terminal3948, FOLLOW_STRING_LITERAL_in_v3tokenSpec1233, FOLLOW_sync_in_grammarSpec475, FOLLOW_sync_in_grammarSpec481, FOLLOW_sync_in_modeSpec1395, FOLLOW_sync_in_modeSpec1400, FOLLOW_sync_in_rulePrequels1876, FOLLOW_sync_in_rulePrequels1881, FOLLOW_sync_in_rules1431, FOLLOW_sync_in_rules1436, FOLLOW_terminal_in_atom3477, FOLLOW_terminal_in_lexerAtom3388, FOLLOW_THROWS_in_throwsSpec1964, FOLLOW_throwsSpec_in_parserRule1610, FOLLOW_TOKEN_REF_in_id4083, FOLLOW_TOKEN_REF_in_lexerRule2173, FOLLOW_TOKEN_REF_in_setElement3699, FOLLOW_TOKEN_REF_in_terminal3925, FOLLOW_TOKENS_SPEC_in_tokensSpec1157, FOLLOW_TOKENS_SPEC_in_tokensSpec1185, FOLLOW_TOKENS_SPEC_in_tokensSpec1197, FOLLOW_tokensSpec_in_prequelConstruct912, FOLLOW_TREE_GRAMMAR_in_grammarType819, FOLLOW_v3tokenSpec_in_tokensSpec1200, FOLLOW_wildcard_in_atom3503, FOLLOW_wildcard_in_lexerAtom3417, FRAGMENT, GRAMMAR, GT, HEX_DIGIT, ID, IMPORT, INITACTION, INT, LABEL, LEXER, LEXER_ACTION_CALL, LEXER_ALT_ACTION, LEXER_CHAR_SET, LIST, LOCALS, LPAREN, LT, MODE, NameChar, NameStartChar, NESTED_ACTION, NLCHARS, NOT, OPTIONAL, OPTIONS, OR, PARSER, PLUS, PLUS_ASSIGN, POSITIVE_CLOSURE, POUND, PREC_RULE, PRIVATE, PROTECTED, PUBLIC, QUESTION, RANGE, RARROW, RBRACE, RESULT, RET, RETURNS, RPAREN, RULE, RULE_REF, RULEACTIONS, RULEMODIFIERS, RULES, SEMI, SEMPRED, SET, SRC, STAR, STRING_LITERAL, SYNPRED, TEMPLATE, THROWS, TOKEN_REF, tokenNames, TOKENS_SPEC, TREE_GRAMMAR, UNICODE_ESC, WILDCARD, WS, WSCHARS, WSNLCHARS| Constructor and Description |
|---|
ToolANTLRParser(org.antlr.runtime.TokenStream input,
Tool tool) |
| Modifier and Type | Method and Description |
|---|---|
void |
displayRecognitionError(String[] tokenNames,
org.antlr.runtime.RecognitionException e) |
String |
getParserErrorMessage(org.antlr.runtime.Parser parser,
org.antlr.runtime.RecognitionException e) |
void |
grammarError(ErrorType etype,
org.antlr.runtime.Token token,
Object... args) |
action, actionElement, actionScopeName, alternative, alternativeEntry, altList, atom, block, blockEntry, blockSet, blockSuffix, delegateGrammar, delegateGrammars, ebnf, ebnfSuffix, element, elementEntry, elementOption, elementOptions, elements, exceptionGroup, exceptionHandler, finallyClause, getDelegates, getGrammarFileName, getTokenNames, getTreeAdaptor, grammarSpec, grammarType, id, labeledAlt, labeledElement, labeledLexerElement, lexerAlt, lexerAltList, lexerAtom, lexerBlock, lexerCommand, lexerCommandExpr, lexerCommandName, lexerCommands, lexerElement, lexerElements, lexerRule, lexerRuleBlock, localsSpec, modeSpec, notSet, option, optionsSpec, optionValue, parserRule, prequelConstruct, qid, range, rule, ruleAction, ruleAltList, ruleBlock, ruleEntry, rulePrequel, rulePrequels, ruleref, ruleReturns, rules, setElement, setTreeAdaptor, sync, terminal, throwsSpec, tokensSpec, v3tokenSpec, wildcardgetCurrentInputSymbol, getMissingSymbol, getSourceName, getTokenStream, reset, setTokenStream, traceIn, traceOutalreadyParsedRule, beginResync, combineFollows, computeContextSensitiveRuleFOLLOW, computeErrorRecoverySet, consumeUntil, consumeUntil, emitErrorMessage, endResync, failed, getBacktrackingLevel, getErrorHeader, getErrorMessage, getNumberOfSyntaxErrors, getRuleInvocationStack, getRuleInvocationStack, getRuleMemoization, getRuleMemoizationCacheSize, getTokenErrorDisplay, match, matchAny, memoize, mismatchIsMissingToken, mismatchIsUnwantedToken, pushFollow, recover, recoverFromMismatchedSet, recoverFromMismatchedToken, reportError, setBacktrackingLevel, toStrings, traceIn, traceOutpublic Tool tool
public ToolANTLRParser(org.antlr.runtime.TokenStream input,
Tool tool)
public void displayRecognitionError(String[] tokenNames, org.antlr.runtime.RecognitionException e)
displayRecognitionError in class org.antlr.runtime.BaseRecognizerpublic String getParserErrorMessage(org.antlr.runtime.Parser parser, org.antlr.runtime.RecognitionException e)
public void grammarError(ErrorType etype, org.antlr.runtime.Token token, Object... args)
grammarError in class ANTLRParserCopyright © 2012. All Rights Reserved.