Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
tlr4formatter.antlr4-formatter.1.1.0.source-code.ANTLRv4Parser Maven / Gradle / Ivy
// Generated from ANTLRv4Parser.g4 by ANTLR 4.7.2
package org.antlr.parser.antlr4;
import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.runtime.dfa.DFA;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.misc.*;
import org.antlr.v4.runtime.tree.*;
import java.util.List;
import java.util.Iterator;
import java.util.ArrayList;
@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"})
public class ANTLRv4Parser extends Parser {
static { RuntimeMetaData.checkVersion("4.7.2", RuntimeMetaData.VERSION); }
protected static final DFA[] _decisionToDFA;
protected static final PredictionContextCache _sharedContextCache =
new PredictionContextCache();
public static final int
TOKEN_REF=1, RULE_REF=2, LEXER_CHAR_SET=3, DOC_COMMENT=4, BLOCK_COMMENT=5,
LINE_COMMENT=6, INT=7, STRING_LITERAL=8, UNTERMINATED_STRING_LITERAL=9,
BEGIN_ARGUMENT=10, BEGIN_ACTION=11, OPTIONS=12, TOKENS=13, CHANNELS=14,
IMPORT=15, FRAGMENT=16, LEXER=17, PARSER=18, GRAMMAR=19, PROTECTED=20,
PUBLIC=21, PRIVATE=22, RETURNS=23, LOCALS=24, THROWS=25, CATCH=26, FINALLY=27,
MODE=28, COLON=29, COLONCOLON=30, COMMA=31, SEMI=32, LPAREN=33, RPAREN=34,
LBRACE=35, RBRACE=36, RARROW=37, LT=38, GT=39, ASSIGN=40, QUESTION=41,
STAR=42, PLUS_ASSIGN=43, PLUS=44, OR=45, DOLLAR=46, RANGE=47, DOT=48,
AT=49, POUND=50, NOT=51, ID=52, WS=53, ERRCHAR=54, END_ARGUMENT=55, UNTERMINATED_ARGUMENT=56,
ARGUMENT_CONTENT=57, END_ACTION=58, UNTERMINATED_ACTION=59, ACTION_CONTENT=60,
UNTERMINATED_CHAR_SET=61;
public static final int
RULE_grammarSpec = 0, RULE_grammarType = 1, RULE_prequelConstruct = 2,
RULE_optionsSpec = 3, RULE_option = 4, RULE_optionValue = 5, RULE_delegateGrammars = 6,
RULE_delegateGrammar = 7, RULE_tokensSpec = 8, RULE_channelsSpec = 9,
RULE_idList = 10, RULE_action_ = 11, RULE_actionScopeName = 12, RULE_actionBlock = 13,
RULE_argActionBlock = 14, RULE_modeSpec = 15, RULE_rules = 16, RULE_ruleSpec = 17,
RULE_parserRuleSpec = 18, RULE_exceptionGroup = 19, RULE_exceptionHandler = 20,
RULE_finallyClause = 21, RULE_rulePrequel = 22, RULE_ruleReturns = 23,
RULE_throwsSpec = 24, RULE_localsSpec = 25, RULE_ruleAction = 26, RULE_ruleModifiers = 27,
RULE_ruleModifier = 28, RULE_ruleBlock = 29, RULE_ruleAltList = 30, RULE_labeledAlt = 31,
RULE_lexerRuleSpec = 32, RULE_lexerRuleBlock = 33, RULE_lexerAltList = 34,
RULE_lexerAlt = 35, RULE_lexerElements = 36, RULE_lexerElement = 37, RULE_labeledLexerElement = 38,
RULE_lexerBlock = 39, RULE_lexerCommands = 40, RULE_lexerCommand = 41,
RULE_lexerCommandName = 42, RULE_lexerCommandExpr = 43, RULE_altList = 44,
RULE_alternative = 45, RULE_element = 46, RULE_labeledElement = 47, RULE_ebnf = 48,
RULE_blockSuffix = 49, RULE_ebnfSuffix = 50, RULE_lexerAtom = 51, RULE_atom = 52,
RULE_notSet = 53, RULE_blockSet = 54, RULE_setElement = 55, RULE_block = 56,
RULE_ruleref = 57, RULE_characterRange = 58, RULE_terminal = 59, RULE_elementOptions = 60,
RULE_elementOption = 61, RULE_identifier = 62;
private static String[] makeRuleNames() {
return new String[] {
"grammarSpec", "grammarType", "prequelConstruct", "optionsSpec", "option",
"optionValue", "delegateGrammars", "delegateGrammar", "tokensSpec", "channelsSpec",
"idList", "action_", "actionScopeName", "actionBlock", "argActionBlock",
"modeSpec", "rules", "ruleSpec", "parserRuleSpec", "exceptionGroup",
"exceptionHandler", "finallyClause", "rulePrequel", "ruleReturns", "throwsSpec",
"localsSpec", "ruleAction", "ruleModifiers", "ruleModifier", "ruleBlock",
"ruleAltList", "labeledAlt", "lexerRuleSpec", "lexerRuleBlock", "lexerAltList",
"lexerAlt", "lexerElements", "lexerElement", "labeledLexerElement", "lexerBlock",
"lexerCommands", "lexerCommand", "lexerCommandName", "lexerCommandExpr",
"altList", "alternative", "element", "labeledElement", "ebnf", "blockSuffix",
"ebnfSuffix", "lexerAtom", "atom", "notSet", "blockSet", "setElement",
"block", "ruleref", "characterRange", "terminal", "elementOptions", "elementOption",
"identifier"
};
}
public static final String[] ruleNames = makeRuleNames();
private static String[] makeLiteralNames() {
return new String[] {
null, null, null, null, null, null, null, null, null, null, null, null,
"'options'", "'tokens'", "'channels'", "'import'", "'fragment'", "'lexer'",
"'parser'", "'grammar'", "'protected'", "'public'", "'private'", "'returns'",
"'locals'", "'throws'", "'catch'", "'finally'", "'mode'"
};
}
private static final String[] _LITERAL_NAMES = makeLiteralNames();
private static String[] makeSymbolicNames() {
return new String[] {
null, "TOKEN_REF", "RULE_REF", "LEXER_CHAR_SET", "DOC_COMMENT", "BLOCK_COMMENT",
"LINE_COMMENT", "INT", "STRING_LITERAL", "UNTERMINATED_STRING_LITERAL",
"BEGIN_ARGUMENT", "BEGIN_ACTION", "OPTIONS", "TOKENS", "CHANNELS", "IMPORT",
"FRAGMENT", "LEXER", "PARSER", "GRAMMAR", "PROTECTED", "PUBLIC", "PRIVATE",
"RETURNS", "LOCALS", "THROWS", "CATCH", "FINALLY", "MODE", "COLON", "COLONCOLON",
"COMMA", "SEMI", "LPAREN", "RPAREN", "LBRACE", "RBRACE", "RARROW", "LT",
"GT", "ASSIGN", "QUESTION", "STAR", "PLUS_ASSIGN", "PLUS", "OR", "DOLLAR",
"RANGE", "DOT", "AT", "POUND", "NOT", "ID", "WS", "ERRCHAR", "END_ARGUMENT",
"UNTERMINATED_ARGUMENT", "ARGUMENT_CONTENT", "END_ACTION", "UNTERMINATED_ACTION",
"ACTION_CONTENT", "UNTERMINATED_CHAR_SET"
};
}
private static final String[] _SYMBOLIC_NAMES = makeSymbolicNames();
public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES);
/**
* @deprecated Use {@link #VOCABULARY} instead.
*/
@Deprecated
public static final String[] tokenNames;
static {
tokenNames = new String[_SYMBOLIC_NAMES.length];
for (int i = 0; i < tokenNames.length; i++) {
tokenNames[i] = VOCABULARY.getLiteralName(i);
if (tokenNames[i] == null) {
tokenNames[i] = VOCABULARY.getSymbolicName(i);
}
if (tokenNames[i] == null) {
tokenNames[i] = "";
}
}
}
@Override
@Deprecated
public String[] getTokenNames() {
return tokenNames;
}
@Override
public Vocabulary getVocabulary() {
return VOCABULARY;
}
@Override
public String getGrammarFileName() { return "ANTLRv4Parser.g4"; }
@Override
public String[] getRuleNames() { return ruleNames; }
@Override
public String getSerializedATN() { return _serializedATN; }
@Override
public ATN getATN() { return _ATN; }
public ANTLRv4Parser(TokenStream input) {
super(input);
_interp = new ParserATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
public static class GrammarSpecContext extends ParserRuleContext {
public GrammarTypeContext grammarType() {
return getRuleContext(GrammarTypeContext.class,0);
}
public IdentifierContext identifier() {
return getRuleContext(IdentifierContext.class,0);
}
public TerminalNode SEMI() { return getToken(ANTLRv4Parser.SEMI, 0); }
public RulesContext rules() {
return getRuleContext(RulesContext.class,0);
}
public TerminalNode EOF() { return getToken(ANTLRv4Parser.EOF, 0); }
public List DOC_COMMENT() { return getTokens(ANTLRv4Parser.DOC_COMMENT); }
public TerminalNode DOC_COMMENT(int i) {
return getToken(ANTLRv4Parser.DOC_COMMENT, i);
}
public List prequelConstruct() {
return getRuleContexts(PrequelConstructContext.class);
}
public PrequelConstructContext prequelConstruct(int i) {
return getRuleContext(PrequelConstructContext.class,i);
}
public List modeSpec() {
return getRuleContexts(ModeSpecContext.class);
}
public ModeSpecContext modeSpec(int i) {
return getRuleContext(ModeSpecContext.class,i);
}
public GrammarSpecContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_grammarSpec; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterGrammarSpec(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitGrammarSpec(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitGrammarSpec(this);
else return visitor.visitChildren(this);
}
}
public final GrammarSpecContext grammarSpec() throws RecognitionException {
GrammarSpecContext _localctx = new GrammarSpecContext(_ctx, getState());
enterRule(_localctx, 0, RULE_grammarSpec);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(129);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==DOC_COMMENT) {
{
{
setState(126);
match(DOC_COMMENT);
}
}
setState(131);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(132);
grammarType();
setState(133);
identifier();
setState(134);
match(SEMI);
setState(138);
_errHandler.sync(this);
_la = _input.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << OPTIONS) | (1L << TOKENS) | (1L << CHANNELS) | (1L << IMPORT) | (1L << AT))) != 0)) {
{
{
setState(135);
prequelConstruct();
}
}
setState(140);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(141);
rules();
setState(145);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==MODE) {
{
{
setState(142);
modeSpec();
}
}
setState(147);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(148);
match(EOF);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class GrammarTypeContext extends ParserRuleContext {
public TerminalNode LEXER() { return getToken(ANTLRv4Parser.LEXER, 0); }
public TerminalNode GRAMMAR() { return getToken(ANTLRv4Parser.GRAMMAR, 0); }
public TerminalNode PARSER() { return getToken(ANTLRv4Parser.PARSER, 0); }
public GrammarTypeContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_grammarType; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterGrammarType(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitGrammarType(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitGrammarType(this);
else return visitor.visitChildren(this);
}
}
public final GrammarTypeContext grammarType() throws RecognitionException {
GrammarTypeContext _localctx = new GrammarTypeContext(_ctx, getState());
enterRule(_localctx, 2, RULE_grammarType);
try {
enterOuterAlt(_localctx, 1);
{
setState(155);
_errHandler.sync(this);
switch (_input.LA(1)) {
case LEXER:
{
setState(150);
match(LEXER);
setState(151);
match(GRAMMAR);
}
break;
case PARSER:
{
setState(152);
match(PARSER);
setState(153);
match(GRAMMAR);
}
break;
case GRAMMAR:
{
setState(154);
match(GRAMMAR);
}
break;
default:
throw new NoViableAltException(this);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class PrequelConstructContext extends ParserRuleContext {
public OptionsSpecContext optionsSpec() {
return getRuleContext(OptionsSpecContext.class,0);
}
public DelegateGrammarsContext delegateGrammars() {
return getRuleContext(DelegateGrammarsContext.class,0);
}
public TokensSpecContext tokensSpec() {
return getRuleContext(TokensSpecContext.class,0);
}
public ChannelsSpecContext channelsSpec() {
return getRuleContext(ChannelsSpecContext.class,0);
}
public Action_Context action_() {
return getRuleContext(Action_Context.class,0);
}
public PrequelConstructContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_prequelConstruct; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterPrequelConstruct(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitPrequelConstruct(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitPrequelConstruct(this);
else return visitor.visitChildren(this);
}
}
public final PrequelConstructContext prequelConstruct() throws RecognitionException {
PrequelConstructContext _localctx = new PrequelConstructContext(_ctx, getState());
enterRule(_localctx, 4, RULE_prequelConstruct);
try {
setState(162);
_errHandler.sync(this);
switch (_input.LA(1)) {
case OPTIONS:
enterOuterAlt(_localctx, 1);
{
setState(157);
optionsSpec();
}
break;
case IMPORT:
enterOuterAlt(_localctx, 2);
{
setState(158);
delegateGrammars();
}
break;
case TOKENS:
enterOuterAlt(_localctx, 3);
{
setState(159);
tokensSpec();
}
break;
case CHANNELS:
enterOuterAlt(_localctx, 4);
{
setState(160);
channelsSpec();
}
break;
case AT:
enterOuterAlt(_localctx, 5);
{
setState(161);
action_();
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class OptionsSpecContext extends ParserRuleContext {
public TerminalNode OPTIONS() { return getToken(ANTLRv4Parser.OPTIONS, 0); }
public TerminalNode LBRACE() { return getToken(ANTLRv4Parser.LBRACE, 0); }
public TerminalNode RBRACE() { return getToken(ANTLRv4Parser.RBRACE, 0); }
public List option() {
return getRuleContexts(OptionContext.class);
}
public OptionContext option(int i) {
return getRuleContext(OptionContext.class,i);
}
public List SEMI() { return getTokens(ANTLRv4Parser.SEMI); }
public TerminalNode SEMI(int i) {
return getToken(ANTLRv4Parser.SEMI, i);
}
public OptionsSpecContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_optionsSpec; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterOptionsSpec(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitOptionsSpec(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitOptionsSpec(this);
else return visitor.visitChildren(this);
}
}
public final OptionsSpecContext optionsSpec() throws RecognitionException {
OptionsSpecContext _localctx = new OptionsSpecContext(_ctx, getState());
enterRule(_localctx, 6, RULE_optionsSpec);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(164);
match(OPTIONS);
setState(165);
match(LBRACE);
setState(171);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==TOKEN_REF || _la==RULE_REF) {
{
{
setState(166);
option();
setState(167);
match(SEMI);
}
}
setState(173);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(174);
match(RBRACE);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class OptionContext extends ParserRuleContext {
public IdentifierContext identifier() {
return getRuleContext(IdentifierContext.class,0);
}
public TerminalNode ASSIGN() { return getToken(ANTLRv4Parser.ASSIGN, 0); }
public OptionValueContext optionValue() {
return getRuleContext(OptionValueContext.class,0);
}
public OptionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_option; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterOption(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitOption(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitOption(this);
else return visitor.visitChildren(this);
}
}
public final OptionContext option() throws RecognitionException {
OptionContext _localctx = new OptionContext(_ctx, getState());
enterRule(_localctx, 8, RULE_option);
try {
enterOuterAlt(_localctx, 1);
{
setState(176);
identifier();
setState(177);
match(ASSIGN);
setState(178);
optionValue();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class OptionValueContext extends ParserRuleContext {
public List identifier() {
return getRuleContexts(IdentifierContext.class);
}
public IdentifierContext identifier(int i) {
return getRuleContext(IdentifierContext.class,i);
}
public List DOT() { return getTokens(ANTLRv4Parser.DOT); }
public TerminalNode DOT(int i) {
return getToken(ANTLRv4Parser.DOT, i);
}
public TerminalNode STRING_LITERAL() { return getToken(ANTLRv4Parser.STRING_LITERAL, 0); }
public ActionBlockContext actionBlock() {
return getRuleContext(ActionBlockContext.class,0);
}
public TerminalNode INT() { return getToken(ANTLRv4Parser.INT, 0); }
public OptionValueContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_optionValue; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterOptionValue(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitOptionValue(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitOptionValue(this);
else return visitor.visitChildren(this);
}
}
public final OptionValueContext optionValue() throws RecognitionException {
OptionValueContext _localctx = new OptionValueContext(_ctx, getState());
enterRule(_localctx, 10, RULE_optionValue);
int _la;
try {
setState(191);
_errHandler.sync(this);
switch (_input.LA(1)) {
case TOKEN_REF:
case RULE_REF:
enterOuterAlt(_localctx, 1);
{
setState(180);
identifier();
setState(185);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==DOT) {
{
{
setState(181);
match(DOT);
setState(182);
identifier();
}
}
setState(187);
_errHandler.sync(this);
_la = _input.LA(1);
}
}
break;
case STRING_LITERAL:
enterOuterAlt(_localctx, 2);
{
setState(188);
match(STRING_LITERAL);
}
break;
case BEGIN_ACTION:
enterOuterAlt(_localctx, 3);
{
setState(189);
actionBlock();
}
break;
case INT:
enterOuterAlt(_localctx, 4);
{
setState(190);
match(INT);
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class DelegateGrammarsContext extends ParserRuleContext {
public TerminalNode IMPORT() { return getToken(ANTLRv4Parser.IMPORT, 0); }
public List delegateGrammar() {
return getRuleContexts(DelegateGrammarContext.class);
}
public DelegateGrammarContext delegateGrammar(int i) {
return getRuleContext(DelegateGrammarContext.class,i);
}
public TerminalNode SEMI() { return getToken(ANTLRv4Parser.SEMI, 0); }
public List COMMA() { return getTokens(ANTLRv4Parser.COMMA); }
public TerminalNode COMMA(int i) {
return getToken(ANTLRv4Parser.COMMA, i);
}
public DelegateGrammarsContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_delegateGrammars; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterDelegateGrammars(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitDelegateGrammars(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitDelegateGrammars(this);
else return visitor.visitChildren(this);
}
}
public final DelegateGrammarsContext delegateGrammars() throws RecognitionException {
DelegateGrammarsContext _localctx = new DelegateGrammarsContext(_ctx, getState());
enterRule(_localctx, 12, RULE_delegateGrammars);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(193);
match(IMPORT);
setState(194);
delegateGrammar();
setState(199);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
setState(195);
match(COMMA);
setState(196);
delegateGrammar();
}
}
setState(201);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(202);
match(SEMI);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class DelegateGrammarContext extends ParserRuleContext {
public List identifier() {
return getRuleContexts(IdentifierContext.class);
}
public IdentifierContext identifier(int i) {
return getRuleContext(IdentifierContext.class,i);
}
public TerminalNode ASSIGN() { return getToken(ANTLRv4Parser.ASSIGN, 0); }
public DelegateGrammarContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_delegateGrammar; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterDelegateGrammar(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitDelegateGrammar(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitDelegateGrammar(this);
else return visitor.visitChildren(this);
}
}
public final DelegateGrammarContext delegateGrammar() throws RecognitionException {
DelegateGrammarContext _localctx = new DelegateGrammarContext(_ctx, getState());
enterRule(_localctx, 14, RULE_delegateGrammar);
try {
setState(209);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,9,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(204);
identifier();
setState(205);
match(ASSIGN);
setState(206);
identifier();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(208);
identifier();
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class TokensSpecContext extends ParserRuleContext {
public TerminalNode TOKENS() { return getToken(ANTLRv4Parser.TOKENS, 0); }
public TerminalNode LBRACE() { return getToken(ANTLRv4Parser.LBRACE, 0); }
public TerminalNode RBRACE() { return getToken(ANTLRv4Parser.RBRACE, 0); }
public IdListContext idList() {
return getRuleContext(IdListContext.class,0);
}
public TokensSpecContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_tokensSpec; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterTokensSpec(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitTokensSpec(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitTokensSpec(this);
else return visitor.visitChildren(this);
}
}
public final TokensSpecContext tokensSpec() throws RecognitionException {
TokensSpecContext _localctx = new TokensSpecContext(_ctx, getState());
enterRule(_localctx, 16, RULE_tokensSpec);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(211);
match(TOKENS);
setState(212);
match(LBRACE);
setState(214);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==TOKEN_REF || _la==RULE_REF) {
{
setState(213);
idList();
}
}
setState(216);
match(RBRACE);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ChannelsSpecContext extends ParserRuleContext {
public TerminalNode CHANNELS() { return getToken(ANTLRv4Parser.CHANNELS, 0); }
public TerminalNode LBRACE() { return getToken(ANTLRv4Parser.LBRACE, 0); }
public TerminalNode RBRACE() { return getToken(ANTLRv4Parser.RBRACE, 0); }
public IdListContext idList() {
return getRuleContext(IdListContext.class,0);
}
public ChannelsSpecContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_channelsSpec; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterChannelsSpec(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitChannelsSpec(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitChannelsSpec(this);
else return visitor.visitChildren(this);
}
}
public final ChannelsSpecContext channelsSpec() throws RecognitionException {
ChannelsSpecContext _localctx = new ChannelsSpecContext(_ctx, getState());
enterRule(_localctx, 18, RULE_channelsSpec);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(218);
match(CHANNELS);
setState(219);
match(LBRACE);
setState(221);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==TOKEN_REF || _la==RULE_REF) {
{
setState(220);
idList();
}
}
setState(223);
match(RBRACE);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class IdListContext extends ParserRuleContext {
public List identifier() {
return getRuleContexts(IdentifierContext.class);
}
public IdentifierContext identifier(int i) {
return getRuleContext(IdentifierContext.class,i);
}
public List COMMA() { return getTokens(ANTLRv4Parser.COMMA); }
public TerminalNode COMMA(int i) {
return getToken(ANTLRv4Parser.COMMA, i);
}
public IdListContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_idList; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterIdList(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitIdList(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitIdList(this);
else return visitor.visitChildren(this);
}
}
public final IdListContext idList() throws RecognitionException {
IdListContext _localctx = new IdListContext(_ctx, getState());
enterRule(_localctx, 20, RULE_idList);
int _la;
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
setState(225);
identifier();
setState(230);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,12,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
setState(226);
match(COMMA);
setState(227);
identifier();
}
}
}
setState(232);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,12,_ctx);
}
setState(234);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==COMMA) {
{
setState(233);
match(COMMA);
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Action_Context extends ParserRuleContext {
public TerminalNode AT() { return getToken(ANTLRv4Parser.AT, 0); }
public IdentifierContext identifier() {
return getRuleContext(IdentifierContext.class,0);
}
public ActionBlockContext actionBlock() {
return getRuleContext(ActionBlockContext.class,0);
}
public ActionScopeNameContext actionScopeName() {
return getRuleContext(ActionScopeNameContext.class,0);
}
public TerminalNode COLONCOLON() { return getToken(ANTLRv4Parser.COLONCOLON, 0); }
public Action_Context(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_action_; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterAction_(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitAction_(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitAction_(this);
else return visitor.visitChildren(this);
}
}
public final Action_Context action_() throws RecognitionException {
Action_Context _localctx = new Action_Context(_ctx, getState());
enterRule(_localctx, 22, RULE_action_);
try {
enterOuterAlt(_localctx, 1);
{
setState(236);
match(AT);
setState(240);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,14,_ctx) ) {
case 1:
{
setState(237);
actionScopeName();
setState(238);
match(COLONCOLON);
}
break;
}
setState(242);
identifier();
setState(243);
actionBlock();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ActionScopeNameContext extends ParserRuleContext {
public IdentifierContext identifier() {
return getRuleContext(IdentifierContext.class,0);
}
public TerminalNode LEXER() { return getToken(ANTLRv4Parser.LEXER, 0); }
public TerminalNode PARSER() { return getToken(ANTLRv4Parser.PARSER, 0); }
public ActionScopeNameContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_actionScopeName; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterActionScopeName(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitActionScopeName(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitActionScopeName(this);
else return visitor.visitChildren(this);
}
}
public final ActionScopeNameContext actionScopeName() throws RecognitionException {
ActionScopeNameContext _localctx = new ActionScopeNameContext(_ctx, getState());
enterRule(_localctx, 24, RULE_actionScopeName);
try {
setState(248);
_errHandler.sync(this);
switch (_input.LA(1)) {
case TOKEN_REF:
case RULE_REF:
enterOuterAlt(_localctx, 1);
{
setState(245);
identifier();
}
break;
case LEXER:
enterOuterAlt(_localctx, 2);
{
setState(246);
match(LEXER);
}
break;
case PARSER:
enterOuterAlt(_localctx, 3);
{
setState(247);
match(PARSER);
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ActionBlockContext extends ParserRuleContext {
public TerminalNode BEGIN_ACTION() { return getToken(ANTLRv4Parser.BEGIN_ACTION, 0); }
public TerminalNode END_ACTION() { return getToken(ANTLRv4Parser.END_ACTION, 0); }
public List ACTION_CONTENT() { return getTokens(ANTLRv4Parser.ACTION_CONTENT); }
public TerminalNode ACTION_CONTENT(int i) {
return getToken(ANTLRv4Parser.ACTION_CONTENT, i);
}
public ActionBlockContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_actionBlock; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterActionBlock(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitActionBlock(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitActionBlock(this);
else return visitor.visitChildren(this);
}
}
public final ActionBlockContext actionBlock() throws RecognitionException {
ActionBlockContext _localctx = new ActionBlockContext(_ctx, getState());
enterRule(_localctx, 26, RULE_actionBlock);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(250);
match(BEGIN_ACTION);
setState(254);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==ACTION_CONTENT) {
{
{
setState(251);
match(ACTION_CONTENT);
}
}
setState(256);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(257);
match(END_ACTION);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ArgActionBlockContext extends ParserRuleContext {
public TerminalNode BEGIN_ARGUMENT() { return getToken(ANTLRv4Parser.BEGIN_ARGUMENT, 0); }
public TerminalNode END_ARGUMENT() { return getToken(ANTLRv4Parser.END_ARGUMENT, 0); }
public List ARGUMENT_CONTENT() { return getTokens(ANTLRv4Parser.ARGUMENT_CONTENT); }
public TerminalNode ARGUMENT_CONTENT(int i) {
return getToken(ANTLRv4Parser.ARGUMENT_CONTENT, i);
}
public ArgActionBlockContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_argActionBlock; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterArgActionBlock(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitArgActionBlock(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitArgActionBlock(this);
else return visitor.visitChildren(this);
}
}
public final ArgActionBlockContext argActionBlock() throws RecognitionException {
ArgActionBlockContext _localctx = new ArgActionBlockContext(_ctx, getState());
enterRule(_localctx, 28, RULE_argActionBlock);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(259);
match(BEGIN_ARGUMENT);
setState(263);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==ARGUMENT_CONTENT) {
{
{
setState(260);
match(ARGUMENT_CONTENT);
}
}
setState(265);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(266);
match(END_ARGUMENT);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ModeSpecContext extends ParserRuleContext {
public TerminalNode MODE() { return getToken(ANTLRv4Parser.MODE, 0); }
public IdentifierContext identifier() {
return getRuleContext(IdentifierContext.class,0);
}
public TerminalNode SEMI() { return getToken(ANTLRv4Parser.SEMI, 0); }
public List lexerRuleSpec() {
return getRuleContexts(LexerRuleSpecContext.class);
}
public LexerRuleSpecContext lexerRuleSpec(int i) {
return getRuleContext(LexerRuleSpecContext.class,i);
}
public ModeSpecContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_modeSpec; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterModeSpec(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitModeSpec(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitModeSpec(this);
else return visitor.visitChildren(this);
}
}
public final ModeSpecContext modeSpec() throws RecognitionException {
ModeSpecContext _localctx = new ModeSpecContext(_ctx, getState());
enterRule(_localctx, 30, RULE_modeSpec);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(268);
match(MODE);
setState(269);
identifier();
setState(270);
match(SEMI);
setState(274);
_errHandler.sync(this);
_la = _input.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << TOKEN_REF) | (1L << DOC_COMMENT) | (1L << FRAGMENT))) != 0)) {
{
{
setState(271);
lexerRuleSpec();
}
}
setState(276);
_errHandler.sync(this);
_la = _input.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class RulesContext extends ParserRuleContext {
public List ruleSpec() {
return getRuleContexts(RuleSpecContext.class);
}
public RuleSpecContext ruleSpec(int i) {
return getRuleContext(RuleSpecContext.class,i);
}
public RulesContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_rules; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterRules(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitRules(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitRules(this);
else return visitor.visitChildren(this);
}
}
public final RulesContext rules() throws RecognitionException {
RulesContext _localctx = new RulesContext(_ctx, getState());
enterRule(_localctx, 32, RULE_rules);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(280);
_errHandler.sync(this);
_la = _input.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << TOKEN_REF) | (1L << RULE_REF) | (1L << DOC_COMMENT) | (1L << FRAGMENT) | (1L << PROTECTED) | (1L << PUBLIC) | (1L << PRIVATE))) != 0)) {
{
{
setState(277);
ruleSpec();
}
}
setState(282);
_errHandler.sync(this);
_la = _input.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class RuleSpecContext extends ParserRuleContext {
public ParserRuleSpecContext parserRuleSpec() {
return getRuleContext(ParserRuleSpecContext.class,0);
}
public LexerRuleSpecContext lexerRuleSpec() {
return getRuleContext(LexerRuleSpecContext.class,0);
}
public RuleSpecContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_ruleSpec; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterRuleSpec(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitRuleSpec(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitRuleSpec(this);
else return visitor.visitChildren(this);
}
}
public final RuleSpecContext ruleSpec() throws RecognitionException {
RuleSpecContext _localctx = new RuleSpecContext(_ctx, getState());
enterRule(_localctx, 34, RULE_ruleSpec);
try {
setState(285);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,20,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(283);
parserRuleSpec();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(284);
lexerRuleSpec();
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ParserRuleSpecContext extends ParserRuleContext {
public TerminalNode RULE_REF() { return getToken(ANTLRv4Parser.RULE_REF, 0); }
public TerminalNode COLON() { return getToken(ANTLRv4Parser.COLON, 0); }
public RuleBlockContext ruleBlock() {
return getRuleContext(RuleBlockContext.class,0);
}
public TerminalNode SEMI() { return getToken(ANTLRv4Parser.SEMI, 0); }
public ExceptionGroupContext exceptionGroup() {
return getRuleContext(ExceptionGroupContext.class,0);
}
public List DOC_COMMENT() { return getTokens(ANTLRv4Parser.DOC_COMMENT); }
public TerminalNode DOC_COMMENT(int i) {
return getToken(ANTLRv4Parser.DOC_COMMENT, i);
}
public RuleModifiersContext ruleModifiers() {
return getRuleContext(RuleModifiersContext.class,0);
}
public ArgActionBlockContext argActionBlock() {
return getRuleContext(ArgActionBlockContext.class,0);
}
public RuleReturnsContext ruleReturns() {
return getRuleContext(RuleReturnsContext.class,0);
}
public ThrowsSpecContext throwsSpec() {
return getRuleContext(ThrowsSpecContext.class,0);
}
public LocalsSpecContext localsSpec() {
return getRuleContext(LocalsSpecContext.class,0);
}
public List rulePrequel() {
return getRuleContexts(RulePrequelContext.class);
}
public RulePrequelContext rulePrequel(int i) {
return getRuleContext(RulePrequelContext.class,i);
}
public ParserRuleSpecContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_parserRuleSpec; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterParserRuleSpec(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitParserRuleSpec(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitParserRuleSpec(this);
else return visitor.visitChildren(this);
}
}
public final ParserRuleSpecContext parserRuleSpec() throws RecognitionException {
ParserRuleSpecContext _localctx = new ParserRuleSpecContext(_ctx, getState());
enterRule(_localctx, 36, RULE_parserRuleSpec);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(290);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==DOC_COMMENT) {
{
{
setState(287);
match(DOC_COMMENT);
}
}
setState(292);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(294);
_errHandler.sync(this);
_la = _input.LA(1);
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << FRAGMENT) | (1L << PROTECTED) | (1L << PUBLIC) | (1L << PRIVATE))) != 0)) {
{
setState(293);
ruleModifiers();
}
}
setState(296);
match(RULE_REF);
setState(298);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==BEGIN_ARGUMENT) {
{
setState(297);
argActionBlock();
}
}
setState(301);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==RETURNS) {
{
setState(300);
ruleReturns();
}
}
setState(304);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==THROWS) {
{
setState(303);
throwsSpec();
}
}
setState(307);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==LOCALS) {
{
setState(306);
localsSpec();
}
}
setState(312);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==OPTIONS || _la==AT) {
{
{
setState(309);
rulePrequel();
}
}
setState(314);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(315);
match(COLON);
setState(316);
ruleBlock();
setState(317);
match(SEMI);
setState(318);
exceptionGroup();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ExceptionGroupContext extends ParserRuleContext {
public List exceptionHandler() {
return getRuleContexts(ExceptionHandlerContext.class);
}
public ExceptionHandlerContext exceptionHandler(int i) {
return getRuleContext(ExceptionHandlerContext.class,i);
}
public FinallyClauseContext finallyClause() {
return getRuleContext(FinallyClauseContext.class,0);
}
public ExceptionGroupContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_exceptionGroup; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterExceptionGroup(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitExceptionGroup(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitExceptionGroup(this);
else return visitor.visitChildren(this);
}
}
public final ExceptionGroupContext exceptionGroup() throws RecognitionException {
ExceptionGroupContext _localctx = new ExceptionGroupContext(_ctx, getState());
enterRule(_localctx, 38, RULE_exceptionGroup);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(323);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==CATCH) {
{
{
setState(320);
exceptionHandler();
}
}
setState(325);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(327);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==FINALLY) {
{
setState(326);
finallyClause();
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ExceptionHandlerContext extends ParserRuleContext {
public TerminalNode CATCH() { return getToken(ANTLRv4Parser.CATCH, 0); }
public ArgActionBlockContext argActionBlock() {
return getRuleContext(ArgActionBlockContext.class,0);
}
public ActionBlockContext actionBlock() {
return getRuleContext(ActionBlockContext.class,0);
}
public ExceptionHandlerContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_exceptionHandler; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterExceptionHandler(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitExceptionHandler(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitExceptionHandler(this);
else return visitor.visitChildren(this);
}
}
public final ExceptionHandlerContext exceptionHandler() throws RecognitionException {
ExceptionHandlerContext _localctx = new ExceptionHandlerContext(_ctx, getState());
enterRule(_localctx, 40, RULE_exceptionHandler);
try {
enterOuterAlt(_localctx, 1);
{
setState(329);
match(CATCH);
setState(330);
argActionBlock();
setState(331);
actionBlock();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class FinallyClauseContext extends ParserRuleContext {
public TerminalNode FINALLY() { return getToken(ANTLRv4Parser.FINALLY, 0); }
public ActionBlockContext actionBlock() {
return getRuleContext(ActionBlockContext.class,0);
}
public FinallyClauseContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_finallyClause; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterFinallyClause(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitFinallyClause(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitFinallyClause(this);
else return visitor.visitChildren(this);
}
}
public final FinallyClauseContext finallyClause() throws RecognitionException {
FinallyClauseContext _localctx = new FinallyClauseContext(_ctx, getState());
enterRule(_localctx, 42, RULE_finallyClause);
try {
enterOuterAlt(_localctx, 1);
{
setState(333);
match(FINALLY);
setState(334);
actionBlock();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class RulePrequelContext extends ParserRuleContext {
public OptionsSpecContext optionsSpec() {
return getRuleContext(OptionsSpecContext.class,0);
}
public RuleActionContext ruleAction() {
return getRuleContext(RuleActionContext.class,0);
}
public RulePrequelContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_rulePrequel; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterRulePrequel(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitRulePrequel(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitRulePrequel(this);
else return visitor.visitChildren(this);
}
}
public final RulePrequelContext rulePrequel() throws RecognitionException {
RulePrequelContext _localctx = new RulePrequelContext(_ctx, getState());
enterRule(_localctx, 44, RULE_rulePrequel);
try {
setState(338);
_errHandler.sync(this);
switch (_input.LA(1)) {
case OPTIONS:
enterOuterAlt(_localctx, 1);
{
setState(336);
optionsSpec();
}
break;
case AT:
enterOuterAlt(_localctx, 2);
{
setState(337);
ruleAction();
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class RuleReturnsContext extends ParserRuleContext {
public TerminalNode RETURNS() { return getToken(ANTLRv4Parser.RETURNS, 0); }
public ArgActionBlockContext argActionBlock() {
return getRuleContext(ArgActionBlockContext.class,0);
}
public RuleReturnsContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_ruleReturns; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterRuleReturns(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitRuleReturns(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitRuleReturns(this);
else return visitor.visitChildren(this);
}
}
public final RuleReturnsContext ruleReturns() throws RecognitionException {
RuleReturnsContext _localctx = new RuleReturnsContext(_ctx, getState());
enterRule(_localctx, 46, RULE_ruleReturns);
try {
enterOuterAlt(_localctx, 1);
{
setState(340);
match(RETURNS);
setState(341);
argActionBlock();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ThrowsSpecContext extends ParserRuleContext {
public TerminalNode THROWS() { return getToken(ANTLRv4Parser.THROWS, 0); }
public List identifier() {
return getRuleContexts(IdentifierContext.class);
}
public IdentifierContext identifier(int i) {
return getRuleContext(IdentifierContext.class,i);
}
public List COMMA() { return getTokens(ANTLRv4Parser.COMMA); }
public TerminalNode COMMA(int i) {
return getToken(ANTLRv4Parser.COMMA, i);
}
public ThrowsSpecContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_throwsSpec; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterThrowsSpec(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitThrowsSpec(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitThrowsSpec(this);
else return visitor.visitChildren(this);
}
}
public final ThrowsSpecContext throwsSpec() throws RecognitionException {
ThrowsSpecContext _localctx = new ThrowsSpecContext(_ctx, getState());
enterRule(_localctx, 48, RULE_throwsSpec);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(343);
match(THROWS);
setState(344);
identifier();
setState(349);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
setState(345);
match(COMMA);
setState(346);
identifier();
}
}
setState(351);
_errHandler.sync(this);
_la = _input.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class LocalsSpecContext extends ParserRuleContext {
public TerminalNode LOCALS() { return getToken(ANTLRv4Parser.LOCALS, 0); }
public ArgActionBlockContext argActionBlock() {
return getRuleContext(ArgActionBlockContext.class,0);
}
public LocalsSpecContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_localsSpec; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterLocalsSpec(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitLocalsSpec(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitLocalsSpec(this);
else return visitor.visitChildren(this);
}
}
public final LocalsSpecContext localsSpec() throws RecognitionException {
LocalsSpecContext _localctx = new LocalsSpecContext(_ctx, getState());
enterRule(_localctx, 50, RULE_localsSpec);
try {
enterOuterAlt(_localctx, 1);
{
setState(352);
match(LOCALS);
setState(353);
argActionBlock();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class RuleActionContext extends ParserRuleContext {
public TerminalNode AT() { return getToken(ANTLRv4Parser.AT, 0); }
public IdentifierContext identifier() {
return getRuleContext(IdentifierContext.class,0);
}
public ActionBlockContext actionBlock() {
return getRuleContext(ActionBlockContext.class,0);
}
public RuleActionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_ruleAction; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterRuleAction(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitRuleAction(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitRuleAction(this);
else return visitor.visitChildren(this);
}
}
public final RuleActionContext ruleAction() throws RecognitionException {
RuleActionContext _localctx = new RuleActionContext(_ctx, getState());
enterRule(_localctx, 52, RULE_ruleAction);
try {
enterOuterAlt(_localctx, 1);
{
setState(355);
match(AT);
setState(356);
identifier();
setState(357);
actionBlock();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class RuleModifiersContext extends ParserRuleContext {
public List ruleModifier() {
return getRuleContexts(RuleModifierContext.class);
}
public RuleModifierContext ruleModifier(int i) {
return getRuleContext(RuleModifierContext.class,i);
}
public RuleModifiersContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_ruleModifiers; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterRuleModifiers(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitRuleModifiers(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitRuleModifiers(this);
else return visitor.visitChildren(this);
}
}
public final RuleModifiersContext ruleModifiers() throws RecognitionException {
RuleModifiersContext _localctx = new RuleModifiersContext(_ctx, getState());
enterRule(_localctx, 54, RULE_ruleModifiers);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(360);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(359);
ruleModifier();
}
}
setState(362);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << FRAGMENT) | (1L << PROTECTED) | (1L << PUBLIC) | (1L << PRIVATE))) != 0) );
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class RuleModifierContext extends ParserRuleContext {
public TerminalNode PUBLIC() { return getToken(ANTLRv4Parser.PUBLIC, 0); }
public TerminalNode PRIVATE() { return getToken(ANTLRv4Parser.PRIVATE, 0); }
public TerminalNode PROTECTED() { return getToken(ANTLRv4Parser.PROTECTED, 0); }
public TerminalNode FRAGMENT() { return getToken(ANTLRv4Parser.FRAGMENT, 0); }
public RuleModifierContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_ruleModifier; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterRuleModifier(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitRuleModifier(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitRuleModifier(this);
else return visitor.visitChildren(this);
}
}
public final RuleModifierContext ruleModifier() throws RecognitionException {
RuleModifierContext _localctx = new RuleModifierContext(_ctx, getState());
enterRule(_localctx, 56, RULE_ruleModifier);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(364);
_la = _input.LA(1);
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << FRAGMENT) | (1L << PROTECTED) | (1L << PUBLIC) | (1L << PRIVATE))) != 0)) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class RuleBlockContext extends ParserRuleContext {
public RuleAltListContext ruleAltList() {
return getRuleContext(RuleAltListContext.class,0);
}
public RuleBlockContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_ruleBlock; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterRuleBlock(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitRuleBlock(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitRuleBlock(this);
else return visitor.visitChildren(this);
}
}
public final RuleBlockContext ruleBlock() throws RecognitionException {
RuleBlockContext _localctx = new RuleBlockContext(_ctx, getState());
enterRule(_localctx, 58, RULE_ruleBlock);
try {
enterOuterAlt(_localctx, 1);
{
setState(366);
ruleAltList();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class RuleAltListContext extends ParserRuleContext {
public List labeledAlt() {
return getRuleContexts(LabeledAltContext.class);
}
public LabeledAltContext labeledAlt(int i) {
return getRuleContext(LabeledAltContext.class,i);
}
public List OR() { return getTokens(ANTLRv4Parser.OR); }
public TerminalNode OR(int i) {
return getToken(ANTLRv4Parser.OR, i);
}
public RuleAltListContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_ruleAltList; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterRuleAltList(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitRuleAltList(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitRuleAltList(this);
else return visitor.visitChildren(this);
}
}
public final RuleAltListContext ruleAltList() throws RecognitionException {
RuleAltListContext _localctx = new RuleAltListContext(_ctx, getState());
enterRule(_localctx, 60, RULE_ruleAltList);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(368);
labeledAlt();
setState(373);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==OR) {
{
{
setState(369);
match(OR);
setState(370);
labeledAlt();
}
}
setState(375);
_errHandler.sync(this);
_la = _input.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class LabeledAltContext extends ParserRuleContext {
public AlternativeContext alternative() {
return getRuleContext(AlternativeContext.class,0);
}
public TerminalNode POUND() { return getToken(ANTLRv4Parser.POUND, 0); }
public IdentifierContext identifier() {
return getRuleContext(IdentifierContext.class,0);
}
public LabeledAltContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_labeledAlt; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterLabeledAlt(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitLabeledAlt(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitLabeledAlt(this);
else return visitor.visitChildren(this);
}
}
public final LabeledAltContext labeledAlt() throws RecognitionException {
LabeledAltContext _localctx = new LabeledAltContext(_ctx, getState());
enterRule(_localctx, 62, RULE_labeledAlt);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(376);
alternative();
setState(379);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==POUND) {
{
setState(377);
match(POUND);
setState(378);
identifier();
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class LexerRuleSpecContext extends ParserRuleContext {
public TerminalNode TOKEN_REF() { return getToken(ANTLRv4Parser.TOKEN_REF, 0); }
public TerminalNode COLON() { return getToken(ANTLRv4Parser.COLON, 0); }
public LexerRuleBlockContext lexerRuleBlock() {
return getRuleContext(LexerRuleBlockContext.class,0);
}
public TerminalNode SEMI() { return getToken(ANTLRv4Parser.SEMI, 0); }
public List DOC_COMMENT() { return getTokens(ANTLRv4Parser.DOC_COMMENT); }
public TerminalNode DOC_COMMENT(int i) {
return getToken(ANTLRv4Parser.DOC_COMMENT, i);
}
public TerminalNode FRAGMENT() { return getToken(ANTLRv4Parser.FRAGMENT, 0); }
public LexerRuleSpecContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_lexerRuleSpec; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterLexerRuleSpec(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitLexerRuleSpec(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitLexerRuleSpec(this);
else return visitor.visitChildren(this);
}
}
public final LexerRuleSpecContext lexerRuleSpec() throws RecognitionException {
LexerRuleSpecContext _localctx = new LexerRuleSpecContext(_ctx, getState());
enterRule(_localctx, 64, RULE_lexerRuleSpec);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(384);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==DOC_COMMENT) {
{
{
setState(381);
match(DOC_COMMENT);
}
}
setState(386);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(388);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==FRAGMENT) {
{
setState(387);
match(FRAGMENT);
}
}
setState(390);
match(TOKEN_REF);
setState(391);
match(COLON);
setState(392);
lexerRuleBlock();
setState(393);
match(SEMI);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class LexerRuleBlockContext extends ParserRuleContext {
public LexerAltListContext lexerAltList() {
return getRuleContext(LexerAltListContext.class,0);
}
public LexerRuleBlockContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_lexerRuleBlock; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterLexerRuleBlock(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitLexerRuleBlock(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitLexerRuleBlock(this);
else return visitor.visitChildren(this);
}
}
public final LexerRuleBlockContext lexerRuleBlock() throws RecognitionException {
LexerRuleBlockContext _localctx = new LexerRuleBlockContext(_ctx, getState());
enterRule(_localctx, 66, RULE_lexerRuleBlock);
try {
enterOuterAlt(_localctx, 1);
{
setState(395);
lexerAltList();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class LexerAltListContext extends ParserRuleContext {
public List lexerAlt() {
return getRuleContexts(LexerAltContext.class);
}
public LexerAltContext lexerAlt(int i) {
return getRuleContext(LexerAltContext.class,i);
}
public List OR() { return getTokens(ANTLRv4Parser.OR); }
public TerminalNode OR(int i) {
return getToken(ANTLRv4Parser.OR, i);
}
public LexerAltListContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_lexerAltList; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterLexerAltList(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitLexerAltList(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitLexerAltList(this);
else return visitor.visitChildren(this);
}
}
public final LexerAltListContext lexerAltList() throws RecognitionException {
LexerAltListContext _localctx = new LexerAltListContext(_ctx, getState());
enterRule(_localctx, 68, RULE_lexerAltList);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(397);
lexerAlt();
setState(402);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==OR) {
{
{
setState(398);
match(OR);
setState(399);
lexerAlt();
}
}
setState(404);
_errHandler.sync(this);
_la = _input.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class LexerAltContext extends ParserRuleContext {
public LexerElementsContext lexerElements() {
return getRuleContext(LexerElementsContext.class,0);
}
public LexerCommandsContext lexerCommands() {
return getRuleContext(LexerCommandsContext.class,0);
}
public LexerAltContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_lexerAlt; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterLexerAlt(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitLexerAlt(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitLexerAlt(this);
else return visitor.visitChildren(this);
}
}
public final LexerAltContext lexerAlt() throws RecognitionException {
LexerAltContext _localctx = new LexerAltContext(_ctx, getState());
enterRule(_localctx, 70, RULE_lexerAlt);
int _la;
try {
setState(410);
_errHandler.sync(this);
switch (_input.LA(1)) {
case TOKEN_REF:
case RULE_REF:
case LEXER_CHAR_SET:
case STRING_LITERAL:
case BEGIN_ACTION:
case LPAREN:
case DOT:
case NOT:
enterOuterAlt(_localctx, 1);
{
setState(405);
lexerElements();
setState(407);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==RARROW) {
{
setState(406);
lexerCommands();
}
}
}
break;
case SEMI:
case RPAREN:
case OR:
enterOuterAlt(_localctx, 2);
{
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class LexerElementsContext extends ParserRuleContext {
public List lexerElement() {
return getRuleContexts(LexerElementContext.class);
}
public LexerElementContext lexerElement(int i) {
return getRuleContext(LexerElementContext.class,i);
}
public LexerElementsContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_lexerElements; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterLexerElements(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitLexerElements(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitLexerElements(this);
else return visitor.visitChildren(this);
}
}
public final LexerElementsContext lexerElements() throws RecognitionException {
LexerElementsContext _localctx = new LexerElementsContext(_ctx, getState());
enterRule(_localctx, 72, RULE_lexerElements);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(413);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(412);
lexerElement();
}
}
setState(415);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << TOKEN_REF) | (1L << RULE_REF) | (1L << LEXER_CHAR_SET) | (1L << STRING_LITERAL) | (1L << BEGIN_ACTION) | (1L << LPAREN) | (1L << DOT) | (1L << NOT))) != 0) );
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class LexerElementContext extends ParserRuleContext {
public LabeledLexerElementContext labeledLexerElement() {
return getRuleContext(LabeledLexerElementContext.class,0);
}
public EbnfSuffixContext ebnfSuffix() {
return getRuleContext(EbnfSuffixContext.class,0);
}
public LexerAtomContext lexerAtom() {
return getRuleContext(LexerAtomContext.class,0);
}
public LexerBlockContext lexerBlock() {
return getRuleContext(LexerBlockContext.class,0);
}
public ActionBlockContext actionBlock() {
return getRuleContext(ActionBlockContext.class,0);
}
public TerminalNode QUESTION() { return getToken(ANTLRv4Parser.QUESTION, 0); }
public LexerElementContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_lexerElement; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterLexerElement(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitLexerElement(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitLexerElement(this);
else return visitor.visitChildren(this);
}
}
public final LexerElementContext lexerElement() throws RecognitionException {
LexerElementContext _localctx = new LexerElementContext(_ctx, getState());
enterRule(_localctx, 74, RULE_lexerElement);
int _la;
try {
setState(433);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,45,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(417);
labeledLexerElement();
setState(419);
_errHandler.sync(this);
_la = _input.LA(1);
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << QUESTION) | (1L << STAR) | (1L << PLUS))) != 0)) {
{
setState(418);
ebnfSuffix();
}
}
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(421);
lexerAtom();
setState(423);
_errHandler.sync(this);
_la = _input.LA(1);
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << QUESTION) | (1L << STAR) | (1L << PLUS))) != 0)) {
{
setState(422);
ebnfSuffix();
}
}
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
setState(425);
lexerBlock();
setState(427);
_errHandler.sync(this);
_la = _input.LA(1);
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << QUESTION) | (1L << STAR) | (1L << PLUS))) != 0)) {
{
setState(426);
ebnfSuffix();
}
}
}
break;
case 4:
enterOuterAlt(_localctx, 4);
{
setState(429);
actionBlock();
setState(431);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==QUESTION) {
{
setState(430);
match(QUESTION);
}
}
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class LabeledLexerElementContext extends ParserRuleContext {
public IdentifierContext identifier() {
return getRuleContext(IdentifierContext.class,0);
}
public TerminalNode ASSIGN() { return getToken(ANTLRv4Parser.ASSIGN, 0); }
public TerminalNode PLUS_ASSIGN() { return getToken(ANTLRv4Parser.PLUS_ASSIGN, 0); }
public LexerAtomContext lexerAtom() {
return getRuleContext(LexerAtomContext.class,0);
}
public LexerBlockContext lexerBlock() {
return getRuleContext(LexerBlockContext.class,0);
}
public LabeledLexerElementContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_labeledLexerElement; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterLabeledLexerElement(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitLabeledLexerElement(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitLabeledLexerElement(this);
else return visitor.visitChildren(this);
}
}
public final LabeledLexerElementContext labeledLexerElement() throws RecognitionException {
LabeledLexerElementContext _localctx = new LabeledLexerElementContext(_ctx, getState());
enterRule(_localctx, 76, RULE_labeledLexerElement);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(435);
identifier();
setState(436);
_la = _input.LA(1);
if ( !(_la==ASSIGN || _la==PLUS_ASSIGN) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
setState(439);
_errHandler.sync(this);
switch (_input.LA(1)) {
case TOKEN_REF:
case LEXER_CHAR_SET:
case STRING_LITERAL:
case DOT:
case NOT:
{
setState(437);
lexerAtom();
}
break;
case LPAREN:
{
setState(438);
lexerBlock();
}
break;
default:
throw new NoViableAltException(this);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class LexerBlockContext extends ParserRuleContext {
public TerminalNode LPAREN() { return getToken(ANTLRv4Parser.LPAREN, 0); }
public LexerAltListContext lexerAltList() {
return getRuleContext(LexerAltListContext.class,0);
}
public TerminalNode RPAREN() { return getToken(ANTLRv4Parser.RPAREN, 0); }
public LexerBlockContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_lexerBlock; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterLexerBlock(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitLexerBlock(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitLexerBlock(this);
else return visitor.visitChildren(this);
}
}
public final LexerBlockContext lexerBlock() throws RecognitionException {
LexerBlockContext _localctx = new LexerBlockContext(_ctx, getState());
enterRule(_localctx, 78, RULE_lexerBlock);
try {
enterOuterAlt(_localctx, 1);
{
setState(441);
match(LPAREN);
setState(442);
lexerAltList();
setState(443);
match(RPAREN);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class LexerCommandsContext extends ParserRuleContext {
public TerminalNode RARROW() { return getToken(ANTLRv4Parser.RARROW, 0); }
public List lexerCommand() {
return getRuleContexts(LexerCommandContext.class);
}
public LexerCommandContext lexerCommand(int i) {
return getRuleContext(LexerCommandContext.class,i);
}
public List COMMA() { return getTokens(ANTLRv4Parser.COMMA); }
public TerminalNode COMMA(int i) {
return getToken(ANTLRv4Parser.COMMA, i);
}
public LexerCommandsContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_lexerCommands; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterLexerCommands(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitLexerCommands(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitLexerCommands(this);
else return visitor.visitChildren(this);
}
}
public final LexerCommandsContext lexerCommands() throws RecognitionException {
LexerCommandsContext _localctx = new LexerCommandsContext(_ctx, getState());
enterRule(_localctx, 80, RULE_lexerCommands);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(445);
match(RARROW);
setState(446);
lexerCommand();
setState(451);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
setState(447);
match(COMMA);
setState(448);
lexerCommand();
}
}
setState(453);
_errHandler.sync(this);
_la = _input.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class LexerCommandContext extends ParserRuleContext {
public LexerCommandNameContext lexerCommandName() {
return getRuleContext(LexerCommandNameContext.class,0);
}
public TerminalNode LPAREN() { return getToken(ANTLRv4Parser.LPAREN, 0); }
public LexerCommandExprContext lexerCommandExpr() {
return getRuleContext(LexerCommandExprContext.class,0);
}
public TerminalNode RPAREN() { return getToken(ANTLRv4Parser.RPAREN, 0); }
public LexerCommandContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_lexerCommand; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterLexerCommand(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitLexerCommand(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitLexerCommand(this);
else return visitor.visitChildren(this);
}
}
public final LexerCommandContext lexerCommand() throws RecognitionException {
LexerCommandContext _localctx = new LexerCommandContext(_ctx, getState());
enterRule(_localctx, 82, RULE_lexerCommand);
try {
setState(460);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,48,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(454);
lexerCommandName();
setState(455);
match(LPAREN);
setState(456);
lexerCommandExpr();
setState(457);
match(RPAREN);
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(459);
lexerCommandName();
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class LexerCommandNameContext extends ParserRuleContext {
public IdentifierContext identifier() {
return getRuleContext(IdentifierContext.class,0);
}
public TerminalNode MODE() { return getToken(ANTLRv4Parser.MODE, 0); }
public LexerCommandNameContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_lexerCommandName; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterLexerCommandName(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitLexerCommandName(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitLexerCommandName(this);
else return visitor.visitChildren(this);
}
}
public final LexerCommandNameContext lexerCommandName() throws RecognitionException {
LexerCommandNameContext _localctx = new LexerCommandNameContext(_ctx, getState());
enterRule(_localctx, 84, RULE_lexerCommandName);
try {
setState(464);
_errHandler.sync(this);
switch (_input.LA(1)) {
case TOKEN_REF:
case RULE_REF:
enterOuterAlt(_localctx, 1);
{
setState(462);
identifier();
}
break;
case MODE:
enterOuterAlt(_localctx, 2);
{
setState(463);
match(MODE);
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class LexerCommandExprContext extends ParserRuleContext {
public IdentifierContext identifier() {
return getRuleContext(IdentifierContext.class,0);
}
public TerminalNode INT() { return getToken(ANTLRv4Parser.INT, 0); }
public LexerCommandExprContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_lexerCommandExpr; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterLexerCommandExpr(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitLexerCommandExpr(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitLexerCommandExpr(this);
else return visitor.visitChildren(this);
}
}
public final LexerCommandExprContext lexerCommandExpr() throws RecognitionException {
LexerCommandExprContext _localctx = new LexerCommandExprContext(_ctx, getState());
enterRule(_localctx, 86, RULE_lexerCommandExpr);
try {
setState(468);
_errHandler.sync(this);
switch (_input.LA(1)) {
case TOKEN_REF:
case RULE_REF:
enterOuterAlt(_localctx, 1);
{
setState(466);
identifier();
}
break;
case INT:
enterOuterAlt(_localctx, 2);
{
setState(467);
match(INT);
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class AltListContext extends ParserRuleContext {
public List alternative() {
return getRuleContexts(AlternativeContext.class);
}
public AlternativeContext alternative(int i) {
return getRuleContext(AlternativeContext.class,i);
}
public List OR() { return getTokens(ANTLRv4Parser.OR); }
public TerminalNode OR(int i) {
return getToken(ANTLRv4Parser.OR, i);
}
public AltListContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_altList; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterAltList(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitAltList(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitAltList(this);
else return visitor.visitChildren(this);
}
}
public final AltListContext altList() throws RecognitionException {
AltListContext _localctx = new AltListContext(_ctx, getState());
enterRule(_localctx, 88, RULE_altList);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(470);
alternative();
setState(475);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==OR) {
{
{
setState(471);
match(OR);
setState(472);
alternative();
}
}
setState(477);
_errHandler.sync(this);
_la = _input.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class AlternativeContext extends ParserRuleContext {
public ElementOptionsContext elementOptions() {
return getRuleContext(ElementOptionsContext.class,0);
}
public List element() {
return getRuleContexts(ElementContext.class);
}
public ElementContext element(int i) {
return getRuleContext(ElementContext.class,i);
}
public AlternativeContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_alternative; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterAlternative(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitAlternative(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitAlternative(this);
else return visitor.visitChildren(this);
}
}
public final AlternativeContext alternative() throws RecognitionException {
AlternativeContext _localctx = new AlternativeContext(_ctx, getState());
enterRule(_localctx, 90, RULE_alternative);
int _la;
try {
setState(487);
_errHandler.sync(this);
switch (_input.LA(1)) {
case TOKEN_REF:
case RULE_REF:
case STRING_LITERAL:
case BEGIN_ACTION:
case LPAREN:
case LT:
case DOT:
case NOT:
enterOuterAlt(_localctx, 1);
{
setState(479);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==LT) {
{
setState(478);
elementOptions();
}
}
setState(482);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(481);
element();
}
}
setState(484);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << TOKEN_REF) | (1L << RULE_REF) | (1L << STRING_LITERAL) | (1L << BEGIN_ACTION) | (1L << LPAREN) | (1L << DOT) | (1L << NOT))) != 0) );
}
break;
case SEMI:
case RPAREN:
case OR:
case POUND:
enterOuterAlt(_localctx, 2);
{
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ElementContext extends ParserRuleContext {
public LabeledElementContext labeledElement() {
return getRuleContext(LabeledElementContext.class,0);
}
public EbnfSuffixContext ebnfSuffix() {
return getRuleContext(EbnfSuffixContext.class,0);
}
public AtomContext atom() {
return getRuleContext(AtomContext.class,0);
}
public EbnfContext ebnf() {
return getRuleContext(EbnfContext.class,0);
}
public ActionBlockContext actionBlock() {
return getRuleContext(ActionBlockContext.class,0);
}
public TerminalNode QUESTION() { return getToken(ANTLRv4Parser.QUESTION, 0); }
public ElementContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_element; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterElement(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitElement(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitElement(this);
else return visitor.visitChildren(this);
}
}
public final ElementContext element() throws RecognitionException {
ElementContext _localctx = new ElementContext(_ctx, getState());
enterRule(_localctx, 92, RULE_element);
int _la;
try {
setState(504);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,58,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(489);
labeledElement();
setState(492);
_errHandler.sync(this);
switch (_input.LA(1)) {
case QUESTION:
case STAR:
case PLUS:
{
setState(490);
ebnfSuffix();
}
break;
case TOKEN_REF:
case RULE_REF:
case STRING_LITERAL:
case BEGIN_ACTION:
case SEMI:
case LPAREN:
case RPAREN:
case OR:
case DOT:
case POUND:
case NOT:
{
}
break;
default:
throw new NoViableAltException(this);
}
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(494);
atom();
setState(497);
_errHandler.sync(this);
switch (_input.LA(1)) {
case QUESTION:
case STAR:
case PLUS:
{
setState(495);
ebnfSuffix();
}
break;
case TOKEN_REF:
case RULE_REF:
case STRING_LITERAL:
case BEGIN_ACTION:
case SEMI:
case LPAREN:
case RPAREN:
case OR:
case DOT:
case POUND:
case NOT:
{
}
break;
default:
throw new NoViableAltException(this);
}
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
setState(499);
ebnf();
}
break;
case 4:
enterOuterAlt(_localctx, 4);
{
setState(500);
actionBlock();
setState(502);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==QUESTION) {
{
setState(501);
match(QUESTION);
}
}
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class LabeledElementContext extends ParserRuleContext {
public IdentifierContext identifier() {
return getRuleContext(IdentifierContext.class,0);
}
public TerminalNode ASSIGN() { return getToken(ANTLRv4Parser.ASSIGN, 0); }
public TerminalNode PLUS_ASSIGN() { return getToken(ANTLRv4Parser.PLUS_ASSIGN, 0); }
public AtomContext atom() {
return getRuleContext(AtomContext.class,0);
}
public BlockContext block() {
return getRuleContext(BlockContext.class,0);
}
public LabeledElementContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_labeledElement; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterLabeledElement(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitLabeledElement(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitLabeledElement(this);
else return visitor.visitChildren(this);
}
}
public final LabeledElementContext labeledElement() throws RecognitionException {
LabeledElementContext _localctx = new LabeledElementContext(_ctx, getState());
enterRule(_localctx, 94, RULE_labeledElement);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(506);
identifier();
setState(507);
_la = _input.LA(1);
if ( !(_la==ASSIGN || _la==PLUS_ASSIGN) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
setState(510);
_errHandler.sync(this);
switch (_input.LA(1)) {
case TOKEN_REF:
case RULE_REF:
case STRING_LITERAL:
case DOT:
case NOT:
{
setState(508);
atom();
}
break;
case LPAREN:
{
setState(509);
block();
}
break;
default:
throw new NoViableAltException(this);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class EbnfContext extends ParserRuleContext {
public BlockContext block() {
return getRuleContext(BlockContext.class,0);
}
public BlockSuffixContext blockSuffix() {
return getRuleContext(BlockSuffixContext.class,0);
}
public EbnfContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_ebnf; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterEbnf(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitEbnf(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitEbnf(this);
else return visitor.visitChildren(this);
}
}
public final EbnfContext ebnf() throws RecognitionException {
EbnfContext _localctx = new EbnfContext(_ctx, getState());
enterRule(_localctx, 96, RULE_ebnf);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(512);
block();
setState(514);
_errHandler.sync(this);
_la = _input.LA(1);
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << QUESTION) | (1L << STAR) | (1L << PLUS))) != 0)) {
{
setState(513);
blockSuffix();
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class BlockSuffixContext extends ParserRuleContext {
public EbnfSuffixContext ebnfSuffix() {
return getRuleContext(EbnfSuffixContext.class,0);
}
public BlockSuffixContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_blockSuffix; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterBlockSuffix(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitBlockSuffix(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitBlockSuffix(this);
else return visitor.visitChildren(this);
}
}
public final BlockSuffixContext blockSuffix() throws RecognitionException {
BlockSuffixContext _localctx = new BlockSuffixContext(_ctx, getState());
enterRule(_localctx, 98, RULE_blockSuffix);
try {
enterOuterAlt(_localctx, 1);
{
setState(516);
ebnfSuffix();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class EbnfSuffixContext extends ParserRuleContext {
public List QUESTION() { return getTokens(ANTLRv4Parser.QUESTION); }
public TerminalNode QUESTION(int i) {
return getToken(ANTLRv4Parser.QUESTION, i);
}
public TerminalNode STAR() { return getToken(ANTLRv4Parser.STAR, 0); }
public TerminalNode PLUS() { return getToken(ANTLRv4Parser.PLUS, 0); }
public EbnfSuffixContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_ebnfSuffix; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterEbnfSuffix(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitEbnfSuffix(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitEbnfSuffix(this);
else return visitor.visitChildren(this);
}
}
public final EbnfSuffixContext ebnfSuffix() throws RecognitionException {
EbnfSuffixContext _localctx = new EbnfSuffixContext(_ctx, getState());
enterRule(_localctx, 100, RULE_ebnfSuffix);
int _la;
try {
setState(530);
_errHandler.sync(this);
switch (_input.LA(1)) {
case QUESTION:
enterOuterAlt(_localctx, 1);
{
setState(518);
match(QUESTION);
setState(520);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==QUESTION) {
{
setState(519);
match(QUESTION);
}
}
}
break;
case STAR:
enterOuterAlt(_localctx, 2);
{
setState(522);
match(STAR);
setState(524);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==QUESTION) {
{
setState(523);
match(QUESTION);
}
}
}
break;
case PLUS:
enterOuterAlt(_localctx, 3);
{
setState(526);
match(PLUS);
setState(528);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==QUESTION) {
{
setState(527);
match(QUESTION);
}
}
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class LexerAtomContext extends ParserRuleContext {
public CharacterRangeContext characterRange() {
return getRuleContext(CharacterRangeContext.class,0);
}
public TerminalContext terminal() {
return getRuleContext(TerminalContext.class,0);
}
public NotSetContext notSet() {
return getRuleContext(NotSetContext.class,0);
}
public TerminalNode LEXER_CHAR_SET() { return getToken(ANTLRv4Parser.LEXER_CHAR_SET, 0); }
public TerminalNode DOT() { return getToken(ANTLRv4Parser.DOT, 0); }
public ElementOptionsContext elementOptions() {
return getRuleContext(ElementOptionsContext.class,0);
}
public LexerAtomContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_lexerAtom; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterLexerAtom(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitLexerAtom(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitLexerAtom(this);
else return visitor.visitChildren(this);
}
}
public final LexerAtomContext lexerAtom() throws RecognitionException {
LexerAtomContext _localctx = new LexerAtomContext(_ctx, getState());
enterRule(_localctx, 102, RULE_lexerAtom);
int _la;
try {
setState(540);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,66,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(532);
characterRange();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(533);
terminal();
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
setState(534);
notSet();
}
break;
case 4:
enterOuterAlt(_localctx, 4);
{
setState(535);
match(LEXER_CHAR_SET);
}
break;
case 5:
enterOuterAlt(_localctx, 5);
{
setState(536);
match(DOT);
setState(538);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==LT) {
{
setState(537);
elementOptions();
}
}
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class AtomContext extends ParserRuleContext {
public TerminalContext terminal() {
return getRuleContext(TerminalContext.class,0);
}
public RulerefContext ruleref() {
return getRuleContext(RulerefContext.class,0);
}
public NotSetContext notSet() {
return getRuleContext(NotSetContext.class,0);
}
public TerminalNode DOT() { return getToken(ANTLRv4Parser.DOT, 0); }
public ElementOptionsContext elementOptions() {
return getRuleContext(ElementOptionsContext.class,0);
}
public AtomContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_atom; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterAtom(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitAtom(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitAtom(this);
else return visitor.visitChildren(this);
}
}
public final AtomContext atom() throws RecognitionException {
AtomContext _localctx = new AtomContext(_ctx, getState());
enterRule(_localctx, 104, RULE_atom);
int _la;
try {
setState(549);
_errHandler.sync(this);
switch (_input.LA(1)) {
case TOKEN_REF:
case STRING_LITERAL:
enterOuterAlt(_localctx, 1);
{
setState(542);
terminal();
}
break;
case RULE_REF:
enterOuterAlt(_localctx, 2);
{
setState(543);
ruleref();
}
break;
case NOT:
enterOuterAlt(_localctx, 3);
{
setState(544);
notSet();
}
break;
case DOT:
enterOuterAlt(_localctx, 4);
{
setState(545);
match(DOT);
setState(547);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==LT) {
{
setState(546);
elementOptions();
}
}
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class NotSetContext extends ParserRuleContext {
public TerminalNode NOT() { return getToken(ANTLRv4Parser.NOT, 0); }
public SetElementContext setElement() {
return getRuleContext(SetElementContext.class,0);
}
public BlockSetContext blockSet() {
return getRuleContext(BlockSetContext.class,0);
}
public NotSetContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_notSet; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterNotSet(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitNotSet(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitNotSet(this);
else return visitor.visitChildren(this);
}
}
public final NotSetContext notSet() throws RecognitionException {
NotSetContext _localctx = new NotSetContext(_ctx, getState());
enterRule(_localctx, 106, RULE_notSet);
try {
setState(555);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,69,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(551);
match(NOT);
setState(552);
setElement();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(553);
match(NOT);
setState(554);
blockSet();
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class BlockSetContext extends ParserRuleContext {
public TerminalNode LPAREN() { return getToken(ANTLRv4Parser.LPAREN, 0); }
public List setElement() {
return getRuleContexts(SetElementContext.class);
}
public SetElementContext setElement(int i) {
return getRuleContext(SetElementContext.class,i);
}
public TerminalNode RPAREN() { return getToken(ANTLRv4Parser.RPAREN, 0); }
public List OR() { return getTokens(ANTLRv4Parser.OR); }
public TerminalNode OR(int i) {
return getToken(ANTLRv4Parser.OR, i);
}
public BlockSetContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_blockSet; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterBlockSet(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitBlockSet(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitBlockSet(this);
else return visitor.visitChildren(this);
}
}
public final BlockSetContext blockSet() throws RecognitionException {
BlockSetContext _localctx = new BlockSetContext(_ctx, getState());
enterRule(_localctx, 108, RULE_blockSet);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(557);
match(LPAREN);
setState(558);
setElement();
setState(563);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==OR) {
{
{
setState(559);
match(OR);
setState(560);
setElement();
}
}
setState(565);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(566);
match(RPAREN);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class SetElementContext extends ParserRuleContext {
public TerminalNode TOKEN_REF() { return getToken(ANTLRv4Parser.TOKEN_REF, 0); }
public ElementOptionsContext elementOptions() {
return getRuleContext(ElementOptionsContext.class,0);
}
public TerminalNode STRING_LITERAL() { return getToken(ANTLRv4Parser.STRING_LITERAL, 0); }
public CharacterRangeContext characterRange() {
return getRuleContext(CharacterRangeContext.class,0);
}
public TerminalNode LEXER_CHAR_SET() { return getToken(ANTLRv4Parser.LEXER_CHAR_SET, 0); }
public SetElementContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_setElement; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterSetElement(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitSetElement(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitSetElement(this);
else return visitor.visitChildren(this);
}
}
public final SetElementContext setElement() throws RecognitionException {
SetElementContext _localctx = new SetElementContext(_ctx, getState());
enterRule(_localctx, 110, RULE_setElement);
int _la;
try {
setState(578);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,73,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(568);
match(TOKEN_REF);
setState(570);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==LT) {
{
setState(569);
elementOptions();
}
}
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(572);
match(STRING_LITERAL);
setState(574);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==LT) {
{
setState(573);
elementOptions();
}
}
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
setState(576);
characterRange();
}
break;
case 4:
enterOuterAlt(_localctx, 4);
{
setState(577);
match(LEXER_CHAR_SET);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class BlockContext extends ParserRuleContext {
public TerminalNode LPAREN() { return getToken(ANTLRv4Parser.LPAREN, 0); }
public AltListContext altList() {
return getRuleContext(AltListContext.class,0);
}
public TerminalNode RPAREN() { return getToken(ANTLRv4Parser.RPAREN, 0); }
public TerminalNode COLON() { return getToken(ANTLRv4Parser.COLON, 0); }
public OptionsSpecContext optionsSpec() {
return getRuleContext(OptionsSpecContext.class,0);
}
public List ruleAction() {
return getRuleContexts(RuleActionContext.class);
}
public RuleActionContext ruleAction(int i) {
return getRuleContext(RuleActionContext.class,i);
}
public BlockContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_block; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterBlock(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitBlock(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitBlock(this);
else return visitor.visitChildren(this);
}
}
public final BlockContext block() throws RecognitionException {
BlockContext _localctx = new BlockContext(_ctx, getState());
enterRule(_localctx, 112, RULE_block);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(580);
match(LPAREN);
setState(591);
_errHandler.sync(this);
_la = _input.LA(1);
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << OPTIONS) | (1L << COLON) | (1L << AT))) != 0)) {
{
setState(582);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==OPTIONS) {
{
setState(581);
optionsSpec();
}
}
setState(587);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==AT) {
{
{
setState(584);
ruleAction();
}
}
setState(589);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(590);
match(COLON);
}
}
setState(593);
altList();
setState(594);
match(RPAREN);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class RulerefContext extends ParserRuleContext {
public TerminalNode RULE_REF() { return getToken(ANTLRv4Parser.RULE_REF, 0); }
public ArgActionBlockContext argActionBlock() {
return getRuleContext(ArgActionBlockContext.class,0);
}
public ElementOptionsContext elementOptions() {
return getRuleContext(ElementOptionsContext.class,0);
}
public RulerefContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_ruleref; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterRuleref(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitRuleref(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitRuleref(this);
else return visitor.visitChildren(this);
}
}
public final RulerefContext ruleref() throws RecognitionException {
RulerefContext _localctx = new RulerefContext(_ctx, getState());
enterRule(_localctx, 114, RULE_ruleref);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(596);
match(RULE_REF);
setState(598);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==BEGIN_ARGUMENT) {
{
setState(597);
argActionBlock();
}
}
setState(601);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==LT) {
{
setState(600);
elementOptions();
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class CharacterRangeContext extends ParserRuleContext {
public List STRING_LITERAL() { return getTokens(ANTLRv4Parser.STRING_LITERAL); }
public TerminalNode STRING_LITERAL(int i) {
return getToken(ANTLRv4Parser.STRING_LITERAL, i);
}
public TerminalNode RANGE() { return getToken(ANTLRv4Parser.RANGE, 0); }
public CharacterRangeContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_characterRange; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterCharacterRange(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitCharacterRange(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitCharacterRange(this);
else return visitor.visitChildren(this);
}
}
public final CharacterRangeContext characterRange() throws RecognitionException {
CharacterRangeContext _localctx = new CharacterRangeContext(_ctx, getState());
enterRule(_localctx, 116, RULE_characterRange);
try {
enterOuterAlt(_localctx, 1);
{
setState(603);
match(STRING_LITERAL);
setState(604);
match(RANGE);
setState(605);
match(STRING_LITERAL);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class TerminalContext extends ParserRuleContext {
public TerminalNode TOKEN_REF() { return getToken(ANTLRv4Parser.TOKEN_REF, 0); }
public ElementOptionsContext elementOptions() {
return getRuleContext(ElementOptionsContext.class,0);
}
public TerminalNode STRING_LITERAL() { return getToken(ANTLRv4Parser.STRING_LITERAL, 0); }
public TerminalContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_terminal; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterTerminal(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitTerminal(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitTerminal(this);
else return visitor.visitChildren(this);
}
}
public final TerminalContext terminal() throws RecognitionException {
TerminalContext _localctx = new TerminalContext(_ctx, getState());
enterRule(_localctx, 118, RULE_terminal);
int _la;
try {
setState(615);
_errHandler.sync(this);
switch (_input.LA(1)) {
case TOKEN_REF:
enterOuterAlt(_localctx, 1);
{
setState(607);
match(TOKEN_REF);
setState(609);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==LT) {
{
setState(608);
elementOptions();
}
}
}
break;
case STRING_LITERAL:
enterOuterAlt(_localctx, 2);
{
setState(611);
match(STRING_LITERAL);
setState(613);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==LT) {
{
setState(612);
elementOptions();
}
}
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ElementOptionsContext extends ParserRuleContext {
public TerminalNode LT() { return getToken(ANTLRv4Parser.LT, 0); }
public List elementOption() {
return getRuleContexts(ElementOptionContext.class);
}
public ElementOptionContext elementOption(int i) {
return getRuleContext(ElementOptionContext.class,i);
}
public TerminalNode GT() { return getToken(ANTLRv4Parser.GT, 0); }
public List COMMA() { return getTokens(ANTLRv4Parser.COMMA); }
public TerminalNode COMMA(int i) {
return getToken(ANTLRv4Parser.COMMA, i);
}
public ElementOptionsContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_elementOptions; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterElementOptions(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitElementOptions(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitElementOptions(this);
else return visitor.visitChildren(this);
}
}
public final ElementOptionsContext elementOptions() throws RecognitionException {
ElementOptionsContext _localctx = new ElementOptionsContext(_ctx, getState());
enterRule(_localctx, 120, RULE_elementOptions);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(617);
match(LT);
setState(618);
elementOption();
setState(623);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
setState(619);
match(COMMA);
setState(620);
elementOption();
}
}
setState(625);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(626);
match(GT);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ElementOptionContext extends ParserRuleContext {
public List identifier() {
return getRuleContexts(IdentifierContext.class);
}
public IdentifierContext identifier(int i) {
return getRuleContext(IdentifierContext.class,i);
}
public TerminalNode ASSIGN() { return getToken(ANTLRv4Parser.ASSIGN, 0); }
public TerminalNode STRING_LITERAL() { return getToken(ANTLRv4Parser.STRING_LITERAL, 0); }
public ElementOptionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_elementOption; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterElementOption(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitElementOption(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitElementOption(this);
else return visitor.visitChildren(this);
}
}
public final ElementOptionContext elementOption() throws RecognitionException {
ElementOptionContext _localctx = new ElementOptionContext(_ctx, getState());
enterRule(_localctx, 122, RULE_elementOption);
try {
setState(635);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,84,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(628);
identifier();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(629);
identifier();
setState(630);
match(ASSIGN);
setState(633);
_errHandler.sync(this);
switch (_input.LA(1)) {
case TOKEN_REF:
case RULE_REF:
{
setState(631);
identifier();
}
break;
case STRING_LITERAL:
{
setState(632);
match(STRING_LITERAL);
}
break;
default:
throw new NoViableAltException(this);
}
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class IdentifierContext extends ParserRuleContext {
public TerminalNode RULE_REF() { return getToken(ANTLRv4Parser.RULE_REF, 0); }
public TerminalNode TOKEN_REF() { return getToken(ANTLRv4Parser.TOKEN_REF, 0); }
public IdentifierContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_identifier; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).enterIdentifier(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof ANTLRv4ParserListener ) ((ANTLRv4ParserListener)listener).exitIdentifier(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ANTLRv4ParserVisitor ) return ((ANTLRv4ParserVisitor extends T>)visitor).visitIdentifier(this);
else return visitor.visitChildren(this);
}
}
public final IdentifierContext identifier() throws RecognitionException {
IdentifierContext _localctx = new IdentifierContext(_ctx, getState());
enterRule(_localctx, 124, RULE_identifier);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(637);
_la = _input.LA(1);
if ( !(_la==TOKEN_REF || _la==RULE_REF) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static final String _serializedATN =
"\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3?\u0282\4\2\t\2\4"+
"\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7\4\b\t\b\4\t\t\t\4\n\t\n\4\13\t"+
"\13\4\f\t\f\4\r\t\r\4\16\t\16\4\17\t\17\4\20\t\20\4\21\t\21\4\22\t\22"+
"\4\23\t\23\4\24\t\24\4\25\t\25\4\26\t\26\4\27\t\27\4\30\t\30\4\31\t\31"+
"\4\32\t\32\4\33\t\33\4\34\t\34\4\35\t\35\4\36\t\36\4\37\t\37\4 \t \4!"+
"\t!\4\"\t\"\4#\t#\4$\t$\4%\t%\4&\t&\4\'\t\'\4(\t(\4)\t)\4*\t*\4+\t+\4"+
",\t,\4-\t-\4.\t.\4/\t/\4\60\t\60\4\61\t\61\4\62\t\62\4\63\t\63\4\64\t"+
"\64\4\65\t\65\4\66\t\66\4\67\t\67\48\t8\49\t9\4:\t:\4;\t;\4<\t<\4=\t="+
"\4>\t>\4?\t?\4@\t@\3\2\7\2\u0082\n\2\f\2\16\2\u0085\13\2\3\2\3\2\3\2\3"+
"\2\7\2\u008b\n\2\f\2\16\2\u008e\13\2\3\2\3\2\7\2\u0092\n\2\f\2\16\2\u0095"+
"\13\2\3\2\3\2\3\3\3\3\3\3\3\3\3\3\5\3\u009e\n\3\3\4\3\4\3\4\3\4\3\4\5"+
"\4\u00a5\n\4\3\5\3\5\3\5\3\5\3\5\7\5\u00ac\n\5\f\5\16\5\u00af\13\5\3\5"+
"\3\5\3\6\3\6\3\6\3\6\3\7\3\7\3\7\7\7\u00ba\n\7\f\7\16\7\u00bd\13\7\3\7"+
"\3\7\3\7\5\7\u00c2\n\7\3\b\3\b\3\b\3\b\7\b\u00c8\n\b\f\b\16\b\u00cb\13"+
"\b\3\b\3\b\3\t\3\t\3\t\3\t\3\t\5\t\u00d4\n\t\3\n\3\n\3\n\5\n\u00d9\n\n"+
"\3\n\3\n\3\13\3\13\3\13\5\13\u00e0\n\13\3\13\3\13\3\f\3\f\3\f\7\f\u00e7"+
"\n\f\f\f\16\f\u00ea\13\f\3\f\5\f\u00ed\n\f\3\r\3\r\3\r\3\r\5\r\u00f3\n"+
"\r\3\r\3\r\3\r\3\16\3\16\3\16\5\16\u00fb\n\16\3\17\3\17\7\17\u00ff\n\17"+
"\f\17\16\17\u0102\13\17\3\17\3\17\3\20\3\20\7\20\u0108\n\20\f\20\16\20"+
"\u010b\13\20\3\20\3\20\3\21\3\21\3\21\3\21\7\21\u0113\n\21\f\21\16\21"+
"\u0116\13\21\3\22\7\22\u0119\n\22\f\22\16\22\u011c\13\22\3\23\3\23\5\23"+
"\u0120\n\23\3\24\7\24\u0123\n\24\f\24\16\24\u0126\13\24\3\24\5\24\u0129"+
"\n\24\3\24\3\24\5\24\u012d\n\24\3\24\5\24\u0130\n\24\3\24\5\24\u0133\n"+
"\24\3\24\5\24\u0136\n\24\3\24\7\24\u0139\n\24\f\24\16\24\u013c\13\24\3"+
"\24\3\24\3\24\3\24\3\24\3\25\7\25\u0144\n\25\f\25\16\25\u0147\13\25\3"+
"\25\5\25\u014a\n\25\3\26\3\26\3\26\3\26\3\27\3\27\3\27\3\30\3\30\5\30"+
"\u0155\n\30\3\31\3\31\3\31\3\32\3\32\3\32\3\32\7\32\u015e\n\32\f\32\16"+
"\32\u0161\13\32\3\33\3\33\3\33\3\34\3\34\3\34\3\34\3\35\6\35\u016b\n\35"+
"\r\35\16\35\u016c\3\36\3\36\3\37\3\37\3 \3 \3 \7 \u0176\n \f \16 \u0179"+
"\13 \3!\3!\3!\5!\u017e\n!\3\"\7\"\u0181\n\"\f\"\16\"\u0184\13\"\3\"\5"+
"\"\u0187\n\"\3\"\3\"\3\"\3\"\3\"\3#\3#\3$\3$\3$\7$\u0193\n$\f$\16$\u0196"+
"\13$\3%\3%\5%\u019a\n%\3%\5%\u019d\n%\3&\6&\u01a0\n&\r&\16&\u01a1\3\'"+
"\3\'\5\'\u01a6\n\'\3\'\3\'\5\'\u01aa\n\'\3\'\3\'\5\'\u01ae\n\'\3\'\3\'"+
"\5\'\u01b2\n\'\5\'\u01b4\n\'\3(\3(\3(\3(\5(\u01ba\n(\3)\3)\3)\3)\3*\3"+
"*\3*\3*\7*\u01c4\n*\f*\16*\u01c7\13*\3+\3+\3+\3+\3+\3+\5+\u01cf\n+\3,"+
"\3,\5,\u01d3\n,\3-\3-\5-\u01d7\n-\3.\3.\3.\7.\u01dc\n.\f.\16.\u01df\13"+
".\3/\5/\u01e2\n/\3/\6/\u01e5\n/\r/\16/\u01e6\3/\5/\u01ea\n/\3\60\3\60"+
"\3\60\5\60\u01ef\n\60\3\60\3\60\3\60\5\60\u01f4\n\60\3\60\3\60\3\60\5"+
"\60\u01f9\n\60\5\60\u01fb\n\60\3\61\3\61\3\61\3\61\5\61\u0201\n\61\3\62"+
"\3\62\5\62\u0205\n\62\3\63\3\63\3\64\3\64\5\64\u020b\n\64\3\64\3\64\5"+
"\64\u020f\n\64\3\64\3\64\5\64\u0213\n\64\5\64\u0215\n\64\3\65\3\65\3\65"+
"\3\65\3\65\3\65\5\65\u021d\n\65\5\65\u021f\n\65\3\66\3\66\3\66\3\66\3"+
"\66\5\66\u0226\n\66\5\66\u0228\n\66\3\67\3\67\3\67\3\67\5\67\u022e\n\67"+
"\38\38\38\38\78\u0234\n8\f8\168\u0237\138\38\38\39\39\59\u023d\n9\39\3"+
"9\59\u0241\n9\39\39\59\u0245\n9\3:\3:\5:\u0249\n:\3:\7:\u024c\n:\f:\16"+
":\u024f\13:\3:\5:\u0252\n:\3:\3:\3:\3;\3;\5;\u0259\n;\3;\5;\u025c\n;\3"+
"<\3<\3<\3<\3=\3=\5=\u0264\n=\3=\3=\5=\u0268\n=\5=\u026a\n=\3>\3>\3>\3"+
">\7>\u0270\n>\f>\16>\u0273\13>\3>\3>\3?\3?\3?\3?\3?\5?\u027c\n?\5?\u027e"+
"\n?\3@\3@\3@\2\2A\2\4\6\b\n\f\16\20\22\24\26\30\32\34\36 \"$&(*,.\60\62"+
"\64\668:<>@BDFHJLNPRTVXZ\\^`bdfhjlnprtvxz|~\2\5\4\2\22\22\26\30\4\2**"+
"--\3\2\3\4\2\u02aa\2\u0083\3\2\2\2\4\u009d\3\2\2\2\6\u00a4\3\2\2\2\b\u00a6"+
"\3\2\2\2\n\u00b2\3\2\2\2\f\u00c1\3\2\2\2\16\u00c3\3\2\2\2\20\u00d3\3\2"+
"\2\2\22\u00d5\3\2\2\2\24\u00dc\3\2\2\2\26\u00e3\3\2\2\2\30\u00ee\3\2\2"+
"\2\32\u00fa\3\2\2\2\34\u00fc\3\2\2\2\36\u0105\3\2\2\2 \u010e\3\2\2\2\""+
"\u011a\3\2\2\2$\u011f\3\2\2\2&\u0124\3\2\2\2(\u0145\3\2\2\2*\u014b\3\2"+
"\2\2,\u014f\3\2\2\2.\u0154\3\2\2\2\60\u0156\3\2\2\2\62\u0159\3\2\2\2\64"+
"\u0162\3\2\2\2\66\u0165\3\2\2\28\u016a\3\2\2\2:\u016e\3\2\2\2<\u0170\3"+
"\2\2\2>\u0172\3\2\2\2@\u017a\3\2\2\2B\u0182\3\2\2\2D\u018d\3\2\2\2F\u018f"+
"\3\2\2\2H\u019c\3\2\2\2J\u019f\3\2\2\2L\u01b3\3\2\2\2N\u01b5\3\2\2\2P"+
"\u01bb\3\2\2\2R\u01bf\3\2\2\2T\u01ce\3\2\2\2V\u01d2\3\2\2\2X\u01d6\3\2"+
"\2\2Z\u01d8\3\2\2\2\\\u01e9\3\2\2\2^\u01fa\3\2\2\2`\u01fc\3\2\2\2b\u0202"+
"\3\2\2\2d\u0206\3\2\2\2f\u0214\3\2\2\2h\u021e\3\2\2\2j\u0227\3\2\2\2l"+
"\u022d\3\2\2\2n\u022f\3\2\2\2p\u0244\3\2\2\2r\u0246\3\2\2\2t\u0256\3\2"+
"\2\2v\u025d\3\2\2\2x\u0269\3\2\2\2z\u026b\3\2\2\2|\u027d\3\2\2\2~\u027f"+
"\3\2\2\2\u0080\u0082\7\6\2\2\u0081\u0080\3\2\2\2\u0082\u0085\3\2\2\2\u0083"+
"\u0081\3\2\2\2\u0083\u0084\3\2\2\2\u0084\u0086\3\2\2\2\u0085\u0083\3\2"+
"\2\2\u0086\u0087\5\4\3\2\u0087\u0088\5~@\2\u0088\u008c\7\"\2\2\u0089\u008b"+
"\5\6\4\2\u008a\u0089\3\2\2\2\u008b\u008e\3\2\2\2\u008c\u008a\3\2\2\2\u008c"+
"\u008d\3\2\2\2\u008d\u008f\3\2\2\2\u008e\u008c\3\2\2\2\u008f\u0093\5\""+
"\22\2\u0090\u0092\5 \21\2\u0091\u0090\3\2\2\2\u0092\u0095\3\2\2\2\u0093"+
"\u0091\3\2\2\2\u0093\u0094\3\2\2\2\u0094\u0096\3\2\2\2\u0095\u0093\3\2"+
"\2\2\u0096\u0097\7\2\2\3\u0097\3\3\2\2\2\u0098\u0099\7\23\2\2\u0099\u009e"+
"\7\25\2\2\u009a\u009b\7\24\2\2\u009b\u009e\7\25\2\2\u009c\u009e\7\25\2"+
"\2\u009d\u0098\3\2\2\2\u009d\u009a\3\2\2\2\u009d\u009c\3\2\2\2\u009e\5"+
"\3\2\2\2\u009f\u00a5\5\b\5\2\u00a0\u00a5\5\16\b\2\u00a1\u00a5\5\22\n\2"+
"\u00a2\u00a5\5\24\13\2\u00a3\u00a5\5\30\r\2\u00a4\u009f\3\2\2\2\u00a4"+
"\u00a0\3\2\2\2\u00a4\u00a1\3\2\2\2\u00a4\u00a2\3\2\2\2\u00a4\u00a3\3\2"+
"\2\2\u00a5\7\3\2\2\2\u00a6\u00a7\7\16\2\2\u00a7\u00ad\7%\2\2\u00a8\u00a9"+
"\5\n\6\2\u00a9\u00aa\7\"\2\2\u00aa\u00ac\3\2\2\2\u00ab\u00a8\3\2\2\2\u00ac"+
"\u00af\3\2\2\2\u00ad\u00ab\3\2\2\2\u00ad\u00ae\3\2\2\2\u00ae\u00b0\3\2"+
"\2\2\u00af\u00ad\3\2\2\2\u00b0\u00b1\7&\2\2\u00b1\t\3\2\2\2\u00b2\u00b3"+
"\5~@\2\u00b3\u00b4\7*\2\2\u00b4\u00b5\5\f\7\2\u00b5\13\3\2\2\2\u00b6\u00bb"+
"\5~@\2\u00b7\u00b8\7\62\2\2\u00b8\u00ba\5~@\2\u00b9\u00b7\3\2\2\2\u00ba"+
"\u00bd\3\2\2\2\u00bb\u00b9\3\2\2\2\u00bb\u00bc\3\2\2\2\u00bc\u00c2\3\2"+
"\2\2\u00bd\u00bb\3\2\2\2\u00be\u00c2\7\n\2\2\u00bf\u00c2\5\34\17\2\u00c0"+
"\u00c2\7\t\2\2\u00c1\u00b6\3\2\2\2\u00c1\u00be\3\2\2\2\u00c1\u00bf\3\2"+
"\2\2\u00c1\u00c0\3\2\2\2\u00c2\r\3\2\2\2\u00c3\u00c4\7\21\2\2\u00c4\u00c9"+
"\5\20\t\2\u00c5\u00c6\7!\2\2\u00c6\u00c8\5\20\t\2\u00c7\u00c5\3\2\2\2"+
"\u00c8\u00cb\3\2\2\2\u00c9\u00c7\3\2\2\2\u00c9\u00ca\3\2\2\2\u00ca\u00cc"+
"\3\2\2\2\u00cb\u00c9\3\2\2\2\u00cc\u00cd\7\"\2\2\u00cd\17\3\2\2\2\u00ce"+
"\u00cf\5~@\2\u00cf\u00d0\7*\2\2\u00d0\u00d1\5~@\2\u00d1\u00d4\3\2\2\2"+
"\u00d2\u00d4\5~@\2\u00d3\u00ce\3\2\2\2\u00d3\u00d2\3\2\2\2\u00d4\21\3"+
"\2\2\2\u00d5\u00d6\7\17\2\2\u00d6\u00d8\7%\2\2\u00d7\u00d9\5\26\f\2\u00d8"+
"\u00d7\3\2\2\2\u00d8\u00d9\3\2\2\2\u00d9\u00da\3\2\2\2\u00da\u00db\7&"+
"\2\2\u00db\23\3\2\2\2\u00dc\u00dd\7\20\2\2\u00dd\u00df\7%\2\2\u00de\u00e0"+
"\5\26\f\2\u00df\u00de\3\2\2\2\u00df\u00e0\3\2\2\2\u00e0\u00e1\3\2\2\2"+
"\u00e1\u00e2\7&\2\2\u00e2\25\3\2\2\2\u00e3\u00e8\5~@\2\u00e4\u00e5\7!"+
"\2\2\u00e5\u00e7\5~@\2\u00e6\u00e4\3\2\2\2\u00e7\u00ea\3\2\2\2\u00e8\u00e6"+
"\3\2\2\2\u00e8\u00e9\3\2\2\2\u00e9\u00ec\3\2\2\2\u00ea\u00e8\3\2\2\2\u00eb"+
"\u00ed\7!\2\2\u00ec\u00eb\3\2\2\2\u00ec\u00ed\3\2\2\2\u00ed\27\3\2\2\2"+
"\u00ee\u00f2\7\63\2\2\u00ef\u00f0\5\32\16\2\u00f0\u00f1\7 \2\2\u00f1\u00f3"+
"\3\2\2\2\u00f2\u00ef\3\2\2\2\u00f2\u00f3\3\2\2\2\u00f3\u00f4\3\2\2\2\u00f4"+
"\u00f5\5~@\2\u00f5\u00f6\5\34\17\2\u00f6\31\3\2\2\2\u00f7\u00fb\5~@\2"+
"\u00f8\u00fb\7\23\2\2\u00f9\u00fb\7\24\2\2\u00fa\u00f7\3\2\2\2\u00fa\u00f8"+
"\3\2\2\2\u00fa\u00f9\3\2\2\2\u00fb\33\3\2\2\2\u00fc\u0100\7\r\2\2\u00fd"+
"\u00ff\7>\2\2\u00fe\u00fd\3\2\2\2\u00ff\u0102\3\2\2\2\u0100\u00fe\3\2"+
"\2\2\u0100\u0101\3\2\2\2\u0101\u0103\3\2\2\2\u0102\u0100\3\2\2\2\u0103"+
"\u0104\7<\2\2\u0104\35\3\2\2\2\u0105\u0109\7\f\2\2\u0106\u0108\7;\2\2"+
"\u0107\u0106\3\2\2\2\u0108\u010b\3\2\2\2\u0109\u0107\3\2\2\2\u0109\u010a"+
"\3\2\2\2\u010a\u010c\3\2\2\2\u010b\u0109\3\2\2\2\u010c\u010d\79\2\2\u010d"+
"\37\3\2\2\2\u010e\u010f\7\36\2\2\u010f\u0110\5~@\2\u0110\u0114\7\"\2\2"+
"\u0111\u0113\5B\"\2\u0112\u0111\3\2\2\2\u0113\u0116\3\2\2\2\u0114\u0112"+
"\3\2\2\2\u0114\u0115\3\2\2\2\u0115!\3\2\2\2\u0116\u0114\3\2\2\2\u0117"+
"\u0119\5$\23\2\u0118\u0117\3\2\2\2\u0119\u011c\3\2\2\2\u011a\u0118\3\2"+
"\2\2\u011a\u011b\3\2\2\2\u011b#\3\2\2\2\u011c\u011a\3\2\2\2\u011d\u0120"+
"\5&\24\2\u011e\u0120\5B\"\2\u011f\u011d\3\2\2\2\u011f\u011e\3\2\2\2\u0120"+
"%\3\2\2\2\u0121\u0123\7\6\2\2\u0122\u0121\3\2\2\2\u0123\u0126\3\2\2\2"+
"\u0124\u0122\3\2\2\2\u0124\u0125\3\2\2\2\u0125\u0128\3\2\2\2\u0126\u0124"+
"\3\2\2\2\u0127\u0129\58\35\2\u0128\u0127\3\2\2\2\u0128\u0129\3\2\2\2\u0129"+
"\u012a\3\2\2\2\u012a\u012c\7\4\2\2\u012b\u012d\5\36\20\2\u012c\u012b\3"+
"\2\2\2\u012c\u012d\3\2\2\2\u012d\u012f\3\2\2\2\u012e\u0130\5\60\31\2\u012f"+
"\u012e\3\2\2\2\u012f\u0130\3\2\2\2\u0130\u0132\3\2\2\2\u0131\u0133\5\62"+
"\32\2\u0132\u0131\3\2\2\2\u0132\u0133\3\2\2\2\u0133\u0135\3\2\2\2\u0134"+
"\u0136\5\64\33\2\u0135\u0134\3\2\2\2\u0135\u0136\3\2\2\2\u0136\u013a\3"+
"\2\2\2\u0137\u0139\5.\30\2\u0138\u0137\3\2\2\2\u0139\u013c\3\2\2\2\u013a"+
"\u0138\3\2\2\2\u013a\u013b\3\2\2\2\u013b\u013d\3\2\2\2\u013c\u013a\3\2"+
"\2\2\u013d\u013e\7\37\2\2\u013e\u013f\5<\37\2\u013f\u0140\7\"\2\2\u0140"+
"\u0141\5(\25\2\u0141\'\3\2\2\2\u0142\u0144\5*\26\2\u0143\u0142\3\2\2\2"+
"\u0144\u0147\3\2\2\2\u0145\u0143\3\2\2\2\u0145\u0146\3\2\2\2\u0146\u0149"+
"\3\2\2\2\u0147\u0145\3\2\2\2\u0148\u014a\5,\27\2\u0149\u0148\3\2\2\2\u0149"+
"\u014a\3\2\2\2\u014a)\3\2\2\2\u014b\u014c\7\34\2\2\u014c\u014d\5\36\20"+
"\2\u014d\u014e\5\34\17\2\u014e+\3\2\2\2\u014f\u0150\7\35\2\2\u0150\u0151"+
"\5\34\17\2\u0151-\3\2\2\2\u0152\u0155\5\b\5\2\u0153\u0155\5\66\34\2\u0154"+
"\u0152\3\2\2\2\u0154\u0153\3\2\2\2\u0155/\3\2\2\2\u0156\u0157\7\31\2\2"+
"\u0157\u0158\5\36\20\2\u0158\61\3\2\2\2\u0159\u015a\7\33\2\2\u015a\u015f"+
"\5~@\2\u015b\u015c\7!\2\2\u015c\u015e\5~@\2\u015d\u015b\3\2\2\2\u015e"+
"\u0161\3\2\2\2\u015f\u015d\3\2\2\2\u015f\u0160\3\2\2\2\u0160\63\3\2\2"+
"\2\u0161\u015f\3\2\2\2\u0162\u0163\7\32\2\2\u0163\u0164\5\36\20\2\u0164"+
"\65\3\2\2\2\u0165\u0166\7\63\2\2\u0166\u0167\5~@\2\u0167\u0168\5\34\17"+
"\2\u0168\67\3\2\2\2\u0169\u016b\5:\36\2\u016a\u0169\3\2\2\2\u016b\u016c"+
"\3\2\2\2\u016c\u016a\3\2\2\2\u016c\u016d\3\2\2\2\u016d9\3\2\2\2\u016e"+
"\u016f\t\2\2\2\u016f;\3\2\2\2\u0170\u0171\5> \2\u0171=\3\2\2\2\u0172\u0177"+
"\5@!\2\u0173\u0174\7/\2\2\u0174\u0176\5@!\2\u0175\u0173\3\2\2\2\u0176"+
"\u0179\3\2\2\2\u0177\u0175\3\2\2\2\u0177\u0178\3\2\2\2\u0178?\3\2\2\2"+
"\u0179\u0177\3\2\2\2\u017a\u017d\5\\/\2\u017b\u017c\7\64\2\2\u017c\u017e"+
"\5~@\2\u017d\u017b\3\2\2\2\u017d\u017e\3\2\2\2\u017eA\3\2\2\2\u017f\u0181"+
"\7\6\2\2\u0180\u017f\3\2\2\2\u0181\u0184\3\2\2\2\u0182\u0180\3\2\2\2\u0182"+
"\u0183\3\2\2\2\u0183\u0186\3\2\2\2\u0184\u0182\3\2\2\2\u0185\u0187\7\22"+
"\2\2\u0186\u0185\3\2\2\2\u0186\u0187\3\2\2\2\u0187\u0188\3\2\2\2\u0188"+
"\u0189\7\3\2\2\u0189\u018a\7\37\2\2\u018a\u018b\5D#\2\u018b\u018c\7\""+
"\2\2\u018cC\3\2\2\2\u018d\u018e\5F$\2\u018eE\3\2\2\2\u018f\u0194\5H%\2"+
"\u0190\u0191\7/\2\2\u0191\u0193\5H%\2\u0192\u0190\3\2\2\2\u0193\u0196"+
"\3\2\2\2\u0194\u0192\3\2\2\2\u0194\u0195\3\2\2\2\u0195G\3\2\2\2\u0196"+
"\u0194\3\2\2\2\u0197\u0199\5J&\2\u0198\u019a\5R*\2\u0199\u0198\3\2\2\2"+
"\u0199\u019a\3\2\2\2\u019a\u019d\3\2\2\2\u019b\u019d\3\2\2\2\u019c\u0197"+
"\3\2\2\2\u019c\u019b\3\2\2\2\u019dI\3\2\2\2\u019e\u01a0\5L\'\2\u019f\u019e"+
"\3\2\2\2\u01a0\u01a1\3\2\2\2\u01a1\u019f\3\2\2\2\u01a1\u01a2\3\2\2\2\u01a2"+
"K\3\2\2\2\u01a3\u01a5\5N(\2\u01a4\u01a6\5f\64\2\u01a5\u01a4\3\2\2\2\u01a5"+
"\u01a6\3\2\2\2\u01a6\u01b4\3\2\2\2\u01a7\u01a9\5h\65\2\u01a8\u01aa\5f"+
"\64\2\u01a9\u01a8\3\2\2\2\u01a9\u01aa\3\2\2\2\u01aa\u01b4\3\2\2\2\u01ab"+
"\u01ad\5P)\2\u01ac\u01ae\5f\64\2\u01ad\u01ac\3\2\2\2\u01ad\u01ae\3\2\2"+
"\2\u01ae\u01b4\3\2\2\2\u01af\u01b1\5\34\17\2\u01b0\u01b2\7+\2\2\u01b1"+
"\u01b0\3\2\2\2\u01b1\u01b2\3\2\2\2\u01b2\u01b4\3\2\2\2\u01b3\u01a3\3\2"+
"\2\2\u01b3\u01a7\3\2\2\2\u01b3\u01ab\3\2\2\2\u01b3\u01af\3\2\2\2\u01b4"+
"M\3\2\2\2\u01b5\u01b6\5~@\2\u01b6\u01b9\t\3\2\2\u01b7\u01ba\5h\65\2\u01b8"+
"\u01ba\5P)\2\u01b9\u01b7\3\2\2\2\u01b9\u01b8\3\2\2\2\u01baO\3\2\2\2\u01bb"+
"\u01bc\7#\2\2\u01bc\u01bd\5F$\2\u01bd\u01be\7$\2\2\u01beQ\3\2\2\2\u01bf"+
"\u01c0\7\'\2\2\u01c0\u01c5\5T+\2\u01c1\u01c2\7!\2\2\u01c2\u01c4\5T+\2"+
"\u01c3\u01c1\3\2\2\2\u01c4\u01c7\3\2\2\2\u01c5\u01c3\3\2\2\2\u01c5\u01c6"+
"\3\2\2\2\u01c6S\3\2\2\2\u01c7\u01c5\3\2\2\2\u01c8\u01c9\5V,\2\u01c9\u01ca"+
"\7#\2\2\u01ca\u01cb\5X-\2\u01cb\u01cc\7$\2\2\u01cc\u01cf\3\2\2\2\u01cd"+
"\u01cf\5V,\2\u01ce\u01c8\3\2\2\2\u01ce\u01cd\3\2\2\2\u01cfU\3\2\2\2\u01d0"+
"\u01d3\5~@\2\u01d1\u01d3\7\36\2\2\u01d2\u01d0\3\2\2\2\u01d2\u01d1\3\2"+
"\2\2\u01d3W\3\2\2\2\u01d4\u01d7\5~@\2\u01d5\u01d7\7\t\2\2\u01d6\u01d4"+
"\3\2\2\2\u01d6\u01d5\3\2\2\2\u01d7Y\3\2\2\2\u01d8\u01dd\5\\/\2\u01d9\u01da"+
"\7/\2\2\u01da\u01dc\5\\/\2\u01db\u01d9\3\2\2\2\u01dc\u01df\3\2\2\2\u01dd"+
"\u01db\3\2\2\2\u01dd\u01de\3\2\2\2\u01de[\3\2\2\2\u01df\u01dd\3\2\2\2"+
"\u01e0\u01e2\5z>\2\u01e1\u01e0\3\2\2\2\u01e1\u01e2\3\2\2\2\u01e2\u01e4"+
"\3\2\2\2\u01e3\u01e5\5^\60\2\u01e4\u01e3\3\2\2\2\u01e5\u01e6\3\2\2\2\u01e6"+
"\u01e4\3\2\2\2\u01e6\u01e7\3\2\2\2\u01e7\u01ea\3\2\2\2\u01e8\u01ea\3\2"+
"\2\2\u01e9\u01e1\3\2\2\2\u01e9\u01e8\3\2\2\2\u01ea]\3\2\2\2\u01eb\u01ee"+
"\5`\61\2\u01ec\u01ef\5f\64\2\u01ed\u01ef\3\2\2\2\u01ee\u01ec\3\2\2\2\u01ee"+
"\u01ed\3\2\2\2\u01ef\u01fb\3\2\2\2\u01f0\u01f3\5j\66\2\u01f1\u01f4\5f"+
"\64\2\u01f2\u01f4\3\2\2\2\u01f3\u01f1\3\2\2\2\u01f3\u01f2\3\2\2\2\u01f4"+
"\u01fb\3\2\2\2\u01f5\u01fb\5b\62\2\u01f6\u01f8\5\34\17\2\u01f7\u01f9\7"+
"+\2\2\u01f8\u01f7\3\2\2\2\u01f8\u01f9\3\2\2\2\u01f9\u01fb\3\2\2\2\u01fa"+
"\u01eb\3\2\2\2\u01fa\u01f0\3\2\2\2\u01fa\u01f5\3\2\2\2\u01fa\u01f6\3\2"+
"\2\2\u01fb_\3\2\2\2\u01fc\u01fd\5~@\2\u01fd\u0200\t\3\2\2\u01fe\u0201"+
"\5j\66\2\u01ff\u0201\5r:\2\u0200\u01fe\3\2\2\2\u0200\u01ff\3\2\2\2\u0201"+
"a\3\2\2\2\u0202\u0204\5r:\2\u0203\u0205\5d\63\2\u0204\u0203\3\2\2\2\u0204"+
"\u0205\3\2\2\2\u0205c\3\2\2\2\u0206\u0207\5f\64\2\u0207e\3\2\2\2\u0208"+
"\u020a\7+\2\2\u0209\u020b\7+\2\2\u020a\u0209\3\2\2\2\u020a\u020b\3\2\2"+
"\2\u020b\u0215\3\2\2\2\u020c\u020e\7,\2\2\u020d\u020f\7+\2\2\u020e\u020d"+
"\3\2\2\2\u020e\u020f\3\2\2\2\u020f\u0215\3\2\2\2\u0210\u0212\7.\2\2\u0211"+
"\u0213\7+\2\2\u0212\u0211\3\2\2\2\u0212\u0213\3\2\2\2\u0213\u0215\3\2"+
"\2\2\u0214\u0208\3\2\2\2\u0214\u020c\3\2\2\2\u0214\u0210\3\2\2\2\u0215"+
"g\3\2\2\2\u0216\u021f\5v<\2\u0217\u021f\5x=\2\u0218\u021f\5l\67\2\u0219"+
"\u021f\7\5\2\2\u021a\u021c\7\62\2\2\u021b\u021d\5z>\2\u021c\u021b\3\2"+
"\2\2\u021c\u021d\3\2\2\2\u021d\u021f\3\2\2\2\u021e\u0216\3\2\2\2\u021e"+
"\u0217\3\2\2\2\u021e\u0218\3\2\2\2\u021e\u0219\3\2\2\2\u021e\u021a\3\2"+
"\2\2\u021fi\3\2\2\2\u0220\u0228\5x=\2\u0221\u0228\5t;\2\u0222\u0228\5"+
"l\67\2\u0223\u0225\7\62\2\2\u0224\u0226\5z>\2\u0225\u0224\3\2\2\2\u0225"+
"\u0226\3\2\2\2\u0226\u0228\3\2\2\2\u0227\u0220\3\2\2\2\u0227\u0221\3\2"+
"\2\2\u0227\u0222\3\2\2\2\u0227\u0223\3\2\2\2\u0228k\3\2\2\2\u0229\u022a"+
"\7\65\2\2\u022a\u022e\5p9\2\u022b\u022c\7\65\2\2\u022c\u022e\5n8\2\u022d"+
"\u0229\3\2\2\2\u022d\u022b\3\2\2\2\u022em\3\2\2\2\u022f\u0230\7#\2\2\u0230"+
"\u0235\5p9\2\u0231\u0232\7/\2\2\u0232\u0234\5p9\2\u0233\u0231\3\2\2\2"+
"\u0234\u0237\3\2\2\2\u0235\u0233\3\2\2\2\u0235\u0236\3\2\2\2\u0236\u0238"+
"\3\2\2\2\u0237\u0235\3\2\2\2\u0238\u0239\7$\2\2\u0239o\3\2\2\2\u023a\u023c"+
"\7\3\2\2\u023b\u023d\5z>\2\u023c\u023b\3\2\2\2\u023c\u023d\3\2\2\2\u023d"+
"\u0245\3\2\2\2\u023e\u0240\7\n\2\2\u023f\u0241\5z>\2\u0240\u023f\3\2\2"+
"\2\u0240\u0241\3\2\2\2\u0241\u0245\3\2\2\2\u0242\u0245\5v<\2\u0243\u0245"+
"\7\5\2\2\u0244\u023a\3\2\2\2\u0244\u023e\3\2\2\2\u0244\u0242\3\2\2\2\u0244"+
"\u0243\3\2\2\2\u0245q\3\2\2\2\u0246\u0251\7#\2\2\u0247\u0249\5\b\5\2\u0248"+
"\u0247\3\2\2\2\u0248\u0249\3\2\2\2\u0249\u024d\3\2\2\2\u024a\u024c\5\66"+
"\34\2\u024b\u024a\3\2\2\2\u024c\u024f\3\2\2\2\u024d\u024b\3\2\2\2\u024d"+
"\u024e\3\2\2\2\u024e\u0250\3\2\2\2\u024f\u024d\3\2\2\2\u0250\u0252\7\37"+
"\2\2\u0251\u0248\3\2\2\2\u0251\u0252\3\2\2\2\u0252\u0253\3\2\2\2\u0253"+
"\u0254\5Z.\2\u0254\u0255\7$\2\2\u0255s\3\2\2\2\u0256\u0258\7\4\2\2\u0257"+
"\u0259\5\36\20\2\u0258\u0257\3\2\2\2\u0258\u0259\3\2\2\2\u0259\u025b\3"+
"\2\2\2\u025a\u025c\5z>\2\u025b\u025a\3\2\2\2\u025b\u025c\3\2\2\2\u025c"+
"u\3\2\2\2\u025d\u025e\7\n\2\2\u025e\u025f\7\61\2\2\u025f\u0260\7\n\2\2"+
"\u0260w\3\2\2\2\u0261\u0263\7\3\2\2\u0262\u0264\5z>\2\u0263\u0262\3\2"+
"\2\2\u0263\u0264\3\2\2\2\u0264\u026a\3\2\2\2\u0265\u0267\7\n\2\2\u0266"+
"\u0268\5z>\2\u0267\u0266\3\2\2\2\u0267\u0268\3\2\2\2\u0268\u026a\3\2\2"+
"\2\u0269\u0261\3\2\2\2\u0269\u0265\3\2\2\2\u026ay\3\2\2\2\u026b\u026c"+
"\7(\2\2\u026c\u0271\5|?\2\u026d\u026e\7!\2\2\u026e\u0270\5|?\2\u026f\u026d"+
"\3\2\2\2\u0270\u0273\3\2\2\2\u0271\u026f\3\2\2\2\u0271\u0272\3\2\2\2\u0272"+
"\u0274\3\2\2\2\u0273\u0271\3\2\2\2\u0274\u0275\7)\2\2\u0275{\3\2\2\2\u0276"+
"\u027e\5~@\2\u0277\u0278\5~@\2\u0278\u027b\7*\2\2\u0279\u027c\5~@\2\u027a"+
"\u027c\7\n\2\2\u027b\u0279\3\2\2\2\u027b\u027a\3\2\2\2\u027c\u027e\3\2"+
"\2\2\u027d\u0276\3\2\2\2\u027d\u0277\3\2\2\2\u027e}\3\2\2\2\u027f\u0280"+
"\t\4\2\2\u0280\177\3\2\2\2W\u0083\u008c\u0093\u009d\u00a4\u00ad\u00bb"+
"\u00c1\u00c9\u00d3\u00d8\u00df\u00e8\u00ec\u00f2\u00fa\u0100\u0109\u0114"+
"\u011a\u011f\u0124\u0128\u012c\u012f\u0132\u0135\u013a\u0145\u0149\u0154"+
"\u015f\u016c\u0177\u017d\u0182\u0186\u0194\u0199\u019c\u01a1\u01a5\u01a9"+
"\u01ad\u01b1\u01b3\u01b9\u01c5\u01ce\u01d2\u01d6\u01dd\u01e1\u01e6\u01e9"+
"\u01ee\u01f3\u01f8\u01fa\u0200\u0204\u020a\u020e\u0212\u0214\u021c\u021e"+
"\u0225\u0227\u022d\u0235\u023c\u0240\u0244\u0248\u024d\u0251\u0258\u025b"+
"\u0263\u0267\u0269\u0271\u027b\u027d";
public static final ATN _ATN =
new ATNDeserializer().deserialize(_serializedATN.toCharArray());
static {
_decisionToDFA = new DFA[_ATN.getNumberOfDecisions()];
for (int i = 0; i < _ATN.getNumberOfDecisions(); i++) {
_decisionToDFA[i] = new DFA(_ATN.getDecisionState(i), i);
}
}
}