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_actionElement3109, FOLLOW_ACTION_in_actionElement3119, FOLLOW_ACTION_in_exceptionHandler1815, FOLLOW_ACTION_in_finallyClause1844, FOLLOW_ACTION_in_optionValue1063, FOLLOW_action_in_prequelConstruct949, FOLLOW_ACTION_in_ruleAction2026, FOLLOW_actionElement_in_element3083, FOLLOW_actionElement_in_lexerElement2549, FOLLOW_actionScopeName_in_action1313, FOLLOW_alternative_in_alternativeEntry4156, FOLLOW_alternative_in_altList2851, FOLLOW_alternative_in_altList2856, FOLLOW_alternative_in_labeledAlt2123, FOLLOW_altList_in_block3802, FOLLOW_ARG_ACTION_in_exceptionHandler1813, FOLLOW_ARG_ACTION_in_localsSpec1999, FOLLOW_ARG_ACTION_in_parserRule1596, FOLLOW_ARG_ACTION_in_ruleref3857, FOLLOW_ARG_ACTION_in_ruleReturns1936, FOLLOW_ASSIGN_in_delegateGrammar1130, FOLLOW_ASSIGN_in_elementOption4059, FOLLOW_ASSIGN_in_labeledElement3178, FOLLOW_ASSIGN_in_labeledLexerElement2584, FOLLOW_ASSIGN_in_option1004, FOLLOW_ASSIGN_in_v3tokenSpec1229, FOLLOW_AT_in_action1310, FOLLOW_AT_in_ruleAction2022, FOLLOW_atom_in_element3026, FOLLOW_atom_in_labeledElement3189, FOLLOW_block_in_blockEntry4187, FOLLOW_block_in_ebnf3247, FOLLOW_block_in_labeledElement3211, FOLLOW_blockSet_in_notSet3643, FOLLOW_blockSuffix_in_ebnf3271, FOLLOW_CATCH_in_exceptionHandler1811, FOLLOW_COLON_in_block3789, FOLLOW_COLON_in_lexerBlock2659, FOLLOW_COLON_in_lexerRule2175, FOLLOW_COLON_in_parserRule1664, FOLLOW_COLONCOLON_in_action1315, FOLLOW_COMMA_in_delegateGrammars1095, FOLLOW_COMMA_in_elementOptions4005, FOLLOW_COMMA_in_lexerCommands2724, 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_qid4137, FOLLOW_DOT_in_wildcard3571, FOLLOW_ebnf_in_element3078, FOLLOW_ebnfSuffix_in_blockSuffix3321, FOLLOW_ebnfSuffix_in_element2980, FOLLOW_ebnfSuffix_in_element3032, FOLLOW_ebnfSuffix_in_lexerElement2417, FOLLOW_ebnfSuffix_in_lexerElement2469, FOLLOW_ebnfSuffix_in_lexerElement2521, FOLLOW_element_in_elementEntry4167, FOLLOW_element_in_elements2936, FOLLOW_elementOption_in_elementOptions4002, FOLLOW_elementOption_in_elementOptions4007, FOLLOW_elementOptions_in_actionElement3121, FOLLOW_elementOptions_in_actionElement3151, FOLLOW_elementOptions_in_terminal3947, FOLLOW_elementOptions_in_terminal3970, FOLLOW_elementOptions_in_wildcard3573, FOLLOW_elements_in_alternative2892, FOLLOW_EOF_in_alternativeEntry4158, FOLLOW_EOF_in_blockEntry4189, FOLLOW_EOF_in_elementEntry4169, FOLLOW_EOF_in_grammarSpec550, FOLLOW_EOF_in_ruleEntry4179, 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_elementOptions4013, FOLLOW_id_in_action1319, FOLLOW_id_in_actionScopeName1350, FOLLOW_id_in_delegateGrammar1128, FOLLOW_id_in_delegateGrammar1133, FOLLOW_id_in_delegateGrammar1143, FOLLOW_id_in_elementOption4057, FOLLOW_id_in_grammarSpec435, FOLLOW_id_in_labeledAlt2132, FOLLOW_id_in_labeledElement3173, FOLLOW_id_in_labeledLexerElement2579, FOLLOW_id_in_lexerCommandExpr2776, FOLLOW_id_in_lexerCommandName2805, FOLLOW_id_in_modeSpec1391, FOLLOW_id_in_option1002, FOLLOW_id_in_qid4134, FOLLOW_id_in_qid4139, FOLLOW_id_in_ruleAction2024, FOLLOW_id_in_tokensSpec1159, FOLLOW_id_in_tokensSpec1164, FOLLOW_id_in_v3tokenSpec1223, FOLLOW_IMPORT_in_delegateGrammars1090, FOLLOW_INT_in_lexerCommandExpr2781, FOLLOW_INT_in_optionValue1074, FOLLOW_labeledAlt_in_ruleAltList2100, FOLLOW_labeledAlt_in_ruleAltList2105, FOLLOW_labeledElement_in_element2974, FOLLOW_labeledLexerElement_in_lexerElement2411, FOLLOW_LEXER_CHAR_SET_in_lexerAtom3445, FOLLOW_LEXER_CHAR_SET_in_setElement3745, FOLLOW_LEXER_in_actionScopeName1355, FOLLOW_LEXER_in_grammarType740, FOLLOW_lexerAlt_in_lexerAltList2282, FOLLOW_lexerAlt_in_lexerAltList2287, FOLLOW_lexerAltList_in_lexerBlock2672, FOLLOW_lexerAltList_in_lexerRuleBlock2246, FOLLOW_lexerAtom_in_labeledLexerElement2595, FOLLOW_lexerAtom_in_lexerElement2463, FOLLOW_lexerBlock_in_labeledLexerElement2612, FOLLOW_lexerBlock_in_lexerElement2515, FOLLOW_lexerCommand_in_lexerCommands2721, FOLLOW_lexerCommand_in_lexerCommands2726, FOLLOW_lexerCommandExpr_in_lexerCommand2748, FOLLOW_lexerCommandName_in_lexerCommand2744, FOLLOW_lexerCommandName_in_lexerCommand2765, FOLLOW_lexerCommands_in_lexerAlt2311, FOLLOW_lexerElement_in_lexerElements2374, 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_block3769, FOLLOW_LPAREN_in_blockSet3678, FOLLOW_LPAREN_in_lexerBlock2645, FOLLOW_LPAREN_in_lexerCommand2746, FOLLOW_LT_in_elementOptions3999, FOLLOW_MODE_in_lexerCommandName2823, FOLLOW_MODE_in_modeSpec1389, FOLLOW_modeSpec_in_grammarSpec512, FOLLOW_NOT_in_notSet3611, FOLLOW_NOT_in_notSet3641, FOLLOW_notSet_in_atom3515, FOLLOW_notSet_in_lexerAtom3429, FOLLOW_option_in_optionsSpec967, FOLLOW_OPTIONS_in_optionsSpec964, FOLLOW_optionsSpec_in_block3781, FOLLOW_optionsSpec_in_lexerBlock2657, FOLLOW_optionsSpec_in_prequelConstruct845, FOLLOW_optionsSpec_in_rulePrequel1905, FOLLOW_optionValue_in_elementOption4062, FOLLOW_optionValue_in_option1007, FOLLOW_OR_in_altList2854, FOLLOW_OR_in_blockSet3683, FOLLOW_OR_in_lexerAltList2285, FOLLOW_OR_in_ruleAltList2103, FOLLOW_PARSER_in_actionScopeName1370, FOLLOW_PARSER_in_grammarType767, FOLLOW_parserRule_in_rule1498, FOLLOW_PLUS_ASSIGN_in_labeledElement3182, FOLLOW_PLUS_ASSIGN_in_labeledLexerElement2588, FOLLOW_PLUS_in_ebnfSuffix3378, FOLLOW_POUND_in_labeledAlt2129, FOLLOW_prequelConstruct_in_grammarSpec479, FOLLOW_qid_in_elementOption4049, FOLLOW_qid_in_optionValue1050, FOLLOW_qid_in_throwsSpec1966, FOLLOW_qid_in_throwsSpec1971, FOLLOW_QUESTION_in_ebnfSuffix3336, FOLLOW_QUESTION_in_ebnfSuffix3340, FOLLOW_QUESTION_in_ebnfSuffix3360, FOLLOW_QUESTION_in_ebnfSuffix3382, FOLLOW_range_in_atom3490, FOLLOW_range_in_lexerAtom3403, FOLLOW_RANGE_in_range3915, FOLLOW_range_in_setElement3735, FOLLOW_RARROW_in_lexerCommands2719, FOLLOW_RBRACE_in_optionsSpec973, FOLLOW_RBRACE_in_tokensSpec1168, FOLLOW_RBRACE_in_tokensSpec1187, FOLLOW_RBRACE_in_tokensSpec1203, FOLLOW_RETURNS_in_ruleReturns1933, FOLLOW_RPAREN_in_block3806, FOLLOW_RPAREN_in_blockSet3689, FOLLOW_RPAREN_in_lexerBlock2682, FOLLOW_RPAREN_in_lexerCommand2750, FOLLOW_rule_in_ruleEntry4177, FOLLOW_rule_in_rules1434, FOLLOW_RULE_REF_in_id4093, FOLLOW_RULE_REF_in_lexerAtom3418, FOLLOW_RULE_REF_in_parserRule1566, FOLLOW_RULE_REF_in_ruleref3855, FOLLOW_ruleAction_in_block3786, FOLLOW_ruleAction_in_rulePrequel1913, FOLLOW_ruleAltList_in_ruleBlock2064, FOLLOW_ruleBlock_in_parserRule1687, FOLLOW_rulePrequel_in_rulePrequels1879, FOLLOW_rulePrequels_in_parserRule1655, FOLLOW_ruleref_in_atom3507, 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_actionElement3139, FOLLOW_SEMPRED_in_actionElement3149, FOLLOW_setElement_in_blockSet3680, FOLLOW_setElement_in_blockSet3685, FOLLOW_setElement_in_notSet3613, FOLLOW_STAR_in_ebnfSuffix3356, FOLLOW_STRING_LITERAL_in_optionValue1058, FOLLOW_STRING_LITERAL_in_range3910, FOLLOW_STRING_LITERAL_in_range3921, FOLLOW_STRING_LITERAL_in_setElement3727, FOLLOW_STRING_LITERAL_in_terminal3968, 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_atom3497, FOLLOW_terminal_in_lexerAtom3408, FOLLOW_THROWS_in_throwsSpec1964, FOLLOW_throwsSpec_in_parserRule1610, FOLLOW_TOKEN_REF_in_id4106, FOLLOW_TOKEN_REF_in_lexerRule2173, FOLLOW_TOKEN_REF_in_setElement3719, FOLLOW_TOKEN_REF_in_terminal3945, 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_atom3523, FOLLOW_wildcard_in_lexerAtom3437, 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 © 1992-2013 ANTLR. All Rights Reserved.