Top Description Fields Constructors Methods
org.antlr.v4.parse

public Class ToolANTLRParser

extends ANTLRParser
Class Inheritance
Imports
org.antlr.runtime.NoViableAltException, .Parser, .RecognitionException, .TokenStream, org.antlr.v4.Tool, org.antlr.v4.tool.ErrorType

Override error handling for use with ANTLR tool itself; leaves nothing in grammar associated with Tool so others can use in IDEs, ...

Field Summary

Modifier and TypeField and Description
public Tool
Inherited from org.antlr.v4.parse.ANTLRParser:
ACTIONACTION_CHAR_LITERALACTION_ESCACTION_STRING_LITERALadaptorALTARG_ACTIONARG_OR_CHARSETASSIGNATBLOCKCATCHCHANNELSCLOSURECOLONCOLONCOLONCOMBINEDCOMMACOMMENTDOC_COMMENTDOLLARDOTELEMENT_OPTIONSEOFEPSILONERRCHARESC_SEQFINALLYFOLLOW_ACTION_in_action1068FOLLOW_ACTION_in_actionElement2774FOLLOW_ACTION_in_actionElement2784FOLLOW_ACTION_in_exceptionHandler1545FOLLOW_ACTION_in_finallyClause1574FOLLOW_ACTION_in_optionValue890FOLLOW_action_in_prequelConstruct776FOLLOW_ACTION_in_ruleAction1756FOLLOW_actionElement_in_element2748FOLLOW_actionElement_in_lexerElement2234FOLLOW_actionScopeName_in_action1060FOLLOW_alternative_in_alternativeEntry3854FOLLOW_alternative_in_altList2476FOLLOW_alternative_in_altList2481FOLLOW_alternative_in_labeledAlt1853FOLLOW_altList_in_block3475FOLLOW_ARG_ACTION_in_exceptionHandler1543FOLLOW_ARG_ACTION_in_localsSpec1729FOLLOW_ARG_ACTION_in_parserRule1329FOLLOW_ARG_ACTION_in_ruleref3535FOLLOW_ARG_ACTION_in_ruleReturns1666FOLLOW_ASSIGN_in_delegateGrammar957FOLLOW_ASSIGN_in_elementOption3757FOLLOW_ASSIGN_in_labeledElement2843FOLLOW_ASSIGN_in_option831FOLLOW_AT_in_action1057FOLLOW_AT_in_ruleAction1752FOLLOW_atom_in_element2691FOLLOW_atom_in_labeledElement2854FOLLOW_block_in_blockEntry3885FOLLOW_block_in_ebnf2912FOLLOW_block_in_labeledElement2876FOLLOW_blockSet_in_notSet3308FOLLOW_blockSuffix_in_ebnf2936FOLLOW_CATCH_in_exceptionHandler1541FOLLOW_CHANNELS_in_channelsSpec1027FOLLOW_channelsSpec_in_prequelConstruct739FOLLOW_COLON_in_block3462FOLLOW_COLON_in_lexerBlock2284FOLLOW_COLON_in_lexerRule1913FOLLOW_COLON_in_parserRule1397FOLLOW_COLONCOLON_in_action1062FOLLOW_COMMA_in_channelsSpec1033FOLLOW_COMMA_in_delegateGrammars922FOLLOW_COMMA_in_elementOptions3691FOLLOW_COMMA_in_lexerCommands2349FOLLOW_COMMA_in_throwsSpec1699FOLLOW_COMMA_in_tokensSpec989FOLLOW_delegateGrammar_in_delegateGrammars919FOLLOW_delegateGrammar_in_delegateGrammars924FOLLOW_delegateGrammars_in_prequelConstruct685FOLLOW_DOT_in_qid3835FOLLOW_DOT_in_wildcard3236FOLLOW_ebnf_in_element2743FOLLOW_ebnfSuffix_in_blockSuffix2986FOLLOW_ebnfSuffix_in_element2645FOLLOW_ebnfSuffix_in_element2697FOLLOW_ebnfSuffix_in_lexerElement2154FOLLOW_ebnfSuffix_in_lexerElement2206FOLLOW_element_in_alternative2524FOLLOW_element_in_elementEntry3865FOLLOW_elementOption_in_elementOptions3688FOLLOW_elementOption_in_elementOptions3693FOLLOW_elementOptions_in_actionElement2786FOLLOW_elementOptions_in_actionElement2816FOLLOW_elementOptions_in_alternative2515FOLLOW_elementOptions_in_ruleref3538FOLLOW_elementOptions_in_setElement3390FOLLOW_elementOptions_in_setElement3402FOLLOW_elementOptions_in_terminal3631FOLLOW_elementOptions_in_terminal3654FOLLOW_elementOptions_in_wildcard3238FOLLOW_EOF_in_alternativeEntry3856FOLLOW_EOF_in_blockEntry3887FOLLOW_EOF_in_elementEntry3867FOLLOW_EOF_in_grammarSpec398FOLLOW_EOF_in_ruleEntry3877FOLLOW_exceptionGroup_in_parserRule1438FOLLOW_exceptionHandler_in_exceptionGroup1521FOLLOW_FINALLY_in_finallyClause1572FOLLOW_finallyClause_in_exceptionGroup1524FOLLOW_FRAGMENT_in_lexerRule1894FOLLOW_GRAMMAR_in_grammarType572FOLLOW_GRAMMAR_in_grammarType599FOLLOW_GRAMMAR_in_grammarType620FOLLOW_grammarType_in_grammarSpec281FOLLOW_GT_in_elementOptions3699FOLLOW_id_in_action1066FOLLOW_id_in_actionScopeName1097FOLLOW_id_in_channelsSpec1030FOLLOW_id_in_channelsSpec1036FOLLOW_id_in_delegateGrammar955FOLLOW_id_in_delegateGrammar960FOLLOW_id_in_delegateGrammar970FOLLOW_id_in_elementOption3755FOLLOW_id_in_grammarSpec283FOLLOW_id_in_labeledAlt1862FOLLOW_id_in_labeledElement2838FOLLOW_id_in_lexerCommandExpr2401FOLLOW_id_in_lexerCommandName2430FOLLOW_id_in_modeSpec1138FOLLOW_id_in_option829FOLLOW_id_in_qid3832FOLLOW_id_in_qid3837FOLLOW_id_in_ruleAction1754FOLLOW_id_in_tokensSpec986FOLLOW_id_in_tokensSpec991FOLLOW_IMPORT_in_delegateGrammars917FOLLOW_INT_in_lexerCommandExpr2406FOLLOW_INT_in_optionValue901FOLLOW_labeledAlt_in_ruleAltList1830FOLLOW_labeledAlt_in_ruleAltList1835FOLLOW_labeledElement_in_element2639FOLLOW_LEXER_CHAR_SET_in_lexerAtom3110FOLLOW_LEXER_CHAR_SET_in_setElement3418FOLLOW_LEXER_in_actionScopeName1102FOLLOW_LEXER_in_grammarType568FOLLOW_lexerAlt_in_lexerAltList2020FOLLOW_lexerAlt_in_lexerAltList2025FOLLOW_lexerAltList_in_lexerBlock2297FOLLOW_lexerAltList_in_lexerRuleBlock1984FOLLOW_lexerAtom_in_lexerElement2148FOLLOW_lexerBlock_in_lexerElement2200FOLLOW_lexerCommand_in_lexerCommands2346FOLLOW_lexerCommand_in_lexerCommands2351FOLLOW_lexerCommandExpr_in_lexerCommand2373FOLLOW_lexerCommandName_in_lexerCommand2369FOLLOW_lexerCommandName_in_lexerCommand2390FOLLOW_lexerCommands_in_lexerAlt2049FOLLOW_lexerElement_in_lexerElements2092FOLLOW_lexerElements_in_lexerAlt2043FOLLOW_lexerRule_in_modeSpec1145FOLLOW_lexerRule_in_rule1250FOLLOW_lexerRuleBlock_in_lexerRule1915FOLLOW_LOCALS_in_localsSpec1726FOLLOW_localsSpec_in_parserRule1350FOLLOW_LPAREN_in_block3442FOLLOW_LPAREN_in_blockSet3343FOLLOW_LPAREN_in_lexerBlock2270FOLLOW_LPAREN_in_lexerCommand2371FOLLOW_LT_in_elementOptions3685FOLLOW_MODE_in_lexerCommandName2448FOLLOW_MODE_in_modeSpec1136FOLLOW_modeSpec_in_grammarSpec360FOLLOW_NOT_in_notSet3276FOLLOW_NOT_in_notSet3306FOLLOW_notSet_in_atom3180FOLLOW_notSet_in_lexerAtom3094FOLLOW_option_in_optionsSpec794FOLLOW_OPTIONS_in_optionsSpec791FOLLOW_optionsSpec_in_block3454FOLLOW_optionsSpec_in_lexerBlock2282FOLLOW_optionsSpec_in_lexerRule1906FOLLOW_optionsSpec_in_prequelConstruct662FOLLOW_optionsSpec_in_rulePrequel1635FOLLOW_optionValue_in_elementOption3760FOLLOW_optionValue_in_option834FOLLOW_OR_in_altList2479FOLLOW_OR_in_blockSet3348FOLLOW_OR_in_lexerAltList2023FOLLOW_OR_in_ruleAltList1833FOLLOW_PARSER_in_actionScopeName1117FOLLOW_PARSER_in_grammarType595FOLLOW_parserRule_in_rule1245FOLLOW_PLUS_ASSIGN_in_labeledElement2847FOLLOW_PLUS_in_ebnfSuffix3043FOLLOW_POUND_in_labeledAlt1859FOLLOW_prequelConstruct_in_grammarSpec327FOLLOW_qid_in_elementOption3747FOLLOW_qid_in_optionValue877FOLLOW_qid_in_throwsSpec1696FOLLOW_qid_in_throwsSpec1701FOLLOW_QUESTION_in_ebnfSuffix3001FOLLOW_QUESTION_in_ebnfSuffix3005FOLLOW_QUESTION_in_ebnfSuffix3025FOLLOW_QUESTION_in_ebnfSuffix3047FOLLOW_range_in_atom3155FOLLOW_range_in_lexerAtom3068FOLLOW_RANGE_in_range3599FOLLOW_range_in_setElement3408FOLLOW_RARROW_in_lexerCommands2344FOLLOW_RBRACE_in_channelsSpec1040FOLLOW_RBRACE_in_optionsSpec800FOLLOW_RBRACE_in_tokensSpec1014FOLLOW_RBRACE_in_tokensSpec995FOLLOW_RETURNS_in_ruleReturns1663FOLLOW_RPAREN_in_block3479FOLLOW_RPAREN_in_blockSet3354FOLLOW_RPAREN_in_lexerBlock2307FOLLOW_RPAREN_in_lexerCommand2375FOLLOW_rule_in_ruleEntry3875FOLLOW_rule_in_rules1181FOLLOW_RULE_REF_in_id3791FOLLOW_RULE_REF_in_lexerAtom3083FOLLOW_RULE_REF_in_parserRule1299FOLLOW_RULE_REF_in_ruleref3533FOLLOW_ruleAction_in_block3459FOLLOW_ruleAction_in_rulePrequel1643FOLLOW_ruleAltList_in_ruleBlock1794FOLLOW_ruleBlock_in_parserRule1420FOLLOW_rulePrequel_in_rulePrequels1609FOLLOW_rulePrequels_in_parserRule1388FOLLOW_ruleref_in_atom3172FOLLOW_ruleReturns_in_parserRule1336FOLLOW_rules_in_grammarSpec354FOLLOW_SEMI_in_delegateGrammars928FOLLOW_SEMI_in_grammarSpec285FOLLOW_SEMI_in_lexerRule1917FOLLOW_SEMI_in_modeSpec1140FOLLOW_SEMI_in_optionsSpec796FOLLOW_SEMI_in_parserRule1429FOLLOW_SEMPRED_in_actionElement2804FOLLOW_SEMPRED_in_actionElement2814FOLLOW_setElement_in_blockSet3345FOLLOW_setElement_in_blockSet3350FOLLOW_setElement_in_notSet3278FOLLOW_STAR_in_ebnfSuffix3021FOLLOW_STRING_LITERAL_in_optionValue885FOLLOW_STRING_LITERAL_in_range3594FOLLOW_STRING_LITERAL_in_range3605FOLLOW_STRING_LITERAL_in_setElement3396FOLLOW_STRING_LITERAL_in_terminal3652FOLLOW_sync_in_grammarSpec323FOLLOW_sync_in_grammarSpec329FOLLOW_sync_in_modeSpec1142FOLLOW_sync_in_modeSpec1147FOLLOW_sync_in_rulePrequels1606FOLLOW_sync_in_rulePrequels1611FOLLOW_sync_in_rules1178FOLLOW_sync_in_rules1183FOLLOW_terminal_in_atom3162FOLLOW_terminal_in_lexerAtom3073FOLLOW_THROWS_in_throwsSpec1694FOLLOW_throwsSpec_in_parserRule1343FOLLOW_TOKEN_REF_in_id3804FOLLOW_TOKEN_REF_in_lexerRule1900FOLLOW_TOKEN_REF_in_setElement3384FOLLOW_TOKEN_REF_in_terminal3629FOLLOW_TOKENS_SPEC_in_tokensSpec1012FOLLOW_TOKENS_SPEC_in_tokensSpec984FOLLOW_tokensSpec_in_prequelConstruct729FOLLOW_wildcard_in_atom3188FOLLOW_wildcard_in_lexerAtom3102FRAGMENTGRAMMARGTHEX_DIGITIDIMPORTINTLEXERLEXER_ACTION_CALLLEXER_ALT_ACTIONLEXER_CHAR_SETLOCALSLPARENLTMODENameCharNameStartCharNESTED_ACTIONNLCHARSNOTOPTIONALOPTIONSORparaphrasesPARSERPLUSPLUS_ASSIGNPOSITIVE_CLOSUREPOUNDQUESTIONRANGERARROWRBRACERETURNSRPARENRULERULE_REFRULEMODIFIERSRULESSEMISEMPREDSETSRCSTARSTRING_LITERALTHROWSTOKEN_REFtokenNamesTOKENS_SPECUNICODE_ESCUNICODE_EXTENDED_ESCUnicodeBOMWILDCARDWSWSCHARSWSNLCHARS

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public String
public void
Inherited from org.antlr.v4.parse.ANTLRParser:
actionactionElementactionScopeNamealternativealternativeEntryaltListatomblockblockEntryblockSetblockSuffixchannelsSpecdelegateGrammardelegateGrammarsebnfebnfSuffixelementelementEntryelementOptionelementOptionsexceptionGroupexceptionHandlerfinallyClausegetDelegatesgetGrammarFileNamegetTokenNamesgetTreeAdaptorgrammarSpecgrammarTypeidlabeledAltlabeledElementlexerAltlexerAltListlexerAtomlexerBlocklexerCommandlexerCommandExprlexerCommandNamelexerCommandslexerElementlexerElementslexerRulelexerRuleBlocklocalsSpecmodeSpecnotSetoptionoptionsSpecoptionValueparserRuleprequelConstructqidrangeruleruleActionruleAltListruleBlockruleEntryrulePrequelrulePrequelsrulerefruleReturnsrulessetElementsetTreeAdaptorsyncterminalthrowsSpectokensSpecwildcard

Field Detail

toolback to summary
public Tool tool

Constructor Detail

ToolANTLRParserback to summary
public ToolANTLRParser(TokenStream input, Tool tool)

Method Detail

displayRecognitionErrorback to summary
public void displayRecognitionError(String[] tokenNames, RecognitionException e)

Overrides org.antlr.runtime.BaseRecognizer.displayRecognitionError.

Annotations
@Override
getParserErrorMessageback to summary
public String getParserErrorMessage(Parser parser, RecognitionException e)
grammarErrorback to summary
public void grammarError(ErrorType etype, Token token, Object... args)

Overrides org.antlr.v4.parse.ANTLRParser.grammarError.

Annotations
@Override