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_action1308, FOLLOW_ACTION_in_actionElement3112, FOLLOW_ACTION_in_actionElement3122, FOLLOW_ACTION_in_exceptionHandler1785, FOLLOW_ACTION_in_finallyClause1814, FOLLOW_ACTION_in_optionValue1016, FOLLOW_action_in_prequelConstruct902, FOLLOW_ACTION_in_ruleAction1996, FOLLOW_actionElement_in_element3086, FOLLOW_actionElement_in_lexerElement2512, FOLLOW_actionScopeName_in_action1300, FOLLOW_alternative_in_alternativeEntry4192, FOLLOW_alternative_in_altList2814, FOLLOW_alternative_in_altList2819, FOLLOW_alternative_in_labeledAlt2093, FOLLOW_altList_in_block3813, FOLLOW_ARG_ACTION_in_exceptionHandler1783, FOLLOW_ARG_ACTION_in_localsSpec1969, FOLLOW_ARG_ACTION_in_parserRule1569, FOLLOW_ARG_ACTION_in_ruleref3873, FOLLOW_ARG_ACTION_in_ruleReturns1906, FOLLOW_ASSIGN_in_delegateGrammar1083, FOLLOW_ASSIGN_in_elementOption4095, FOLLOW_ASSIGN_in_labeledElement3181, FOLLOW_ASSIGN_in_labeledLexerElement2547, FOLLOW_ASSIGN_in_option957, FOLLOW_ASSIGN_in_v3tokenSpec1185, FOLLOW_AT_in_action1297, FOLLOW_AT_in_ruleAction1992, FOLLOW_atom_in_element3029, FOLLOW_atom_in_labeledElement3192, FOLLOW_block_in_blockEntry4223, FOLLOW_block_in_ebnf3250, FOLLOW_block_in_labeledElement3214, FOLLOW_blockSet_in_notSet3646, FOLLOW_blockSuffix_in_ebnf3274, FOLLOW_CATCH_in_exceptionHandler1781, FOLLOW_CHANNELS_in_channelsSpec1261, FOLLOW_channelsSpec_in_prequelConstruct865, FOLLOW_COLON_in_block3800, FOLLOW_COLON_in_lexerBlock2622, FOLLOW_COLON_in_lexerRule2142, FOLLOW_COLON_in_parserRule1637, FOLLOW_COLONCOLON_in_action1302, FOLLOW_COMMA_in_channelsSpec1268, FOLLOW_COMMA_in_channelsSpec1275, FOLLOW_COMMA_in_delegateGrammars1048, FOLLOW_COMMA_in_elementOptions4029, FOLLOW_COMMA_in_lexerCommands2687, FOLLOW_COMMA_in_throwsSpec1939, FOLLOW_COMMA_in_tokensSpec1115, FOLLOW_COMMA_in_tokensSpec1121, FOLLOW_delegateGrammar_in_delegateGrammars1045, FOLLOW_delegateGrammar_in_delegateGrammars1050, FOLLOW_delegateGrammars_in_prequelConstruct811, FOLLOW_DOT_in_qid4173, FOLLOW_DOT_in_wildcard3574, FOLLOW_ebnf_in_element3081, FOLLOW_ebnfSuffix_in_blockSuffix3324, FOLLOW_ebnfSuffix_in_element2983, FOLLOW_ebnfSuffix_in_element3035, FOLLOW_ebnfSuffix_in_lexerElement2380, FOLLOW_ebnfSuffix_in_lexerElement2432, FOLLOW_ebnfSuffix_in_lexerElement2484, FOLLOW_element_in_alternative2862, FOLLOW_element_in_elementEntry4203, FOLLOW_elementOption_in_elementOptions4026, FOLLOW_elementOption_in_elementOptions4031, FOLLOW_elementOptions_in_actionElement3124, FOLLOW_elementOptions_in_actionElement3154, FOLLOW_elementOptions_in_alternative2853, FOLLOW_elementOptions_in_ruleref3876, FOLLOW_elementOptions_in_setElement3728, FOLLOW_elementOptions_in_setElement3740, FOLLOW_elementOptions_in_terminal3969, FOLLOW_elementOptions_in_terminal3992, FOLLOW_elementOptions_in_wildcard3576, FOLLOW_EOF_in_alternativeEntry4194, FOLLOW_EOF_in_blockEntry4225, FOLLOW_EOF_in_elementEntry4205, FOLLOW_EOF_in_grammarSpec513, FOLLOW_EOF_in_ruleEntry4215, FOLLOW_exceptionGroup_in_parserRule1678, FOLLOW_exceptionHandler_in_exceptionGroup1761, FOLLOW_FINALLY_in_finallyClause1812, FOLLOW_finallyClause_in_exceptionGroup1764, FOLLOW_FRAGMENT_in_lexerRule2134, FOLLOW_GRAMMAR_in_grammarType687, FOLLOW_GRAMMAR_in_grammarType714, FOLLOW_GRAMMAR_in_grammarType735, FOLLOW_grammarType_in_grammarSpec396, FOLLOW_GT_in_elementOptions4037, FOLLOW_id_in_action1306, FOLLOW_id_in_actionScopeName1337, FOLLOW_id_in_channelsSpec1265, FOLLOW_id_in_channelsSpec1271, FOLLOW_id_in_delegateGrammar1081, FOLLOW_id_in_delegateGrammar1086, FOLLOW_id_in_delegateGrammar1096, FOLLOW_id_in_elementOption4093, FOLLOW_id_in_grammarSpec398, FOLLOW_id_in_labeledAlt2102, FOLLOW_id_in_labeledElement3176, FOLLOW_id_in_labeledLexerElement2542, FOLLOW_id_in_lexerCommandExpr2739, FOLLOW_id_in_lexerCommandName2768, FOLLOW_id_in_modeSpec1378, FOLLOW_id_in_option955, FOLLOW_id_in_qid4170, FOLLOW_id_in_qid4175, FOLLOW_id_in_ruleAction1994, FOLLOW_id_in_tokensSpec1112, FOLLOW_id_in_tokensSpec1117, FOLLOW_id_in_v3tokenSpec1179, FOLLOW_IMPORT_in_delegateGrammars1043, FOLLOW_INT_in_lexerCommandExpr2744, FOLLOW_INT_in_optionValue1027, FOLLOW_labeledAlt_in_ruleAltList2070, FOLLOW_labeledAlt_in_ruleAltList2075, FOLLOW_labeledElement_in_element2977, FOLLOW_labeledLexerElement_in_lexerElement2374, FOLLOW_LEXER_CHAR_SET_in_lexerAtom3448, FOLLOW_LEXER_CHAR_SET_in_setElement3756, FOLLOW_LEXER_in_actionScopeName1342, FOLLOW_LEXER_in_grammarType683, FOLLOW_lexerAlt_in_lexerAltList2246, FOLLOW_lexerAlt_in_lexerAltList2251, FOLLOW_lexerAltList_in_lexerBlock2635, FOLLOW_lexerAltList_in_lexerRuleBlock2210, FOLLOW_lexerAtom_in_labeledLexerElement2558, FOLLOW_lexerAtom_in_lexerElement2426, FOLLOW_lexerBlock_in_labeledLexerElement2575, FOLLOW_lexerBlock_in_lexerElement2478, FOLLOW_lexerCommand_in_lexerCommands2684, FOLLOW_lexerCommand_in_lexerCommands2689, FOLLOW_lexerCommandExpr_in_lexerCommand2711, FOLLOW_lexerCommandName_in_lexerCommand2707, FOLLOW_lexerCommandName_in_lexerCommand2728, FOLLOW_lexerCommands_in_lexerAlt2275, FOLLOW_lexerElement_in_lexerElements2318, FOLLOW_lexerElements_in_lexerAlt2269, FOLLOW_lexerRule_in_modeSpec1385, FOLLOW_lexerRule_in_rule1490, FOLLOW_lexerRuleBlock_in_lexerRule2144, FOLLOW_LOCALS_in_localsSpec1966, FOLLOW_localsSpec_in_parserRule1590, FOLLOW_LPAREN_in_block3780, FOLLOW_LPAREN_in_blockSet3681, FOLLOW_LPAREN_in_lexerBlock2608, FOLLOW_LPAREN_in_lexerCommand2709, FOLLOW_LT_in_elementOptions4023, FOLLOW_MODE_in_lexerCommandName2786, FOLLOW_MODE_in_modeSpec1376, FOLLOW_modeSpec_in_grammarSpec475, FOLLOW_NOT_in_notSet3614, FOLLOW_NOT_in_notSet3644, FOLLOW_notSet_in_atom3518, FOLLOW_notSet_in_lexerAtom3432, FOLLOW_option_in_optionsSpec920, FOLLOW_OPTIONS_in_optionsSpec917, FOLLOW_optionsSpec_in_block3792, FOLLOW_optionsSpec_in_lexerBlock2620, FOLLOW_optionsSpec_in_prequelConstruct788, FOLLOW_optionsSpec_in_rulePrequel1875, FOLLOW_optionValue_in_elementOption4098, FOLLOW_optionValue_in_option960, FOLLOW_OR_in_altList2817, FOLLOW_OR_in_blockSet3686, FOLLOW_OR_in_lexerAltList2249, FOLLOW_OR_in_ruleAltList2073, FOLLOW_PARSER_in_actionScopeName1357, FOLLOW_PARSER_in_grammarType710, FOLLOW_parserRule_in_rule1485, FOLLOW_PLUS_ASSIGN_in_labeledElement3185, FOLLOW_PLUS_ASSIGN_in_labeledLexerElement2551, FOLLOW_PLUS_in_ebnfSuffix3381, FOLLOW_POUND_in_labeledAlt2099, FOLLOW_prequelConstruct_in_grammarSpec442, FOLLOW_qid_in_elementOption4085, FOLLOW_qid_in_optionValue1003, FOLLOW_qid_in_throwsSpec1936, FOLLOW_qid_in_throwsSpec1941, FOLLOW_QUESTION_in_ebnfSuffix3339, FOLLOW_QUESTION_in_ebnfSuffix3343, FOLLOW_QUESTION_in_ebnfSuffix3363, FOLLOW_QUESTION_in_ebnfSuffix3385, FOLLOW_range_in_atom3493, FOLLOW_range_in_lexerAtom3406, FOLLOW_RANGE_in_range3937, FOLLOW_range_in_setElement3746, FOLLOW_RARROW_in_lexerCommands2682, FOLLOW_RBRACE_in_channelsSpec1280, FOLLOW_RBRACE_in_optionsSpec926, FOLLOW_RBRACE_in_tokensSpec1124, FOLLOW_RBRACE_in_tokensSpec1143, FOLLOW_RBRACE_in_tokensSpec1159, FOLLOW_RETURNS_in_ruleReturns1903, FOLLOW_RPAREN_in_block3817, FOLLOW_RPAREN_in_blockSet3692, FOLLOW_RPAREN_in_lexerBlock2645, FOLLOW_RPAREN_in_lexerCommand2713, FOLLOW_rule_in_ruleEntry4213, FOLLOW_rule_in_rules1421, FOLLOW_RULE_REF_in_id4129, FOLLOW_RULE_REF_in_lexerAtom3421, FOLLOW_RULE_REF_in_parserRule1539, FOLLOW_RULE_REF_in_ruleref3871, FOLLOW_ruleAction_in_block3797, FOLLOW_ruleAction_in_rulePrequel1883, FOLLOW_ruleAltList_in_ruleBlock2034, FOLLOW_ruleBlock_in_parserRule1660, FOLLOW_rulePrequel_in_rulePrequels1849, FOLLOW_rulePrequels_in_parserRule1628, FOLLOW_ruleref_in_atom3510, FOLLOW_ruleReturns_in_parserRule1576, FOLLOW_rules_in_grammarSpec469, FOLLOW_SEMI_in_delegateGrammars1054, FOLLOW_SEMI_in_grammarSpec400, FOLLOW_SEMI_in_lexerRule2146, FOLLOW_SEMI_in_modeSpec1380, FOLLOW_SEMI_in_optionsSpec922, FOLLOW_SEMI_in_parserRule1669, FOLLOW_SEMI_in_v3tokenSpec1250, FOLLOW_SEMPRED_in_actionElement3142, FOLLOW_SEMPRED_in_actionElement3152, FOLLOW_setElement_in_blockSet3683, FOLLOW_setElement_in_blockSet3688, FOLLOW_setElement_in_notSet3616, FOLLOW_STAR_in_ebnfSuffix3359, FOLLOW_STRING_LITERAL_in_optionValue1011, FOLLOW_STRING_LITERAL_in_range3932, FOLLOW_STRING_LITERAL_in_range3943, FOLLOW_STRING_LITERAL_in_setElement3734, FOLLOW_STRING_LITERAL_in_terminal3990, FOLLOW_STRING_LITERAL_in_v3tokenSpec1189, FOLLOW_sync_in_grammarSpec438, FOLLOW_sync_in_grammarSpec444, FOLLOW_sync_in_modeSpec1382, FOLLOW_sync_in_modeSpec1387, FOLLOW_sync_in_rulePrequels1846, FOLLOW_sync_in_rulePrequels1851, FOLLOW_sync_in_rules1418, FOLLOW_sync_in_rules1423, FOLLOW_terminal_in_atom3500, FOLLOW_terminal_in_lexerAtom3411, FOLLOW_THROWS_in_throwsSpec1934, FOLLOW_throwsSpec_in_parserRule1583, FOLLOW_TOKEN_REF_in_id4142, FOLLOW_TOKEN_REF_in_lexerRule2140, FOLLOW_TOKEN_REF_in_setElement3722, FOLLOW_TOKEN_REF_in_terminal3967, FOLLOW_TOKENS_SPEC_in_tokensSpec1110, FOLLOW_TOKENS_SPEC_in_tokensSpec1141, FOLLOW_TOKENS_SPEC_in_tokensSpec1153, FOLLOW_tokensSpec_in_prequelConstruct855, FOLLOW_TREE_GRAMMAR_in_grammarType762, FOLLOW_v3tokenSpec_in_tokensSpec1156, FOLLOW_wildcard_in_atom3526, FOLLOW_wildcard_in_lexerAtom3440, 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, UNICODE_EXTENDED_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–2022 Daniel Sun. All rights reserved.