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.channelsSpec_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.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, CHANNELS, CHAR_RANGE, CLOSURE, COLON, COLONCOLON, COMBINED, COMMA, COMMENT, DOC_COMMENT, DOLLAR, DOT, ELEMENT_OPTIONS, EOF, EPSILON, ERRCHAR, ESC_SEQ, FINALLY, FOLLOW_ACTION_in_action1359, FOLLOW_ACTION_in_actionElement3186, FOLLOW_ACTION_in_actionElement3196, FOLLOW_ACTION_in_exceptionHandler1853, FOLLOW_ACTION_in_finallyClause1882, FOLLOW_ACTION_in_optionValue1073, FOLLOW_action_in_prequelConstruct959, FOLLOW_ACTION_in_ruleAction2064, FOLLOW_actionElement_in_element3160, FOLLOW_actionElement_in_lexerElement2586, FOLLOW_actionScopeName_in_action1351, FOLLOW_alternative_in_alternativeEntry4266, FOLLOW_alternative_in_altList2888, FOLLOW_alternative_in_altList2893, FOLLOW_alternative_in_labeledAlt2161, FOLLOW_altList_in_block3887, FOLLOW_ARG_ACTION_in_exceptionHandler1851, FOLLOW_ARG_ACTION_in_localsSpec2037, FOLLOW_ARG_ACTION_in_parserRule1634, FOLLOW_ARG_ACTION_in_ruleref3947, FOLLOW_ARG_ACTION_in_ruleReturns1974, FOLLOW_ASSIGN_in_delegateGrammar1140, FOLLOW_ASSIGN_in_elementOption4169, FOLLOW_ASSIGN_in_labeledElement3255, FOLLOW_ASSIGN_in_labeledLexerElement2621, FOLLOW_ASSIGN_in_option1014, FOLLOW_ASSIGN_in_v3tokenSpec1242, FOLLOW_AT_in_action1348, FOLLOW_AT_in_ruleAction2060, FOLLOW_atom_in_element3103, FOLLOW_atom_in_labeledElement3266, FOLLOW_block_in_blockEntry4297, FOLLOW_block_in_ebnf3324, FOLLOW_block_in_labeledElement3288, FOLLOW_blockSet_in_notSet3720, FOLLOW_blockSuffix_in_ebnf3348, FOLLOW_CATCH_in_exceptionHandler1849, FOLLOW_CHANNELS_in_channelsSpec1318, FOLLOW_channelsSpec_in_prequelConstruct922, FOLLOW_COLON_in_block3874, FOLLOW_COLON_in_lexerBlock2696, FOLLOW_COLON_in_lexerRule2213, FOLLOW_COLON_in_parserRule1702, FOLLOW_COLONCOLON_in_action1353, FOLLOW_COMMA_in_channelsSpec1324, FOLLOW_COMMA_in_delegateGrammars1105, FOLLOW_COMMA_in_elementOptions4103, FOLLOW_COMMA_in_lexerCommands2761, FOLLOW_COMMA_in_throwsSpec2007, FOLLOW_COMMA_in_tokensSpec1172, FOLLOW_COMMA_in_tokensSpec1178, FOLLOW_delegateGrammar_in_delegateGrammars1102, FOLLOW_delegateGrammar_in_delegateGrammars1107, FOLLOW_delegateGrammars_in_prequelConstruct868, FOLLOW_DOC_COMMENT_in_grammarSpec402, FOLLOW_DOC_COMMENT_in_lexerRule2202, FOLLOW_DOC_COMMENT_in_parserRule1581, FOLLOW_DOT_in_qid4247, FOLLOW_DOT_in_wildcard3648, FOLLOW_ebnf_in_element3155, FOLLOW_ebnfSuffix_in_blockSuffix3398, FOLLOW_ebnfSuffix_in_element3057, FOLLOW_ebnfSuffix_in_element3109, FOLLOW_ebnfSuffix_in_lexerElement2454, FOLLOW_ebnfSuffix_in_lexerElement2506, FOLLOW_ebnfSuffix_in_lexerElement2558, FOLLOW_element_in_alternative2936, FOLLOW_element_in_elementEntry4277, FOLLOW_elementOption_in_elementOptions4100, FOLLOW_elementOption_in_elementOptions4105, FOLLOW_elementOptions_in_actionElement3198, FOLLOW_elementOptions_in_actionElement3228, FOLLOW_elementOptions_in_alternative2927, FOLLOW_elementOptions_in_ruleref3950, FOLLOW_elementOptions_in_setElement3802, FOLLOW_elementOptions_in_setElement3814, FOLLOW_elementOptions_in_terminal4043, FOLLOW_elementOptions_in_terminal4066, FOLLOW_elementOptions_in_wildcard3650, FOLLOW_EOF_in_alternativeEntry4268, FOLLOW_EOF_in_blockEntry4299, FOLLOW_EOF_in_elementEntry4279, FOLLOW_EOF_in_grammarSpec550, FOLLOW_EOF_in_ruleEntry4289, FOLLOW_exceptionGroup_in_parserRule1743, FOLLOW_exceptionHandler_in_exceptionGroup1829, FOLLOW_FINALLY_in_finallyClause1880, FOLLOW_finallyClause_in_exceptionGroup1832, FOLLOW_FRAGMENT_in_lexerRule2205, FOLLOW_GRAMMAR_in_grammarType744, FOLLOW_GRAMMAR_in_grammarType771, FOLLOW_GRAMMAR_in_grammarType792, FOLLOW_grammarType_in_grammarSpec433, FOLLOW_GT_in_elementOptions4111, FOLLOW_id_in_action1357, FOLLOW_id_in_actionScopeName1388, FOLLOW_id_in_channelsSpec1321, FOLLOW_id_in_channelsSpec1327, FOLLOW_id_in_delegateGrammar1138, FOLLOW_id_in_delegateGrammar1143, FOLLOW_id_in_delegateGrammar1153, FOLLOW_id_in_elementOption4167, FOLLOW_id_in_grammarSpec435, FOLLOW_id_in_labeledAlt2170, FOLLOW_id_in_labeledElement3250, FOLLOW_id_in_labeledLexerElement2616, FOLLOW_id_in_lexerCommandExpr2813, FOLLOW_id_in_lexerCommandName2842, FOLLOW_id_in_modeSpec1429, FOLLOW_id_in_option1012, FOLLOW_id_in_qid4244, FOLLOW_id_in_qid4249, FOLLOW_id_in_ruleAction2062, FOLLOW_id_in_tokensSpec1169, FOLLOW_id_in_tokensSpec1174, FOLLOW_id_in_v3tokenSpec1236, FOLLOW_IMPORT_in_delegateGrammars1100, FOLLOW_INT_in_lexerCommandExpr2818, FOLLOW_INT_in_optionValue1084, FOLLOW_labeledAlt_in_ruleAltList2138, FOLLOW_labeledAlt_in_ruleAltList2143, FOLLOW_labeledElement_in_element3051, FOLLOW_labeledLexerElement_in_lexerElement2448, FOLLOW_LEXER_CHAR_SET_in_lexerAtom3522, FOLLOW_LEXER_CHAR_SET_in_setElement3830, FOLLOW_LEXER_in_actionScopeName1393, FOLLOW_LEXER_in_grammarType740, FOLLOW_lexerAlt_in_lexerAltList2320, FOLLOW_lexerAlt_in_lexerAltList2325, FOLLOW_lexerAltList_in_lexerBlock2709, FOLLOW_lexerAltList_in_lexerRuleBlock2284, FOLLOW_lexerAtom_in_labeledLexerElement2632, FOLLOW_lexerAtom_in_lexerElement2500, FOLLOW_lexerBlock_in_labeledLexerElement2649, FOLLOW_lexerBlock_in_lexerElement2552, FOLLOW_lexerCommand_in_lexerCommands2758, FOLLOW_lexerCommand_in_lexerCommands2763, FOLLOW_lexerCommandExpr_in_lexerCommand2785, FOLLOW_lexerCommandName_in_lexerCommand2781, FOLLOW_lexerCommandName_in_lexerCommand2802, FOLLOW_lexerCommands_in_lexerAlt2349, FOLLOW_lexerElement_in_lexerElements2392, FOLLOW_lexerElements_in_lexerAlt2343, FOLLOW_lexerRule_in_modeSpec1436, FOLLOW_lexerRule_in_rule1541, FOLLOW_lexerRuleBlock_in_lexerRule2215, FOLLOW_LOCALS_in_localsSpec2034, FOLLOW_localsSpec_in_parserRule1655, FOLLOW_LPAREN_in_block3854, FOLLOW_LPAREN_in_blockSet3755, FOLLOW_LPAREN_in_lexerBlock2682, FOLLOW_LPAREN_in_lexerCommand2783, FOLLOW_LT_in_elementOptions4097, FOLLOW_MODE_in_lexerCommandName2860, FOLLOW_MODE_in_modeSpec1427, FOLLOW_modeSpec_in_grammarSpec512, FOLLOW_NOT_in_notSet3688, FOLLOW_NOT_in_notSet3718, FOLLOW_notSet_in_atom3592, FOLLOW_notSet_in_lexerAtom3506, FOLLOW_option_in_optionsSpec977, FOLLOW_OPTIONS_in_optionsSpec974, FOLLOW_optionsSpec_in_block3866, FOLLOW_optionsSpec_in_lexerBlock2694, FOLLOW_optionsSpec_in_prequelConstruct845, FOLLOW_optionsSpec_in_rulePrequel1943, FOLLOW_optionValue_in_elementOption4172, FOLLOW_optionValue_in_option1017, FOLLOW_OR_in_altList2891, FOLLOW_OR_in_blockSet3760, FOLLOW_OR_in_lexerAltList2323, FOLLOW_OR_in_ruleAltList2141, FOLLOW_PARSER_in_actionScopeName1408, FOLLOW_PARSER_in_grammarType767, FOLLOW_parserRule_in_rule1536, FOLLOW_PLUS_ASSIGN_in_labeledElement3259, FOLLOW_PLUS_ASSIGN_in_labeledLexerElement2625, FOLLOW_PLUS_in_ebnfSuffix3455, FOLLOW_POUND_in_labeledAlt2167, FOLLOW_prequelConstruct_in_grammarSpec479, FOLLOW_qid_in_elementOption4159, FOLLOW_qid_in_optionValue1060, FOLLOW_qid_in_throwsSpec2004, FOLLOW_qid_in_throwsSpec2009, FOLLOW_QUESTION_in_ebnfSuffix3413, FOLLOW_QUESTION_in_ebnfSuffix3417, FOLLOW_QUESTION_in_ebnfSuffix3437, FOLLOW_QUESTION_in_ebnfSuffix3459, FOLLOW_range_in_atom3567, FOLLOW_range_in_lexerAtom3480, FOLLOW_RANGE_in_range4011, FOLLOW_range_in_setElement3820, FOLLOW_RARROW_in_lexerCommands2756, FOLLOW_RBRACE_in_channelsSpec1331, FOLLOW_RBRACE_in_optionsSpec983, FOLLOW_RBRACE_in_tokensSpec1181, FOLLOW_RBRACE_in_tokensSpec1200, FOLLOW_RBRACE_in_tokensSpec1216, FOLLOW_RETURNS_in_ruleReturns1971, FOLLOW_RPAREN_in_block3891, FOLLOW_RPAREN_in_blockSet3766, FOLLOW_RPAREN_in_lexerBlock2719, FOLLOW_RPAREN_in_lexerCommand2787, FOLLOW_rule_in_ruleEntry4287, FOLLOW_rule_in_rules1472, FOLLOW_RULE_REF_in_id4203, FOLLOW_RULE_REF_in_lexerAtom3495, FOLLOW_RULE_REF_in_parserRule1604, FOLLOW_RULE_REF_in_ruleref3945, FOLLOW_ruleAction_in_block3871, FOLLOW_ruleAction_in_rulePrequel1951, FOLLOW_ruleAltList_in_ruleBlock2102, FOLLOW_ruleBlock_in_parserRule1725, FOLLOW_rulePrequel_in_rulePrequels1917, FOLLOW_rulePrequels_in_parserRule1693, FOLLOW_ruleref_in_atom3584, FOLLOW_ruleReturns_in_parserRule1641, FOLLOW_rules_in_grammarSpec506, FOLLOW_SEMI_in_delegateGrammars1111, FOLLOW_SEMI_in_grammarSpec437, FOLLOW_SEMI_in_lexerRule2217, FOLLOW_SEMI_in_modeSpec1431, FOLLOW_SEMI_in_optionsSpec979, FOLLOW_SEMI_in_parserRule1734, FOLLOW_SEMI_in_v3tokenSpec1307, FOLLOW_SEMPRED_in_actionElement3216, FOLLOW_SEMPRED_in_actionElement3226, FOLLOW_setElement_in_blockSet3757, FOLLOW_setElement_in_blockSet3762, FOLLOW_setElement_in_notSet3690, FOLLOW_STAR_in_ebnfSuffix3433, FOLLOW_STRING_LITERAL_in_optionValue1068, FOLLOW_STRING_LITERAL_in_range4006, FOLLOW_STRING_LITERAL_in_range4017, FOLLOW_STRING_LITERAL_in_setElement3808, FOLLOW_STRING_LITERAL_in_terminal4064, FOLLOW_STRING_LITERAL_in_v3tokenSpec1246, FOLLOW_sync_in_grammarSpec475, FOLLOW_sync_in_grammarSpec481, FOLLOW_sync_in_modeSpec1433, FOLLOW_sync_in_modeSpec1438, FOLLOW_sync_in_rulePrequels1914, FOLLOW_sync_in_rulePrequels1919, FOLLOW_sync_in_rules1469, FOLLOW_sync_in_rules1474, FOLLOW_terminal_in_atom3574, FOLLOW_terminal_in_lexerAtom3485, FOLLOW_THROWS_in_throwsSpec2002, FOLLOW_throwsSpec_in_parserRule1648, FOLLOW_TOKEN_REF_in_id4216, FOLLOW_TOKEN_REF_in_lexerRule2211, FOLLOW_TOKEN_REF_in_setElement3796, FOLLOW_TOKEN_REF_in_terminal4041, FOLLOW_TOKENS_SPEC_in_tokensSpec1167, FOLLOW_TOKENS_SPEC_in_tokensSpec1198, FOLLOW_TOKENS_SPEC_in_tokensSpec1210, FOLLOW_tokensSpec_in_prequelConstruct912, FOLLOW_TREE_GRAMMAR_in_grammarType819, FOLLOW_v3tokenSpec_in_tokensSpec1213, FOLLOW_wildcard_in_atom3600, FOLLOW_wildcard_in_lexerAtom3514, 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, UnicodeBOM, 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, channelsSpec, delegateGrammar, delegateGrammars, ebnf, ebnfSuffix, element, elementEntry, elementOption, elementOptions, 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 © 1992–2014 ANTLR. All rights reserved.