TypeParser.java
// Generated from org/lightjason/agentspeak/grammar/Type.g4 by ANTLR 4.7.1
package org.lightjason.agentspeak.grammar;
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 TypeParser extends Parser {
static { RuntimeMetaData.checkVersion("4.7.1", RuntimeMetaData.VERSION); }
protected static final DFA[] _decisionToDFA;
protected static final PredictionContextCache _sharedContextCache =
new PredictionContextCache();
public static final int
BINARYOPERATOR=1, UNARYOPERATOR=2, STRING=3, LOGICALVALUE=4, CONSTANTNUMBER=5,
EXCLAMATIONMARK=6, STRONGNEGATION=7, COMMA=8, PLUS=9, MINUS=10, DOUBLEEXCLAMATIONMARK=11,
QUESTIONMARK=12, DOLLAR=13, LEFTARROW=14, RIGHTARROW=15, RULEOPERATOR=16,
AT=17, COLON=18, SEMICOLON=19, DOT=20, UNDERSCORE=21, SLASH=22, LEFTROUNDBRACKET=23,
RIGHTROUNDBRACKET=24, LEFTANGULARBRACKET=25, RIGHTANGULARBRACKET=26, LEFTCURVEDBRACKET=27,
RIGHTCURVEDBRACKET=28, LEFTSHIFT=29, RIGHTSHIFT=30, PARALLEL=31, ATOMIC=32,
CONSTANT=33, VLINE=34, AND=35, OR=36, XOR=37, ASSIGN=38, DECONSTRUCT=39,
LESS=40, LESSEQUAL=41, GREATER=42, GREATEREQUAL=43, EQUAL=44, NOTEQUAL=45,
POW=46, MULTIPLY=47, MODULO=48, LOWERCASELETTER=49, UPPERCASELETTER=50,
DIGIT=51, WHITESPACE=52, LINECOMMENT=53, BLOCKCOMMENT=54;
public static final int
RULE_literal_type = 0, RULE_expression_type = 1, RULE_expression_term = 2,
RULE_executable_term = 3, RULE_term = 4, RULE_unification = 5, RULE_unification_constraint = 6,
RULE_ternary_operation = 7, RULE_ternary_operation_true = 8, RULE_ternary_operation_false = 9,
RULE_expression = 10, RULE_expression_bracket = 11, RULE_expression_logical_and = 12,
RULE_expression_logical_xor = 13, RULE_expression_logical_element = 14,
RULE_expression_logical_negation = 15, RULE_expression_numeric = 16, RULE_expression_numeric_relation = 17,
RULE_expression_numeric_additive = 18, RULE_expression_numeric_multiplicative = 19,
RULE_expression_numeric_power = 20, RULE_expression_numeric_element = 21,
RULE_executable_action = 22, RULE_executable_rule = 23, RULE_variable_evaluate = 24,
RULE_literal = 25, RULE_termlist = 26, RULE_variablelist = 27, RULE_atom = 28,
RULE_variable = 29, RULE_variableatom = 30, RULE_number = 31, RULE_digitsequence = 32;
public static final String[] ruleNames = {
"literal_type", "expression_type", "expression_term", "executable_term",
"term", "unification", "unification_constraint", "ternary_operation",
"ternary_operation_true", "ternary_operation_false", "expression", "expression_bracket",
"expression_logical_and", "expression_logical_xor", "expression_logical_element",
"expression_logical_negation", "expression_numeric", "expression_numeric_relation",
"expression_numeric_additive", "expression_numeric_multiplicative", "expression_numeric_power",
"expression_numeric_element", "executable_action", "executable_rule",
"variable_evaluate", "literal", "termlist", "variablelist", "atom", "variable",
"variableatom", "number", "digitsequence"
};
private static final String[] _LITERAL_NAMES = {
null, null, null, null, null, null, "'!'", "'~'", "','", "'+'", "'-'",
"'!!'", "'?'", "'$'", "'<-'", "'->'", "':-'", "'@'", "':'", "';'", "'.'",
"'_'", "'/'", "'('", "')'", "'['", "']'", "'{'", "'}'", "'<<'", "'>>'",
"'parallel'", "'atomic'", "'constant'", "'|'", "'&&'", "'||'", "'^'",
"'='", "'=..'", "'<'", "'<='", "'>'", "'>='", "'=='", null, "'**'", "'*'",
"'%'"
};
private static final String[] _SYMBOLIC_NAMES = {
null, "BINARYOPERATOR", "UNARYOPERATOR", "STRING", "LOGICALVALUE", "CONSTANTNUMBER",
"EXCLAMATIONMARK", "STRONGNEGATION", "COMMA", "PLUS", "MINUS", "DOUBLEEXCLAMATIONMARK",
"QUESTIONMARK", "DOLLAR", "LEFTARROW", "RIGHTARROW", "RULEOPERATOR", "AT",
"COLON", "SEMICOLON", "DOT", "UNDERSCORE", "SLASH", "LEFTROUNDBRACKET",
"RIGHTROUNDBRACKET", "LEFTANGULARBRACKET", "RIGHTANGULARBRACKET", "LEFTCURVEDBRACKET",
"RIGHTCURVEDBRACKET", "LEFTSHIFT", "RIGHTSHIFT", "PARALLEL", "ATOMIC",
"CONSTANT", "VLINE", "AND", "OR", "XOR", "ASSIGN", "DECONSTRUCT", "LESS",
"LESSEQUAL", "GREATER", "GREATEREQUAL", "EQUAL", "NOTEQUAL", "POW", "MULTIPLY",
"MODULO", "LOWERCASELETTER", "UPPERCASELETTER", "DIGIT", "WHITESPACE",
"LINECOMMENT", "BLOCKCOMMENT"
};
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] = "<INVALID>";
}
}
}
@Override
@Deprecated
public String[] getTokenNames() {
return tokenNames;
}
@Override
public Vocabulary getVocabulary() {
return VOCABULARY;
}
@Override
public String getGrammarFileName() { return "Type.g4"; }
@Override
public String[] getRuleNames() { return ruleNames; }
@Override
public String getSerializedATN() { return _serializedATN; }
@Override
public ATN getATN() { return _ATN; }
public TypeParser(TokenStream input) {
super(input);
_interp = new ParserATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
public static class Literal_typeContext extends ParserRuleContext {
public LiteralContext literal() {
return getRuleContext(LiteralContext.class,0);
}
public Literal_typeContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_literal_type; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitLiteral_type(this);
else return visitor.visitChildren(this);
}
}
public final Literal_typeContext literal_type() throws RecognitionException {
Literal_typeContext _localctx = new Literal_typeContext(_ctx, getState());
enterRule(_localctx, 0, RULE_literal_type);
try {
enterOuterAlt(_localctx, 1);
{
setState(66);
literal();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Expression_typeContext extends ParserRuleContext {
public ExpressionContext expression() {
return getRuleContext(ExpressionContext.class,0);
}
public Expression_typeContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_expression_type; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitExpression_type(this);
else return visitor.visitChildren(this);
}
}
public final Expression_typeContext expression_type() throws RecognitionException {
Expression_typeContext _localctx = new Expression_typeContext(_ctx, getState());
enterRule(_localctx, 2, RULE_expression_type);
try {
enterOuterAlt(_localctx, 1);
{
setState(68);
expression();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Expression_termContext extends ParserRuleContext {
public TermContext term() {
return getRuleContext(TermContext.class,0);
}
public Expression_termContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_expression_term; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitExpression_term(this);
else return visitor.visitChildren(this);
}
}
public final Expression_termContext expression_term() throws RecognitionException {
Expression_termContext _localctx = new Expression_termContext(_ctx, getState());
enterRule(_localctx, 4, RULE_expression_term);
try {
enterOuterAlt(_localctx, 1);
{
setState(70);
term();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Executable_termContext extends ParserRuleContext {
public TerminalNode STRING() { return getToken(TypeParser.STRING, 0); }
public NumberContext number() {
return getRuleContext(NumberContext.class,0);
}
public TerminalNode LOGICALVALUE() { return getToken(TypeParser.LOGICALVALUE, 0); }
public Executable_actionContext executable_action() {
return getRuleContext(Executable_actionContext.class,0);
}
public Executable_ruleContext executable_rule() {
return getRuleContext(Executable_ruleContext.class,0);
}
public ExpressionContext expression() {
return getRuleContext(ExpressionContext.class,0);
}
public Ternary_operationContext ternary_operation() {
return getRuleContext(Ternary_operationContext.class,0);
}
public Executable_termContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_executable_term; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitExecutable_term(this);
else return visitor.visitChildren(this);
}
}
public final Executable_termContext executable_term() throws RecognitionException {
Executable_termContext _localctx = new Executable_termContext(_ctx, getState());
enterRule(_localctx, 6, RULE_executable_term);
try {
setState(79);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,0,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(72);
match(STRING);
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(73);
number();
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
setState(74);
match(LOGICALVALUE);
}
break;
case 4:
enterOuterAlt(_localctx, 4);
{
setState(75);
executable_action();
}
break;
case 5:
enterOuterAlt(_localctx, 5);
{
setState(76);
executable_rule();
}
break;
case 6:
enterOuterAlt(_localctx, 6);
{
setState(77);
expression();
}
break;
case 7:
enterOuterAlt(_localctx, 7);
{
setState(78);
ternary_operation();
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class TermContext extends ParserRuleContext {
public TerminalNode STRING() { return getToken(TypeParser.STRING, 0); }
public NumberContext number() {
return getRuleContext(NumberContext.class,0);
}
public TerminalNode LOGICALVALUE() { return getToken(TypeParser.LOGICALVALUE, 0); }
public LiteralContext literal() {
return getRuleContext(LiteralContext.class,0);
}
public VariableContext variable() {
return getRuleContext(VariableContext.class,0);
}
public VariablelistContext variablelist() {
return getRuleContext(VariablelistContext.class,0);
}
public TerminalNode LEFTANGULARBRACKET() { return getToken(TypeParser.LEFTANGULARBRACKET, 0); }
public TermlistContext termlist() {
return getRuleContext(TermlistContext.class,0);
}
public TerminalNode RIGHTANGULARBRACKET() { return getToken(TypeParser.RIGHTANGULARBRACKET, 0); }
public ExpressionContext expression() {
return getRuleContext(ExpressionContext.class,0);
}
public Ternary_operationContext ternary_operation() {
return getRuleContext(Ternary_operationContext.class,0);
}
public TermContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_term; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitTerm(this);
else return visitor.visitChildren(this);
}
}
public final TermContext term() throws RecognitionException {
TermContext _localctx = new TermContext(_ctx, getState());
enterRule(_localctx, 8, RULE_term);
try {
setState(93);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,1,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(81);
match(STRING);
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(82);
number();
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
setState(83);
match(LOGICALVALUE);
}
break;
case 4:
enterOuterAlt(_localctx, 4);
{
setState(84);
literal();
}
break;
case 5:
enterOuterAlt(_localctx, 5);
{
setState(85);
variable();
}
break;
case 6:
enterOuterAlt(_localctx, 6);
{
setState(86);
variablelist();
}
break;
case 7:
enterOuterAlt(_localctx, 7);
{
setState(87);
match(LEFTANGULARBRACKET);
setState(88);
termlist();
setState(89);
match(RIGHTANGULARBRACKET);
}
break;
case 8:
enterOuterAlt(_localctx, 8);
{
setState(91);
expression();
}
break;
case 9:
enterOuterAlt(_localctx, 9);
{
setState(92);
ternary_operation();
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class UnificationContext extends ParserRuleContext {
public TerminalNode RIGHTSHIFT() { return getToken(TypeParser.RIGHTSHIFT, 0); }
public LiteralContext literal() {
return getRuleContext(LiteralContext.class,0);
}
public TerminalNode LEFTROUNDBRACKET() { return getToken(TypeParser.LEFTROUNDBRACKET, 0); }
public TerminalNode COMMA() { return getToken(TypeParser.COMMA, 0); }
public Unification_constraintContext unification_constraint() {
return getRuleContext(Unification_constraintContext.class,0);
}
public TerminalNode RIGHTROUNDBRACKET() { return getToken(TypeParser.RIGHTROUNDBRACKET, 0); }
public TerminalNode AT() { return getToken(TypeParser.AT, 0); }
public UnificationContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_unification; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitUnification(this);
else return visitor.visitChildren(this);
}
}
public final UnificationContext unification() throws RecognitionException {
UnificationContext _localctx = new UnificationContext(_ctx, getState());
enterRule(_localctx, 10, RULE_unification);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(96);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==AT) {
{
setState(95);
match(AT);
}
}
setState(98);
match(RIGHTSHIFT);
setState(106);
_errHandler.sync(this);
switch (_input.LA(1)) {
case STRONGNEGATION:
case AT:
case LOWERCASELETTER:
{
setState(99);
literal();
}
break;
case LEFTROUNDBRACKET:
{
setState(100);
match(LEFTROUNDBRACKET);
setState(101);
literal();
setState(102);
match(COMMA);
setState(103);
unification_constraint();
setState(104);
match(RIGHTROUNDBRACKET);
}
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 Unification_constraintContext extends ParserRuleContext {
public VariableContext variable() {
return getRuleContext(VariableContext.class,0);
}
public ExpressionContext expression() {
return getRuleContext(ExpressionContext.class,0);
}
public Unification_constraintContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_unification_constraint; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitUnification_constraint(this);
else return visitor.visitChildren(this);
}
}
public final Unification_constraintContext unification_constraint() throws RecognitionException {
Unification_constraintContext _localctx = new Unification_constraintContext(_ctx, getState());
enterRule(_localctx, 12, RULE_unification_constraint);
try {
setState(110);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,4,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(108);
variable();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(109);
expression();
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Ternary_operationContext extends ParserRuleContext {
public ExpressionContext expression() {
return getRuleContext(ExpressionContext.class,0);
}
public Ternary_operation_trueContext ternary_operation_true() {
return getRuleContext(Ternary_operation_trueContext.class,0);
}
public Ternary_operation_falseContext ternary_operation_false() {
return getRuleContext(Ternary_operation_falseContext.class,0);
}
public Ternary_operationContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_ternary_operation; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitTernary_operation(this);
else return visitor.visitChildren(this);
}
}
public final Ternary_operationContext ternary_operation() throws RecognitionException {
Ternary_operationContext _localctx = new Ternary_operationContext(_ctx, getState());
enterRule(_localctx, 14, RULE_ternary_operation);
try {
enterOuterAlt(_localctx, 1);
{
setState(112);
expression();
setState(113);
ternary_operation_true();
setState(114);
ternary_operation_false();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Ternary_operation_trueContext extends ParserRuleContext {
public TerminalNode QUESTIONMARK() { return getToken(TypeParser.QUESTIONMARK, 0); }
public Executable_termContext executable_term() {
return getRuleContext(Executable_termContext.class,0);
}
public Ternary_operation_trueContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_ternary_operation_true; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitTernary_operation_true(this);
else return visitor.visitChildren(this);
}
}
public final Ternary_operation_trueContext ternary_operation_true() throws RecognitionException {
Ternary_operation_trueContext _localctx = new Ternary_operation_trueContext(_ctx, getState());
enterRule(_localctx, 16, RULE_ternary_operation_true);
try {
enterOuterAlt(_localctx, 1);
{
setState(116);
match(QUESTIONMARK);
setState(117);
executable_term();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Ternary_operation_falseContext extends ParserRuleContext {
public TerminalNode COLON() { return getToken(TypeParser.COLON, 0); }
public Executable_termContext executable_term() {
return getRuleContext(Executable_termContext.class,0);
}
public Ternary_operation_falseContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_ternary_operation_false; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitTernary_operation_false(this);
else return visitor.visitChildren(this);
}
}
public final Ternary_operation_falseContext ternary_operation_false() throws RecognitionException {
Ternary_operation_falseContext _localctx = new Ternary_operation_falseContext(_ctx, getState());
enterRule(_localctx, 18, RULE_ternary_operation_false);
try {
enterOuterAlt(_localctx, 1);
{
setState(119);
match(COLON);
setState(120);
executable_term();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ExpressionContext extends ParserRuleContext {
public Expression_bracketContext expression_bracket() {
return getRuleContext(Expression_bracketContext.class,0);
}
public Expression_logical_andContext expression_logical_and() {
return getRuleContext(Expression_logical_andContext.class,0);
}
public List<TerminalNode> OR() { return getTokens(TypeParser.OR); }
public TerminalNode OR(int i) {
return getToken(TypeParser.OR, i);
}
public List<ExpressionContext> expression() {
return getRuleContexts(ExpressionContext.class);
}
public ExpressionContext expression(int i) {
return getRuleContext(ExpressionContext.class,i);
}
public ExpressionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_expression; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitExpression(this);
else return visitor.visitChildren(this);
}
}
public final ExpressionContext expression() throws RecognitionException {
ExpressionContext _localctx = new ExpressionContext(_ctx, getState());
enterRule(_localctx, 20, RULE_expression);
try {
int _alt;
setState(131);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,6,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(122);
expression_bracket();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(123);
expression_logical_and();
setState(128);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,5,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
setState(124);
match(OR);
setState(125);
expression();
}
}
}
setState(130);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,5,_ctx);
}
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Expression_bracketContext extends ParserRuleContext {
public TerminalNode LEFTROUNDBRACKET() { return getToken(TypeParser.LEFTROUNDBRACKET, 0); }
public ExpressionContext expression() {
return getRuleContext(ExpressionContext.class,0);
}
public TerminalNode RIGHTROUNDBRACKET() { return getToken(TypeParser.RIGHTROUNDBRACKET, 0); }
public Expression_bracketContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_expression_bracket; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitExpression_bracket(this);
else return visitor.visitChildren(this);
}
}
public final Expression_bracketContext expression_bracket() throws RecognitionException {
Expression_bracketContext _localctx = new Expression_bracketContext(_ctx, getState());
enterRule(_localctx, 22, RULE_expression_bracket);
try {
enterOuterAlt(_localctx, 1);
{
setState(133);
match(LEFTROUNDBRACKET);
setState(134);
expression();
setState(135);
match(RIGHTROUNDBRACKET);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Expression_logical_andContext extends ParserRuleContext {
public Expression_logical_xorContext expression_logical_xor() {
return getRuleContext(Expression_logical_xorContext.class,0);
}
public List<TerminalNode> AND() { return getTokens(TypeParser.AND); }
public TerminalNode AND(int i) {
return getToken(TypeParser.AND, i);
}
public List<ExpressionContext> expression() {
return getRuleContexts(ExpressionContext.class);
}
public ExpressionContext expression(int i) {
return getRuleContext(ExpressionContext.class,i);
}
public Expression_logical_andContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_expression_logical_and; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitExpression_logical_and(this);
else return visitor.visitChildren(this);
}
}
public final Expression_logical_andContext expression_logical_and() throws RecognitionException {
Expression_logical_andContext _localctx = new Expression_logical_andContext(_ctx, getState());
enterRule(_localctx, 24, RULE_expression_logical_and);
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
setState(137);
expression_logical_xor();
setState(142);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,7,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
setState(138);
match(AND);
setState(139);
expression();
}
}
}
setState(144);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,7,_ctx);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Expression_logical_xorContext extends ParserRuleContext {
public Expression_logical_negationContext expression_logical_negation() {
return getRuleContext(Expression_logical_negationContext.class,0);
}
public Expression_logical_elementContext expression_logical_element() {
return getRuleContext(Expression_logical_elementContext.class,0);
}
public Expression_numericContext expression_numeric() {
return getRuleContext(Expression_numericContext.class,0);
}
public List<TerminalNode> XOR() { return getTokens(TypeParser.XOR); }
public TerminalNode XOR(int i) {
return getToken(TypeParser.XOR, i);
}
public List<ExpressionContext> expression() {
return getRuleContexts(ExpressionContext.class);
}
public ExpressionContext expression(int i) {
return getRuleContext(ExpressionContext.class,i);
}
public Expression_logical_xorContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_expression_logical_xor; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitExpression_logical_xor(this);
else return visitor.visitChildren(this);
}
}
public final Expression_logical_xorContext expression_logical_xor() throws RecognitionException {
Expression_logical_xorContext _localctx = new Expression_logical_xorContext(_ctx, getState());
enterRule(_localctx, 26, RULE_expression_logical_xor);
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
setState(148);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,8,_ctx) ) {
case 1:
{
setState(145);
expression_logical_negation();
}
break;
case 2:
{
setState(146);
expression_logical_element();
}
break;
case 3:
{
setState(147);
expression_numeric();
}
break;
}
setState(154);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,9,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
setState(150);
match(XOR);
setState(151);
expression();
}
}
}
setState(156);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,9,_ctx);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Expression_logical_elementContext extends ParserRuleContext {
public TerminalNode LOGICALVALUE() { return getToken(TypeParser.LOGICALVALUE, 0); }
public VariableContext variable() {
return getRuleContext(VariableContext.class,0);
}
public Executable_actionContext executable_action() {
return getRuleContext(Executable_actionContext.class,0);
}
public Executable_ruleContext executable_rule() {
return getRuleContext(Executable_ruleContext.class,0);
}
public UnificationContext unification() {
return getRuleContext(UnificationContext.class,0);
}
public Expression_logical_elementContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_expression_logical_element; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitExpression_logical_element(this);
else return visitor.visitChildren(this);
}
}
public final Expression_logical_elementContext expression_logical_element() throws RecognitionException {
Expression_logical_elementContext _localctx = new Expression_logical_elementContext(_ctx, getState());
enterRule(_localctx, 28, RULE_expression_logical_element);
try {
setState(162);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,10,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(157);
match(LOGICALVALUE);
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(158);
variable();
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
setState(159);
executable_action();
}
break;
case 4:
enterOuterAlt(_localctx, 4);
{
setState(160);
executable_rule();
}
break;
case 5:
enterOuterAlt(_localctx, 5);
{
setState(161);
unification();
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Expression_logical_negationContext extends ParserRuleContext {
public TerminalNode STRONGNEGATION() { return getToken(TypeParser.STRONGNEGATION, 0); }
public ExpressionContext expression() {
return getRuleContext(ExpressionContext.class,0);
}
public Expression_logical_negationContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_expression_logical_negation; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitExpression_logical_negation(this);
else return visitor.visitChildren(this);
}
}
public final Expression_logical_negationContext expression_logical_negation() throws RecognitionException {
Expression_logical_negationContext _localctx = new Expression_logical_negationContext(_ctx, getState());
enterRule(_localctx, 30, RULE_expression_logical_negation);
try {
enterOuterAlt(_localctx, 1);
{
setState(164);
match(STRONGNEGATION);
setState(165);
expression();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Expression_numericContext extends ParserRuleContext {
public Expression_numeric_relationContext expression_numeric_relation() {
return getRuleContext(Expression_numeric_relationContext.class,0);
}
public Expression_numericContext expression_numeric() {
return getRuleContext(Expression_numericContext.class,0);
}
public TerminalNode EQUAL() { return getToken(TypeParser.EQUAL, 0); }
public TerminalNode NOTEQUAL() { return getToken(TypeParser.NOTEQUAL, 0); }
public Expression_numericContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_expression_numeric; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitExpression_numeric(this);
else return visitor.visitChildren(this);
}
}
public final Expression_numericContext expression_numeric() throws RecognitionException {
Expression_numericContext _localctx = new Expression_numericContext(_ctx, getState());
enterRule(_localctx, 32, RULE_expression_numeric);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(167);
expression_numeric_relation();
setState(170);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,11,_ctx) ) {
case 1:
{
setState(168);
_la = _input.LA(1);
if ( !(_la==EQUAL || _la==NOTEQUAL) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
setState(169);
expression_numeric();
}
break;
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Expression_numeric_relationContext extends ParserRuleContext {
public Expression_numeric_additiveContext expression_numeric_additive() {
return getRuleContext(Expression_numeric_additiveContext.class,0);
}
public Expression_numericContext expression_numeric() {
return getRuleContext(Expression_numericContext.class,0);
}
public TerminalNode LESS() { return getToken(TypeParser.LESS, 0); }
public TerminalNode LESSEQUAL() { return getToken(TypeParser.LESSEQUAL, 0); }
public TerminalNode GREATER() { return getToken(TypeParser.GREATER, 0); }
public TerminalNode GREATEREQUAL() { return getToken(TypeParser.GREATEREQUAL, 0); }
public Expression_numeric_relationContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_expression_numeric_relation; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitExpression_numeric_relation(this);
else return visitor.visitChildren(this);
}
}
public final Expression_numeric_relationContext expression_numeric_relation() throws RecognitionException {
Expression_numeric_relationContext _localctx = new Expression_numeric_relationContext(_ctx, getState());
enterRule(_localctx, 34, RULE_expression_numeric_relation);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(172);
expression_numeric_additive();
setState(175);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,12,_ctx) ) {
case 1:
{
setState(173);
_la = _input.LA(1);
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << LESS) | (1L << LESSEQUAL) | (1L << GREATER) | (1L << GREATEREQUAL))) != 0)) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
setState(174);
expression_numeric();
}
break;
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Expression_numeric_additiveContext extends ParserRuleContext {
public Expression_numeric_multiplicativeContext expression_numeric_multiplicative() {
return getRuleContext(Expression_numeric_multiplicativeContext.class,0);
}
public Expression_numericContext expression_numeric() {
return getRuleContext(Expression_numericContext.class,0);
}
public TerminalNode PLUS() { return getToken(TypeParser.PLUS, 0); }
public TerminalNode MINUS() { return getToken(TypeParser.MINUS, 0); }
public Expression_numeric_additiveContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_expression_numeric_additive; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitExpression_numeric_additive(this);
else return visitor.visitChildren(this);
}
}
public final Expression_numeric_additiveContext expression_numeric_additive() throws RecognitionException {
Expression_numeric_additiveContext _localctx = new Expression_numeric_additiveContext(_ctx, getState());
enterRule(_localctx, 36, RULE_expression_numeric_additive);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(177);
expression_numeric_multiplicative();
setState(180);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,13,_ctx) ) {
case 1:
{
setState(178);
_la = _input.LA(1);
if ( !(_la==PLUS || _la==MINUS) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
setState(179);
expression_numeric();
}
break;
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Expression_numeric_multiplicativeContext extends ParserRuleContext {
public Expression_numeric_powerContext expression_numeric_power() {
return getRuleContext(Expression_numeric_powerContext.class,0);
}
public Expression_numericContext expression_numeric() {
return getRuleContext(Expression_numericContext.class,0);
}
public TerminalNode SLASH() { return getToken(TypeParser.SLASH, 0); }
public TerminalNode MODULO() { return getToken(TypeParser.MODULO, 0); }
public TerminalNode MULTIPLY() { return getToken(TypeParser.MULTIPLY, 0); }
public Expression_numeric_multiplicativeContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_expression_numeric_multiplicative; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitExpression_numeric_multiplicative(this);
else return visitor.visitChildren(this);
}
}
public final Expression_numeric_multiplicativeContext expression_numeric_multiplicative() throws RecognitionException {
Expression_numeric_multiplicativeContext _localctx = new Expression_numeric_multiplicativeContext(_ctx, getState());
enterRule(_localctx, 38, RULE_expression_numeric_multiplicative);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(182);
expression_numeric_power();
setState(185);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,14,_ctx) ) {
case 1:
{
setState(183);
_la = _input.LA(1);
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << SLASH) | (1L << MULTIPLY) | (1L << MODULO))) != 0)) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
setState(184);
expression_numeric();
}
break;
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Expression_numeric_powerContext extends ParserRuleContext {
public Expression_numeric_elementContext expression_numeric_element() {
return getRuleContext(Expression_numeric_elementContext.class,0);
}
public TerminalNode POW() { return getToken(TypeParser.POW, 0); }
public Expression_numericContext expression_numeric() {
return getRuleContext(Expression_numericContext.class,0);
}
public Expression_numeric_powerContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_expression_numeric_power; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitExpression_numeric_power(this);
else return visitor.visitChildren(this);
}
}
public final Expression_numeric_powerContext expression_numeric_power() throws RecognitionException {
Expression_numeric_powerContext _localctx = new Expression_numeric_powerContext(_ctx, getState());
enterRule(_localctx, 40, RULE_expression_numeric_power);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(187);
expression_numeric_element();
setState(190);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==POW) {
{
setState(188);
match(POW);
setState(189);
expression_numeric();
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Expression_numeric_elementContext extends ParserRuleContext {
public NumberContext number() {
return getRuleContext(NumberContext.class,0);
}
public VariableContext variable() {
return getRuleContext(VariableContext.class,0);
}
public Executable_actionContext executable_action() {
return getRuleContext(Executable_actionContext.class,0);
}
public Executable_ruleContext executable_rule() {
return getRuleContext(Executable_ruleContext.class,0);
}
public TerminalNode LEFTROUNDBRACKET() { return getToken(TypeParser.LEFTROUNDBRACKET, 0); }
public Expression_numericContext expression_numeric() {
return getRuleContext(Expression_numericContext.class,0);
}
public TerminalNode RIGHTROUNDBRACKET() { return getToken(TypeParser.RIGHTROUNDBRACKET, 0); }
public Expression_numeric_elementContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_expression_numeric_element; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitExpression_numeric_element(this);
else return visitor.visitChildren(this);
}
}
public final Expression_numeric_elementContext expression_numeric_element() throws RecognitionException {
Expression_numeric_elementContext _localctx = new Expression_numeric_elementContext(_ctx, getState());
enterRule(_localctx, 42, RULE_expression_numeric_element);
try {
setState(200);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,16,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(192);
number();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(193);
variable();
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
setState(194);
executable_action();
}
break;
case 4:
enterOuterAlt(_localctx, 4);
{
setState(195);
executable_rule();
}
break;
case 5:
enterOuterAlt(_localctx, 5);
{
setState(196);
match(LEFTROUNDBRACKET);
setState(197);
expression_numeric();
setState(198);
match(RIGHTROUNDBRACKET);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Executable_actionContext extends ParserRuleContext {
public LiteralContext literal() {
return getRuleContext(LiteralContext.class,0);
}
public Executable_actionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_executable_action; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitExecutable_action(this);
else return visitor.visitChildren(this);
}
}
public final Executable_actionContext executable_action() throws RecognitionException {
Executable_actionContext _localctx = new Executable_actionContext(_ctx, getState());
enterRule(_localctx, 44, RULE_executable_action);
try {
enterOuterAlt(_localctx, 1);
{
setState(202);
literal();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Executable_ruleContext extends ParserRuleContext {
public TerminalNode DOLLAR() { return getToken(TypeParser.DOLLAR, 0); }
public LiteralContext literal() {
return getRuleContext(LiteralContext.class,0);
}
public Variable_evaluateContext variable_evaluate() {
return getRuleContext(Variable_evaluateContext.class,0);
}
public Executable_ruleContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_executable_rule; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitExecutable_rule(this);
else return visitor.visitChildren(this);
}
}
public final Executable_ruleContext executable_rule() throws RecognitionException {
Executable_ruleContext _localctx = new Executable_ruleContext(_ctx, getState());
enterRule(_localctx, 46, RULE_executable_rule);
try {
enterOuterAlt(_localctx, 1);
{
setState(204);
match(DOLLAR);
setState(207);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,17,_ctx) ) {
case 1:
{
setState(205);
literal();
}
break;
case 2:
{
setState(206);
variable_evaluate();
}
break;
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Variable_evaluateContext extends ParserRuleContext {
public VariableContext variable() {
return getRuleContext(VariableContext.class,0);
}
public TerminalNode LEFTROUNDBRACKET() { return getToken(TypeParser.LEFTROUNDBRACKET, 0); }
public TermlistContext termlist() {
return getRuleContext(TermlistContext.class,0);
}
public TerminalNode RIGHTROUNDBRACKET() { return getToken(TypeParser.RIGHTROUNDBRACKET, 0); }
public Variable_evaluateContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_variable_evaluate; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitVariable_evaluate(this);
else return visitor.visitChildren(this);
}
}
public final Variable_evaluateContext variable_evaluate() throws RecognitionException {
Variable_evaluateContext _localctx = new Variable_evaluateContext(_ctx, getState());
enterRule(_localctx, 48, RULE_variable_evaluate);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(209);
variable();
setState(214);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==LEFTROUNDBRACKET) {
{
setState(210);
match(LEFTROUNDBRACKET);
setState(211);
termlist();
setState(212);
match(RIGHTROUNDBRACKET);
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class LiteralContext extends ParserRuleContext {
public AtomContext atom() {
return getRuleContext(AtomContext.class,0);
}
public TerminalNode LEFTROUNDBRACKET() { return getToken(TypeParser.LEFTROUNDBRACKET, 0); }
public TerminalNode RIGHTROUNDBRACKET() { return getToken(TypeParser.RIGHTROUNDBRACKET, 0); }
public TerminalNode AT() { return getToken(TypeParser.AT, 0); }
public TerminalNode STRONGNEGATION() { return getToken(TypeParser.STRONGNEGATION, 0); }
public TermlistContext termlist() {
return getRuleContext(TermlistContext.class,0);
}
public LiteralContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_literal; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitLiteral(this);
else return visitor.visitChildren(this);
}
}
public final LiteralContext literal() throws RecognitionException {
LiteralContext _localctx = new LiteralContext(_ctx, getState());
enterRule(_localctx, 50, RULE_literal);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(217);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==STRONGNEGATION || _la==AT) {
{
setState(216);
_la = _input.LA(1);
if ( !(_la==STRONGNEGATION || _la==AT) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
}
}
setState(219);
atom();
setState(225);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==LEFTROUNDBRACKET) {
{
setState(220);
match(LEFTROUNDBRACKET);
setState(222);
_errHandler.sync(this);
_la = _input.LA(1);
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << STRING) | (1L << LOGICALVALUE) | (1L << CONSTANTNUMBER) | (1L << STRONGNEGATION) | (1L << MINUS) | (1L << DOLLAR) | (1L << AT) | (1L << UNDERSCORE) | (1L << LEFTROUNDBRACKET) | (1L << LEFTANGULARBRACKET) | (1L << RIGHTSHIFT) | (1L << LOWERCASELETTER) | (1L << UPPERCASELETTER) | (1L << DIGIT))) != 0)) {
{
setState(221);
termlist();
}
}
setState(224);
match(RIGHTROUNDBRACKET);
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class TermlistContext extends ParserRuleContext {
public List<TermContext> term() {
return getRuleContexts(TermContext.class);
}
public TermContext term(int i) {
return getRuleContext(TermContext.class,i);
}
public List<TerminalNode> COMMA() { return getTokens(TypeParser.COMMA); }
public TerminalNode COMMA(int i) {
return getToken(TypeParser.COMMA, i);
}
public TermlistContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_termlist; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitTermlist(this);
else return visitor.visitChildren(this);
}
}
public final TermlistContext termlist() throws RecognitionException {
TermlistContext _localctx = new TermlistContext(_ctx, getState());
enterRule(_localctx, 52, RULE_termlist);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(227);
term();
setState(232);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
setState(228);
match(COMMA);
setState(229);
term();
}
}
setState(234);
_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 VariablelistContext extends ParserRuleContext {
public TerminalNode LEFTANGULARBRACKET() { return getToken(TypeParser.LEFTANGULARBRACKET, 0); }
public List<VariableContext> variable() {
return getRuleContexts(VariableContext.class);
}
public VariableContext variable(int i) {
return getRuleContext(VariableContext.class,i);
}
public TerminalNode RIGHTANGULARBRACKET() { return getToken(TypeParser.RIGHTANGULARBRACKET, 0); }
public List<TerminalNode> VLINE() { return getTokens(TypeParser.VLINE); }
public TerminalNode VLINE(int i) {
return getToken(TypeParser.VLINE, i);
}
public VariablelistContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_variablelist; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitVariablelist(this);
else return visitor.visitChildren(this);
}
}
public final VariablelistContext variablelist() throws RecognitionException {
VariablelistContext _localctx = new VariablelistContext(_ctx, getState());
enterRule(_localctx, 54, RULE_variablelist);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(235);
match(LEFTANGULARBRACKET);
setState(236);
variable();
setState(241);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==VLINE) {
{
{
setState(237);
match(VLINE);
setState(238);
variable();
}
}
setState(243);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(244);
match(RIGHTANGULARBRACKET);
}
}
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 List<TerminalNode> LOWERCASELETTER() { return getTokens(TypeParser.LOWERCASELETTER); }
public TerminalNode LOWERCASELETTER(int i) {
return getToken(TypeParser.LOWERCASELETTER, i);
}
public List<TerminalNode> UPPERCASELETTER() { return getTokens(TypeParser.UPPERCASELETTER); }
public TerminalNode UPPERCASELETTER(int i) {
return getToken(TypeParser.UPPERCASELETTER, i);
}
public List<TerminalNode> DIGIT() { return getTokens(TypeParser.DIGIT); }
public TerminalNode DIGIT(int i) {
return getToken(TypeParser.DIGIT, i);
}
public List<TerminalNode> SLASH() { return getTokens(TypeParser.SLASH); }
public TerminalNode SLASH(int i) {
return getToken(TypeParser.SLASH, i);
}
public List<TerminalNode> MINUS() { return getTokens(TypeParser.MINUS); }
public TerminalNode MINUS(int i) {
return getToken(TypeParser.MINUS, i);
}
public AtomContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_atom; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitAtom(this);
else return visitor.visitChildren(this);
}
}
public final AtomContext atom() throws RecognitionException {
AtomContext _localctx = new AtomContext(_ctx, getState());
enterRule(_localctx, 56, RULE_atom);
int _la;
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
setState(246);
match(LOWERCASELETTER);
setState(250);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,24,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
setState(247);
_la = _input.LA(1);
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << MINUS) | (1L << SLASH) | (1L << LOWERCASELETTER) | (1L << UPPERCASELETTER) | (1L << DIGIT))) != 0)) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
}
}
}
setState(252);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,24,_ctx);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class VariableContext extends ParserRuleContext {
public VariableatomContext variableatom() {
return getRuleContext(VariableatomContext.class,0);
}
public TerminalNode AT() { return getToken(TypeParser.AT, 0); }
public VariableContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_variable; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitVariable(this);
else return visitor.visitChildren(this);
}
}
public final VariableContext variable() throws RecognitionException {
VariableContext _localctx = new VariableContext(_ctx, getState());
enterRule(_localctx, 58, RULE_variable);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(254);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==AT) {
{
setState(253);
match(AT);
}
}
setState(256);
variableatom();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class VariableatomContext extends ParserRuleContext {
public List<TerminalNode> UPPERCASELETTER() { return getTokens(TypeParser.UPPERCASELETTER); }
public TerminalNode UPPERCASELETTER(int i) {
return getToken(TypeParser.UPPERCASELETTER, i);
}
public TerminalNode UNDERSCORE() { return getToken(TypeParser.UNDERSCORE, 0); }
public List<TerminalNode> LOWERCASELETTER() { return getTokens(TypeParser.LOWERCASELETTER); }
public TerminalNode LOWERCASELETTER(int i) {
return getToken(TypeParser.LOWERCASELETTER, i);
}
public List<TerminalNode> DIGIT() { return getTokens(TypeParser.DIGIT); }
public TerminalNode DIGIT(int i) {
return getToken(TypeParser.DIGIT, i);
}
public List<TerminalNode> SLASH() { return getTokens(TypeParser.SLASH); }
public TerminalNode SLASH(int i) {
return getToken(TypeParser.SLASH, i);
}
public VariableatomContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_variableatom; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitVariableatom(this);
else return visitor.visitChildren(this);
}
}
public final VariableatomContext variableatom() throws RecognitionException {
VariableatomContext _localctx = new VariableatomContext(_ctx, getState());
enterRule(_localctx, 60, RULE_variableatom);
int _la;
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
setState(258);
_la = _input.LA(1);
if ( !(_la==UNDERSCORE || _la==UPPERCASELETTER) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
setState(262);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,26,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
setState(259);
_la = _input.LA(1);
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << SLASH) | (1L << LOWERCASELETTER) | (1L << UPPERCASELETTER) | (1L << DIGIT))) != 0)) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
}
}
}
setState(264);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,26,_ctx);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class NumberContext extends ParserRuleContext {
public TerminalNode CONSTANTNUMBER() { return getToken(TypeParser.CONSTANTNUMBER, 0); }
public DigitsequenceContext digitsequence() {
return getRuleContext(DigitsequenceContext.class,0);
}
public TerminalNode MINUS() { return getToken(TypeParser.MINUS, 0); }
public NumberContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_number; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitNumber(this);
else return visitor.visitChildren(this);
}
}
public final NumberContext number() throws RecognitionException {
NumberContext _localctx = new NumberContext(_ctx, getState());
enterRule(_localctx, 62, RULE_number);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(266);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==MINUS) {
{
setState(265);
match(MINUS);
}
}
setState(270);
_errHandler.sync(this);
switch (_input.LA(1)) {
case CONSTANTNUMBER:
{
setState(268);
match(CONSTANTNUMBER);
}
break;
case DIGIT:
{
setState(269);
digitsequence();
}
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 DigitsequenceContext extends ParserRuleContext {
public List<TerminalNode> DIGIT() { return getTokens(TypeParser.DIGIT); }
public TerminalNode DIGIT(int i) {
return getToken(TypeParser.DIGIT, i);
}
public TerminalNode DOT() { return getToken(TypeParser.DOT, 0); }
public DigitsequenceContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_digitsequence; }
@Override
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
if ( visitor instanceof TypeVisitor ) return ((TypeVisitor<? extends T>)visitor).visitDigitsequence(this);
else return visitor.visitChildren(this);
}
}
public final DigitsequenceContext digitsequence() throws RecognitionException {
DigitsequenceContext _localctx = new DigitsequenceContext(_ctx, getState());
enterRule(_localctx, 64, RULE_digitsequence);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(273);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(272);
match(DIGIT);
}
}
setState(275);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( _la==DIGIT );
setState(283);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==DOT) {
{
setState(277);
match(DOT);
setState(279);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(278);
match(DIGIT);
}
}
setState(281);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( _la==DIGIT );
}
}
}
}
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\38\u0120\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\"\3\2\3\2\3\3\3\3\3\4\3\4\3\5\3\5\3\5\3\5\3\5\3\5\3\5\5\5R\n"+
"\5\3\6\3\6\3\6\3\6\3\6\3\6\3\6\3\6\3\6\3\6\3\6\3\6\5\6`\n\6\3\7\5\7c\n"+
"\7\3\7\3\7\3\7\3\7\3\7\3\7\3\7\3\7\5\7m\n\7\3\b\3\b\5\bq\n\b\3\t\3\t\3"+
"\t\3\t\3\n\3\n\3\n\3\13\3\13\3\13\3\f\3\f\3\f\3\f\7\f\u0081\n\f\f\f\16"+
"\f\u0084\13\f\5\f\u0086\n\f\3\r\3\r\3\r\3\r\3\16\3\16\3\16\7\16\u008f"+
"\n\16\f\16\16\16\u0092\13\16\3\17\3\17\3\17\5\17\u0097\n\17\3\17\3\17"+
"\7\17\u009b\n\17\f\17\16\17\u009e\13\17\3\20\3\20\3\20\3\20\3\20\5\20"+
"\u00a5\n\20\3\21\3\21\3\21\3\22\3\22\3\22\5\22\u00ad\n\22\3\23\3\23\3"+
"\23\5\23\u00b2\n\23\3\24\3\24\3\24\5\24\u00b7\n\24\3\25\3\25\3\25\5\25"+
"\u00bc\n\25\3\26\3\26\3\26\5\26\u00c1\n\26\3\27\3\27\3\27\3\27\3\27\3"+
"\27\3\27\3\27\5\27\u00cb\n\27\3\30\3\30\3\31\3\31\3\31\5\31\u00d2\n\31"+
"\3\32\3\32\3\32\3\32\3\32\5\32\u00d9\n\32\3\33\5\33\u00dc\n\33\3\33\3"+
"\33\3\33\5\33\u00e1\n\33\3\33\5\33\u00e4\n\33\3\34\3\34\3\34\7\34\u00e9"+
"\n\34\f\34\16\34\u00ec\13\34\3\35\3\35\3\35\3\35\7\35\u00f2\n\35\f\35"+
"\16\35\u00f5\13\35\3\35\3\35\3\36\3\36\7\36\u00fb\n\36\f\36\16\36\u00fe"+
"\13\36\3\37\5\37\u0101\n\37\3\37\3\37\3 \3 \7 \u0107\n \f \16 \u010a\13"+
" \3!\5!\u010d\n!\3!\3!\5!\u0111\n!\3\"\6\"\u0114\n\"\r\"\16\"\u0115\3"+
"\"\3\"\6\"\u011a\n\"\r\"\16\"\u011b\5\"\u011e\n\"\3\"\2\2#\2\4\6\b\n\f"+
"\16\20\22\24\26\30\32\34\36 \"$&(*,.\60\62\64\668:<>@B\2\n\3\2./\3\2*"+
"-\3\2\13\f\4\2\30\30\61\62\4\2\t\t\23\23\5\2\f\f\30\30\63\65\4\2\27\27"+
"\64\64\4\2\30\30\63\65\2\u0131\2D\3\2\2\2\4F\3\2\2\2\6H\3\2\2\2\bQ\3\2"+
"\2\2\n_\3\2\2\2\fb\3\2\2\2\16p\3\2\2\2\20r\3\2\2\2\22v\3\2\2\2\24y\3\2"+
"\2\2\26\u0085\3\2\2\2\30\u0087\3\2\2\2\32\u008b\3\2\2\2\34\u0096\3\2\2"+
"\2\36\u00a4\3\2\2\2 \u00a6\3\2\2\2\"\u00a9\3\2\2\2$\u00ae\3\2\2\2&\u00b3"+
"\3\2\2\2(\u00b8\3\2\2\2*\u00bd\3\2\2\2,\u00ca\3\2\2\2.\u00cc\3\2\2\2\60"+
"\u00ce\3\2\2\2\62\u00d3\3\2\2\2\64\u00db\3\2\2\2\66\u00e5\3\2\2\28\u00ed"+
"\3\2\2\2:\u00f8\3\2\2\2<\u0100\3\2\2\2>\u0104\3\2\2\2@\u010c\3\2\2\2B"+
"\u0113\3\2\2\2DE\5\64\33\2E\3\3\2\2\2FG\5\26\f\2G\5\3\2\2\2HI\5\n\6\2"+
"I\7\3\2\2\2JR\7\5\2\2KR\5@!\2LR\7\6\2\2MR\5.\30\2NR\5\60\31\2OR\5\26\f"+
"\2PR\5\20\t\2QJ\3\2\2\2QK\3\2\2\2QL\3\2\2\2QM\3\2\2\2QN\3\2\2\2QO\3\2"+
"\2\2QP\3\2\2\2R\t\3\2\2\2S`\7\5\2\2T`\5@!\2U`\7\6\2\2V`\5\64\33\2W`\5"+
"<\37\2X`\58\35\2YZ\7\33\2\2Z[\5\66\34\2[\\\7\34\2\2\\`\3\2\2\2]`\5\26"+
"\f\2^`\5\20\t\2_S\3\2\2\2_T\3\2\2\2_U\3\2\2\2_V\3\2\2\2_W\3\2\2\2_X\3"+
"\2\2\2_Y\3\2\2\2_]\3\2\2\2_^\3\2\2\2`\13\3\2\2\2ac\7\23\2\2ba\3\2\2\2"+
"bc\3\2\2\2cd\3\2\2\2dl\7 \2\2em\5\64\33\2fg\7\31\2\2gh\5\64\33\2hi\7\n"+
"\2\2ij\5\16\b\2jk\7\32\2\2km\3\2\2\2le\3\2\2\2lf\3\2\2\2m\r\3\2\2\2nq"+
"\5<\37\2oq\5\26\f\2pn\3\2\2\2po\3\2\2\2q\17\3\2\2\2rs\5\26\f\2st\5\22"+
"\n\2tu\5\24\13\2u\21\3\2\2\2vw\7\16\2\2wx\5\b\5\2x\23\3\2\2\2yz\7\24\2"+
"\2z{\5\b\5\2{\25\3\2\2\2|\u0086\5\30\r\2}\u0082\5\32\16\2~\177\7&\2\2"+
"\177\u0081\5\26\f\2\u0080~\3\2\2\2\u0081\u0084\3\2\2\2\u0082\u0080\3\2"+
"\2\2\u0082\u0083\3\2\2\2\u0083\u0086\3\2\2\2\u0084\u0082\3\2\2\2\u0085"+
"|\3\2\2\2\u0085}\3\2\2\2\u0086\27\3\2\2\2\u0087\u0088\7\31\2\2\u0088\u0089"+
"\5\26\f\2\u0089\u008a\7\32\2\2\u008a\31\3\2\2\2\u008b\u0090\5\34\17\2"+
"\u008c\u008d\7%\2\2\u008d\u008f\5\26\f\2\u008e\u008c\3\2\2\2\u008f\u0092"+
"\3\2\2\2\u0090\u008e\3\2\2\2\u0090\u0091\3\2\2\2\u0091\33\3\2\2\2\u0092"+
"\u0090\3\2\2\2\u0093\u0097\5 \21\2\u0094\u0097\5\36\20\2\u0095\u0097\5"+
"\"\22\2\u0096\u0093\3\2\2\2\u0096\u0094\3\2\2\2\u0096\u0095\3\2\2\2\u0097"+
"\u009c\3\2\2\2\u0098\u0099\7\'\2\2\u0099\u009b\5\26\f\2\u009a\u0098\3"+
"\2\2\2\u009b\u009e\3\2\2\2\u009c\u009a\3\2\2\2\u009c\u009d\3\2\2\2\u009d"+
"\35\3\2\2\2\u009e\u009c\3\2\2\2\u009f\u00a5\7\6\2\2\u00a0\u00a5\5<\37"+
"\2\u00a1\u00a5\5.\30\2\u00a2\u00a5\5\60\31\2\u00a3\u00a5\5\f\7\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\37\3\2\2\2\u00a6\u00a7\7\t\2\2\u00a7\u00a8"+
"\5\26\f\2\u00a8!\3\2\2\2\u00a9\u00ac\5$\23\2\u00aa\u00ab\t\2\2\2\u00ab"+
"\u00ad\5\"\22\2\u00ac\u00aa\3\2\2\2\u00ac\u00ad\3\2\2\2\u00ad#\3\2\2\2"+
"\u00ae\u00b1\5&\24\2\u00af\u00b0\t\3\2\2\u00b0\u00b2\5\"\22\2\u00b1\u00af"+
"\3\2\2\2\u00b1\u00b2\3\2\2\2\u00b2%\3\2\2\2\u00b3\u00b6\5(\25\2\u00b4"+
"\u00b5\t\4\2\2\u00b5\u00b7\5\"\22\2\u00b6\u00b4\3\2\2\2\u00b6\u00b7\3"+
"\2\2\2\u00b7\'\3\2\2\2\u00b8\u00bb\5*\26\2\u00b9\u00ba\t\5\2\2\u00ba\u00bc"+
"\5\"\22\2\u00bb\u00b9\3\2\2\2\u00bb\u00bc\3\2\2\2\u00bc)\3\2\2\2\u00bd"+
"\u00c0\5,\27\2\u00be\u00bf\7\60\2\2\u00bf\u00c1\5\"\22\2\u00c0\u00be\3"+
"\2\2\2\u00c0\u00c1\3\2\2\2\u00c1+\3\2\2\2\u00c2\u00cb\5@!\2\u00c3\u00cb"+
"\5<\37\2\u00c4\u00cb\5.\30\2\u00c5\u00cb\5\60\31\2\u00c6\u00c7\7\31\2"+
"\2\u00c7\u00c8\5\"\22\2\u00c8\u00c9\7\32\2\2\u00c9\u00cb\3\2\2\2\u00ca"+
"\u00c2\3\2\2\2\u00ca\u00c3\3\2\2\2\u00ca\u00c4\3\2\2\2\u00ca\u00c5\3\2"+
"\2\2\u00ca\u00c6\3\2\2\2\u00cb-\3\2\2\2\u00cc\u00cd\5\64\33\2\u00cd/\3"+
"\2\2\2\u00ce\u00d1\7\17\2\2\u00cf\u00d2\5\64\33\2\u00d0\u00d2\5\62\32"+
"\2\u00d1\u00cf\3\2\2\2\u00d1\u00d0\3\2\2\2\u00d2\61\3\2\2\2\u00d3\u00d8"+
"\5<\37\2\u00d4\u00d5\7\31\2\2\u00d5\u00d6\5\66\34\2\u00d6\u00d7\7\32\2"+
"\2\u00d7\u00d9\3\2\2\2\u00d8\u00d4\3\2\2\2\u00d8\u00d9\3\2\2\2\u00d9\63"+
"\3\2\2\2\u00da\u00dc\t\6\2\2\u00db\u00da\3\2\2\2\u00db\u00dc\3\2\2\2\u00dc"+
"\u00dd\3\2\2\2\u00dd\u00e3\5:\36\2\u00de\u00e0\7\31\2\2\u00df\u00e1\5"+
"\66\34\2\u00e0\u00df\3\2\2\2\u00e0\u00e1\3\2\2\2\u00e1\u00e2\3\2\2\2\u00e2"+
"\u00e4\7\32\2\2\u00e3\u00de\3\2\2\2\u00e3\u00e4\3\2\2\2\u00e4\65\3\2\2"+
"\2\u00e5\u00ea\5\n\6\2\u00e6\u00e7\7\n\2\2\u00e7\u00e9\5\n\6\2\u00e8\u00e6"+
"\3\2\2\2\u00e9\u00ec\3\2\2\2\u00ea\u00e8\3\2\2\2\u00ea\u00eb\3\2\2\2\u00eb"+
"\67\3\2\2\2\u00ec\u00ea\3\2\2\2\u00ed\u00ee\7\33\2\2\u00ee\u00f3\5<\37"+
"\2\u00ef\u00f0\7$\2\2\u00f0\u00f2\5<\37\2\u00f1\u00ef\3\2\2\2\u00f2\u00f5"+
"\3\2\2\2\u00f3\u00f1\3\2\2\2\u00f3\u00f4\3\2\2\2\u00f4\u00f6\3\2\2\2\u00f5"+
"\u00f3\3\2\2\2\u00f6\u00f7\7\34\2\2\u00f79\3\2\2\2\u00f8\u00fc\7\63\2"+
"\2\u00f9\u00fb\t\7\2\2\u00fa\u00f9\3\2\2\2\u00fb\u00fe\3\2\2\2\u00fc\u00fa"+
"\3\2\2\2\u00fc\u00fd\3\2\2\2\u00fd;\3\2\2\2\u00fe\u00fc\3\2\2\2\u00ff"+
"\u0101\7\23\2\2\u0100\u00ff\3\2\2\2\u0100\u0101\3\2\2\2\u0101\u0102\3"+
"\2\2\2\u0102\u0103\5> \2\u0103=\3\2\2\2\u0104\u0108\t\b\2\2\u0105\u0107"+
"\t\t\2\2\u0106\u0105\3\2\2\2\u0107\u010a\3\2\2\2\u0108\u0106\3\2\2\2\u0108"+
"\u0109\3\2\2\2\u0109?\3\2\2\2\u010a\u0108\3\2\2\2\u010b\u010d\7\f\2\2"+
"\u010c\u010b\3\2\2\2\u010c\u010d\3\2\2\2\u010d\u0110\3\2\2\2\u010e\u0111"+
"\7\7\2\2\u010f\u0111\5B\"\2\u0110\u010e\3\2\2\2\u0110\u010f\3\2\2\2\u0111"+
"A\3\2\2\2\u0112\u0114\7\65\2\2\u0113\u0112\3\2\2\2\u0114\u0115\3\2\2\2"+
"\u0115\u0113\3\2\2\2\u0115\u0116\3\2\2\2\u0116\u011d\3\2\2\2\u0117\u0119"+
"\7\26\2\2\u0118\u011a\7\65\2\2\u0119\u0118\3\2\2\2\u011a\u011b\3\2\2\2"+
"\u011b\u0119\3\2\2\2\u011b\u011c\3\2\2\2\u011c\u011e\3\2\2\2\u011d\u0117"+
"\3\2\2\2\u011d\u011e\3\2\2\2\u011eC\3\2\2\2\"Q_blp\u0082\u0085\u0090\u0096"+
"\u009c\u00a4\u00ac\u00b1\u00b6\u00bb\u00c0\u00ca\u00d1\u00d8\u00db\u00e0"+
"\u00e3\u00ea\u00f3\u00fc\u0100\u0108\u010c\u0110\u0115\u011b\u011d";
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);
}
}
}