com.xlrit.gears.runner.scenario.ScenarioParser Maven / Gradle / Ivy
The newest version!
// Generated from com/xlrit/gears/runner/scenario/Scenario.g4 by ANTLR 4.13.1
package com.xlrit.gears.runner.scenario;
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", "CheckReturnValue"})
public class ScenarioParser extends Parser {
static { RuntimeMetaData.checkVersion("4.13.1", RuntimeMetaData.VERSION); }
protected static final DFA[] _decisionToDFA;
protected static final PredictionContextCache _sharedContextCache =
new PredictionContextCache();
public static final int
T__0=1, T__1=2, T__2=3, T__3=4, T__4=5, T__5=6, T__6=7, T__7=8, T__8=9,
T__9=10, T__10=11, T__11=12, T__12=13, T__13=14, T__14=15, T__15=16, T__16=17,
T__17=18, T__18=19, Grql=20, BoolCompOp=21, Text=22, Temporal=23, Integer=24,
Decimal=25, Number=26, Boolean=27, TheTask=28, TheOp=29, Null=30, Identifier=31,
LineComment=32, BlockComment=33, WHITESPACE=34;
public static final int
RULE_startStatements = 0, RULE_statement = 1, RULE_taskExpr = 2, RULE_boolExpr = 3,
RULE_expr = 4, RULE_objectExpr = 5, RULE_objectEntry = 6, RULE_listExpr = 7,
RULE_optionalTrailingComma = 8, RULE_literalExpr = 9;
private static String[] makeRuleNames() {
return new String[] {
"startStatements", "statement", "taskExpr", "boolExpr", "expr", "objectExpr",
"objectEntry", "listExpr", "optionalTrailingComma", "literalExpr"
};
}
public static final String[] ruleNames = makeRuleNames();
private static String[] makeLiteralNames() {
return new String[] {
null, "'with user'", "'start process with key'", "'process complete'",
"'let'", "'='", "'['", "','", "']'", "'assert'", "'claim'", "'transfer'",
"'from'", "'submit'", "'set datetime'", "'as'", "'file:'", "'{'", "'}'",
"':'", null, null, null, null, null, null, null, null, null, null, "'null'"
};
}
private static final String[] _LITERAL_NAMES = makeLiteralNames();
private static String[] makeSymbolicNames() {
return new String[] {
null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, "Grql", "BoolCompOp",
"Text", "Temporal", "Integer", "Decimal", "Number", "Boolean", "TheTask",
"TheOp", "Null", "Identifier", "LineComment", "BlockComment", "WHITESPACE"
};
}
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 "Scenario.g4"; }
@Override
public String[] getRuleNames() { return ruleNames; }
@Override
public String getSerializedATN() { return _serializedATN; }
@Override
public ATN getATN() { return _ATN; }
public ScenarioParser(TokenStream input) {
super(input);
_interp = new ParserATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
@SuppressWarnings("CheckReturnValue")
public static class StartStatementsContext extends ParserRuleContext {
public TerminalNode EOF() { return getToken(ScenarioParser.EOF, 0); }
public List statement() {
return getRuleContexts(StatementContext.class);
}
public StatementContext statement(int i) {
return getRuleContext(StatementContext.class,i);
}
public StartStatementsContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_startStatements; }
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ScenarioVisitor ) return ((ScenarioVisitor extends T>)visitor).visitStartStatements(this);
else return visitor.visitChildren(this);
}
}
public final StartStatementsContext startStatements() throws RecognitionException {
StartStatementsContext _localctx = new StartStatementsContext(_ctx, getState());
enterRule(_localctx, 0, RULE_startStatements);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(21);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(20);
statement();
}
}
setState(23);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & 28190L) != 0) );
setState(25);
match(EOF);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class StatementContext extends ParserRuleContext {
public StatementContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_statement; }
public StatementContext() { }
public void copyFrom(StatementContext ctx) {
super.copyFrom(ctx);
}
}
@SuppressWarnings("CheckReturnValue")
public static class StartProcessStatementContext extends StatementContext {
public TerminalNode Identifier() { return getToken(ScenarioParser.Identifier, 0); }
public ObjectExprContext objectExpr() {
return getRuleContext(ObjectExprContext.class,0);
}
public StartProcessStatementContext(StatementContext ctx) { copyFrom(ctx); }
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ScenarioVisitor ) return ((ScenarioVisitor extends T>)visitor).visitStartProcessStatement(this);
else return visitor.visitChildren(this);
}
}
@SuppressWarnings("CheckReturnValue")
public static class ClaimTaskStatementContext extends StatementContext {
public TaskExprContext taskExpr() {
return getRuleContext(TaskExprContext.class,0);
}
public ClaimTaskStatementContext(StatementContext ctx) { copyFrom(ctx); }
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ScenarioVisitor ) return ((ScenarioVisitor extends T>)visitor).visitClaimTaskStatement(this);
else return visitor.visitChildren(this);
}
}
@SuppressWarnings("CheckReturnValue")
public static class LetIsStatementContext extends StatementContext {
public TerminalNode Identifier() { return getToken(ScenarioParser.Identifier, 0); }
public ExprContext expr() {
return getRuleContext(ExprContext.class,0);
}
public LetIsStatementContext(StatementContext ctx) { copyFrom(ctx); }
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ScenarioVisitor ) return ((ScenarioVisitor extends T>)visitor).visitLetIsStatement(this);
else return visitor.visitChildren(this);
}
}
@SuppressWarnings("CheckReturnValue")
public static class AssertStatementContext extends StatementContext {
public BoolExprContext boolExpr() {
return getRuleContext(BoolExprContext.class,0);
}
public AssertStatementContext(StatementContext ctx) { copyFrom(ctx); }
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ScenarioVisitor ) return ((ScenarioVisitor extends T>)visitor).visitAssertStatement(this);
else return visitor.visitChildren(this);
}
}
@SuppressWarnings("CheckReturnValue")
public static class SetDateTimeStatementContext extends StatementContext {
public TerminalNode Text() { return getToken(ScenarioParser.Text, 0); }
public SetDateTimeStatementContext(StatementContext ctx) { copyFrom(ctx); }
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ScenarioVisitor ) return ((ScenarioVisitor extends T>)visitor).visitSetDateTimeStatement(this);
else return visitor.visitChildren(this);
}
}
@SuppressWarnings("CheckReturnValue")
public static class WithUserStatementContext extends StatementContext {
public TerminalNode Identifier() { return getToken(ScenarioParser.Identifier, 0); }
public WithUserStatementContext(StatementContext ctx) { copyFrom(ctx); }
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ScenarioVisitor ) return ((ScenarioVisitor extends T>)visitor).visitWithUserStatement(this);
else return visitor.visitChildren(this);
}
}
@SuppressWarnings("CheckReturnValue")
public static class TransferTaskStatementContext extends StatementContext {
public TaskExprContext taskExpr() {
return getRuleContext(TaskExprContext.class,0);
}
public TerminalNode Identifier() { return getToken(ScenarioParser.Identifier, 0); }
public TransferTaskStatementContext(StatementContext ctx) { copyFrom(ctx); }
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ScenarioVisitor ) return ((ScenarioVisitor extends T>)visitor).visitTransferTaskStatement(this);
else return visitor.visitChildren(this);
}
}
@SuppressWarnings("CheckReturnValue")
public static class ProcessCompleteStatementContext extends StatementContext {
public ProcessCompleteStatementContext(StatementContext ctx) { copyFrom(ctx); }
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ScenarioVisitor ) return ((ScenarioVisitor extends T>)visitor).visitProcessCompleteStatement(this);
else return visitor.visitChildren(this);
}
}
@SuppressWarnings("CheckReturnValue")
public static class LetFromStatementContext extends StatementContext {
public List Identifier() { return getTokens(ScenarioParser.Identifier); }
public TerminalNode Identifier(int i) {
return getToken(ScenarioParser.Identifier, i);
}
public ExprContext expr() {
return getRuleContext(ExprContext.class,0);
}
public LetFromStatementContext(StatementContext ctx) { copyFrom(ctx); }
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ScenarioVisitor ) return ((ScenarioVisitor extends T>)visitor).visitLetFromStatement(this);
else return visitor.visitChildren(this);
}
}
@SuppressWarnings("CheckReturnValue")
public static class SubmitTaskStatementContext extends StatementContext {
public TaskExprContext taskExpr() {
return getRuleContext(TaskExprContext.class,0);
}
public ObjectExprContext objectExpr() {
return getRuleContext(ObjectExprContext.class,0);
}
public SubmitTaskStatementContext(StatementContext ctx) { copyFrom(ctx); }
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ScenarioVisitor ) return ((ScenarioVisitor extends T>)visitor).visitSubmitTaskStatement(this);
else return visitor.visitChildren(this);
}
}
public final StatementContext statement() throws RecognitionException {
StatementContext _localctx = new StatementContext(_ctx, getState());
enterRule(_localctx, 2, RULE_statement);
int _la;
try {
setState(67);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,3,_ctx) ) {
case 1:
_localctx = new WithUserStatementContext(_localctx);
enterOuterAlt(_localctx, 1);
{
setState(27);
match(T__0);
setState(28);
match(Identifier);
}
break;
case 2:
_localctx = new StartProcessStatementContext(_localctx);
enterOuterAlt(_localctx, 2);
{
setState(29);
match(T__1);
setState(30);
match(Identifier);
setState(32);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__16) {
{
setState(31);
objectExpr();
}
}
}
break;
case 3:
_localctx = new ProcessCompleteStatementContext(_localctx);
enterOuterAlt(_localctx, 3);
{
setState(34);
match(T__2);
}
break;
case 4:
_localctx = new LetIsStatementContext(_localctx);
enterOuterAlt(_localctx, 4);
{
setState(35);
match(T__3);
setState(36);
match(Identifier);
setState(37);
match(T__4);
setState(38);
expr();
}
break;
case 5:
_localctx = new LetFromStatementContext(_localctx);
enterOuterAlt(_localctx, 5);
{
setState(39);
match(T__3);
setState(40);
match(T__5);
setState(41);
match(Identifier);
setState(46);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==T__6) {
{
{
setState(42);
match(T__6);
setState(43);
match(Identifier);
}
}
setState(48);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(49);
match(T__7);
setState(50);
match(T__4);
setState(51);
expr();
}
break;
case 6:
_localctx = new AssertStatementContext(_localctx);
enterOuterAlt(_localctx, 6);
{
setState(52);
match(T__8);
setState(53);
boolExpr();
}
break;
case 7:
_localctx = new ClaimTaskStatementContext(_localctx);
enterOuterAlt(_localctx, 7);
{
setState(54);
match(T__9);
setState(55);
taskExpr();
}
break;
case 8:
_localctx = new TransferTaskStatementContext(_localctx);
enterOuterAlt(_localctx, 8);
{
setState(56);
match(T__10);
setState(57);
taskExpr();
setState(58);
match(T__11);
setState(59);
match(Identifier);
}
break;
case 9:
_localctx = new SubmitTaskStatementContext(_localctx);
enterOuterAlt(_localctx, 9);
{
setState(61);
match(T__12);
setState(62);
taskExpr();
setState(63);
objectExpr();
}
break;
case 10:
_localctx = new SetDateTimeStatementContext(_localctx);
enterOuterAlt(_localctx, 10);
{
setState(65);
match(T__13);
setState(66);
match(Text);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class TaskExprContext extends ParserRuleContext {
public TerminalNode TheTask() { return getToken(ScenarioParser.TheTask, 0); }
public TerminalNode Identifier() { return getToken(ScenarioParser.Identifier, 0); }
public TaskExprContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_taskExpr; }
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ScenarioVisitor ) return ((ScenarioVisitor extends T>)visitor).visitTaskExpr(this);
else return visitor.visitChildren(this);
}
}
public final TaskExprContext taskExpr() throws RecognitionException {
TaskExprContext _localctx = new TaskExprContext(_ctx, getState());
enterRule(_localctx, 4, RULE_taskExpr);
int _la;
try {
setState(75);
_errHandler.sync(this);
switch (_input.LA(1)) {
case TheTask:
enterOuterAlt(_localctx, 1);
{
setState(69);
match(TheTask);
setState(72);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__14) {
{
setState(70);
match(T__14);
setState(71);
match(Identifier);
}
}
}
break;
case Identifier:
enterOuterAlt(_localctx, 2);
{
setState(74);
match(Identifier);
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class BoolExprContext extends ParserRuleContext {
public BoolExprContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_boolExpr; }
public BoolExprContext() { }
public void copyFrom(BoolExprContext ctx) {
super.copyFrom(ctx);
}
}
@SuppressWarnings("CheckReturnValue")
public static class BoolGrqlExpressionContext extends BoolExprContext {
public TerminalNode Grql() { return getToken(ScenarioParser.Grql, 0); }
public BoolGrqlExpressionContext(BoolExprContext ctx) { copyFrom(ctx); }
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ScenarioVisitor ) return ((ScenarioVisitor extends T>)visitor).visitBoolGrqlExpression(this);
else return visitor.visitChildren(this);
}
}
@SuppressWarnings("CheckReturnValue")
public static class BoolCompExpressionContext extends BoolExprContext {
public List expr() {
return getRuleContexts(ExprContext.class);
}
public ExprContext expr(int i) {
return getRuleContext(ExprContext.class,i);
}
public TerminalNode BoolCompOp() { return getToken(ScenarioParser.BoolCompOp, 0); }
public BoolCompExpressionContext(BoolExprContext ctx) { copyFrom(ctx); }
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ScenarioVisitor ) return ((ScenarioVisitor extends T>)visitor).visitBoolCompExpression(this);
else return visitor.visitChildren(this);
}
}
public final BoolExprContext boolExpr() throws RecognitionException {
BoolExprContext _localctx = new BoolExprContext(_ctx, getState());
enterRule(_localctx, 6, RULE_boolExpr);
try {
setState(82);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,6,_ctx) ) {
case 1:
_localctx = new BoolCompExpressionContext(_localctx);
enterOuterAlt(_localctx, 1);
{
setState(77);
expr();
setState(78);
match(BoolCompOp);
setState(79);
expr();
}
break;
case 2:
_localctx = new BoolGrqlExpressionContext(_localctx);
enterOuterAlt(_localctx, 2);
{
setState(81);
match(Grql);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class ExprContext extends ParserRuleContext {
public ExprContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_expr; }
public ExprContext() { }
public void copyFrom(ExprContext ctx) {
super.copyFrom(ctx);
}
}
@SuppressWarnings("CheckReturnValue")
public static class ObjectExpressionContext extends ExprContext {
public ObjectExprContext objectExpr() {
return getRuleContext(ObjectExprContext.class,0);
}
public ObjectExpressionContext(ExprContext ctx) { copyFrom(ctx); }
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ScenarioVisitor ) return ((ScenarioVisitor extends T>)visitor).visitObjectExpression(this);
else return visitor.visitChildren(this);
}
}
@SuppressWarnings("CheckReturnValue")
public static class FileExpressionContext extends ExprContext {
public TerminalNode Text() { return getToken(ScenarioParser.Text, 0); }
public FileExpressionContext(ExprContext ctx) { copyFrom(ctx); }
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ScenarioVisitor ) return ((ScenarioVisitor extends T>)visitor).visitFileExpression(this);
else return visitor.visitChildren(this);
}
}
@SuppressWarnings("CheckReturnValue")
public static class IdentifierExpressionContext extends ExprContext {
public TerminalNode Identifier() { return getToken(ScenarioParser.Identifier, 0); }
public IdentifierExpressionContext(ExprContext ctx) { copyFrom(ctx); }
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ScenarioVisitor ) return ((ScenarioVisitor extends T>)visitor).visitIdentifierExpression(this);
else return visitor.visitChildren(this);
}
}
@SuppressWarnings("CheckReturnValue")
public static class GrqlExpressionContext extends ExprContext {
public TerminalNode Grql() { return getToken(ScenarioParser.Grql, 0); }
public GrqlExpressionContext(ExprContext ctx) { copyFrom(ctx); }
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ScenarioVisitor ) return ((ScenarioVisitor extends T>)visitor).visitGrqlExpression(this);
else return visitor.visitChildren(this);
}
}
@SuppressWarnings("CheckReturnValue")
public static class TheExpressionContext extends ExprContext {
public TerminalNode TheOp() { return getToken(ScenarioParser.TheOp, 0); }
public ExprContext expr() {
return getRuleContext(ExprContext.class,0);
}
public TheExpressionContext(ExprContext ctx) { copyFrom(ctx); }
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ScenarioVisitor ) return ((ScenarioVisitor extends T>)visitor).visitTheExpression(this);
else return visitor.visitChildren(this);
}
}
@SuppressWarnings("CheckReturnValue")
public static class ListExpressionContext extends ExprContext {
public ListExprContext listExpr() {
return getRuleContext(ListExprContext.class,0);
}
public ListExpressionContext(ExprContext ctx) { copyFrom(ctx); }
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ScenarioVisitor ) return ((ScenarioVisitor extends T>)visitor).visitListExpression(this);
else return visitor.visitChildren(this);
}
}
@SuppressWarnings("CheckReturnValue")
public static class LiteralExpressionContext extends ExprContext {
public LiteralExprContext literalExpr() {
return getRuleContext(LiteralExprContext.class,0);
}
public LiteralExpressionContext(ExprContext ctx) { copyFrom(ctx); }
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ScenarioVisitor ) return ((ScenarioVisitor extends T>)visitor).visitLiteralExpression(this);
else return visitor.visitChildren(this);
}
}
public final ExprContext expr() throws RecognitionException {
ExprContext _localctx = new ExprContext(_ctx, getState());
enterRule(_localctx, 8, RULE_expr);
try {
setState(93);
_errHandler.sync(this);
switch (_input.LA(1)) {
case Grql:
_localctx = new GrqlExpressionContext(_localctx);
enterOuterAlt(_localctx, 1);
{
setState(84);
match(Grql);
}
break;
case T__16:
_localctx = new ObjectExpressionContext(_localctx);
enterOuterAlt(_localctx, 2);
{
setState(85);
objectExpr();
}
break;
case T__5:
_localctx = new ListExpressionContext(_localctx);
enterOuterAlt(_localctx, 3);
{
setState(86);
listExpr();
}
break;
case TheOp:
_localctx = new TheExpressionContext(_localctx);
enterOuterAlt(_localctx, 4);
{
setState(87);
match(TheOp);
setState(88);
expr();
}
break;
case Text:
case Temporal:
case Integer:
case Decimal:
case Boolean:
case Null:
_localctx = new LiteralExpressionContext(_localctx);
enterOuterAlt(_localctx, 5);
{
setState(89);
literalExpr();
}
break;
case T__15:
_localctx = new FileExpressionContext(_localctx);
enterOuterAlt(_localctx, 6);
{
setState(90);
match(T__15);
setState(91);
match(Text);
}
break;
case Identifier:
_localctx = new IdentifierExpressionContext(_localctx);
enterOuterAlt(_localctx, 7);
{
setState(92);
match(Identifier);
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class ObjectExprContext extends ParserRuleContext {
public List objectEntry() {
return getRuleContexts(ObjectEntryContext.class);
}
public ObjectEntryContext objectEntry(int i) {
return getRuleContext(ObjectEntryContext.class,i);
}
public OptionalTrailingCommaContext optionalTrailingComma() {
return getRuleContext(OptionalTrailingCommaContext.class,0);
}
public ObjectExprContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_objectExpr; }
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ScenarioVisitor ) return ((ScenarioVisitor extends T>)visitor).visitObjectExpr(this);
else return visitor.visitChildren(this);
}
}
public final ObjectExprContext objectExpr() throws RecognitionException {
ObjectExprContext _localctx = new ObjectExprContext(_ctx, getState());
enterRule(_localctx, 10, RULE_objectExpr);
int _la;
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
setState(95);
match(T__16);
setState(106);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==Identifier) {
{
setState(96);
objectEntry();
setState(101);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,8,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
setState(97);
match(T__6);
setState(98);
objectEntry();
}
}
}
setState(103);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,8,_ctx);
}
setState(104);
optionalTrailingComma();
}
}
setState(108);
match(T__17);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class ObjectEntryContext extends ParserRuleContext {
public TerminalNode Identifier() { return getToken(ScenarioParser.Identifier, 0); }
public ExprContext expr() {
return getRuleContext(ExprContext.class,0);
}
public ObjectEntryContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_objectEntry; }
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ScenarioVisitor ) return ((ScenarioVisitor extends T>)visitor).visitObjectEntry(this);
else return visitor.visitChildren(this);
}
}
public final ObjectEntryContext objectEntry() throws RecognitionException {
ObjectEntryContext _localctx = new ObjectEntryContext(_ctx, getState());
enterRule(_localctx, 12, RULE_objectEntry);
try {
enterOuterAlt(_localctx, 1);
{
setState(110);
match(Identifier);
setState(111);
match(T__18);
setState(112);
expr();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class ListExprContext extends ParserRuleContext {
public List expr() {
return getRuleContexts(ExprContext.class);
}
public ExprContext expr(int i) {
return getRuleContext(ExprContext.class,i);
}
public OptionalTrailingCommaContext optionalTrailingComma() {
return getRuleContext(OptionalTrailingCommaContext.class,0);
}
public ListExprContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_listExpr; }
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ScenarioVisitor ) return ((ScenarioVisitor extends T>)visitor).visitListExpr(this);
else return visitor.visitChildren(this);
}
}
public final ListExprContext listExpr() throws RecognitionException {
ListExprContext _localctx = new ListExprContext(_ctx, getState());
enterRule(_localctx, 14, RULE_listExpr);
int _la;
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
setState(114);
match(T__5);
setState(125);
_errHandler.sync(this);
_la = _input.LA(1);
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 3956473920L) != 0)) {
{
setState(115);
expr();
setState(120);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,10,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
setState(116);
match(T__6);
setState(117);
expr();
}
}
}
setState(122);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,10,_ctx);
}
setState(123);
optionalTrailingComma();
}
}
setState(127);
match(T__7);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class OptionalTrailingCommaContext extends ParserRuleContext {
public OptionalTrailingCommaContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_optionalTrailingComma; }
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ScenarioVisitor ) return ((ScenarioVisitor extends T>)visitor).visitOptionalTrailingComma(this);
else return visitor.visitChildren(this);
}
}
public final OptionalTrailingCommaContext optionalTrailingComma() throws RecognitionException {
OptionalTrailingCommaContext _localctx = new OptionalTrailingCommaContext(_ctx, getState());
enterRule(_localctx, 16, RULE_optionalTrailingComma);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(130);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__6) {
{
setState(129);
match(T__6);
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class LiteralExprContext extends ParserRuleContext {
public TerminalNode Integer() { return getToken(ScenarioParser.Integer, 0); }
public TerminalNode Decimal() { return getToken(ScenarioParser.Decimal, 0); }
public TerminalNode Text() { return getToken(ScenarioParser.Text, 0); }
public TerminalNode Boolean() { return getToken(ScenarioParser.Boolean, 0); }
public TerminalNode Temporal() { return getToken(ScenarioParser.Temporal, 0); }
public TerminalNode Null() { return getToken(ScenarioParser.Null, 0); }
public LiteralExprContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_literalExpr; }
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof ScenarioVisitor ) return ((ScenarioVisitor extends T>)visitor).visitLiteralExpr(this);
else return visitor.visitChildren(this);
}
}
public final LiteralExprContext literalExpr() throws RecognitionException {
LiteralExprContext _localctx = new LiteralExprContext(_ctx, getState());
enterRule(_localctx, 18, RULE_literalExpr);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(132);
_la = _input.LA(1);
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & 1270874112L) != 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 final String _serializedATN =
"\u0004\u0001\"\u0087\u0002\u0000\u0007\u0000\u0002\u0001\u0007\u0001\u0002"+
"\u0002\u0007\u0002\u0002\u0003\u0007\u0003\u0002\u0004\u0007\u0004\u0002"+
"\u0005\u0007\u0005\u0002\u0006\u0007\u0006\u0002\u0007\u0007\u0007\u0002"+
"\b\u0007\b\u0002\t\u0007\t\u0001\u0000\u0004\u0000\u0016\b\u0000\u000b"+
"\u0000\f\u0000\u0017\u0001\u0000\u0001\u0000\u0001\u0001\u0001\u0001\u0001"+
"\u0001\u0001\u0001\u0001\u0001\u0003\u0001!\b\u0001\u0001\u0001\u0001"+
"\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001"+
"\u0001\u0001\u0001\u0001\u0001\u0005\u0001-\b\u0001\n\u0001\f\u00010\t"+
"\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001"+
"\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001"+
"\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001"+
"\u0001\u0003\u0001D\b\u0001\u0001\u0002\u0001\u0002\u0001\u0002\u0003"+
"\u0002I\b\u0002\u0001\u0002\u0003\u0002L\b\u0002\u0001\u0003\u0001\u0003"+
"\u0001\u0003\u0001\u0003\u0001\u0003\u0003\u0003S\b\u0003\u0001\u0004"+
"\u0001\u0004\u0001\u0004\u0001\u0004\u0001\u0004\u0001\u0004\u0001\u0004"+
"\u0001\u0004\u0001\u0004\u0003\u0004^\b\u0004\u0001\u0005\u0001\u0005"+
"\u0001\u0005\u0001\u0005\u0005\u0005d\b\u0005\n\u0005\f\u0005g\t\u0005"+
"\u0001\u0005\u0001\u0005\u0003\u0005k\b\u0005\u0001\u0005\u0001\u0005"+
"\u0001\u0006\u0001\u0006\u0001\u0006\u0001\u0006\u0001\u0007\u0001\u0007"+
"\u0001\u0007\u0001\u0007\u0005\u0007w\b\u0007\n\u0007\f\u0007z\t\u0007"+
"\u0001\u0007\u0001\u0007\u0003\u0007~\b\u0007\u0001\u0007\u0001\u0007"+
"\u0001\b\u0003\b\u0083\b\b\u0001\t\u0001\t\u0001\t\u0000\u0000\n\u0000"+
"\u0002\u0004\u0006\b\n\f\u000e\u0010\u0012\u0000\u0001\u0003\u0000\u0016"+
"\u0019\u001b\u001b\u001e\u001e\u0096\u0000\u0015\u0001\u0000\u0000\u0000"+
"\u0002C\u0001\u0000\u0000\u0000\u0004K\u0001\u0000\u0000\u0000\u0006R"+
"\u0001\u0000\u0000\u0000\b]\u0001\u0000\u0000\u0000\n_\u0001\u0000\u0000"+
"\u0000\fn\u0001\u0000\u0000\u0000\u000er\u0001\u0000\u0000\u0000\u0010"+
"\u0082\u0001\u0000\u0000\u0000\u0012\u0084\u0001\u0000\u0000\u0000\u0014"+
"\u0016\u0003\u0002\u0001\u0000\u0015\u0014\u0001\u0000\u0000\u0000\u0016"+
"\u0017\u0001\u0000\u0000\u0000\u0017\u0015\u0001\u0000\u0000\u0000\u0017"+
"\u0018\u0001\u0000\u0000\u0000\u0018\u0019\u0001\u0000\u0000\u0000\u0019"+
"\u001a\u0005\u0000\u0000\u0001\u001a\u0001\u0001\u0000\u0000\u0000\u001b"+
"\u001c\u0005\u0001\u0000\u0000\u001cD\u0005\u001f\u0000\u0000\u001d\u001e"+
"\u0005\u0002\u0000\u0000\u001e \u0005\u001f\u0000\u0000\u001f!\u0003\n"+
"\u0005\u0000 \u001f\u0001\u0000\u0000\u0000 !\u0001\u0000\u0000\u0000"+
"!D\u0001\u0000\u0000\u0000\"D\u0005\u0003\u0000\u0000#$\u0005\u0004\u0000"+
"\u0000$%\u0005\u001f\u0000\u0000%&\u0005\u0005\u0000\u0000&D\u0003\b\u0004"+
"\u0000\'(\u0005\u0004\u0000\u0000()\u0005\u0006\u0000\u0000).\u0005\u001f"+
"\u0000\u0000*+\u0005\u0007\u0000\u0000+-\u0005\u001f\u0000\u0000,*\u0001"+
"\u0000\u0000\u0000-0\u0001\u0000\u0000\u0000.,\u0001\u0000\u0000\u0000"+
"./\u0001\u0000\u0000\u0000/1\u0001\u0000\u0000\u00000.\u0001\u0000\u0000"+
"\u000012\u0005\b\u0000\u000023\u0005\u0005\u0000\u00003D\u0003\b\u0004"+
"\u000045\u0005\t\u0000\u00005D\u0003\u0006\u0003\u000067\u0005\n\u0000"+
"\u00007D\u0003\u0004\u0002\u000089\u0005\u000b\u0000\u00009:\u0003\u0004"+
"\u0002\u0000:;\u0005\f\u0000\u0000;<\u0005\u001f\u0000\u0000\u0005\r\u0000\u0000>?\u0003\u0004\u0002\u0000?@\u0003\n"+
"\u0005\u0000@D\u0001\u0000\u0000\u0000AB\u0005\u000e\u0000\u0000BD\u0005"+
"\u0016\u0000\u0000C\u001b\u0001\u0000\u0000\u0000C\u001d\u0001\u0000\u0000"+
"\u0000C\"\u0001\u0000\u0000\u0000C#\u0001\u0000\u0000\u0000C\'\u0001\u0000"+
"\u0000\u0000C4\u0001\u0000\u0000\u0000C6\u0001\u0000\u0000\u0000C8\u0001"+
"\u0000\u0000\u0000C=\u0001\u0000\u0000\u0000CA\u0001\u0000\u0000\u0000"+
"D\u0003\u0001\u0000\u0000\u0000EH\u0005\u001c\u0000\u0000FG\u0005\u000f"+
"\u0000\u0000GI\u0005\u001f\u0000\u0000HF\u0001\u0000\u0000\u0000HI\u0001"+
"\u0000\u0000\u0000IL\u0001\u0000\u0000\u0000JL\u0005\u001f\u0000\u0000"+
"KE\u0001\u0000\u0000\u0000KJ\u0001\u0000\u0000\u0000L\u0005\u0001\u0000"+
"\u0000\u0000MN\u0003\b\u0004\u0000NO\u0005\u0015\u0000\u0000OP\u0003\b"+
"\u0004\u0000PS\u0001\u0000\u0000\u0000QS\u0005\u0014\u0000\u0000RM\u0001"+
"\u0000\u0000\u0000RQ\u0001\u0000\u0000\u0000S\u0007\u0001\u0000\u0000"+
"\u0000T^\u0005\u0014\u0000\u0000U^\u0003\n\u0005\u0000V^\u0003\u000e\u0007"+
"\u0000WX\u0005\u001d\u0000\u0000X^\u0003\b\u0004\u0000Y^\u0003\u0012\t"+
"\u0000Z[\u0005\u0010\u0000\u0000[^\u0005\u0016\u0000\u0000\\^\u0005\u001f"+
"\u0000\u0000]T\u0001\u0000\u0000\u0000]U\u0001\u0000\u0000\u0000]V\u0001"+
"\u0000\u0000\u0000]W\u0001\u0000\u0000\u0000]Y\u0001\u0000\u0000\u0000"+
"]Z\u0001\u0000\u0000\u0000]\\\u0001\u0000\u0000\u0000^\t\u0001\u0000\u0000"+
"\u0000_j\u0005\u0011\u0000\u0000`e\u0003\f\u0006\u0000ab\u0005\u0007\u0000"+
"\u0000bd\u0003\f\u0006\u0000ca\u0001\u0000\u0000\u0000dg\u0001\u0000\u0000"+
"\u0000ec\u0001\u0000\u0000\u0000ef\u0001\u0000\u0000\u0000fh\u0001\u0000"+
"\u0000\u0000ge\u0001\u0000\u0000\u0000hi\u0003\u0010\b\u0000ik\u0001\u0000"+
"\u0000\u0000j`\u0001\u0000\u0000\u0000jk\u0001\u0000\u0000\u0000kl\u0001"+
"\u0000\u0000\u0000lm\u0005\u0012\u0000\u0000m\u000b\u0001\u0000\u0000"+
"\u0000no\u0005\u001f\u0000\u0000op\u0005\u0013\u0000\u0000pq\u0003\b\u0004"+
"\u0000q\r\u0001\u0000\u0000\u0000r}\u0005\u0006\u0000\u0000sx\u0003\b"+
"\u0004\u0000tu\u0005\u0007\u0000\u0000uw\u0003\b\u0004\u0000vt\u0001\u0000"+
"\u0000\u0000wz\u0001\u0000\u0000\u0000xv\u0001\u0000\u0000\u0000xy\u0001"+
"\u0000\u0000\u0000y{\u0001\u0000\u0000\u0000zx\u0001\u0000\u0000\u0000"+
"{|\u0003\u0010\b\u0000|~\u0001\u0000\u0000\u0000}s\u0001\u0000\u0000\u0000"+
"}~\u0001\u0000\u0000\u0000~\u007f\u0001\u0000\u0000\u0000\u007f\u0080"+
"\u0005\b\u0000\u0000\u0080\u000f\u0001\u0000\u0000\u0000\u0081\u0083\u0005"+
"\u0007\u0000\u0000\u0082\u0081\u0001\u0000\u0000\u0000\u0082\u0083\u0001"+
"\u0000\u0000\u0000\u0083\u0011\u0001\u0000\u0000\u0000\u0084\u0085\u0007"+
"\u0000\u0000\u0000\u0085\u0013\u0001\u0000\u0000\u0000\r\u0017 .CHKR]"+
"ejx}\u0082";
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);
}
}
}