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_action1299, FOLLOW_ACTION_in_actionElement3103, FOLLOW_ACTION_in_actionElement3113, FOLLOW_ACTION_in_exceptionHandler1776, FOLLOW_ACTION_in_finallyClause1805, FOLLOW_ACTION_in_optionValue1016, FOLLOW_action_in_prequelConstruct902, FOLLOW_ACTION_in_ruleAction1987, FOLLOW_actionElement_in_element3077, FOLLOW_actionElement_in_lexerElement2503, FOLLOW_actionScopeName_in_action1291, FOLLOW_alternative_in_alternativeEntry4183, FOLLOW_alternative_in_altList2805, FOLLOW_alternative_in_altList2810, FOLLOW_alternative_in_labeledAlt2084, FOLLOW_altList_in_block3804, FOLLOW_ARG_ACTION_in_exceptionHandler1774, FOLLOW_ARG_ACTION_in_localsSpec1960, FOLLOW_ARG_ACTION_in_parserRule1560, FOLLOW_ARG_ACTION_in_ruleref3864, FOLLOW_ARG_ACTION_in_ruleReturns1897, FOLLOW_ASSIGN_in_delegateGrammar1083, FOLLOW_ASSIGN_in_elementOption4086, FOLLOW_ASSIGN_in_labeledElement3172, FOLLOW_ASSIGN_in_labeledLexerElement2538, FOLLOW_ASSIGN_in_option957, FOLLOW_ASSIGN_in_v3tokenSpec1182, FOLLOW_AT_in_action1288, FOLLOW_AT_in_ruleAction1983, FOLLOW_atom_in_element3020, FOLLOW_atom_in_labeledElement3183, FOLLOW_block_in_blockEntry4214, FOLLOW_block_in_ebnf3241, FOLLOW_block_in_labeledElement3205, FOLLOW_blockSet_in_notSet3637, FOLLOW_blockSuffix_in_ebnf3265, FOLLOW_CATCH_in_exceptionHandler1772, FOLLOW_CHANNELS_in_channelsSpec1258, FOLLOW_channelsSpec_in_prequelConstruct865, FOLLOW_COLON_in_block3791, FOLLOW_COLON_in_lexerBlock2613, FOLLOW_COLON_in_lexerRule2133, FOLLOW_COLON_in_parserRule1628, FOLLOW_COLONCOLON_in_action1293, FOLLOW_COMMA_in_channelsSpec1264, FOLLOW_COMMA_in_delegateGrammars1048, FOLLOW_COMMA_in_elementOptions4020, FOLLOW_COMMA_in_lexerCommands2678, FOLLOW_COMMA_in_throwsSpec1930, FOLLOW_COMMA_in_tokensSpec1115, FOLLOW_delegateGrammar_in_delegateGrammars1045, FOLLOW_delegateGrammar_in_delegateGrammars1050, FOLLOW_delegateGrammars_in_prequelConstruct811, FOLLOW_DOT_in_qid4164, FOLLOW_DOT_in_wildcard3565, FOLLOW_ebnf_in_element3072, FOLLOW_ebnfSuffix_in_blockSuffix3315, FOLLOW_ebnfSuffix_in_element2974, FOLLOW_ebnfSuffix_in_element3026, FOLLOW_ebnfSuffix_in_lexerElement2371, FOLLOW_ebnfSuffix_in_lexerElement2423, FOLLOW_ebnfSuffix_in_lexerElement2475, FOLLOW_element_in_alternative2853, FOLLOW_element_in_elementEntry4194, FOLLOW_elementOption_in_elementOptions4017, FOLLOW_elementOption_in_elementOptions4022, FOLLOW_elementOptions_in_actionElement3115, FOLLOW_elementOptions_in_actionElement3145, FOLLOW_elementOptions_in_alternative2844, FOLLOW_elementOptions_in_ruleref3867, FOLLOW_elementOptions_in_setElement3719, FOLLOW_elementOptions_in_setElement3731, FOLLOW_elementOptions_in_terminal3960, FOLLOW_elementOptions_in_terminal3983, FOLLOW_elementOptions_in_wildcard3567, FOLLOW_EOF_in_alternativeEntry4185, FOLLOW_EOF_in_blockEntry4216, FOLLOW_EOF_in_elementEntry4196, FOLLOW_EOF_in_grammarSpec513, FOLLOW_EOF_in_ruleEntry4206, FOLLOW_exceptionGroup_in_parserRule1669, FOLLOW_exceptionHandler_in_exceptionGroup1752, FOLLOW_FINALLY_in_finallyClause1803, FOLLOW_finallyClause_in_exceptionGroup1755, FOLLOW_FRAGMENT_in_lexerRule2125, FOLLOW_GRAMMAR_in_grammarType687, FOLLOW_GRAMMAR_in_grammarType714, FOLLOW_GRAMMAR_in_grammarType735, FOLLOW_grammarType_in_grammarSpec396, FOLLOW_GT_in_elementOptions4028, FOLLOW_id_in_action1297, FOLLOW_id_in_actionScopeName1328, FOLLOW_id_in_channelsSpec1261, FOLLOW_id_in_channelsSpec1267, FOLLOW_id_in_delegateGrammar1081, FOLLOW_id_in_delegateGrammar1086, FOLLOW_id_in_delegateGrammar1096, FOLLOW_id_in_elementOption4084, FOLLOW_id_in_grammarSpec398, FOLLOW_id_in_labeledAlt2093, FOLLOW_id_in_labeledElement3167, FOLLOW_id_in_labeledLexerElement2533, FOLLOW_id_in_lexerCommandExpr2730, FOLLOW_id_in_lexerCommandName2759, FOLLOW_id_in_modeSpec1369, FOLLOW_id_in_option955, FOLLOW_id_in_qid4161, FOLLOW_id_in_qid4166, FOLLOW_id_in_ruleAction1985, FOLLOW_id_in_tokensSpec1112, FOLLOW_id_in_tokensSpec1117, FOLLOW_id_in_v3tokenSpec1176, FOLLOW_IMPORT_in_delegateGrammars1043, FOLLOW_INT_in_lexerCommandExpr2735, FOLLOW_INT_in_optionValue1027, FOLLOW_labeledAlt_in_ruleAltList2061, FOLLOW_labeledAlt_in_ruleAltList2066, FOLLOW_labeledElement_in_element2968, FOLLOW_labeledLexerElement_in_lexerElement2365, FOLLOW_LEXER_CHAR_SET_in_lexerAtom3439, FOLLOW_LEXER_CHAR_SET_in_setElement3747, FOLLOW_LEXER_in_actionScopeName1333, FOLLOW_LEXER_in_grammarType683, FOLLOW_lexerAlt_in_lexerAltList2237, FOLLOW_lexerAlt_in_lexerAltList2242, FOLLOW_lexerAltList_in_lexerBlock2626, FOLLOW_lexerAltList_in_lexerRuleBlock2201, FOLLOW_lexerAtom_in_labeledLexerElement2549, FOLLOW_lexerAtom_in_lexerElement2417, FOLLOW_lexerBlock_in_labeledLexerElement2566, FOLLOW_lexerBlock_in_lexerElement2469, FOLLOW_lexerCommand_in_lexerCommands2675, FOLLOW_lexerCommand_in_lexerCommands2680, FOLLOW_lexerCommandExpr_in_lexerCommand2702, FOLLOW_lexerCommandName_in_lexerCommand2698, FOLLOW_lexerCommandName_in_lexerCommand2719, FOLLOW_lexerCommands_in_lexerAlt2266, FOLLOW_lexerElement_in_lexerElements2309, FOLLOW_lexerElements_in_lexerAlt2260, FOLLOW_lexerRule_in_modeSpec1376, FOLLOW_lexerRule_in_rule1481, FOLLOW_lexerRuleBlock_in_lexerRule2135, FOLLOW_LOCALS_in_localsSpec1957, FOLLOW_localsSpec_in_parserRule1581, FOLLOW_LPAREN_in_block3771, FOLLOW_LPAREN_in_blockSet3672, FOLLOW_LPAREN_in_lexerBlock2599, FOLLOW_LPAREN_in_lexerCommand2700, FOLLOW_LT_in_elementOptions4014, FOLLOW_MODE_in_lexerCommandName2777, FOLLOW_MODE_in_modeSpec1367, FOLLOW_modeSpec_in_grammarSpec475, FOLLOW_NOT_in_notSet3605, FOLLOW_NOT_in_notSet3635, FOLLOW_notSet_in_atom3509, FOLLOW_notSet_in_lexerAtom3423, FOLLOW_option_in_optionsSpec920, FOLLOW_OPTIONS_in_optionsSpec917, FOLLOW_optionsSpec_in_block3783, FOLLOW_optionsSpec_in_lexerBlock2611, FOLLOW_optionsSpec_in_prequelConstruct788, FOLLOW_optionsSpec_in_rulePrequel1866, FOLLOW_optionValue_in_elementOption4089, FOLLOW_optionValue_in_option960, FOLLOW_OR_in_altList2808, FOLLOW_OR_in_blockSet3677, FOLLOW_OR_in_lexerAltList2240, FOLLOW_OR_in_ruleAltList2064, FOLLOW_PARSER_in_actionScopeName1348, FOLLOW_PARSER_in_grammarType710, FOLLOW_parserRule_in_rule1476, FOLLOW_PLUS_ASSIGN_in_labeledElement3176, FOLLOW_PLUS_ASSIGN_in_labeledLexerElement2542, FOLLOW_PLUS_in_ebnfSuffix3372, FOLLOW_POUND_in_labeledAlt2090, FOLLOW_prequelConstruct_in_grammarSpec442, FOLLOW_qid_in_elementOption4076, FOLLOW_qid_in_optionValue1003, FOLLOW_qid_in_throwsSpec1927, FOLLOW_qid_in_throwsSpec1932, FOLLOW_QUESTION_in_ebnfSuffix3330, FOLLOW_QUESTION_in_ebnfSuffix3334, FOLLOW_QUESTION_in_ebnfSuffix3354, FOLLOW_QUESTION_in_ebnfSuffix3376, FOLLOW_range_in_atom3484, FOLLOW_range_in_lexerAtom3397, FOLLOW_RANGE_in_range3928, FOLLOW_range_in_setElement3737, FOLLOW_RARROW_in_lexerCommands2673, FOLLOW_RBRACE_in_channelsSpec1271, FOLLOW_RBRACE_in_optionsSpec926, FOLLOW_RBRACE_in_tokensSpec1121, FOLLOW_RBRACE_in_tokensSpec1140, FOLLOW_RBRACE_in_tokensSpec1156, FOLLOW_RETURNS_in_ruleReturns1894, FOLLOW_RPAREN_in_block3808, FOLLOW_RPAREN_in_blockSet3683, FOLLOW_RPAREN_in_lexerBlock2636, FOLLOW_RPAREN_in_lexerCommand2704, FOLLOW_rule_in_ruleEntry4204, FOLLOW_rule_in_rules1412, FOLLOW_RULE_REF_in_id4120, FOLLOW_RULE_REF_in_lexerAtom3412, FOLLOW_RULE_REF_in_parserRule1530, FOLLOW_RULE_REF_in_ruleref3862, FOLLOW_ruleAction_in_block3788, FOLLOW_ruleAction_in_rulePrequel1874, FOLLOW_ruleAltList_in_ruleBlock2025, FOLLOW_ruleBlock_in_parserRule1651, FOLLOW_rulePrequel_in_rulePrequels1840, FOLLOW_rulePrequels_in_parserRule1619, FOLLOW_ruleref_in_atom3501, FOLLOW_ruleReturns_in_parserRule1567, FOLLOW_rules_in_grammarSpec469, FOLLOW_SEMI_in_delegateGrammars1054, FOLLOW_SEMI_in_grammarSpec400, FOLLOW_SEMI_in_lexerRule2137, FOLLOW_SEMI_in_modeSpec1371, FOLLOW_SEMI_in_optionsSpec922, FOLLOW_SEMI_in_parserRule1660, FOLLOW_SEMI_in_v3tokenSpec1247, FOLLOW_SEMPRED_in_actionElement3133, FOLLOW_SEMPRED_in_actionElement3143, FOLLOW_setElement_in_blockSet3674, FOLLOW_setElement_in_blockSet3679, FOLLOW_setElement_in_notSet3607, FOLLOW_STAR_in_ebnfSuffix3350, FOLLOW_STRING_LITERAL_in_optionValue1011, FOLLOW_STRING_LITERAL_in_range3923, FOLLOW_STRING_LITERAL_in_range3934, FOLLOW_STRING_LITERAL_in_setElement3725, FOLLOW_STRING_LITERAL_in_terminal3981, FOLLOW_STRING_LITERAL_in_v3tokenSpec1186, FOLLOW_sync_in_grammarSpec438, FOLLOW_sync_in_grammarSpec444, FOLLOW_sync_in_modeSpec1373, FOLLOW_sync_in_modeSpec1378, FOLLOW_sync_in_rulePrequels1837, FOLLOW_sync_in_rulePrequels1842, FOLLOW_sync_in_rules1409, FOLLOW_sync_in_rules1414, FOLLOW_terminal_in_atom3491, FOLLOW_terminal_in_lexerAtom3402, FOLLOW_THROWS_in_throwsSpec1925, FOLLOW_throwsSpec_in_parserRule1574, FOLLOW_TOKEN_REF_in_id4133, FOLLOW_TOKEN_REF_in_lexerRule2131, FOLLOW_TOKEN_REF_in_setElement3713, FOLLOW_TOKEN_REF_in_terminal3958, FOLLOW_TOKENS_SPEC_in_tokensSpec1110, FOLLOW_TOKENS_SPEC_in_tokensSpec1138, FOLLOW_TOKENS_SPEC_in_tokensSpec1150, FOLLOW_tokensSpec_in_prequelConstruct855, FOLLOW_TREE_GRAMMAR_in_grammarType762, FOLLOW_v3tokenSpec_in_tokensSpec1153, FOLLOW_wildcard_in_atom3517, FOLLOW_wildcard_in_lexerAtom3431, 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, wildcard
getCurrentInputSymbol, getMissingSymbol, getSourceName, getTokenStream, reset, setTokenStream, traceIn, traceOut
alreadyParsedRule, 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, traceOut
public 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.BaseRecognizer
public 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 ANTLRParser
Copyright © 1992–2020 ANTLR. All rights reserved.