diff --git a/core/src/main/java/tech/ides/core/ScriptQueryExecute.scala b/core/src/main/java/tech/ides/core/ScriptQueryExecute.scala
index e84dd09..36ca647 100644
--- a/core/src/main/java/tech/ides/core/ScriptQueryExecute.scala
+++ b/core/src/main/java/tech/ides/core/ScriptQueryExecute.scala
@@ -1,6 +1,6 @@
package tech.ides.core
-import ides.dsl.parser.{IdesDslBaseListener, IdesDslLexer, IdesDslParser}
+import ides.dsl.parser._
import org.antlr.v4.runtime.tree.ParseTreeWalker
import org.antlr.v4.runtime.CommonTokenStream
import tech.ides.dsl.listener.ScriptQueryExecListener
@@ -77,11 +77,11 @@ object ScriptQueryExecute extends Logging {
}
- private def parse(script: String, listener: IdesDslBaseListener): Unit = {
+ private def parse(script: String, listener: IdesParserBaseListener): Unit = {
val charStream = new CaseChangeCharStream(script)
- val idesDslLexer = new IdesDslLexer(charStream)
+ val idesDslLexer = new IdesLexer(charStream)
val tokenStream = new CommonTokenStream(idesDslLexer)
- val parser = new IdesDslParser(tokenStream)
+ val parser = new IdesParser(tokenStream)
// add syntax error listener
parser.addErrorListener(new SyntaxErrorListener)
diff --git a/core/src/main/java/tech/ides/dsl/adaptor/LoadAdaptor.scala b/core/src/main/java/tech/ides/dsl/adaptor/LoadAdaptor.scala
index 75a36a0..8792c11 100644
--- a/core/src/main/java/tech/ides/dsl/adaptor/LoadAdaptor.scala
+++ b/core/src/main/java/tech/ides/dsl/adaptor/LoadAdaptor.scala
@@ -1,7 +1,7 @@
package tech.ides.dsl.adaptor
-import ides.dsl.parser.IdesDslParser
-import ides.dsl.parser.IdesDslParser.LoadContext
+import ides.dsl.parser.IdesParser
+import ides.dsl.parser.IdesParser.LoadContext
import org.apache.spark.sql.{DataFrame, DataFrameReader}
import tech.ides.core.ScriptQueryExecute
import tech.ides.datasource.{DataSourceConfig, DataSourceFactory}
@@ -15,7 +15,7 @@ import tech.ides.dsl.utils.DslUtil._
*/
case class LoadAdaptor(scriptQueryExecListener: ScriptQueryExecListener) extends ScriptDslAdaptor {
- override def parse(context: IdesDslParser.QueryContext): SqlStatement = {
+ override def parse(context: IdesParser.QueryContext): SqlStatement = {
val loadContext = context.asInstanceOf[LoadContext]
@@ -31,7 +31,7 @@ case class LoadAdaptor(scriptQueryExecListener: ScriptQueryExecListener) extends
LoadSqlStatement(sql, format, path, options, tableName)
}
- override def enterContext(context: IdesDslParser.QueryContext): Unit = {
+ override def enterContext(context: IdesParser.QueryContext): Unit = {
val LoadSqlStatement(_, format, path, options, tableName) = parse(context)
val sparkSession = scriptQueryExecListener.sparkSession
val reader = sparkSession.read
diff --git a/core/src/main/java/tech/ides/dsl/adaptor/SaveAdaptor.scala b/core/src/main/java/tech/ides/dsl/adaptor/SaveAdaptor.scala
index b08598f..8a2e9ed 100644
--- a/core/src/main/java/tech/ides/dsl/adaptor/SaveAdaptor.scala
+++ b/core/src/main/java/tech/ides/dsl/adaptor/SaveAdaptor.scala
@@ -2,15 +2,15 @@ package tech.ides.dsl.adaptor
import java.util.UUID
-import ides.dsl.parser.IdesDslParser
-import ides.dsl.parser.IdesDslParser.SaveContext
+import ides.dsl.parser.IdesParser
+import ides.dsl.parser.IdesParser.SaveContext
import org.apache.spark.sql._
import tech.ides.constants.ScriptConstants.PARTITION_BY_COL
import tech.ides.core.ScriptQueryExecute
import tech.ides.datasource.{DataSinkConfig, DataSourceFactory}
import tech.ides.dsl.listener.ScriptQueryExecListener
import tech.ides.dsl.statement.{SaveSqlStatement, SqlStatement}
-import tech.ides.dsl.utils.DslUtil.{cleanStr, currentText, resourceRealPath, whereExpressionsToMap, parseAssetName}
+import tech.ides.dsl.utils.DslUtil.{cleanStr, currentText, parseAssetName, resourceRealPath, whereExpressionsToMap}
import tech.ides.job.ScriptJobManager
import scala.collection.mutable.ListBuffer
@@ -22,7 +22,7 @@ import scala.collection.JavaConverters._
*/
case class SaveAdaptor(scriptQueryExecListener: ScriptQueryExecListener) extends ScriptDslAdaptor {
- override def parse(context: IdesDslParser.QueryContext): SqlStatement = {
+ override def parse(context: IdesParser.QueryContext): SqlStatement = {
val saveContext = context.asInstanceOf[SaveContext]
val sql = currentText(saveContext)
@@ -58,7 +58,7 @@ case class SaveAdaptor(scriptQueryExecListener: ScriptQueryExecListener) extends
}
- override def enterContext(context: IdesDslParser.QueryContext): Unit = {
+ override def enterContext(context: IdesParser.QueryContext): Unit = {
val SaveSqlStatement(_, inputTableName, saveMode, format, path, options, partitionByCol) = parse(context)
val spark = scriptQueryExecListener.sparkSession
diff --git a/core/src/main/java/tech/ides/dsl/adaptor/ScriptDslAdaptor.scala b/core/src/main/java/tech/ides/dsl/adaptor/ScriptDslAdaptor.scala
index 565b7e9..39b042c 100644
--- a/core/src/main/java/tech/ides/dsl/adaptor/ScriptDslAdaptor.scala
+++ b/core/src/main/java/tech/ides/dsl/adaptor/ScriptDslAdaptor.scala
@@ -1,6 +1,6 @@
package tech.ides.dsl.adaptor
-import ides.dsl.parser.IdesDslParser.QueryContext
+import ides.dsl.parser.IdesParser.QueryContext
import tech.ides.dsl.listener.ScriptQueryExecListener
import tech.ides.dsl.statement.SqlStatement
diff --git a/core/src/main/java/tech/ides/dsl/adaptor/SelectAdaptor.scala b/core/src/main/java/tech/ides/dsl/adaptor/SelectAdaptor.scala
index 7faa4ad..9679a6b 100644
--- a/core/src/main/java/tech/ides/dsl/adaptor/SelectAdaptor.scala
+++ b/core/src/main/java/tech/ides/dsl/adaptor/SelectAdaptor.scala
@@ -1,7 +1,7 @@
package tech.ides.dsl.adaptor
-import ides.dsl.parser.IdesDslParser
-import ides.dsl.parser.IdesDslParser.SelectContext
+import ides.dsl.parser.IdesParser
+import ides.dsl.parser.IdesParser.SelectContext
import tech.ides.dsl.listener.ScriptQueryExecListener
import tech.ides.dsl.statement.{SelectSqlStatement, SqlStatement}
import tech.ides.dsl.utils.DslUtil.{currentText, parseAssetName}
@@ -11,7 +11,7 @@ import tech.ides.dsl.utils.DslUtil.{currentText, parseAssetName}
* Created by songgr on 2020/11/06.
*/
case class SelectAdaptor(scriptQueryExecListener: ScriptQueryExecListener) extends ScriptDslAdaptor {
- override def parse(context: IdesDslParser.QueryContext): SqlStatement = {
+ override def parse(context: IdesParser.QueryContext): SqlStatement = {
val selectContext = context.asInstanceOf[SelectContext]
val sql = currentText(selectContext)
@@ -21,7 +21,7 @@ case class SelectAdaptor(scriptQueryExecListener: ScriptQueryExecListener) exten
SelectSqlStatement(sql, tableName)
}
- override def enterContext(context: IdesDslParser.QueryContext): Unit = {
+ override def enterContext(context: IdesParser.QueryContext): Unit = {
val SelectSqlStatement(_sql, tableName) = parse(context)
val sparkSession = scriptQueryExecListener.sparkSession
diff --git a/core/src/main/java/tech/ides/dsl/listener/ScriptQueryExecListener.scala b/core/src/main/java/tech/ides/dsl/listener/ScriptQueryExecListener.scala
index 3bcc0ef..78f53af 100644
--- a/core/src/main/java/tech/ides/dsl/listener/ScriptQueryExecListener.scala
+++ b/core/src/main/java/tech/ides/dsl/listener/ScriptQueryExecListener.scala
@@ -2,7 +2,7 @@ package tech.ides.dsl.listener
import java.util.concurrent.atomic.AtomicReference
-import ides.dsl.parser.{IdesDslBaseListener, IdesDslParser}
+import ides.dsl.parser.{IdesParser, IdesParserBaseListener}
import org.apache.commons.lang3.StringUtils
import org.apache.spark.sql.SparkSession
import tech.ides.core.ScriptStage
@@ -16,7 +16,7 @@ import scala.collection.mutable
* 脚本执行监听器类
* Created by songgr on 2020/10/28.
*/
-class ScriptQueryExecListener(val sparkSession: SparkSession, val defaultPathPrefix:String, val owner:String) extends IdesDslBaseListener with Logging {
+class ScriptQueryExecListener(val sparkSession: SparkSession, val defaultPathPrefix:String, val owner:String) extends IdesParserBaseListener with Logging {
logInfo(s"create ScriptQueryExecListener for $owner.")
@@ -69,31 +69,122 @@ class ScriptQueryExecListener(val sparkSession: SparkSession, val defaultPathPre
/**
* 整个脚本的context
*/
- override def exitStatement(ctx: IdesDslParser.StatementContext): Unit = {}
+ override def exitStatement(ctx: IdesParser.StatementContext): Unit = {}
/**
- * 单条sql的context
+ * python 代码的context
+ *
+ * example:
+ * %python
+ * # use table
+ * a=1
+ * print(a)
+ * % > output
*/
- override def exitSql(ctx: IdesDslParser.SqlContext): Unit = {}
+ override def exitPy(ctx: IdesParser.PyContext): Unit = {
+ // todo 执行python代码
+ val pyMode = ctx.getStart.getText
+ val bracket_l = pyMode.indexOf('(')
+ val bracket_r = pyMode.indexOf(')')
+
+ val table = if ( bracket_l > 0 && bracket_r > bracket_l + 1) {
+ Some( pyMode.substring(bracket_l + 1, bracket_r) )
+ } else None
+
+ // todo table需要format
+ if (table.isDefined)
+ println("input table: " + table.get)
+
+ val context = ctx.pythonCode()
+ val pys = context.pyStatement()
+ println("total line: " + pys.size())
+ val s = context.getText
+ println("py: \n" + s)
+
+ // todo table需要format
+ if (ctx.outTable() != null) {
+ val tb = ctx.outTable().assetName()
+ println("py output: \n" + tb.getText)
+ }
+
+ }
+
+ /**
+ * sql脚本(jdbc语句)的context
+ * example:
+ * %sql
+ * # use table
+ * select 1 from test;
+ * % > output
+ */
+ override def exitSql(ctx: IdesParser.SqlContext): Unit = {
+ // todo 执行sql代码
+ val sqlMode = ctx.getStart.getText
+ val bracket_l = sqlMode.indexOf('(')
+ val bracket_r = sqlMode.indexOf(')')
+
+ val connect = if ( bracket_l > 0 && bracket_r > bracket_l + 1) {
+ Some( sqlMode.substring(bracket_l + 1, bracket_r) )
+ } else None
+
+ // todo connect需要format
+ if (connect.isDefined)
+ println("sql connect: " + connect.get)
+
+ val context = ctx.sqlCode()
+ val sqls = context.sqlStatement()
+ println("total line: " + sqls.size())
+ val s = context.getText
+ println("sql: \n" + s)
+
+ // todo table需要format
+ if (ctx.outTable() != null) {
+ val tb = ctx.outTable().assetName()
+ println("sql output: \n" + tb.getText)
+ }
+ }
+
+
+ /**
+ * shell脚本的context
+ * example:
+ * %sh
+ * # test
+ * ls -las /;
+ * % > output
+ */
+ override def exitSh(ctx: IdesParser.ShContext): Unit = {
+ val context = ctx.shellCode()
+ val shs = context.shellStatement()
+ println("total line: " + shs.size())
+ val s = context.getText
+ println("shell: \n" + s)
+
+ // todo table需要format
+ if (ctx.outTable() != null) {
+ val tb = ctx.outTable().assetName()
+ println("shell output: \n" + tb.getText)
+ }
+ }
/**
* load语句的context
*/
- override def exitLoad(ctx: IdesDslParser.LoadContext): Unit = {
+ override def exitLoad(ctx: IdesParser.LoadContext): Unit = {
LoadAdaptor(this).enterContext(ctx)
}
/**
* select语句的context
*/
- override def exitSelect(ctx: IdesDslParser.SelectContext): Unit = {
+ override def exitSelect(ctx: IdesParser.SelectContext): Unit = {
SelectAdaptor(this).enterContext(ctx)
}
/**
* save语句的context
*/
- override def exitSave(ctx: IdesDslParser.SaveContext): Unit = {
+ override def exitSave(ctx: IdesParser.SaveContext): Unit = {
SaveAdaptor(this).enterContext(ctx)
}
}
diff --git a/core/src/main/java/tech/ides/dsl/utils/DslUtil.scala b/core/src/main/java/tech/ides/dsl/utils/DslUtil.scala
index b599201..65dd767 100644
--- a/core/src/main/java/tech/ides/dsl/utils/DslUtil.scala
+++ b/core/src/main/java/tech/ides/dsl/utils/DslUtil.scala
@@ -1,7 +1,7 @@
package tech.ides.dsl.utils
-import ides.dsl.parser.{IdesDslLexer, IdesDslParser}
-import ides.dsl.parser.IdesDslParser._
+import ides.dsl.parser.{IdesLexer, IdesParser}
+import ides.dsl.parser.IdesParser._
import org.antlr.v4.runtime.{ParserRuleContext, Token}
import org.antlr.v4.runtime.misc.Interval
import org.antlr.v4.runtime.tree.TerminalNode
@@ -18,7 +18,7 @@ object DslUtil {
def currentText(ctx: QueryContext):String = {
if ( ctx == null ) return null
- val input = ctx.start.getTokenSource.asInstanceOf[IdesDslLexer]._input
+ val input = ctx.start.getTokenSource.asInstanceOf[IdesLexer]._input
val start = ctx.start.getStartIndex
val stop = ctx.stop.getStopIndex
@@ -50,13 +50,13 @@ object DslUtil {
}
tTpye match {
- case IdesDslParser.MUMERIC |
- IdesDslParser.IDENTIFIER
+ case IdesParser.MUMERIC |
+ IdesParser.IDENTIFIER
=> pt.getText
case
- IdesDslParser.STRING_TEXT |
- IdesDslParser.BLOCK_STRING_TEXT |
- IdesDslParser.QUOTED_TEXT
+ IdesParser.STRING_TEXT |
+ IdesParser.BLOCK_STRING_TEXT |
+ IdesParser.QUOTED_TEXT
=> cleanStr(pt.getText)
case _
=> pt.getText
diff --git a/core/src/test/java/tech/ides/core/test/ListenerTest.java b/core/src/test/java/tech/ides/core/test/ListenerTest.java
index 03f0d15..6e3227b 100644
--- a/core/src/test/java/tech/ides/core/test/ListenerTest.java
+++ b/core/src/test/java/tech/ides/core/test/ListenerTest.java
@@ -1,11 +1,7 @@
package tech.ides.core.test;
-import ides.dsl.parser.IdesDslBaseListener;
-import ides.dsl.parser.IdesDslLexer;
-import ides.dsl.parser.IdesDslParser;
+import ides.dsl.parser.*;
import org.antlr.v4.runtime.CharStream;
-import org.antlr.v4.runtime.CharStreams;
-import org.antlr.v4.runtime.CodePointCharStream;
import org.antlr.v4.runtime.CommonTokenStream;
import org.antlr.v4.runtime.tree.ParseTreeWalker;
import tech.ides.dsl.CaseChangeCharStream;
@@ -19,22 +15,28 @@
public class ListenerTest {
public static void main(String[] args) throws IOException {
// String expr = "load hive.`a.bc` where a.aa.a=1 and a.b = 's' and a='''ssdsde.sdede''' as table1;";
- String expr = "select 1 AS \n" +
+ String expr = "%py \n" +
+ "print('>')" +
+ "exit 1 " +
+ "\n%\n" +
+ "> abc\n" +
+ "select 1 AS \n" +
"\n" +
"\n" +
"\n" +
"\n" +
"\n" +
- " Tb1";
+ " Tb1;";
+ System.out.println(expr);
CharStream cpcs = new CaseChangeCharStream(expr);
- IdesDslLexer idesDslLexer = new IdesDslLexer(cpcs);
+ IdesLexer idesDslLexer = new IdesLexer(cpcs);
CommonTokenStream tokenStream = new CommonTokenStream(idesDslLexer);
- IdesDslParser parser = new IdesDslParser(tokenStream);
+ IdesParser parser = new IdesParser(tokenStream);
ScriptQueryExecListener listener = new ScriptQueryExecListener(null, "", "test");
- IdesDslParser.StatementContext statement = parser.statement();
+ IdesParser.StatementContext statement = parser.statement();
ParseTreeWalker.DEFAULT.walk(listener, statement);
}
diff --git a/dsl/src/main/java/ides/dsl/parser/IdesDsl.interp b/dsl/src/main/java/ides/dsl/parser/IdesDsl.interp
deleted file mode 100644
index 04e01f2..0000000
--- a/dsl/src/main/java/ides/dsl/parser/IdesDsl.interp
+++ /dev/null
@@ -1,87 +0,0 @@
-token literal names:
-null
-','
-'='
-'as'
-'into'
-'load'
-'save'
-'select'
-'options'
-'where'
-'and'
-'overwrite'
-'append'
-'errorIfExists'
-'ignore'
-null
-'connect'
-'set'
-'.'
-';'
-null
-null
-null
-null
-null
-null
-null
-null
-null
-
-token symbolic names:
-null
-null
-null
-AS
-INTO
-LOAD
-SAVE
-SELECT
-OPTIONS
-WHERE
-AND
-OVERWRITE
-APPEND
-ERRORIfExists
-IGNORE
-PARTITIONBY
-CONNECT
-SET
-DOT
-EOQ
-MUMERIC
-IDENTIFIER
-QUOTED_TEXT
-STRING_TEXT
-BLOCK_STRING_TEXT
-LINE_COMMENT
-BLOCK_COMMENT
-WS
-UNRECOGNIZED
-
-rule names:
-statement
-script
-query
-format
-path
-col
-colGroup
-whereExpressions
-partitionbyExpression
-booleanExpression
-keyName
-valueName
-expression
-qualifiedName
-asAsset
-assetName
-identifier
-quotedIdentifier
-where
-saveMode
-
-
-atn:
-[3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 3, 30, 156, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12, 4, 13, 9, 13, 4, 14, 9, 14, 4, 15, 9, 15, 4, 16, 9, 16, 4, 17, 9, 17, 4, 18, 9, 18, 4, 19, 9, 19, 4, 20, 9, 20, 4, 21, 9, 21, 3, 2, 7, 2, 44, 10, 2, 12, 2, 14, 2, 47, 11, 2, 3, 3, 3, 3, 3, 3, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 5, 4, 57, 10, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 5, 4, 64, 10, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 5, 4, 71, 10, 4, 3, 4, 5, 4, 74, 10, 4, 3, 4, 3, 4, 6, 4, 78, 10, 4, 13, 4, 14, 4, 79, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 5, 4, 91, 10, 4, 5, 4, 93, 10, 4, 3, 5, 3, 5, 5, 5, 97, 10, 5, 3, 6, 3, 6, 3, 7, 3, 7, 3, 8, 3, 8, 3, 8, 3, 9, 3, 9, 3, 9, 7, 9, 109, 10, 9, 12, 9, 14, 9, 112, 11, 9, 3, 10, 3, 10, 3, 10, 7, 10, 117, 10, 10, 12, 10, 14, 10, 120, 11, 10, 3, 11, 3, 11, 3, 11, 3, 12, 3, 12, 3, 13, 3, 13, 3, 14, 3, 14, 3, 14, 3, 14, 3, 15, 3, 15, 3, 15, 7, 15, 136, 10, 15, 12, 15, 14, 15, 139, 11, 15, 3, 16, 3, 16, 3, 16, 3, 17, 3, 17, 5, 17, 146, 10, 17, 3, 18, 3, 18, 3, 19, 3, 19, 3, 20, 3, 20, 3, 21, 3, 21, 3, 21, 2, 2, 22, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 2, 6, 3, 2, 21, 21, 4, 2, 22, 22, 24, 26, 3, 2, 10, 11, 3, 2, 13, 16, 2, 151, 2, 45, 3, 2, 2, 2, 4, 48, 3, 2, 2, 2, 6, 92, 3, 2, 2, 2, 8, 96, 3, 2, 2, 2, 10, 98, 3, 2, 2, 2, 12, 100, 3, 2, 2, 2, 14, 102, 3, 2, 2, 2, 16, 105, 3, 2, 2, 2, 18, 113, 3, 2, 2, 2, 20, 121, 3, 2, 2, 2, 22, 124, 3, 2, 2, 2, 24, 126, 3, 2, 2, 2, 26, 128, 3, 2, 2, 2, 28, 132, 3, 2, 2, 2, 30, 140, 3, 2, 2, 2, 32, 145, 3, 2, 2, 2, 34, 147, 3, 2, 2, 2, 36, 149, 3, 2, 2, 2, 38, 151, 3, 2, 2, 2, 40, 153, 3, 2, 2, 2, 42, 44, 5, 4, 3, 2, 43, 42, 3, 2, 2, 2, 44, 47, 3, 2, 2, 2, 45, 43, 3, 2, 2, 2, 45, 46, 3, 2, 2, 2, 46, 3, 3, 2, 2, 2, 47, 45, 3, 2, 2, 2, 48, 49, 5, 6, 4, 2, 49, 50, 7, 21, 2, 2, 50, 5, 3, 2, 2, 2, 51, 52, 7, 7, 2, 2, 52, 53, 5, 8, 5, 2, 53, 54, 7, 20, 2, 2, 54, 56, 5, 10, 6, 2, 55, 57, 5, 16, 9, 2, 56, 55, 3, 2, 2, 2, 56, 57, 3, 2, 2, 2, 57, 58, 3, 2, 2, 2, 58, 59, 5, 30, 16, 2, 59, 93, 3, 2, 2, 2, 60, 61, 7, 8, 2, 2, 61, 63, 5, 32, 17, 2, 62, 64, 5, 40, 21, 2, 63, 62, 3, 2, 2, 2, 63, 64, 3, 2, 2, 2, 64, 65, 3, 2, 2, 2, 65, 66, 7, 6, 2, 2, 66, 67, 5, 8, 5, 2, 67, 68, 7, 20, 2, 2, 68, 70, 5, 10, 6, 2, 69, 71, 5, 16, 9, 2, 70, 69, 3, 2, 2, 2, 70, 71, 3, 2, 2, 2, 71, 73, 3, 2, 2, 2, 72, 74, 5, 18, 10, 2, 73, 72, 3, 2, 2, 2, 73, 74, 3, 2, 2, 2, 74, 93, 3, 2, 2, 2, 75, 77, 7, 9, 2, 2, 76, 78, 10, 2, 2, 2, 77, 76, 3, 2, 2, 2, 78, 79, 3, 2, 2, 2, 79, 77, 3, 2, 2, 2, 79, 80, 3, 2, 2, 2, 80, 81, 3, 2, 2, 2, 81, 93, 5, 30, 16, 2, 82, 83, 7, 18, 2, 2, 83, 84, 5, 8, 5, 2, 84, 85, 5, 16, 9, 2, 85, 86, 5, 30, 16, 2, 86, 93, 3, 2, 2, 2, 87, 88, 7, 19, 2, 2, 88, 90, 5, 26, 14, 2, 89, 91, 5, 16, 9, 2, 90, 89, 3, 2, 2, 2, 90, 91, 3, 2, 2, 2, 91, 93, 3, 2, 2, 2, 92, 51, 3, 2, 2, 2, 92, 60, 3, 2, 2, 2, 92, 75, 3, 2, 2, 2, 92, 82, 3, 2, 2, 2, 92, 87, 3, 2, 2, 2, 93, 7, 3, 2, 2, 2, 94, 97, 5, 34, 18, 2, 95, 97, 5, 36, 19, 2, 96, 94, 3, 2, 2, 2, 96, 95, 3, 2, 2, 2, 97, 9, 3, 2, 2, 2, 98, 99, 5, 36, 19, 2, 99, 11, 3, 2, 2, 2, 100, 101, 5, 34, 18, 2, 101, 13, 3, 2, 2, 2, 102, 103, 7, 3, 2, 2, 103, 104, 5, 12, 7, 2, 104, 15, 3, 2, 2, 2, 105, 106, 5, 38, 20, 2, 106, 110, 5, 26, 14, 2, 107, 109, 5, 20, 11, 2, 108, 107, 3, 2, 2, 2, 109, 112, 3, 2, 2, 2, 110, 108, 3, 2, 2, 2, 110, 111, 3, 2, 2, 2, 111, 17, 3, 2, 2, 2, 112, 110, 3, 2, 2, 2, 113, 114, 7, 17, 2, 2, 114, 118, 5, 12, 7, 2, 115, 117, 5, 14, 8, 2, 116, 115, 3, 2, 2, 2, 117, 120, 3, 2, 2, 2, 118, 116, 3, 2, 2, 2, 118, 119, 3, 2, 2, 2, 119, 19, 3, 2, 2, 2, 120, 118, 3, 2, 2, 2, 121, 122, 7, 12, 2, 2, 122, 123, 5, 26, 14, 2, 123, 21, 3, 2, 2, 2, 124, 125, 5, 28, 15, 2, 125, 23, 3, 2, 2, 2, 126, 127, 9, 3, 2, 2, 127, 25, 3, 2, 2, 2, 128, 129, 5, 22, 12, 2, 129, 130, 7, 4, 2, 2, 130, 131, 5, 24, 13, 2, 131, 27, 3, 2, 2, 2, 132, 137, 5, 34, 18, 2, 133, 134, 7, 20, 2, 2, 134, 136, 5, 34, 18, 2, 135, 133, 3, 2, 2, 2, 136, 139, 3, 2, 2, 2, 137, 135, 3, 2, 2, 2, 137, 138, 3, 2, 2, 2, 138, 29, 3, 2, 2, 2, 139, 137, 3, 2, 2, 2, 140, 141, 7, 5, 2, 2, 141, 142, 5, 32, 17, 2, 142, 31, 3, 2, 2, 2, 143, 146, 5, 34, 18, 2, 144, 146, 5, 36, 19, 2, 145, 143, 3, 2, 2, 2, 145, 144, 3, 2, 2, 2, 146, 33, 3, 2, 2, 2, 147, 148, 7, 23, 2, 2, 148, 35, 3, 2, 2, 2, 149, 150, 7, 24, 2, 2, 150, 37, 3, 2, 2, 2, 151, 152, 9, 4, 2, 2, 152, 39, 3, 2, 2, 2, 153, 154, 9, 5, 2, 2, 154, 41, 3, 2, 2, 2, 15, 45, 56, 63, 70, 73, 79, 90, 92, 96, 110, 118, 137, 145]
\ No newline at end of file
diff --git a/dsl/src/main/java/ides/dsl/parser/IdesDsl.tokens b/dsl/src/main/java/ides/dsl/parser/IdesDsl.tokens
deleted file mode 100644
index 7f9cd9f..0000000
--- a/dsl/src/main/java/ides/dsl/parser/IdesDsl.tokens
+++ /dev/null
@@ -1,46 +0,0 @@
-T__0=1
-T__1=2
-AS=3
-INTO=4
-LOAD=5
-SAVE=6
-SELECT=7
-OPTIONS=8
-WHERE=9
-AND=10
-OVERWRITE=11
-APPEND=12
-ERRORIfExists=13
-IGNORE=14
-PARTITIONBY=15
-CONNECT=16
-SET=17
-DOT=18
-EOQ=19
-MUMERIC=20
-IDENTIFIER=21
-QUOTED_TEXT=22
-STRING_TEXT=23
-BLOCK_STRING_TEXT=24
-LINE_COMMENT=25
-BLOCK_COMMENT=26
-WS=27
-UNRECOGNIZED=28
-','=1
-'='=2
-'as'=3
-'into'=4
-'load'=5
-'save'=6
-'select'=7
-'options'=8
-'where'=9
-'and'=10
-'overwrite'=11
-'append'=12
-'errorIfExists'=13
-'ignore'=14
-'connect'=16
-'set'=17
-'.'=18
-';'=19
diff --git a/dsl/src/main/java/ides/dsl/parser/IdesDslBaseListener.java b/dsl/src/main/java/ides/dsl/parser/IdesDslBaseListener.java
deleted file mode 100644
index 199a66f..0000000
--- a/dsl/src/main/java/ides/dsl/parser/IdesDslBaseListener.java
+++ /dev/null
@@ -1,329 +0,0 @@
-// Generated from /Users/sgr/develop/github/ides/dsl/src/main/resources/IdesDsl.g4 by ANTLR 4.7.2
-
- package ides.dsl.parser;
-
-
-import org.antlr.v4.runtime.ParserRuleContext;
-import org.antlr.v4.runtime.tree.ErrorNode;
-import org.antlr.v4.runtime.tree.TerminalNode;
-
-/**
- * This class provides an empty implementation of {@link IdesDslListener},
- * which can be extended to create a listener which only needs to handle a subset
- * of the available methods.
- */
-public class IdesDslBaseListener implements IdesDslListener {
- /**
- * {@inheritDoc}
- *
- *
The default implementation does nothing.
- */
- @Override public void enterStatement(IdesDslParser.StatementContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitStatement(IdesDslParser.StatementContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterSql(IdesDslParser.SqlContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitSql(IdesDslParser.SqlContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterLoad(IdesDslParser.LoadContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitLoad(IdesDslParser.LoadContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterSave(IdesDslParser.SaveContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitSave(IdesDslParser.SaveContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterSelect(IdesDslParser.SelectContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitSelect(IdesDslParser.SelectContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterConnect(IdesDslParser.ConnectContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitConnect(IdesDslParser.ConnectContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterSet(IdesDslParser.SetContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitSet(IdesDslParser.SetContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterFormat(IdesDslParser.FormatContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitFormat(IdesDslParser.FormatContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterPath(IdesDslParser.PathContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitPath(IdesDslParser.PathContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterCol(IdesDslParser.ColContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitCol(IdesDslParser.ColContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterColGroup(IdesDslParser.ColGroupContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitColGroup(IdesDslParser.ColGroupContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterWhereExpressions(IdesDslParser.WhereExpressionsContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitWhereExpressions(IdesDslParser.WhereExpressionsContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterPartitionbyExpression(IdesDslParser.PartitionbyExpressionContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitPartitionbyExpression(IdesDslParser.PartitionbyExpressionContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterBooleanExpression(IdesDslParser.BooleanExpressionContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitBooleanExpression(IdesDslParser.BooleanExpressionContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterKeyName(IdesDslParser.KeyNameContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitKeyName(IdesDslParser.KeyNameContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterValueName(IdesDslParser.ValueNameContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitValueName(IdesDslParser.ValueNameContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterExpression(IdesDslParser.ExpressionContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitExpression(IdesDslParser.ExpressionContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterQualifiedName(IdesDslParser.QualifiedNameContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitQualifiedName(IdesDslParser.QualifiedNameContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterAsAsset(IdesDslParser.AsAssetContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitAsAsset(IdesDslParser.AsAssetContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterAssetName(IdesDslParser.AssetNameContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitAssetName(IdesDslParser.AssetNameContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterIdentifier(IdesDslParser.IdentifierContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitIdentifier(IdesDslParser.IdentifierContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterQuotedIdentifier(IdesDslParser.QuotedIdentifierContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitQuotedIdentifier(IdesDslParser.QuotedIdentifierContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterWhere(IdesDslParser.WhereContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitWhere(IdesDslParser.WhereContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterSaveMode(IdesDslParser.SaveModeContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitSaveMode(IdesDslParser.SaveModeContext ctx) { }
-
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterEveryRule(ParserRuleContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitEveryRule(ParserRuleContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void visitTerminal(TerminalNode node) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void visitErrorNode(ErrorNode node) { }
-}
\ No newline at end of file
diff --git a/dsl/src/main/java/ides/dsl/parser/IdesDslBaseVisitor.java b/dsl/src/main/java/ides/dsl/parser/IdesDslBaseVisitor.java
deleted file mode 100644
index f0f50e5..0000000
--- a/dsl/src/main/java/ides/dsl/parser/IdesDslBaseVisitor.java
+++ /dev/null
@@ -1,184 +0,0 @@
-// Generated from /Users/sgr/develop/github/ides/dsl/src/main/resources/IdesDsl.g4 by ANTLR 4.7.2
-
- package ides.dsl.parser;
-
-import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;
-
-/**
- * This class provides an empty implementation of {@link IdesDslVisitor},
- * which can be extended to create a visitor which only needs to handle a subset
- * of the available methods.
- *
- * @param The return type of the visit operation. Use {@link Void} for
- * operations with no return type.
- */
-public class IdesDslBaseVisitor extends AbstractParseTreeVisitor implements IdesDslVisitor {
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitStatement(IdesDslParser.StatementContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitSql(IdesDslParser.SqlContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitLoad(IdesDslParser.LoadContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitSave(IdesDslParser.SaveContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitSelect(IdesDslParser.SelectContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitConnect(IdesDslParser.ConnectContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitSet(IdesDslParser.SetContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitFormat(IdesDslParser.FormatContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitPath(IdesDslParser.PathContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitCol(IdesDslParser.ColContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitColGroup(IdesDslParser.ColGroupContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitWhereExpressions(IdesDslParser.WhereExpressionsContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitPartitionbyExpression(IdesDslParser.PartitionbyExpressionContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitBooleanExpression(IdesDslParser.BooleanExpressionContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitKeyName(IdesDslParser.KeyNameContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitValueName(IdesDslParser.ValueNameContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitExpression(IdesDslParser.ExpressionContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitQualifiedName(IdesDslParser.QualifiedNameContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitAsAsset(IdesDslParser.AsAssetContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitAssetName(IdesDslParser.AssetNameContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitIdentifier(IdesDslParser.IdentifierContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitQuotedIdentifier(IdesDslParser.QuotedIdentifierContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitWhere(IdesDslParser.WhereContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitSaveMode(IdesDslParser.SaveModeContext ctx) { return visitChildren(ctx); }
-}
\ No newline at end of file
diff --git a/dsl/src/main/java/ides/dsl/parser/IdesDslLexer.interp b/dsl/src/main/java/ides/dsl/parser/IdesDslLexer.interp
deleted file mode 100644
index 8f9cfd8..0000000
--- a/dsl/src/main/java/ides/dsl/parser/IdesDslLexer.interp
+++ /dev/null
@@ -1,103 +0,0 @@
-token literal names:
-null
-','
-'='
-'as'
-'into'
-'load'
-'save'
-'select'
-'options'
-'where'
-'and'
-'overwrite'
-'append'
-'errorIfExists'
-'ignore'
-null
-'connect'
-'set'
-'.'
-';'
-null
-null
-null
-null
-null
-null
-null
-null
-null
-
-token symbolic names:
-null
-null
-null
-AS
-INTO
-LOAD
-SAVE
-SELECT
-OPTIONS
-WHERE
-AND
-OVERWRITE
-APPEND
-ERRORIfExists
-IGNORE
-PARTITIONBY
-CONNECT
-SET
-DOT
-EOQ
-MUMERIC
-IDENTIFIER
-QUOTED_TEXT
-STRING_TEXT
-BLOCK_STRING_TEXT
-LINE_COMMENT
-BLOCK_COMMENT
-WS
-UNRECOGNIZED
-
-rule names:
-T__0
-T__1
-AS
-INTO
-LOAD
-SAVE
-SELECT
-OPTIONS
-WHERE
-AND
-OVERWRITE
-APPEND
-ERRORIfExists
-IGNORE
-PARTITIONBY
-CONNECT
-SET
-DOT
-EOQ
-MUMERIC
-IDENTIFIER
-QUOTED_TEXT
-STRING_TEXT
-BLOCK_STRING_TEXT
-DIGIT
-LETTER
-LINE_COMMENT
-BLOCK_COMMENT
-WS
-UNRECOGNIZED
-
-channel names:
-DEFAULT_TOKEN_CHANNEL
-HIDDEN
-
-mode names:
-DEFAULT_MODE
-
-atn:
-[3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 2, 30, 328, 8, 1, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12, 4, 13, 9, 13, 4, 14, 9, 14, 4, 15, 9, 15, 4, 16, 9, 16, 4, 17, 9, 17, 4, 18, 9, 18, 4, 19, 9, 19, 4, 20, 9, 20, 4, 21, 9, 21, 4, 22, 9, 22, 4, 23, 9, 23, 4, 24, 9, 24, 4, 25, 9, 25, 4, 26, 9, 26, 4, 27, 9, 27, 4, 28, 9, 28, 4, 29, 9, 29, 4, 30, 9, 30, 4, 31, 9, 31, 3, 2, 3, 2, 3, 3, 3, 3, 3, 4, 3, 4, 3, 4, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 7, 3, 7, 3, 7, 3, 7, 3, 7, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 11, 3, 11, 3, 11, 3, 11, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 13, 3, 13, 3, 13, 3, 13, 3, 13, 3, 13, 3, 13, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 5, 16, 171, 10, 16, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 18, 3, 18, 3, 18, 3, 18, 3, 19, 3, 19, 3, 20, 3, 20, 3, 21, 5, 21, 190, 10, 21, 3, 21, 7, 21, 193, 10, 21, 12, 21, 14, 21, 196, 11, 21, 3, 21, 5, 21, 199, 10, 21, 3, 21, 6, 21, 202, 10, 21, 13, 21, 14, 21, 203, 3, 22, 3, 22, 3, 22, 3, 22, 7, 22, 210, 10, 22, 12, 22, 14, 22, 213, 11, 22, 3, 22, 3, 22, 3, 22, 3, 22, 6, 22, 219, 10, 22, 13, 22, 14, 22, 220, 5, 22, 223, 10, 22, 3, 23, 3, 23, 3, 23, 3, 23, 7, 23, 229, 10, 23, 12, 23, 14, 23, 232, 11, 23, 3, 23, 3, 23, 3, 24, 3, 24, 3, 24, 3, 24, 7, 24, 240, 10, 24, 12, 24, 14, 24, 243, 11, 24, 3, 24, 3, 24, 3, 24, 3, 24, 3, 24, 7, 24, 250, 10, 24, 12, 24, 14, 24, 253, 11, 24, 3, 24, 5, 24, 256, 10, 24, 3, 25, 3, 25, 3, 25, 3, 25, 3, 25, 7, 25, 263, 10, 25, 12, 25, 14, 25, 266, 11, 25, 3, 25, 3, 25, 3, 25, 3, 25, 3, 25, 3, 25, 3, 25, 3, 25, 7, 25, 276, 10, 25, 12, 25, 14, 25, 279, 11, 25, 3, 25, 3, 25, 3, 25, 5, 25, 284, 10, 25, 3, 26, 3, 26, 3, 27, 3, 27, 3, 28, 3, 28, 3, 28, 3, 28, 7, 28, 294, 10, 28, 12, 28, 14, 28, 297, 11, 28, 3, 28, 3, 28, 3, 28, 5, 28, 302, 10, 28, 3, 28, 3, 28, 3, 29, 3, 29, 3, 29, 3, 29, 7, 29, 310, 10, 29, 12, 29, 14, 29, 313, 11, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 30, 6, 30, 321, 10, 30, 13, 30, 14, 30, 322, 3, 30, 3, 30, 3, 31, 3, 31, 8, 230, 241, 251, 264, 277, 311, 2, 32, 3, 3, 5, 4, 7, 5, 9, 6, 11, 7, 13, 8, 15, 9, 17, 10, 19, 11, 21, 12, 23, 13, 25, 14, 27, 15, 29, 16, 31, 17, 33, 18, 35, 19, 37, 20, 39, 21, 41, 22, 43, 23, 45, 24, 47, 25, 49, 26, 51, 2, 53, 2, 55, 27, 57, 28, 59, 29, 61, 30, 3, 2, 10, 4, 2, 45, 45, 47, 47, 4, 2, 94, 94, 98, 98, 4, 2, 41, 41, 94, 94, 4, 2, 36, 36, 94, 94, 3, 2, 50, 59, 4, 2, 67, 92, 99, 124, 4, 2, 12, 12, 15, 15, 5, 2, 11, 12, 15, 15, 34, 34, 2, 352, 2, 3, 3, 2, 2, 2, 2, 5, 3, 2, 2, 2, 2, 7, 3, 2, 2, 2, 2, 9, 3, 2, 2, 2, 2, 11, 3, 2, 2, 2, 2, 13, 3, 2, 2, 2, 2, 15, 3, 2, 2, 2, 2, 17, 3, 2, 2, 2, 2, 19, 3, 2, 2, 2, 2, 21, 3, 2, 2, 2, 2, 23, 3, 2, 2, 2, 2, 25, 3, 2, 2, 2, 2, 27, 3, 2, 2, 2, 2, 29, 3, 2, 2, 2, 2, 31, 3, 2, 2, 2, 2, 33, 3, 2, 2, 2, 2, 35, 3, 2, 2, 2, 2, 37, 3, 2, 2, 2, 2, 39, 3, 2, 2, 2, 2, 41, 3, 2, 2, 2, 2, 43, 3, 2, 2, 2, 2, 45, 3, 2, 2, 2, 2, 47, 3, 2, 2, 2, 2, 49, 3, 2, 2, 2, 2, 55, 3, 2, 2, 2, 2, 57, 3, 2, 2, 2, 2, 59, 3, 2, 2, 2, 2, 61, 3, 2, 2, 2, 3, 63, 3, 2, 2, 2, 5, 65, 3, 2, 2, 2, 7, 67, 3, 2, 2, 2, 9, 70, 3, 2, 2, 2, 11, 75, 3, 2, 2, 2, 13, 80, 3, 2, 2, 2, 15, 85, 3, 2, 2, 2, 17, 92, 3, 2, 2, 2, 19, 100, 3, 2, 2, 2, 21, 106, 3, 2, 2, 2, 23, 110, 3, 2, 2, 2, 25, 120, 3, 2, 2, 2, 27, 127, 3, 2, 2, 2, 29, 141, 3, 2, 2, 2, 31, 170, 3, 2, 2, 2, 33, 172, 3, 2, 2, 2, 35, 180, 3, 2, 2, 2, 37, 184, 3, 2, 2, 2, 39, 186, 3, 2, 2, 2, 41, 189, 3, 2, 2, 2, 43, 222, 3, 2, 2, 2, 45, 224, 3, 2, 2, 2, 47, 255, 3, 2, 2, 2, 49, 283, 3, 2, 2, 2, 51, 285, 3, 2, 2, 2, 53, 287, 3, 2, 2, 2, 55, 289, 3, 2, 2, 2, 57, 305, 3, 2, 2, 2, 59, 320, 3, 2, 2, 2, 61, 326, 3, 2, 2, 2, 63, 64, 7, 46, 2, 2, 64, 4, 3, 2, 2, 2, 65, 66, 7, 63, 2, 2, 66, 6, 3, 2, 2, 2, 67, 68, 7, 99, 2, 2, 68, 69, 7, 117, 2, 2, 69, 8, 3, 2, 2, 2, 70, 71, 7, 107, 2, 2, 71, 72, 7, 112, 2, 2, 72, 73, 7, 118, 2, 2, 73, 74, 7, 113, 2, 2, 74, 10, 3, 2, 2, 2, 75, 76, 7, 110, 2, 2, 76, 77, 7, 113, 2, 2, 77, 78, 7, 99, 2, 2, 78, 79, 7, 102, 2, 2, 79, 12, 3, 2, 2, 2, 80, 81, 7, 117, 2, 2, 81, 82, 7, 99, 2, 2, 82, 83, 7, 120, 2, 2, 83, 84, 7, 103, 2, 2, 84, 14, 3, 2, 2, 2, 85, 86, 7, 117, 2, 2, 86, 87, 7, 103, 2, 2, 87, 88, 7, 110, 2, 2, 88, 89, 7, 103, 2, 2, 89, 90, 7, 101, 2, 2, 90, 91, 7, 118, 2, 2, 91, 16, 3, 2, 2, 2, 92, 93, 7, 113, 2, 2, 93, 94, 7, 114, 2, 2, 94, 95, 7, 118, 2, 2, 95, 96, 7, 107, 2, 2, 96, 97, 7, 113, 2, 2, 97, 98, 7, 112, 2, 2, 98, 99, 7, 117, 2, 2, 99, 18, 3, 2, 2, 2, 100, 101, 7, 121, 2, 2, 101, 102, 7, 106, 2, 2, 102, 103, 7, 103, 2, 2, 103, 104, 7, 116, 2, 2, 104, 105, 7, 103, 2, 2, 105, 20, 3, 2, 2, 2, 106, 107, 7, 99, 2, 2, 107, 108, 7, 112, 2, 2, 108, 109, 7, 102, 2, 2, 109, 22, 3, 2, 2, 2, 110, 111, 7, 113, 2, 2, 111, 112, 7, 120, 2, 2, 112, 113, 7, 103, 2, 2, 113, 114, 7, 116, 2, 2, 114, 115, 7, 121, 2, 2, 115, 116, 7, 116, 2, 2, 116, 117, 7, 107, 2, 2, 117, 118, 7, 118, 2, 2, 118, 119, 7, 103, 2, 2, 119, 24, 3, 2, 2, 2, 120, 121, 7, 99, 2, 2, 121, 122, 7, 114, 2, 2, 122, 123, 7, 114, 2, 2, 123, 124, 7, 103, 2, 2, 124, 125, 7, 112, 2, 2, 125, 126, 7, 102, 2, 2, 126, 26, 3, 2, 2, 2, 127, 128, 7, 103, 2, 2, 128, 129, 7, 116, 2, 2, 129, 130, 7, 116, 2, 2, 130, 131, 7, 113, 2, 2, 131, 132, 7, 116, 2, 2, 132, 133, 7, 75, 2, 2, 133, 134, 7, 104, 2, 2, 134, 135, 7, 71, 2, 2, 135, 136, 7, 122, 2, 2, 136, 137, 7, 107, 2, 2, 137, 138, 7, 117, 2, 2, 138, 139, 7, 118, 2, 2, 139, 140, 7, 117, 2, 2, 140, 28, 3, 2, 2, 2, 141, 142, 7, 107, 2, 2, 142, 143, 7, 105, 2, 2, 143, 144, 7, 112, 2, 2, 144, 145, 7, 113, 2, 2, 145, 146, 7, 116, 2, 2, 146, 147, 7, 103, 2, 2, 147, 30, 3, 2, 2, 2, 148, 149, 7, 114, 2, 2, 149, 150, 7, 99, 2, 2, 150, 151, 7, 116, 2, 2, 151, 152, 7, 118, 2, 2, 152, 153, 7, 107, 2, 2, 153, 154, 7, 118, 2, 2, 154, 155, 7, 107, 2, 2, 155, 156, 7, 113, 2, 2, 156, 157, 7, 112, 2, 2, 157, 158, 7, 68, 2, 2, 158, 171, 7, 123, 2, 2, 159, 160, 7, 114, 2, 2, 160, 161, 7, 99, 2, 2, 161, 162, 7, 116, 2, 2, 162, 163, 7, 118, 2, 2, 163, 164, 7, 107, 2, 2, 164, 165, 7, 118, 2, 2, 165, 166, 7, 107, 2, 2, 166, 167, 7, 113, 2, 2, 167, 168, 7, 112, 2, 2, 168, 169, 7, 100, 2, 2, 169, 171, 7, 123, 2, 2, 170, 148, 3, 2, 2, 2, 170, 159, 3, 2, 2, 2, 171, 32, 3, 2, 2, 2, 172, 173, 7, 101, 2, 2, 173, 174, 7, 113, 2, 2, 174, 175, 7, 112, 2, 2, 175, 176, 7, 112, 2, 2, 176, 177, 7, 103, 2, 2, 177, 178, 7, 101, 2, 2, 178, 179, 7, 118, 2, 2, 179, 34, 3, 2, 2, 2, 180, 181, 7, 117, 2, 2, 181, 182, 7, 103, 2, 2, 182, 183, 7, 118, 2, 2, 183, 36, 3, 2, 2, 2, 184, 185, 7, 48, 2, 2, 185, 38, 3, 2, 2, 2, 186, 187, 7, 61, 2, 2, 187, 40, 3, 2, 2, 2, 188, 190, 9, 2, 2, 2, 189, 188, 3, 2, 2, 2, 189, 190, 3, 2, 2, 2, 190, 194, 3, 2, 2, 2, 191, 193, 5, 51, 26, 2, 192, 191, 3, 2, 2, 2, 193, 196, 3, 2, 2, 2, 194, 192, 3, 2, 2, 2, 194, 195, 3, 2, 2, 2, 195, 198, 3, 2, 2, 2, 196, 194, 3, 2, 2, 2, 197, 199, 7, 48, 2, 2, 198, 197, 3, 2, 2, 2, 198, 199, 3, 2, 2, 2, 199, 201, 3, 2, 2, 2, 200, 202, 5, 51, 26, 2, 201, 200, 3, 2, 2, 2, 202, 203, 3, 2, 2, 2, 203, 201, 3, 2, 2, 2, 203, 204, 3, 2, 2, 2, 204, 42, 3, 2, 2, 2, 205, 211, 5, 53, 27, 2, 206, 210, 5, 51, 26, 2, 207, 210, 5, 53, 27, 2, 208, 210, 7, 97, 2, 2, 209, 206, 3, 2, 2, 2, 209, 207, 3, 2, 2, 2, 209, 208, 3, 2, 2, 2, 210, 213, 3, 2, 2, 2, 211, 209, 3, 2, 2, 2, 211, 212, 3, 2, 2, 2, 212, 223, 3, 2, 2, 2, 213, 211, 3, 2, 2, 2, 214, 218, 7, 97, 2, 2, 215, 219, 5, 51, 26, 2, 216, 219, 5, 53, 27, 2, 217, 219, 7, 97, 2, 2, 218, 215, 3, 2, 2, 2, 218, 216, 3, 2, 2, 2, 218, 217, 3, 2, 2, 2, 219, 220, 3, 2, 2, 2, 220, 218, 3, 2, 2, 2, 220, 221, 3, 2, 2, 2, 221, 223, 3, 2, 2, 2, 222, 205, 3, 2, 2, 2, 222, 214, 3, 2, 2, 2, 223, 44, 3, 2, 2, 2, 224, 230, 7, 98, 2, 2, 225, 229, 10, 3, 2, 2, 226, 227, 7, 94, 2, 2, 227, 229, 11, 2, 2, 2, 228, 225, 3, 2, 2, 2, 228, 226, 3, 2, 2, 2, 229, 232, 3, 2, 2, 2, 230, 231, 3, 2, 2, 2, 230, 228, 3, 2, 2, 2, 231, 233, 3, 2, 2, 2, 232, 230, 3, 2, 2, 2, 233, 234, 7, 98, 2, 2, 234, 46, 3, 2, 2, 2, 235, 241, 7, 41, 2, 2, 236, 240, 10, 4, 2, 2, 237, 238, 7, 94, 2, 2, 238, 240, 11, 2, 2, 2, 239, 236, 3, 2, 2, 2, 239, 237, 3, 2, 2, 2, 240, 243, 3, 2, 2, 2, 241, 242, 3, 2, 2, 2, 241, 239, 3, 2, 2, 2, 242, 244, 3, 2, 2, 2, 243, 241, 3, 2, 2, 2, 244, 256, 7, 41, 2, 2, 245, 251, 7, 36, 2, 2, 246, 250, 10, 5, 2, 2, 247, 248, 7, 94, 2, 2, 248, 250, 11, 2, 2, 2, 249, 246, 3, 2, 2, 2, 249, 247, 3, 2, 2, 2, 250, 253, 3, 2, 2, 2, 251, 252, 3, 2, 2, 2, 251, 249, 3, 2, 2, 2, 252, 254, 3, 2, 2, 2, 253, 251, 3, 2, 2, 2, 254, 256, 7, 36, 2, 2, 255, 235, 3, 2, 2, 2, 255, 245, 3, 2, 2, 2, 256, 48, 3, 2, 2, 2, 257, 258, 7, 41, 2, 2, 258, 259, 7, 41, 2, 2, 259, 260, 7, 41, 2, 2, 260, 264, 3, 2, 2, 2, 261, 263, 11, 2, 2, 2, 262, 261, 3, 2, 2, 2, 263, 266, 3, 2, 2, 2, 264, 265, 3, 2, 2, 2, 264, 262, 3, 2, 2, 2, 265, 267, 3, 2, 2, 2, 266, 264, 3, 2, 2, 2, 267, 268, 7, 41, 2, 2, 268, 269, 7, 41, 2, 2, 269, 284, 7, 41, 2, 2, 270, 271, 7, 36, 2, 2, 271, 272, 7, 36, 2, 2, 272, 273, 7, 36, 2, 2, 273, 277, 3, 2, 2, 2, 274, 276, 11, 2, 2, 2, 275, 274, 3, 2, 2, 2, 276, 279, 3, 2, 2, 2, 277, 278, 3, 2, 2, 2, 277, 275, 3, 2, 2, 2, 278, 280, 3, 2, 2, 2, 279, 277, 3, 2, 2, 2, 280, 281, 7, 36, 2, 2, 281, 282, 7, 36, 2, 2, 282, 284, 7, 36, 2, 2, 283, 257, 3, 2, 2, 2, 283, 270, 3, 2, 2, 2, 284, 50, 3, 2, 2, 2, 285, 286, 9, 6, 2, 2, 286, 52, 3, 2, 2, 2, 287, 288, 9, 7, 2, 2, 288, 54, 3, 2, 2, 2, 289, 290, 7, 47, 2, 2, 290, 291, 7, 47, 2, 2, 291, 295, 3, 2, 2, 2, 292, 294, 10, 8, 2, 2, 293, 292, 3, 2, 2, 2, 294, 297, 3, 2, 2, 2, 295, 293, 3, 2, 2, 2, 295, 296, 3, 2, 2, 2, 296, 301, 3, 2, 2, 2, 297, 295, 3, 2, 2, 2, 298, 302, 7, 12, 2, 2, 299, 300, 7, 15, 2, 2, 300, 302, 7, 12, 2, 2, 301, 298, 3, 2, 2, 2, 301, 299, 3, 2, 2, 2, 301, 302, 3, 2, 2, 2, 302, 303, 3, 2, 2, 2, 303, 304, 8, 28, 2, 2, 304, 56, 3, 2, 2, 2, 305, 306, 7, 49, 2, 2, 306, 307, 7, 44, 2, 2, 307, 311, 3, 2, 2, 2, 308, 310, 11, 2, 2, 2, 309, 308, 3, 2, 2, 2, 310, 313, 3, 2, 2, 2, 311, 312, 3, 2, 2, 2, 311, 309, 3, 2, 2, 2, 312, 314, 3, 2, 2, 2, 313, 311, 3, 2, 2, 2, 314, 315, 7, 44, 2, 2, 315, 316, 7, 49, 2, 2, 316, 317, 3, 2, 2, 2, 317, 318, 8, 29, 2, 2, 318, 58, 3, 2, 2, 2, 319, 321, 9, 9, 2, 2, 320, 319, 3, 2, 2, 2, 321, 322, 3, 2, 2, 2, 322, 320, 3, 2, 2, 2, 322, 323, 3, 2, 2, 2, 323, 324, 3, 2, 2, 2, 324, 325, 8, 30, 2, 2, 325, 60, 3, 2, 2, 2, 326, 327, 11, 2, 2, 2, 327, 62, 3, 2, 2, 2, 27, 2, 170, 189, 194, 198, 203, 209, 211, 218, 220, 222, 228, 230, 239, 241, 249, 251, 255, 264, 277, 283, 295, 301, 311, 322, 3, 2, 3, 2]
\ No newline at end of file
diff --git a/dsl/src/main/java/ides/dsl/parser/IdesDslLexer.java b/dsl/src/main/java/ides/dsl/parser/IdesDslLexer.java
deleted file mode 100644
index cd26ed5..0000000
--- a/dsl/src/main/java/ides/dsl/parser/IdesDslLexer.java
+++ /dev/null
@@ -1,245 +0,0 @@
-// Generated from /Users/sgr/develop/github/ides/dsl/src/main/resources/IdesDsl.g4 by ANTLR 4.7.2
-
- package ides.dsl.parser;
-
-import org.antlr.v4.runtime.Lexer;
-import org.antlr.v4.runtime.CharStream;
-import org.antlr.v4.runtime.Token;
-import org.antlr.v4.runtime.TokenStream;
-import org.antlr.v4.runtime.*;
-import org.antlr.v4.runtime.atn.*;
-import org.antlr.v4.runtime.dfa.DFA;
-import org.antlr.v4.runtime.misc.*;
-
-@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"})
-public class IdesDslLexer extends Lexer {
- static { RuntimeMetaData.checkVersion("4.7.2", RuntimeMetaData.VERSION); }
-
- protected static final DFA[] _decisionToDFA;
- protected static final PredictionContextCache _sharedContextCache =
- new PredictionContextCache();
- public static final int
- T__0=1, T__1=2, AS=3, INTO=4, LOAD=5, SAVE=6, SELECT=7, OPTIONS=8, WHERE=9,
- AND=10, OVERWRITE=11, APPEND=12, ERRORIfExists=13, IGNORE=14, PARTITIONBY=15,
- CONNECT=16, SET=17, DOT=18, EOQ=19, MUMERIC=20, IDENTIFIER=21, QUOTED_TEXT=22,
- STRING_TEXT=23, BLOCK_STRING_TEXT=24, LINE_COMMENT=25, BLOCK_COMMENT=26,
- WS=27, UNRECOGNIZED=28;
- public static String[] channelNames = {
- "DEFAULT_TOKEN_CHANNEL", "HIDDEN"
- };
-
- public static String[] modeNames = {
- "DEFAULT_MODE"
- };
-
- private static String[] makeRuleNames() {
- return new String[] {
- "T__0", "T__1", "AS", "INTO", "LOAD", "SAVE", "SELECT", "OPTIONS", "WHERE",
- "AND", "OVERWRITE", "APPEND", "ERRORIfExists", "IGNORE", "PARTITIONBY",
- "CONNECT", "SET", "DOT", "EOQ", "MUMERIC", "IDENTIFIER", "QUOTED_TEXT",
- "STRING_TEXT", "BLOCK_STRING_TEXT", "DIGIT", "LETTER", "LINE_COMMENT",
- "BLOCK_COMMENT", "WS", "UNRECOGNIZED"
- };
- }
- public static final String[] ruleNames = makeRuleNames();
-
- private static String[] makeLiteralNames() {
- return new String[] {
- null, "','", "'='", "'as'", "'into'", "'load'", "'save'", "'select'",
- "'options'", "'where'", "'and'", "'overwrite'", "'append'", "'errorIfExists'",
- "'ignore'", null, "'connect'", "'set'", "'.'", "';'"
- };
- }
- private static final String[] _LITERAL_NAMES = makeLiteralNames();
- private static String[] makeSymbolicNames() {
- return new String[] {
- null, null, null, "AS", "INTO", "LOAD", "SAVE", "SELECT", "OPTIONS",
- "WHERE", "AND", "OVERWRITE", "APPEND", "ERRORIfExists", "IGNORE", "PARTITIONBY",
- "CONNECT", "SET", "DOT", "EOQ", "MUMERIC", "IDENTIFIER", "QUOTED_TEXT",
- "STRING_TEXT", "BLOCK_STRING_TEXT", "LINE_COMMENT", "BLOCK_COMMENT",
- "WS", "UNRECOGNIZED"
- };
- }
- 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;
- }
-
-
- public IdesDslLexer(CharStream input) {
- super(input);
- _interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
- }
-
- @Override
- public String getGrammarFileName() { return "IdesDsl.g4"; }
-
- @Override
- public String[] getRuleNames() { return ruleNames; }
-
- @Override
- public String getSerializedATN() { return _serializedATN; }
-
- @Override
- public String[] getChannelNames() { return channelNames; }
-
- @Override
- public String[] getModeNames() { return modeNames; }
-
- @Override
- public ATN getATN() { return _ATN; }
-
- public static final String _serializedATN =
- "\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2\36\u0148\b\1\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\3\2"+
- "\3\2\3\3\3\3\3\4\3\4\3\4\3\5\3\5\3\5\3\5\3\5\3\6\3\6\3\6\3\6\3\6\3\7\3"+
- "\7\3\7\3\7\3\7\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\t\3\t\3\t\3\t\3\t\3\t\3\t"+
- "\3\t\3\n\3\n\3\n\3\n\3\n\3\n\3\13\3\13\3\13\3\13\3\f\3\f\3\f\3\f\3\f\3"+
- "\f\3\f\3\f\3\f\3\f\3\r\3\r\3\r\3\r\3\r\3\r\3\r\3\16\3\16\3\16\3\16\3\16"+
- "\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\17\3\17\3\17\3\17\3\17"+
- "\3\17\3\17\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20"+
- "\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\5\20\u00ab\n\20\3\21"+
- "\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\22\3\22\3\22\3\22\3\23\3\23\3\24"+
- "\3\24\3\25\5\25\u00be\n\25\3\25\7\25\u00c1\n\25\f\25\16\25\u00c4\13\25"+
- "\3\25\5\25\u00c7\n\25\3\25\6\25\u00ca\n\25\r\25\16\25\u00cb\3\26\3\26"+
- "\3\26\3\26\7\26\u00d2\n\26\f\26\16\26\u00d5\13\26\3\26\3\26\3\26\3\26"+
- "\6\26\u00db\n\26\r\26\16\26\u00dc\5\26\u00df\n\26\3\27\3\27\3\27\3\27"+
- "\7\27\u00e5\n\27\f\27\16\27\u00e8\13\27\3\27\3\27\3\30\3\30\3\30\3\30"+
- "\7\30\u00f0\n\30\f\30\16\30\u00f3\13\30\3\30\3\30\3\30\3\30\3\30\7\30"+
- "\u00fa\n\30\f\30\16\30\u00fd\13\30\3\30\5\30\u0100\n\30\3\31\3\31\3\31"+
- "\3\31\3\31\7\31\u0107\n\31\f\31\16\31\u010a\13\31\3\31\3\31\3\31\3\31"+
- "\3\31\3\31\3\31\3\31\7\31\u0114\n\31\f\31\16\31\u0117\13\31\3\31\3\31"+
- "\3\31\5\31\u011c\n\31\3\32\3\32\3\33\3\33\3\34\3\34\3\34\3\34\7\34\u0126"+
- "\n\34\f\34\16\34\u0129\13\34\3\34\3\34\3\34\5\34\u012e\n\34\3\34\3\34"+
- "\3\35\3\35\3\35\3\35\7\35\u0136\n\35\f\35\16\35\u0139\13\35\3\35\3\35"+
- "\3\35\3\35\3\35\3\36\6\36\u0141\n\36\r\36\16\36\u0142\3\36\3\36\3\37\3"+
- "\37\b\u00e6\u00f1\u00fb\u0108\u0115\u0137\2 \3\3\5\4\7\5\t\6\13\7\r\b"+
- "\17\t\21\n\23\13\25\f\27\r\31\16\33\17\35\20\37\21!\22#\23%\24\'\25)\26"+
- "+\27-\30/\31\61\32\63\2\65\2\67\339\34;\35=\36\3\2\n\4\2--//\4\2^^bb\4"+
- "\2))^^\4\2$$^^\3\2\62;\4\2C\\c|\4\2\f\f\17\17\5\2\13\f\17\17\"\"\2\u0160"+
- "\2\3\3\2\2\2\2\5\3\2\2\2\2\7\3\2\2\2\2\t\3\2\2\2\2\13\3\2\2\2\2\r\3\2"+
- "\2\2\2\17\3\2\2\2\2\21\3\2\2\2\2\23\3\2\2\2\2\25\3\2\2\2\2\27\3\2\2\2"+
- "\2\31\3\2\2\2\2\33\3\2\2\2\2\35\3\2\2\2\2\37\3\2\2\2\2!\3\2\2\2\2#\3\2"+
- "\2\2\2%\3\2\2\2\2\'\3\2\2\2\2)\3\2\2\2\2+\3\2\2\2\2-\3\2\2\2\2/\3\2\2"+
- "\2\2\61\3\2\2\2\2\67\3\2\2\2\29\3\2\2\2\2;\3\2\2\2\2=\3\2\2\2\3?\3\2\2"+
- "\2\5A\3\2\2\2\7C\3\2\2\2\tF\3\2\2\2\13K\3\2\2\2\rP\3\2\2\2\17U\3\2\2\2"+
- "\21\\\3\2\2\2\23d\3\2\2\2\25j\3\2\2\2\27n\3\2\2\2\31x\3\2\2\2\33\177\3"+
- "\2\2\2\35\u008d\3\2\2\2\37\u00aa\3\2\2\2!\u00ac\3\2\2\2#\u00b4\3\2\2\2"+
- "%\u00b8\3\2\2\2\'\u00ba\3\2\2\2)\u00bd\3\2\2\2+\u00de\3\2\2\2-\u00e0\3"+
- "\2\2\2/\u00ff\3\2\2\2\61\u011b\3\2\2\2\63\u011d\3\2\2\2\65\u011f\3\2\2"+
- "\2\67\u0121\3\2\2\29\u0131\3\2\2\2;\u0140\3\2\2\2=\u0146\3\2\2\2?@\7."+
- "\2\2@\4\3\2\2\2AB\7?\2\2B\6\3\2\2\2CD\7c\2\2DE\7u\2\2E\b\3\2\2\2FG\7k"+
- "\2\2GH\7p\2\2HI\7v\2\2IJ\7q\2\2J\n\3\2\2\2KL\7n\2\2LM\7q\2\2MN\7c\2\2"+
- "NO\7f\2\2O\f\3\2\2\2PQ\7u\2\2QR\7c\2\2RS\7x\2\2ST\7g\2\2T\16\3\2\2\2U"+
- "V\7u\2\2VW\7g\2\2WX\7n\2\2XY\7g\2\2YZ\7e\2\2Z[\7v\2\2[\20\3\2\2\2\\]\7"+
- "q\2\2]^\7r\2\2^_\7v\2\2_`\7k\2\2`a\7q\2\2ab\7p\2\2bc\7u\2\2c\22\3\2\2"+
- "\2de\7y\2\2ef\7j\2\2fg\7g\2\2gh\7t\2\2hi\7g\2\2i\24\3\2\2\2jk\7c\2\2k"+
- "l\7p\2\2lm\7f\2\2m\26\3\2\2\2no\7q\2\2op\7x\2\2pq\7g\2\2qr\7t\2\2rs\7"+
- "y\2\2st\7t\2\2tu\7k\2\2uv\7v\2\2vw\7g\2\2w\30\3\2\2\2xy\7c\2\2yz\7r\2"+
- "\2z{\7r\2\2{|\7g\2\2|}\7p\2\2}~\7f\2\2~\32\3\2\2\2\177\u0080\7g\2\2\u0080"+
- "\u0081\7t\2\2\u0081\u0082\7t\2\2\u0082\u0083\7q\2\2\u0083\u0084\7t\2\2"+
- "\u0084\u0085\7K\2\2\u0085\u0086\7h\2\2\u0086\u0087\7G\2\2\u0087\u0088"+
- "\7z\2\2\u0088\u0089\7k\2\2\u0089\u008a\7u\2\2\u008a\u008b\7v\2\2\u008b"+
- "\u008c\7u\2\2\u008c\34\3\2\2\2\u008d\u008e\7k\2\2\u008e\u008f\7i\2\2\u008f"+
- "\u0090\7p\2\2\u0090\u0091\7q\2\2\u0091\u0092\7t\2\2\u0092\u0093\7g\2\2"+
- "\u0093\36\3\2\2\2\u0094\u0095\7r\2\2\u0095\u0096\7c\2\2\u0096\u0097\7"+
- "t\2\2\u0097\u0098\7v\2\2\u0098\u0099\7k\2\2\u0099\u009a\7v\2\2\u009a\u009b"+
- "\7k\2\2\u009b\u009c\7q\2\2\u009c\u009d\7p\2\2\u009d\u009e\7D\2\2\u009e"+
- "\u00ab\7{\2\2\u009f\u00a0\7r\2\2\u00a0\u00a1\7c\2\2\u00a1\u00a2\7t\2\2"+
- "\u00a2\u00a3\7v\2\2\u00a3\u00a4\7k\2\2\u00a4\u00a5\7v\2\2\u00a5\u00a6"+
- "\7k\2\2\u00a6\u00a7\7q\2\2\u00a7\u00a8\7p\2\2\u00a8\u00a9\7d\2\2\u00a9"+
- "\u00ab\7{\2\2\u00aa\u0094\3\2\2\2\u00aa\u009f\3\2\2\2\u00ab \3\2\2\2\u00ac"+
- "\u00ad\7e\2\2\u00ad\u00ae\7q\2\2\u00ae\u00af\7p\2\2\u00af\u00b0\7p\2\2"+
- "\u00b0\u00b1\7g\2\2\u00b1\u00b2\7e\2\2\u00b2\u00b3\7v\2\2\u00b3\"\3\2"+
- "\2\2\u00b4\u00b5\7u\2\2\u00b5\u00b6\7g\2\2\u00b6\u00b7\7v\2\2\u00b7$\3"+
- "\2\2\2\u00b8\u00b9\7\60\2\2\u00b9&\3\2\2\2\u00ba\u00bb\7=\2\2\u00bb(\3"+
- "\2\2\2\u00bc\u00be\t\2\2\2\u00bd\u00bc\3\2\2\2\u00bd\u00be\3\2\2\2\u00be"+
- "\u00c2\3\2\2\2\u00bf\u00c1\5\63\32\2\u00c0\u00bf\3\2\2\2\u00c1\u00c4\3"+
- "\2\2\2\u00c2\u00c0\3\2\2\2\u00c2\u00c3\3\2\2\2\u00c3\u00c6\3\2\2\2\u00c4"+
- "\u00c2\3\2\2\2\u00c5\u00c7\7\60\2\2\u00c6\u00c5\3\2\2\2\u00c6\u00c7\3"+
- "\2\2\2\u00c7\u00c9\3\2\2\2\u00c8\u00ca\5\63\32\2\u00c9\u00c8\3\2\2\2\u00ca"+
- "\u00cb\3\2\2\2\u00cb\u00c9\3\2\2\2\u00cb\u00cc\3\2\2\2\u00cc*\3\2\2\2"+
- "\u00cd\u00d3\5\65\33\2\u00ce\u00d2\5\63\32\2\u00cf\u00d2\5\65\33\2\u00d0"+
- "\u00d2\7a\2\2\u00d1\u00ce\3\2\2\2\u00d1\u00cf\3\2\2\2\u00d1\u00d0\3\2"+
- "\2\2\u00d2\u00d5\3\2\2\2\u00d3\u00d1\3\2\2\2\u00d3\u00d4\3\2\2\2\u00d4"+
- "\u00df\3\2\2\2\u00d5\u00d3\3\2\2\2\u00d6\u00da\7a\2\2\u00d7\u00db\5\63"+
- "\32\2\u00d8\u00db\5\65\33\2\u00d9\u00db\7a\2\2\u00da\u00d7\3\2\2\2\u00da"+
- "\u00d8\3\2\2\2\u00da\u00d9\3\2\2\2\u00db\u00dc\3\2\2\2\u00dc\u00da\3\2"+
- "\2\2\u00dc\u00dd\3\2\2\2\u00dd\u00df\3\2\2\2\u00de\u00cd\3\2\2\2\u00de"+
- "\u00d6\3\2\2\2\u00df,\3\2\2\2\u00e0\u00e6\7b\2\2\u00e1\u00e5\n\3\2\2\u00e2"+
- "\u00e3\7^\2\2\u00e3\u00e5\13\2\2\2\u00e4\u00e1\3\2\2\2\u00e4\u00e2\3\2"+
- "\2\2\u00e5\u00e8\3\2\2\2\u00e6\u00e7\3\2\2\2\u00e6\u00e4\3\2\2\2\u00e7"+
- "\u00e9\3\2\2\2\u00e8\u00e6\3\2\2\2\u00e9\u00ea\7b\2\2\u00ea.\3\2\2\2\u00eb"+
- "\u00f1\7)\2\2\u00ec\u00f0\n\4\2\2\u00ed\u00ee\7^\2\2\u00ee\u00f0\13\2"+
- "\2\2\u00ef\u00ec\3\2\2\2\u00ef\u00ed\3\2\2\2\u00f0\u00f3\3\2\2\2\u00f1"+
- "\u00f2\3\2\2\2\u00f1\u00ef\3\2\2\2\u00f2\u00f4\3\2\2\2\u00f3\u00f1\3\2"+
- "\2\2\u00f4\u0100\7)\2\2\u00f5\u00fb\7$\2\2\u00f6\u00fa\n\5\2\2\u00f7\u00f8"+
- "\7^\2\2\u00f8\u00fa\13\2\2\2\u00f9\u00f6\3\2\2\2\u00f9\u00f7\3\2\2\2\u00fa"+
- "\u00fd\3\2\2\2\u00fb\u00fc\3\2\2\2\u00fb\u00f9\3\2\2\2\u00fc\u00fe\3\2"+
- "\2\2\u00fd\u00fb\3\2\2\2\u00fe\u0100\7$\2\2\u00ff\u00eb\3\2\2\2\u00ff"+
- "\u00f5\3\2\2\2\u0100\60\3\2\2\2\u0101\u0102\7)\2\2\u0102\u0103\7)\2\2"+
- "\u0103\u0104\7)\2\2\u0104\u0108\3\2\2\2\u0105\u0107\13\2\2\2\u0106\u0105"+
- "\3\2\2\2\u0107\u010a\3\2\2\2\u0108\u0109\3\2\2\2\u0108\u0106\3\2\2\2\u0109"+
- "\u010b\3\2\2\2\u010a\u0108\3\2\2\2\u010b\u010c\7)\2\2\u010c\u010d\7)\2"+
- "\2\u010d\u011c\7)\2\2\u010e\u010f\7$\2\2\u010f\u0110\7$\2\2\u0110\u0111"+
- "\7$\2\2\u0111\u0115\3\2\2\2\u0112\u0114\13\2\2\2\u0113\u0112\3\2\2\2\u0114"+
- "\u0117\3\2\2\2\u0115\u0116\3\2\2\2\u0115\u0113\3\2\2\2\u0116\u0118\3\2"+
- "\2\2\u0117\u0115\3\2\2\2\u0118\u0119\7$\2\2\u0119\u011a\7$\2\2\u011a\u011c"+
- "\7$\2\2\u011b\u0101\3\2\2\2\u011b\u010e\3\2\2\2\u011c\62\3\2\2\2\u011d"+
- "\u011e\t\6\2\2\u011e\64\3\2\2\2\u011f\u0120\t\7\2\2\u0120\66\3\2\2\2\u0121"+
- "\u0122\7/\2\2\u0122\u0123\7/\2\2\u0123\u0127\3\2\2\2\u0124\u0126\n\b\2"+
- "\2\u0125\u0124\3\2\2\2\u0126\u0129\3\2\2\2\u0127\u0125\3\2\2\2\u0127\u0128"+
- "\3\2\2\2\u0128\u012d\3\2\2\2\u0129\u0127\3\2\2\2\u012a\u012e\7\f\2\2\u012b"+
- "\u012c\7\17\2\2\u012c\u012e\7\f\2\2\u012d\u012a\3\2\2\2\u012d\u012b\3"+
- "\2\2\2\u012d\u012e\3\2\2\2\u012e\u012f\3\2\2\2\u012f\u0130\b\34\2\2\u0130"+
- "8\3\2\2\2\u0131\u0132\7\61\2\2\u0132\u0133\7,\2\2\u0133\u0137\3\2\2\2"+
- "\u0134\u0136\13\2\2\2\u0135\u0134\3\2\2\2\u0136\u0139\3\2\2\2\u0137\u0138"+
- "\3\2\2\2\u0137\u0135\3\2\2\2\u0138\u013a\3\2\2\2\u0139\u0137\3\2\2\2\u013a"+
- "\u013b\7,\2\2\u013b\u013c\7\61\2\2\u013c\u013d\3\2\2\2\u013d\u013e\b\35"+
- "\2\2\u013e:\3\2\2\2\u013f\u0141\t\t\2\2\u0140\u013f\3\2\2\2\u0141\u0142"+
- "\3\2\2\2\u0142\u0140\3\2\2\2\u0142\u0143\3\2\2\2\u0143\u0144\3\2\2\2\u0144"+
- "\u0145\b\36\2\2\u0145<\3\2\2\2\u0146\u0147\13\2\2\2\u0147>\3\2\2\2\33"+
- "\2\u00aa\u00bd\u00c2\u00c6\u00cb\u00d1\u00d3\u00da\u00dc\u00de\u00e4\u00e6"+
- "\u00ef\u00f1\u00f9\u00fb\u00ff\u0108\u0115\u011b\u0127\u012d\u0137\u0142"+
- "\3\2\3\2";
- 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);
- }
- }
-}
\ No newline at end of file
diff --git a/dsl/src/main/java/ides/dsl/parser/IdesDslLexer.tokens b/dsl/src/main/java/ides/dsl/parser/IdesDslLexer.tokens
deleted file mode 100644
index 7f9cd9f..0000000
--- a/dsl/src/main/java/ides/dsl/parser/IdesDslLexer.tokens
+++ /dev/null
@@ -1,46 +0,0 @@
-T__0=1
-T__1=2
-AS=3
-INTO=4
-LOAD=5
-SAVE=6
-SELECT=7
-OPTIONS=8
-WHERE=9
-AND=10
-OVERWRITE=11
-APPEND=12
-ERRORIfExists=13
-IGNORE=14
-PARTITIONBY=15
-CONNECT=16
-SET=17
-DOT=18
-EOQ=19
-MUMERIC=20
-IDENTIFIER=21
-QUOTED_TEXT=22
-STRING_TEXT=23
-BLOCK_STRING_TEXT=24
-LINE_COMMENT=25
-BLOCK_COMMENT=26
-WS=27
-UNRECOGNIZED=28
-','=1
-'='=2
-'as'=3
-'into'=4
-'load'=5
-'save'=6
-'select'=7
-'options'=8
-'where'=9
-'and'=10
-'overwrite'=11
-'append'=12
-'errorIfExists'=13
-'ignore'=14
-'connect'=16
-'set'=17
-'.'=18
-';'=19
diff --git a/dsl/src/main/java/ides/dsl/parser/IdesDslListener.java b/dsl/src/main/java/ides/dsl/parser/IdesDslListener.java
deleted file mode 100644
index 057e415..0000000
--- a/dsl/src/main/java/ides/dsl/parser/IdesDslListener.java
+++ /dev/null
@@ -1,264 +0,0 @@
-// Generated from /Users/sgr/develop/github/ides/dsl/src/main/resources/IdesDsl.g4 by ANTLR 4.7.2
-
- package ides.dsl.parser;
-
-import org.antlr.v4.runtime.tree.ParseTreeListener;
-
-/**
- * This interface defines a complete listener for a parse tree produced by
- * {@link IdesDslParser}.
- */
-public interface IdesDslListener extends ParseTreeListener {
- /**
- * Enter a parse tree produced by {@link IdesDslParser#statement}.
- * @param ctx the parse tree
- */
- void enterStatement(IdesDslParser.StatementContext ctx);
- /**
- * Exit a parse tree produced by {@link IdesDslParser#statement}.
- * @param ctx the parse tree
- */
- void exitStatement(IdesDslParser.StatementContext ctx);
- /**
- * Enter a parse tree produced by the {@code Sql}
- * labeled alternative in {@link IdesDslParser#script}.
- * @param ctx the parse tree
- */
- void enterSql(IdesDslParser.SqlContext ctx);
- /**
- * Exit a parse tree produced by the {@code Sql}
- * labeled alternative in {@link IdesDslParser#script}.
- * @param ctx the parse tree
- */
- void exitSql(IdesDslParser.SqlContext ctx);
- /**
- * Enter a parse tree produced by the {@code Load}
- * labeled alternative in {@link IdesDslParser#query}.
- * @param ctx the parse tree
- */
- void enterLoad(IdesDslParser.LoadContext ctx);
- /**
- * Exit a parse tree produced by the {@code Load}
- * labeled alternative in {@link IdesDslParser#query}.
- * @param ctx the parse tree
- */
- void exitLoad(IdesDslParser.LoadContext ctx);
- /**
- * Enter a parse tree produced by the {@code Save}
- * labeled alternative in {@link IdesDslParser#query}.
- * @param ctx the parse tree
- */
- void enterSave(IdesDslParser.SaveContext ctx);
- /**
- * Exit a parse tree produced by the {@code Save}
- * labeled alternative in {@link IdesDslParser#query}.
- * @param ctx the parse tree
- */
- void exitSave(IdesDslParser.SaveContext ctx);
- /**
- * Enter a parse tree produced by the {@code Select}
- * labeled alternative in {@link IdesDslParser#query}.
- * @param ctx the parse tree
- */
- void enterSelect(IdesDslParser.SelectContext ctx);
- /**
- * Exit a parse tree produced by the {@code Select}
- * labeled alternative in {@link IdesDslParser#query}.
- * @param ctx the parse tree
- */
- void exitSelect(IdesDslParser.SelectContext ctx);
- /**
- * Enter a parse tree produced by the {@code Connect}
- * labeled alternative in {@link IdesDslParser#query}.
- * @param ctx the parse tree
- */
- void enterConnect(IdesDslParser.ConnectContext ctx);
- /**
- * Exit a parse tree produced by the {@code Connect}
- * labeled alternative in {@link IdesDslParser#query}.
- * @param ctx the parse tree
- */
- void exitConnect(IdesDslParser.ConnectContext ctx);
- /**
- * Enter a parse tree produced by the {@code Set}
- * labeled alternative in {@link IdesDslParser#query}.
- * @param ctx the parse tree
- */
- void enterSet(IdesDslParser.SetContext ctx);
- /**
- * Exit a parse tree produced by the {@code Set}
- * labeled alternative in {@link IdesDslParser#query}.
- * @param ctx the parse tree
- */
- void exitSet(IdesDslParser.SetContext ctx);
- /**
- * Enter a parse tree produced by {@link IdesDslParser#format}.
- * @param ctx the parse tree
- */
- void enterFormat(IdesDslParser.FormatContext ctx);
- /**
- * Exit a parse tree produced by {@link IdesDslParser#format}.
- * @param ctx the parse tree
- */
- void exitFormat(IdesDslParser.FormatContext ctx);
- /**
- * Enter a parse tree produced by {@link IdesDslParser#path}.
- * @param ctx the parse tree
- */
- void enterPath(IdesDslParser.PathContext ctx);
- /**
- * Exit a parse tree produced by {@link IdesDslParser#path}.
- * @param ctx the parse tree
- */
- void exitPath(IdesDslParser.PathContext ctx);
- /**
- * Enter a parse tree produced by {@link IdesDslParser#col}.
- * @param ctx the parse tree
- */
- void enterCol(IdesDslParser.ColContext ctx);
- /**
- * Exit a parse tree produced by {@link IdesDslParser#col}.
- * @param ctx the parse tree
- */
- void exitCol(IdesDslParser.ColContext ctx);
- /**
- * Enter a parse tree produced by {@link IdesDslParser#colGroup}.
- * @param ctx the parse tree
- */
- void enterColGroup(IdesDslParser.ColGroupContext ctx);
- /**
- * Exit a parse tree produced by {@link IdesDslParser#colGroup}.
- * @param ctx the parse tree
- */
- void exitColGroup(IdesDslParser.ColGroupContext ctx);
- /**
- * Enter a parse tree produced by {@link IdesDslParser#whereExpressions}.
- * @param ctx the parse tree
- */
- void enterWhereExpressions(IdesDslParser.WhereExpressionsContext ctx);
- /**
- * Exit a parse tree produced by {@link IdesDslParser#whereExpressions}.
- * @param ctx the parse tree
- */
- void exitWhereExpressions(IdesDslParser.WhereExpressionsContext ctx);
- /**
- * Enter a parse tree produced by {@link IdesDslParser#partitionbyExpression}.
- * @param ctx the parse tree
- */
- void enterPartitionbyExpression(IdesDslParser.PartitionbyExpressionContext ctx);
- /**
- * Exit a parse tree produced by {@link IdesDslParser#partitionbyExpression}.
- * @param ctx the parse tree
- */
- void exitPartitionbyExpression(IdesDslParser.PartitionbyExpressionContext ctx);
- /**
- * Enter a parse tree produced by {@link IdesDslParser#booleanExpression}.
- * @param ctx the parse tree
- */
- void enterBooleanExpression(IdesDslParser.BooleanExpressionContext ctx);
- /**
- * Exit a parse tree produced by {@link IdesDslParser#booleanExpression}.
- * @param ctx the parse tree
- */
- void exitBooleanExpression(IdesDslParser.BooleanExpressionContext ctx);
- /**
- * Enter a parse tree produced by {@link IdesDslParser#keyName}.
- * @param ctx the parse tree
- */
- void enterKeyName(IdesDslParser.KeyNameContext ctx);
- /**
- * Exit a parse tree produced by {@link IdesDslParser#keyName}.
- * @param ctx the parse tree
- */
- void exitKeyName(IdesDslParser.KeyNameContext ctx);
- /**
- * Enter a parse tree produced by {@link IdesDslParser#valueName}.
- * @param ctx the parse tree
- */
- void enterValueName(IdesDslParser.ValueNameContext ctx);
- /**
- * Exit a parse tree produced by {@link IdesDslParser#valueName}.
- * @param ctx the parse tree
- */
- void exitValueName(IdesDslParser.ValueNameContext ctx);
- /**
- * Enter a parse tree produced by {@link IdesDslParser#expression}.
- * @param ctx the parse tree
- */
- void enterExpression(IdesDslParser.ExpressionContext ctx);
- /**
- * Exit a parse tree produced by {@link IdesDslParser#expression}.
- * @param ctx the parse tree
- */
- void exitExpression(IdesDslParser.ExpressionContext ctx);
- /**
- * Enter a parse tree produced by {@link IdesDslParser#qualifiedName}.
- * @param ctx the parse tree
- */
- void enterQualifiedName(IdesDslParser.QualifiedNameContext ctx);
- /**
- * Exit a parse tree produced by {@link IdesDslParser#qualifiedName}.
- * @param ctx the parse tree
- */
- void exitQualifiedName(IdesDslParser.QualifiedNameContext ctx);
- /**
- * Enter a parse tree produced by {@link IdesDslParser#asAsset}.
- * @param ctx the parse tree
- */
- void enterAsAsset(IdesDslParser.AsAssetContext ctx);
- /**
- * Exit a parse tree produced by {@link IdesDslParser#asAsset}.
- * @param ctx the parse tree
- */
- void exitAsAsset(IdesDslParser.AsAssetContext ctx);
- /**
- * Enter a parse tree produced by {@link IdesDslParser#assetName}.
- * @param ctx the parse tree
- */
- void enterAssetName(IdesDslParser.AssetNameContext ctx);
- /**
- * Exit a parse tree produced by {@link IdesDslParser#assetName}.
- * @param ctx the parse tree
- */
- void exitAssetName(IdesDslParser.AssetNameContext ctx);
- /**
- * Enter a parse tree produced by {@link IdesDslParser#identifier}.
- * @param ctx the parse tree
- */
- void enterIdentifier(IdesDslParser.IdentifierContext ctx);
- /**
- * Exit a parse tree produced by {@link IdesDslParser#identifier}.
- * @param ctx the parse tree
- */
- void exitIdentifier(IdesDslParser.IdentifierContext ctx);
- /**
- * Enter a parse tree produced by {@link IdesDslParser#quotedIdentifier}.
- * @param ctx the parse tree
- */
- void enterQuotedIdentifier(IdesDslParser.QuotedIdentifierContext ctx);
- /**
- * Exit a parse tree produced by {@link IdesDslParser#quotedIdentifier}.
- * @param ctx the parse tree
- */
- void exitQuotedIdentifier(IdesDslParser.QuotedIdentifierContext ctx);
- /**
- * Enter a parse tree produced by {@link IdesDslParser#where}.
- * @param ctx the parse tree
- */
- void enterWhere(IdesDslParser.WhereContext ctx);
- /**
- * Exit a parse tree produced by {@link IdesDslParser#where}.
- * @param ctx the parse tree
- */
- void exitWhere(IdesDslParser.WhereContext ctx);
- /**
- * Enter a parse tree produced by {@link IdesDslParser#saveMode}.
- * @param ctx the parse tree
- */
- void enterSaveMode(IdesDslParser.SaveModeContext ctx);
- /**
- * Exit a parse tree produced by {@link IdesDslParser#saveMode}.
- * @param ctx the parse tree
- */
- void exitSaveMode(IdesDslParser.SaveModeContext ctx);
-}
\ No newline at end of file
diff --git a/dsl/src/main/java/ides/dsl/parser/IdesDslParser.java b/dsl/src/main/java/ides/dsl/parser/IdesDslParser.java
deleted file mode 100644
index 20ae959..0000000
--- a/dsl/src/main/java/ides/dsl/parser/IdesDslParser.java
+++ /dev/null
@@ -1,1497 +0,0 @@
-// Generated from /Users/sgr/develop/github/ides/dsl/src/main/resources/IdesDsl.g4 by ANTLR 4.7.2
-
- package ides.dsl.parser;
-
-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 IdesDslParser extends Parser {
- static { RuntimeMetaData.checkVersion("4.7.2", RuntimeMetaData.VERSION); }
-
- protected static final DFA[] _decisionToDFA;
- protected static final PredictionContextCache _sharedContextCache =
- new PredictionContextCache();
- public static final int
- T__0=1, T__1=2, AS=3, INTO=4, LOAD=5, SAVE=6, SELECT=7, OPTIONS=8, WHERE=9,
- AND=10, OVERWRITE=11, APPEND=12, ERRORIfExists=13, IGNORE=14, PARTITIONBY=15,
- CONNECT=16, SET=17, DOT=18, EOQ=19, MUMERIC=20, IDENTIFIER=21, QUOTED_TEXT=22,
- STRING_TEXT=23, BLOCK_STRING_TEXT=24, LINE_COMMENT=25, BLOCK_COMMENT=26,
- WS=27, UNRECOGNIZED=28;
- public static final int
- RULE_statement = 0, RULE_script = 1, RULE_query = 2, RULE_format = 3,
- RULE_path = 4, RULE_col = 5, RULE_colGroup = 6, RULE_whereExpressions = 7,
- RULE_partitionbyExpression = 8, RULE_booleanExpression = 9, RULE_keyName = 10,
- RULE_valueName = 11, RULE_expression = 12, RULE_qualifiedName = 13, RULE_asAsset = 14,
- RULE_assetName = 15, RULE_identifier = 16, RULE_quotedIdentifier = 17,
- RULE_where = 18, RULE_saveMode = 19;
- private static String[] makeRuleNames() {
- return new String[] {
- "statement", "script", "query", "format", "path", "col", "colGroup",
- "whereExpressions", "partitionbyExpression", "booleanExpression", "keyName",
- "valueName", "expression", "qualifiedName", "asAsset", "assetName", "identifier",
- "quotedIdentifier", "where", "saveMode"
- };
- }
- public static final String[] ruleNames = makeRuleNames();
-
- private static String[] makeLiteralNames() {
- return new String[] {
- null, "','", "'='", "'as'", "'into'", "'load'", "'save'", "'select'",
- "'options'", "'where'", "'and'", "'overwrite'", "'append'", "'errorIfExists'",
- "'ignore'", null, "'connect'", "'set'", "'.'", "';'"
- };
- }
- private static final String[] _LITERAL_NAMES = makeLiteralNames();
- private static String[] makeSymbolicNames() {
- return new String[] {
- null, null, null, "AS", "INTO", "LOAD", "SAVE", "SELECT", "OPTIONS",
- "WHERE", "AND", "OVERWRITE", "APPEND", "ERRORIfExists", "IGNORE", "PARTITIONBY",
- "CONNECT", "SET", "DOT", "EOQ", "MUMERIC", "IDENTIFIER", "QUOTED_TEXT",
- "STRING_TEXT", "BLOCK_STRING_TEXT", "LINE_COMMENT", "BLOCK_COMMENT",
- "WS", "UNRECOGNIZED"
- };
- }
- 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 "IdesDsl.g4"; }
-
- @Override
- public String[] getRuleNames() { return ruleNames; }
-
- @Override
- public String getSerializedATN() { return _serializedATN; }
-
- @Override
- public ATN getATN() { return _ATN; }
-
- public IdesDslParser(TokenStream input) {
- super(input);
- _interp = new ParserATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
- }
-
- public static class StatementContext extends ParserRuleContext {
- public List script() {
- return getRuleContexts(ScriptContext.class);
- }
- public ScriptContext script(int i) {
- return getRuleContext(ScriptContext.class,i);
- }
- public StatementContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_statement; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).enterStatement(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).exitStatement(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof IdesDslVisitor ) return ((IdesDslVisitor extends T>)visitor).visitStatement(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final StatementContext statement() throws RecognitionException {
- StatementContext _localctx = new StatementContext(_ctx, getState());
- enterRule(_localctx, 0, RULE_statement);
- int _la;
- try {
- enterOuterAlt(_localctx, 1);
- {
- setState(43);
- _errHandler.sync(this);
- _la = _input.LA(1);
- while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << LOAD) | (1L << SAVE) | (1L << SELECT) | (1L << CONNECT) | (1L << SET))) != 0)) {
- {
- {
- setState(40);
- script();
- }
- }
- setState(45);
- _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 ScriptContext extends ParserRuleContext {
- public ScriptContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_script; }
-
- public ScriptContext() { }
- public void copyFrom(ScriptContext ctx) {
- super.copyFrom(ctx);
- }
- }
- public static class SqlContext extends ScriptContext {
- public QueryContext query() {
- return getRuleContext(QueryContext.class,0);
- }
- public TerminalNode EOQ() { return getToken(IdesDslParser.EOQ, 0); }
- public SqlContext(ScriptContext ctx) { copyFrom(ctx); }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).enterSql(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).exitSql(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof IdesDslVisitor ) return ((IdesDslVisitor extends T>)visitor).visitSql(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final ScriptContext script() throws RecognitionException {
- ScriptContext _localctx = new ScriptContext(_ctx, getState());
- enterRule(_localctx, 2, RULE_script);
- try {
- _localctx = new SqlContext(_localctx);
- enterOuterAlt(_localctx, 1);
- {
- setState(46);
- query();
- setState(47);
- match(EOQ);
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- exitRule();
- }
- return _localctx;
- }
-
- public static class QueryContext extends ParserRuleContext {
- public QueryContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_query; }
-
- public QueryContext() { }
- public void copyFrom(QueryContext ctx) {
- super.copyFrom(ctx);
- }
- }
- public static class LoadContext extends QueryContext {
- public TerminalNode LOAD() { return getToken(IdesDslParser.LOAD, 0); }
- public FormatContext format() {
- return getRuleContext(FormatContext.class,0);
- }
- public TerminalNode DOT() { return getToken(IdesDslParser.DOT, 0); }
- public PathContext path() {
- return getRuleContext(PathContext.class,0);
- }
- public AsAssetContext asAsset() {
- return getRuleContext(AsAssetContext.class,0);
- }
- public WhereExpressionsContext whereExpressions() {
- return getRuleContext(WhereExpressionsContext.class,0);
- }
- public LoadContext(QueryContext ctx) { copyFrom(ctx); }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).enterLoad(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).exitLoad(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof IdesDslVisitor ) return ((IdesDslVisitor extends T>)visitor).visitLoad(this);
- else return visitor.visitChildren(this);
- }
- }
- public static class SetContext extends QueryContext {
- public TerminalNode SET() { return getToken(IdesDslParser.SET, 0); }
- public ExpressionContext expression() {
- return getRuleContext(ExpressionContext.class,0);
- }
- public WhereExpressionsContext whereExpressions() {
- return getRuleContext(WhereExpressionsContext.class,0);
- }
- public SetContext(QueryContext ctx) { copyFrom(ctx); }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).enterSet(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).exitSet(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof IdesDslVisitor ) return ((IdesDslVisitor extends T>)visitor).visitSet(this);
- else return visitor.visitChildren(this);
- }
- }
- public static class ConnectContext extends QueryContext {
- public TerminalNode CONNECT() { return getToken(IdesDslParser.CONNECT, 0); }
- public FormatContext format() {
- return getRuleContext(FormatContext.class,0);
- }
- public WhereExpressionsContext whereExpressions() {
- return getRuleContext(WhereExpressionsContext.class,0);
- }
- public AsAssetContext asAsset() {
- return getRuleContext(AsAssetContext.class,0);
- }
- public ConnectContext(QueryContext ctx) { copyFrom(ctx); }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).enterConnect(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).exitConnect(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof IdesDslVisitor ) return ((IdesDslVisitor extends T>)visitor).visitConnect(this);
- else return visitor.visitChildren(this);
- }
- }
- public static class SelectContext extends QueryContext {
- public TerminalNode SELECT() { return getToken(IdesDslParser.SELECT, 0); }
- public AsAssetContext asAsset() {
- return getRuleContext(AsAssetContext.class,0);
- }
- public List EOQ() { return getTokens(IdesDslParser.EOQ); }
- public TerminalNode EOQ(int i) {
- return getToken(IdesDslParser.EOQ, i);
- }
- public SelectContext(QueryContext ctx) { copyFrom(ctx); }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).enterSelect(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).exitSelect(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof IdesDslVisitor ) return ((IdesDslVisitor extends T>)visitor).visitSelect(this);
- else return visitor.visitChildren(this);
- }
- }
- public static class SaveContext extends QueryContext {
- public TerminalNode SAVE() { return getToken(IdesDslParser.SAVE, 0); }
- public AssetNameContext assetName() {
- return getRuleContext(AssetNameContext.class,0);
- }
- public TerminalNode INTO() { return getToken(IdesDslParser.INTO, 0); }
- public FormatContext format() {
- return getRuleContext(FormatContext.class,0);
- }
- public TerminalNode DOT() { return getToken(IdesDslParser.DOT, 0); }
- public PathContext path() {
- return getRuleContext(PathContext.class,0);
- }
- public SaveModeContext saveMode() {
- return getRuleContext(SaveModeContext.class,0);
- }
- public WhereExpressionsContext whereExpressions() {
- return getRuleContext(WhereExpressionsContext.class,0);
- }
- public PartitionbyExpressionContext partitionbyExpression() {
- return getRuleContext(PartitionbyExpressionContext.class,0);
- }
- public SaveContext(QueryContext ctx) { copyFrom(ctx); }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).enterSave(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).exitSave(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof IdesDslVisitor ) return ((IdesDslVisitor extends T>)visitor).visitSave(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final QueryContext query() throws RecognitionException {
- QueryContext _localctx = new QueryContext(_ctx, getState());
- enterRule(_localctx, 4, RULE_query);
- int _la;
- try {
- int _alt;
- setState(90);
- _errHandler.sync(this);
- switch (_input.LA(1)) {
- case LOAD:
- _localctx = new LoadContext(_localctx);
- enterOuterAlt(_localctx, 1);
- {
- setState(49);
- match(LOAD);
- setState(50);
- format();
- setState(51);
- match(DOT);
- setState(52);
- path();
- setState(54);
- _errHandler.sync(this);
- _la = _input.LA(1);
- if (_la==OPTIONS || _la==WHERE) {
- {
- setState(53);
- whereExpressions();
- }
- }
-
- setState(56);
- asAsset();
- }
- break;
- case SAVE:
- _localctx = new SaveContext(_localctx);
- enterOuterAlt(_localctx, 2);
- {
- setState(58);
- match(SAVE);
- setState(59);
- assetName();
- setState(61);
- _errHandler.sync(this);
- _la = _input.LA(1);
- if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << OVERWRITE) | (1L << APPEND) | (1L << ERRORIfExists) | (1L << IGNORE))) != 0)) {
- {
- setState(60);
- saveMode();
- }
- }
-
- setState(63);
- match(INTO);
- setState(64);
- format();
- setState(65);
- match(DOT);
- setState(66);
- path();
- setState(68);
- _errHandler.sync(this);
- _la = _input.LA(1);
- if (_la==OPTIONS || _la==WHERE) {
- {
- setState(67);
- whereExpressions();
- }
- }
-
- setState(71);
- _errHandler.sync(this);
- _la = _input.LA(1);
- if (_la==PARTITIONBY) {
- {
- setState(70);
- partitionbyExpression();
- }
- }
-
- }
- break;
- case SELECT:
- _localctx = new SelectContext(_localctx);
- enterOuterAlt(_localctx, 3);
- {
- setState(73);
- match(SELECT);
- setState(75);
- _errHandler.sync(this);
- _alt = 1;
- do {
- switch (_alt) {
- case 1:
- {
- {
- setState(74);
- _la = _input.LA(1);
- if ( _la <= 0 || (_la==EOQ) ) {
- _errHandler.recoverInline(this);
- }
- else {
- if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
- _errHandler.reportMatch(this);
- consume();
- }
- }
- }
- break;
- default:
- throw new NoViableAltException(this);
- }
- setState(77);
- _errHandler.sync(this);
- _alt = getInterpreter().adaptivePredict(_input,5,_ctx);
- } while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER );
- setState(79);
- asAsset();
- }
- break;
- case CONNECT:
- _localctx = new ConnectContext(_localctx);
- enterOuterAlt(_localctx, 4);
- {
- setState(80);
- match(CONNECT);
- setState(81);
- format();
- setState(82);
- whereExpressions();
- setState(83);
- asAsset();
- }
- break;
- case SET:
- _localctx = new SetContext(_localctx);
- enterOuterAlt(_localctx, 5);
- {
- setState(85);
- match(SET);
- setState(86);
- expression();
- setState(88);
- _errHandler.sync(this);
- _la = _input.LA(1);
- if (_la==OPTIONS || _la==WHERE) {
- {
- setState(87);
- whereExpressions();
- }
- }
-
- }
- 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 FormatContext extends ParserRuleContext {
- public IdentifierContext identifier() {
- return getRuleContext(IdentifierContext.class,0);
- }
- public QuotedIdentifierContext quotedIdentifier() {
- return getRuleContext(QuotedIdentifierContext.class,0);
- }
- public FormatContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_format; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).enterFormat(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).exitFormat(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof IdesDslVisitor ) return ((IdesDslVisitor extends T>)visitor).visitFormat(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final FormatContext format() throws RecognitionException {
- FormatContext _localctx = new FormatContext(_ctx, getState());
- enterRule(_localctx, 6, RULE_format);
- try {
- setState(94);
- _errHandler.sync(this);
- switch (_input.LA(1)) {
- case IDENTIFIER:
- enterOuterAlt(_localctx, 1);
- {
- setState(92);
- identifier();
- }
- break;
- case QUOTED_TEXT:
- enterOuterAlt(_localctx, 2);
- {
- setState(93);
- quotedIdentifier();
- }
- 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 PathContext extends ParserRuleContext {
- public QuotedIdentifierContext quotedIdentifier() {
- return getRuleContext(QuotedIdentifierContext.class,0);
- }
- public PathContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_path; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).enterPath(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).exitPath(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof IdesDslVisitor ) return ((IdesDslVisitor extends T>)visitor).visitPath(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final PathContext path() throws RecognitionException {
- PathContext _localctx = new PathContext(_ctx, getState());
- enterRule(_localctx, 8, RULE_path);
- try {
- enterOuterAlt(_localctx, 1);
- {
- setState(96);
- quotedIdentifier();
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- exitRule();
- }
- return _localctx;
- }
-
- public static class ColContext extends ParserRuleContext {
- public IdentifierContext identifier() {
- return getRuleContext(IdentifierContext.class,0);
- }
- public ColContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_col; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).enterCol(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).exitCol(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof IdesDslVisitor ) return ((IdesDslVisitor extends T>)visitor).visitCol(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final ColContext col() throws RecognitionException {
- ColContext _localctx = new ColContext(_ctx, getState());
- enterRule(_localctx, 10, RULE_col);
- try {
- enterOuterAlt(_localctx, 1);
- {
- setState(98);
- identifier();
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- exitRule();
- }
- return _localctx;
- }
-
- public static class ColGroupContext extends ParserRuleContext {
- public ColContext col() {
- return getRuleContext(ColContext.class,0);
- }
- public ColGroupContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_colGroup; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).enterColGroup(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).exitColGroup(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof IdesDslVisitor ) return ((IdesDslVisitor extends T>)visitor).visitColGroup(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final ColGroupContext colGroup() throws RecognitionException {
- ColGroupContext _localctx = new ColGroupContext(_ctx, getState());
- enterRule(_localctx, 12, RULE_colGroup);
- try {
- enterOuterAlt(_localctx, 1);
- {
- setState(100);
- match(T__0);
- setState(101);
- col();
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- exitRule();
- }
- return _localctx;
- }
-
- public static class WhereExpressionsContext extends ParserRuleContext {
- public WhereContext where() {
- return getRuleContext(WhereContext.class,0);
- }
- public ExpressionContext expression() {
- return getRuleContext(ExpressionContext.class,0);
- }
- public List booleanExpression() {
- return getRuleContexts(BooleanExpressionContext.class);
- }
- public BooleanExpressionContext booleanExpression(int i) {
- return getRuleContext(BooleanExpressionContext.class,i);
- }
- public WhereExpressionsContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_whereExpressions; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).enterWhereExpressions(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).exitWhereExpressions(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof IdesDslVisitor ) return ((IdesDslVisitor extends T>)visitor).visitWhereExpressions(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final WhereExpressionsContext whereExpressions() throws RecognitionException {
- WhereExpressionsContext _localctx = new WhereExpressionsContext(_ctx, getState());
- enterRule(_localctx, 14, RULE_whereExpressions);
- int _la;
- try {
- enterOuterAlt(_localctx, 1);
- {
- setState(103);
- where();
- setState(104);
- expression();
- setState(108);
- _errHandler.sync(this);
- _la = _input.LA(1);
- while (_la==AND) {
- {
- {
- setState(105);
- booleanExpression();
- }
- }
- setState(110);
- _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 PartitionbyExpressionContext extends ParserRuleContext {
- public TerminalNode PARTITIONBY() { return getToken(IdesDslParser.PARTITIONBY, 0); }
- public ColContext col() {
- return getRuleContext(ColContext.class,0);
- }
- public List colGroup() {
- return getRuleContexts(ColGroupContext.class);
- }
- public ColGroupContext colGroup(int i) {
- return getRuleContext(ColGroupContext.class,i);
- }
- public PartitionbyExpressionContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_partitionbyExpression; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).enterPartitionbyExpression(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).exitPartitionbyExpression(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof IdesDslVisitor ) return ((IdesDslVisitor extends T>)visitor).visitPartitionbyExpression(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final PartitionbyExpressionContext partitionbyExpression() throws RecognitionException {
- PartitionbyExpressionContext _localctx = new PartitionbyExpressionContext(_ctx, getState());
- enterRule(_localctx, 16, RULE_partitionbyExpression);
- int _la;
- try {
- enterOuterAlt(_localctx, 1);
- {
- setState(111);
- match(PARTITIONBY);
- setState(112);
- col();
- setState(116);
- _errHandler.sync(this);
- _la = _input.LA(1);
- while (_la==T__0) {
- {
- {
- setState(113);
- colGroup();
- }
- }
- setState(118);
- _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 BooleanExpressionContext extends ParserRuleContext {
- public TerminalNode AND() { return getToken(IdesDslParser.AND, 0); }
- public ExpressionContext expression() {
- return getRuleContext(ExpressionContext.class,0);
- }
- public BooleanExpressionContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_booleanExpression; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).enterBooleanExpression(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).exitBooleanExpression(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof IdesDslVisitor ) return ((IdesDslVisitor extends T>)visitor).visitBooleanExpression(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final BooleanExpressionContext booleanExpression() throws RecognitionException {
- BooleanExpressionContext _localctx = new BooleanExpressionContext(_ctx, getState());
- enterRule(_localctx, 18, RULE_booleanExpression);
- try {
- enterOuterAlt(_localctx, 1);
- {
- setState(119);
- match(AND);
- setState(120);
- expression();
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- exitRule();
- }
- return _localctx;
- }
-
- public static class KeyNameContext extends ParserRuleContext {
- public QualifiedNameContext qualifiedName() {
- return getRuleContext(QualifiedNameContext.class,0);
- }
- public KeyNameContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_keyName; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).enterKeyName(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).exitKeyName(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof IdesDslVisitor ) return ((IdesDslVisitor extends T>)visitor).visitKeyName(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final KeyNameContext keyName() throws RecognitionException {
- KeyNameContext _localctx = new KeyNameContext(_ctx, getState());
- enterRule(_localctx, 20, RULE_keyName);
- try {
- enterOuterAlt(_localctx, 1);
- {
- setState(122);
- qualifiedName();
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- exitRule();
- }
- return _localctx;
- }
-
- public static class ValueNameContext extends ParserRuleContext {
- public TerminalNode MUMERIC() { return getToken(IdesDslParser.MUMERIC, 0); }
- public TerminalNode STRING_TEXT() { return getToken(IdesDslParser.STRING_TEXT, 0); }
- public TerminalNode BLOCK_STRING_TEXT() { return getToken(IdesDslParser.BLOCK_STRING_TEXT, 0); }
- public TerminalNode QUOTED_TEXT() { return getToken(IdesDslParser.QUOTED_TEXT, 0); }
- public ValueNameContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_valueName; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).enterValueName(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).exitValueName(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof IdesDslVisitor ) return ((IdesDslVisitor extends T>)visitor).visitValueName(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final ValueNameContext valueName() throws RecognitionException {
- ValueNameContext _localctx = new ValueNameContext(_ctx, getState());
- enterRule(_localctx, 22, RULE_valueName);
- int _la;
- try {
- enterOuterAlt(_localctx, 1);
- {
- setState(124);
- _la = _input.LA(1);
- if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << MUMERIC) | (1L << QUOTED_TEXT) | (1L << STRING_TEXT) | (1L << BLOCK_STRING_TEXT))) != 0)) ) {
- _errHandler.recoverInline(this);
- }
- else {
- if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
- _errHandler.reportMatch(this);
- consume();
- }
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- exitRule();
- }
- return _localctx;
- }
-
- public static class ExpressionContext extends ParserRuleContext {
- public KeyNameContext keyName() {
- return getRuleContext(KeyNameContext.class,0);
- }
- public ValueNameContext valueName() {
- return getRuleContext(ValueNameContext.class,0);
- }
- public ExpressionContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_expression; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).enterExpression(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).exitExpression(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof IdesDslVisitor ) return ((IdesDslVisitor extends T>)visitor).visitExpression(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final ExpressionContext expression() throws RecognitionException {
- ExpressionContext _localctx = new ExpressionContext(_ctx, getState());
- enterRule(_localctx, 24, RULE_expression);
- try {
- enterOuterAlt(_localctx, 1);
- {
- setState(126);
- keyName();
- setState(127);
- match(T__1);
- setState(128);
- valueName();
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- exitRule();
- }
- return _localctx;
- }
-
- public static class QualifiedNameContext extends ParserRuleContext {
- public List identifier() {
- return getRuleContexts(IdentifierContext.class);
- }
- public IdentifierContext identifier(int i) {
- return getRuleContext(IdentifierContext.class,i);
- }
- public List DOT() { return getTokens(IdesDslParser.DOT); }
- public TerminalNode DOT(int i) {
- return getToken(IdesDslParser.DOT, i);
- }
- public QualifiedNameContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_qualifiedName; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).enterQualifiedName(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).exitQualifiedName(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof IdesDslVisitor ) return ((IdesDslVisitor extends T>)visitor).visitQualifiedName(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final QualifiedNameContext qualifiedName() throws RecognitionException {
- QualifiedNameContext _localctx = new QualifiedNameContext(_ctx, getState());
- enterRule(_localctx, 26, RULE_qualifiedName);
- int _la;
- try {
- enterOuterAlt(_localctx, 1);
- {
- setState(130);
- identifier();
- setState(135);
- _errHandler.sync(this);
- _la = _input.LA(1);
- while (_la==DOT) {
- {
- {
- setState(131);
- match(DOT);
- setState(132);
- identifier();
- }
- }
- setState(137);
- _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 AsAssetContext extends ParserRuleContext {
- public TerminalNode AS() { return getToken(IdesDslParser.AS, 0); }
- public AssetNameContext assetName() {
- return getRuleContext(AssetNameContext.class,0);
- }
- public AsAssetContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_asAsset; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).enterAsAsset(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).exitAsAsset(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof IdesDslVisitor ) return ((IdesDslVisitor extends T>)visitor).visitAsAsset(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final AsAssetContext asAsset() throws RecognitionException {
- AsAssetContext _localctx = new AsAssetContext(_ctx, getState());
- enterRule(_localctx, 28, RULE_asAsset);
- try {
- enterOuterAlt(_localctx, 1);
- {
- setState(138);
- match(AS);
- setState(139);
- assetName();
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- exitRule();
- }
- return _localctx;
- }
-
- public static class AssetNameContext extends ParserRuleContext {
- public IdentifierContext identifier() {
- return getRuleContext(IdentifierContext.class,0);
- }
- public QuotedIdentifierContext quotedIdentifier() {
- return getRuleContext(QuotedIdentifierContext.class,0);
- }
- public AssetNameContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_assetName; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).enterAssetName(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).exitAssetName(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof IdesDslVisitor ) return ((IdesDslVisitor extends T>)visitor).visitAssetName(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final AssetNameContext assetName() throws RecognitionException {
- AssetNameContext _localctx = new AssetNameContext(_ctx, getState());
- enterRule(_localctx, 30, RULE_assetName);
- try {
- setState(143);
- _errHandler.sync(this);
- switch (_input.LA(1)) {
- case IDENTIFIER:
- enterOuterAlt(_localctx, 1);
- {
- setState(141);
- identifier();
- }
- break;
- case QUOTED_TEXT:
- enterOuterAlt(_localctx, 2);
- {
- setState(142);
- quotedIdentifier();
- }
- 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 IdentifierContext extends ParserRuleContext {
- public TerminalNode IDENTIFIER() { return getToken(IdesDslParser.IDENTIFIER, 0); }
- public IdentifierContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_identifier; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).enterIdentifier(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).exitIdentifier(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof IdesDslVisitor ) return ((IdesDslVisitor extends T>)visitor).visitIdentifier(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final IdentifierContext identifier() throws RecognitionException {
- IdentifierContext _localctx = new IdentifierContext(_ctx, getState());
- enterRule(_localctx, 32, RULE_identifier);
- try {
- enterOuterAlt(_localctx, 1);
- {
- setState(145);
- match(IDENTIFIER);
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- exitRule();
- }
- return _localctx;
- }
-
- public static class QuotedIdentifierContext extends ParserRuleContext {
- public TerminalNode QUOTED_TEXT() { return getToken(IdesDslParser.QUOTED_TEXT, 0); }
- public QuotedIdentifierContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_quotedIdentifier; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).enterQuotedIdentifier(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).exitQuotedIdentifier(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof IdesDslVisitor ) return ((IdesDslVisitor extends T>)visitor).visitQuotedIdentifier(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final QuotedIdentifierContext quotedIdentifier() throws RecognitionException {
- QuotedIdentifierContext _localctx = new QuotedIdentifierContext(_ctx, getState());
- enterRule(_localctx, 34, RULE_quotedIdentifier);
- try {
- enterOuterAlt(_localctx, 1);
- {
- setState(147);
- match(QUOTED_TEXT);
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- exitRule();
- }
- return _localctx;
- }
-
- public static class WhereContext extends ParserRuleContext {
- public TerminalNode OPTIONS() { return getToken(IdesDslParser.OPTIONS, 0); }
- public TerminalNode WHERE() { return getToken(IdesDslParser.WHERE, 0); }
- public WhereContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_where; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).enterWhere(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).exitWhere(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof IdesDslVisitor ) return ((IdesDslVisitor extends T>)visitor).visitWhere(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final WhereContext where() throws RecognitionException {
- WhereContext _localctx = new WhereContext(_ctx, getState());
- enterRule(_localctx, 36, RULE_where);
- int _la;
- try {
- enterOuterAlt(_localctx, 1);
- {
- setState(149);
- _la = _input.LA(1);
- if ( !(_la==OPTIONS || _la==WHERE) ) {
- _errHandler.recoverInline(this);
- }
- else {
- if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
- _errHandler.reportMatch(this);
- consume();
- }
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- exitRule();
- }
- return _localctx;
- }
-
- public static class SaveModeContext extends ParserRuleContext {
- public TerminalNode OVERWRITE() { return getToken(IdesDslParser.OVERWRITE, 0); }
- public TerminalNode APPEND() { return getToken(IdesDslParser.APPEND, 0); }
- public TerminalNode ERRORIfExists() { return getToken(IdesDslParser.ERRORIfExists, 0); }
- public TerminalNode IGNORE() { return getToken(IdesDslParser.IGNORE, 0); }
- public SaveModeContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
- @Override public int getRuleIndex() { return RULE_saveMode; }
- @Override
- public void enterRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).enterSaveMode(this);
- }
- @Override
- public void exitRule(ParseTreeListener listener) {
- if ( listener instanceof IdesDslListener ) ((IdesDslListener)listener).exitSaveMode(this);
- }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if ( visitor instanceof IdesDslVisitor ) return ((IdesDslVisitor extends T>)visitor).visitSaveMode(this);
- else return visitor.visitChildren(this);
- }
- }
-
- public final SaveModeContext saveMode() throws RecognitionException {
- SaveModeContext _localctx = new SaveModeContext(_ctx, getState());
- enterRule(_localctx, 38, RULE_saveMode);
- int _la;
- try {
- enterOuterAlt(_localctx, 1);
- {
- setState(151);
- _la = _input.LA(1);
- if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << OVERWRITE) | (1L << APPEND) | (1L << ERRORIfExists) | (1L << IGNORE))) != 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 =
- "\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3\36\u009c\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\3\2\7\2,\n\2\f\2\16\2/\13\2\3\3\3\3\3\3"+
- "\3\4\3\4\3\4\3\4\3\4\5\49\n\4\3\4\3\4\3\4\3\4\3\4\5\4@\n\4\3\4\3\4\3\4"+
- "\3\4\3\4\5\4G\n\4\3\4\5\4J\n\4\3\4\3\4\6\4N\n\4\r\4\16\4O\3\4\3\4\3\4"+
- "\3\4\3\4\3\4\3\4\3\4\3\4\5\4[\n\4\5\4]\n\4\3\5\3\5\5\5a\n\5\3\6\3\6\3"+
- "\7\3\7\3\b\3\b\3\b\3\t\3\t\3\t\7\tm\n\t\f\t\16\tp\13\t\3\n\3\n\3\n\7\n"+
- "u\n\n\f\n\16\nx\13\n\3\13\3\13\3\13\3\f\3\f\3\r\3\r\3\16\3\16\3\16\3\16"+
- "\3\17\3\17\3\17\7\17\u0088\n\17\f\17\16\17\u008b\13\17\3\20\3\20\3\20"+
- "\3\21\3\21\5\21\u0092\n\21\3\22\3\22\3\23\3\23\3\24\3\24\3\25\3\25\3\25"+
- "\2\2\26\2\4\6\b\n\f\16\20\22\24\26\30\32\34\36 \"$&(\2\6\3\2\25\25\4\2"+
- "\26\26\30\32\3\2\n\13\3\2\r\20\2\u0097\2-\3\2\2\2\4\60\3\2\2\2\6\\\3\2"+
- "\2\2\b`\3\2\2\2\nb\3\2\2\2\fd\3\2\2\2\16f\3\2\2\2\20i\3\2\2\2\22q\3\2"+
- "\2\2\24y\3\2\2\2\26|\3\2\2\2\30~\3\2\2\2\32\u0080\3\2\2\2\34\u0084\3\2"+
- "\2\2\36\u008c\3\2\2\2 \u0091\3\2\2\2\"\u0093\3\2\2\2$\u0095\3\2\2\2&\u0097"+
- "\3\2\2\2(\u0099\3\2\2\2*,\5\4\3\2+*\3\2\2\2,/\3\2\2\2-+\3\2\2\2-.\3\2"+
- "\2\2.\3\3\2\2\2/-\3\2\2\2\60\61\5\6\4\2\61\62\7\25\2\2\62\5\3\2\2\2\63"+
- "\64\7\7\2\2\64\65\5\b\5\2\65\66\7\24\2\2\668\5\n\6\2\679\5\20\t\28\67"+
- "\3\2\2\289\3\2\2\29:\3\2\2\2:;\5\36\20\2;]\3\2\2\2<=\7\b\2\2=?\5 \21\2"+
- ">@\5(\25\2?>\3\2\2\2?@\3\2\2\2@A\3\2\2\2AB\7\6\2\2BC\5\b\5\2CD\7\24\2"+
- "\2DF\5\n\6\2EG\5\20\t\2FE\3\2\2\2FG\3\2\2\2GI\3\2\2\2HJ\5\22\n\2IH\3\2"+
- "\2\2IJ\3\2\2\2J]\3\2\2\2KM\7\t\2\2LN\n\2\2\2ML\3\2\2\2NO\3\2\2\2OM\3\2"+
- "\2\2OP\3\2\2\2PQ\3\2\2\2Q]\5\36\20\2RS\7\22\2\2ST\5\b\5\2TU\5\20\t\2U"+
- "V\5\36\20\2V]\3\2\2\2WX\7\23\2\2XZ\5\32\16\2Y[\5\20\t\2ZY\3\2\2\2Z[\3"+
- "\2\2\2[]\3\2\2\2\\\63\3\2\2\2\\<\3\2\2\2\\K\3\2\2\2\\R\3\2\2\2\\W\3\2"+
- "\2\2]\7\3\2\2\2^a\5\"\22\2_a\5$\23\2`^\3\2\2\2`_\3\2\2\2a\t\3\2\2\2bc"+
- "\5$\23\2c\13\3\2\2\2de\5\"\22\2e\r\3\2\2\2fg\7\3\2\2gh\5\f\7\2h\17\3\2"+
- "\2\2ij\5&\24\2jn\5\32\16\2km\5\24\13\2lk\3\2\2\2mp\3\2\2\2nl\3\2\2\2n"+
- "o\3\2\2\2o\21\3\2\2\2pn\3\2\2\2qr\7\21\2\2rv\5\f\7\2su\5\16\b\2ts\3\2"+
- "\2\2ux\3\2\2\2vt\3\2\2\2vw\3\2\2\2w\23\3\2\2\2xv\3\2\2\2yz\7\f\2\2z{\5"+
- "\32\16\2{\25\3\2\2\2|}\5\34\17\2}\27\3\2\2\2~\177\t\3\2\2\177\31\3\2\2"+
- "\2\u0080\u0081\5\26\f\2\u0081\u0082\7\4\2\2\u0082\u0083\5\30\r\2\u0083"+
- "\33\3\2\2\2\u0084\u0089\5\"\22\2\u0085\u0086\7\24\2\2\u0086\u0088\5\""+
- "\22\2\u0087\u0085\3\2\2\2\u0088\u008b\3\2\2\2\u0089\u0087\3\2\2\2\u0089"+
- "\u008a\3\2\2\2\u008a\35\3\2\2\2\u008b\u0089\3\2\2\2\u008c\u008d\7\5\2"+
- "\2\u008d\u008e\5 \21\2\u008e\37\3\2\2\2\u008f\u0092\5\"\22\2\u0090\u0092"+
- "\5$\23\2\u0091\u008f\3\2\2\2\u0091\u0090\3\2\2\2\u0092!\3\2\2\2\u0093"+
- "\u0094\7\27\2\2\u0094#\3\2\2\2\u0095\u0096\7\30\2\2\u0096%\3\2\2\2\u0097"+
- "\u0098\t\4\2\2\u0098\'\3\2\2\2\u0099\u009a\t\5\2\2\u009a)\3\2\2\2\17-"+
- "8?FIOZ\\`nv\u0089\u0091";
- 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);
- }
- }
-}
\ No newline at end of file
diff --git a/dsl/src/main/java/ides/dsl/parser/IdesDslVisitor.java b/dsl/src/main/java/ides/dsl/parser/IdesDslVisitor.java
deleted file mode 100644
index f449908..0000000
--- a/dsl/src/main/java/ides/dsl/parser/IdesDslVisitor.java
+++ /dev/null
@@ -1,165 +0,0 @@
-// Generated from /Users/sgr/develop/github/ides/dsl/src/main/resources/IdesDsl.g4 by ANTLR 4.7.2
-
- package ides.dsl.parser;
-
-import org.antlr.v4.runtime.tree.ParseTreeVisitor;
-
-/**
- * This interface defines a complete generic visitor for a parse tree produced
- * by {@link IdesDslParser}.
- *
- * @param The return type of the visit operation. Use {@link Void} for
- * operations with no return type.
- */
-public interface IdesDslVisitor extends ParseTreeVisitor {
- /**
- * Visit a parse tree produced by {@link IdesDslParser#statement}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitStatement(IdesDslParser.StatementContext ctx);
- /**
- * Visit a parse tree produced by the {@code Sql}
- * labeled alternative in {@link IdesDslParser#script}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitSql(IdesDslParser.SqlContext ctx);
- /**
- * Visit a parse tree produced by the {@code Load}
- * labeled alternative in {@link IdesDslParser#query}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitLoad(IdesDslParser.LoadContext ctx);
- /**
- * Visit a parse tree produced by the {@code Save}
- * labeled alternative in {@link IdesDslParser#query}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitSave(IdesDslParser.SaveContext ctx);
- /**
- * Visit a parse tree produced by the {@code Select}
- * labeled alternative in {@link IdesDslParser#query}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitSelect(IdesDslParser.SelectContext ctx);
- /**
- * Visit a parse tree produced by the {@code Connect}
- * labeled alternative in {@link IdesDslParser#query}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitConnect(IdesDslParser.ConnectContext ctx);
- /**
- * Visit a parse tree produced by the {@code Set}
- * labeled alternative in {@link IdesDslParser#query}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitSet(IdesDslParser.SetContext ctx);
- /**
- * Visit a parse tree produced by {@link IdesDslParser#format}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitFormat(IdesDslParser.FormatContext ctx);
- /**
- * Visit a parse tree produced by {@link IdesDslParser#path}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitPath(IdesDslParser.PathContext ctx);
- /**
- * Visit a parse tree produced by {@link IdesDslParser#col}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitCol(IdesDslParser.ColContext ctx);
- /**
- * Visit a parse tree produced by {@link IdesDslParser#colGroup}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitColGroup(IdesDslParser.ColGroupContext ctx);
- /**
- * Visit a parse tree produced by {@link IdesDslParser#whereExpressions}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitWhereExpressions(IdesDslParser.WhereExpressionsContext ctx);
- /**
- * Visit a parse tree produced by {@link IdesDslParser#partitionbyExpression}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitPartitionbyExpression(IdesDslParser.PartitionbyExpressionContext ctx);
- /**
- * Visit a parse tree produced by {@link IdesDslParser#booleanExpression}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitBooleanExpression(IdesDslParser.BooleanExpressionContext ctx);
- /**
- * Visit a parse tree produced by {@link IdesDslParser#keyName}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitKeyName(IdesDslParser.KeyNameContext ctx);
- /**
- * Visit a parse tree produced by {@link IdesDslParser#valueName}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitValueName(IdesDslParser.ValueNameContext ctx);
- /**
- * Visit a parse tree produced by {@link IdesDslParser#expression}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitExpression(IdesDslParser.ExpressionContext ctx);
- /**
- * Visit a parse tree produced by {@link IdesDslParser#qualifiedName}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitQualifiedName(IdesDslParser.QualifiedNameContext ctx);
- /**
- * Visit a parse tree produced by {@link IdesDslParser#asAsset}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitAsAsset(IdesDslParser.AsAssetContext ctx);
- /**
- * Visit a parse tree produced by {@link IdesDslParser#assetName}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitAssetName(IdesDslParser.AssetNameContext ctx);
- /**
- * Visit a parse tree produced by {@link IdesDslParser#identifier}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitIdentifier(IdesDslParser.IdentifierContext ctx);
- /**
- * Visit a parse tree produced by {@link IdesDslParser#quotedIdentifier}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitQuotedIdentifier(IdesDslParser.QuotedIdentifierContext ctx);
- /**
- * Visit a parse tree produced by {@link IdesDslParser#where}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitWhere(IdesDslParser.WhereContext ctx);
- /**
- * Visit a parse tree produced by {@link IdesDslParser#saveMode}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitSaveMode(IdesDslParser.SaveModeContext ctx);
-}
\ No newline at end of file
diff --git a/dsl/src/main/java/ides/dsl/parser/IdesLexer.interp b/dsl/src/main/java/ides/dsl/parser/IdesLexer.interp
new file mode 100644
index 0000000..3aed2d8
--- /dev/null
+++ b/dsl/src/main/java/ides/dsl/parser/IdesLexer.interp
@@ -0,0 +1,265 @@
+token literal names:
+null
+null
+null
+null
+'as'
+'into'
+'load'
+'save'
+'select'
+'options'
+'where'
+'and'
+'overwrite'
+'append'
+'errorIfExists'
+'ignore'
+null
+'connect'
+'set'
+'.'
+'='
+','
+'>'
+';'
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+
+token symbolic names:
+null
+PY_MODE
+SQL_MODE
+SHELL_MODE
+AS
+INTO
+LOAD
+SAVE
+SELECT
+OPTIONS
+WHERE
+AND
+OVERWRITE
+APPEND
+ERRORIfExists
+IGNORE
+PARTITIONBY
+CONNECT
+SET
+DOT
+EQ
+COMMA
+OUT
+EOQ
+MUMERIC
+IDENTIFIER
+QUOTED_TEXT
+STRING_TEXT
+BLOCK_STRING_TEXT
+LINE_COMMENT
+BLOCK_COMMENT
+NL
+WS
+UNRECOGNIZED
+EXIT_PY
+PY_RETURN
+PY_STRING
+VARIABLE
+VariableRef
+PY_NonEnd
+PY_TEXT
+PY_COMMENT
+PY_WS
+EXIT_SQL
+SQL_RETURN
+SQL_TEXT
+DDL
+DML
+Profile
+SQL_COMMENT1
+SQL_COMMENT2
+SQL_COMMENT_BLOCK
+CreatStatement
+AlterStatement
+DropStatement
+RenameStatement
+TruncateStatement
+SelectStatement
+InsertStatement
+UpdateStatement
+DeleteStatement
+ReplaceStatement
+UseStatement
+ShowStatement
+ExplainStatement
+SetStatement
+CallStatement
+OpenStatement
+CloseStatement
+TransactionStatement
+CommitStatement
+RollbackStatement
+SQL_WS
+EXIT_SH
+SH_RETURN
+SH_STRING
+SH_NonEnd
+SHELL_TEXT
+SEHLL_COMMENT
+SH_WS
+
+rule names:
+PY_MODE
+SQL_MODE
+SHELL_MODE
+AS
+INTO
+LOAD
+SAVE
+SELECT
+OPTIONS
+WHERE
+AND
+OVERWRITE
+APPEND
+ERRORIfExists
+IGNORE
+PARTITIONBY
+CONNECT
+SET
+DOT
+EQ
+COMMA
+OUT
+EOQ
+MUMERIC
+IDENTIFIER
+QUOTED_TEXT
+STRING_TEXT
+BLOCK_STRING_TEXT
+DIGIT
+LETTER
+LINE_COMMENT
+BLOCK_COMMENT
+NL
+WS
+UNRECOGNIZED
+EXIT_PY
+IGNORE_PY
+PY_RETURN
+PY_STRING
+VARIABLE
+VariableRef
+PY_NonEnd
+PY_TEXT
+PY_COMMENT
+PY_WS
+EXIT_SQL
+IGNORE_SQL
+SQL_RETURN
+SQL_TEXT
+DDL
+DML
+Profile
+SQL_COMMENT1
+SQL_COMMENT2
+SQL_COMMENT_BLOCK
+CreatStatement
+AlterStatement
+DropStatement
+RenameStatement
+TruncateStatement
+SelectStatement
+InsertStatement
+UpdateStatement
+DeleteStatement
+ReplaceStatement
+UseStatement
+ShowStatement
+ExplainStatement
+SetStatement
+CallStatement
+OpenStatement
+CloseStatement
+TransactionStatement
+CommitStatement
+RollbackStatement
+SQL_WS
+EXIT_SH
+IGNORE_SH
+SH_RETURN
+SH_STRING
+SH_NonEnd
+SHELL_TEXT
+SEHLL_COMMENT
+SH_WS
+
+channel names:
+DEFAULT_TOKEN_CHANNEL
+HIDDEN
+null
+null
+COMMENT
+
+mode names:
+DEFAULT_MODE
+PYTHON_LAN
+SQL_LAN
+SHELL_LAN
+
+atn:
+[3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 2, 81, 1133, 8, 1, 8, 1, 8, 1, 8, 1, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12, 4, 13, 9, 13, 4, 14, 9, 14, 4, 15, 9, 15, 4, 16, 9, 16, 4, 17, 9, 17, 4, 18, 9, 18, 4, 19, 9, 19, 4, 20, 9, 20, 4, 21, 9, 21, 4, 22, 9, 22, 4, 23, 9, 23, 4, 24, 9, 24, 4, 25, 9, 25, 4, 26, 9, 26, 4, 27, 9, 27, 4, 28, 9, 28, 4, 29, 9, 29, 4, 30, 9, 30, 4, 31, 9, 31, 4, 32, 9, 32, 4, 33, 9, 33, 4, 34, 9, 34, 4, 35, 9, 35, 4, 36, 9, 36, 4, 37, 9, 37, 4, 38, 9, 38, 4, 39, 9, 39, 4, 40, 9, 40, 4, 41, 9, 41, 4, 42, 9, 42, 4, 43, 9, 43, 4, 44, 9, 44, 4, 45, 9, 45, 4, 46, 9, 46, 4, 47, 9, 47, 4, 48, 9, 48, 4, 49, 9, 49, 4, 50, 9, 50, 4, 51, 9, 51, 4, 52, 9, 52, 4, 53, 9, 53, 4, 54, 9, 54, 4, 55, 9, 55, 4, 56, 9, 56, 4, 57, 9, 57, 4, 58, 9, 58, 4, 59, 9, 59, 4, 60, 9, 60, 4, 61, 9, 61, 4, 62, 9, 62, 4, 63, 9, 63, 4, 64, 9, 64, 4, 65, 9, 65, 4, 66, 9, 66, 4, 67, 9, 67, 4, 68, 9, 68, 4, 69, 9, 69, 4, 70, 9, 70, 4, 71, 9, 71, 4, 72, 9, 72, 4, 73, 9, 73, 4, 74, 9, 74, 4, 75, 9, 75, 4, 76, 9, 76, 4, 77, 9, 77, 4, 78, 9, 78, 4, 79, 9, 79, 4, 80, 9, 80, 4, 81, 9, 81, 4, 82, 9, 82, 4, 83, 9, 83, 4, 84, 9, 84, 4, 85, 9, 85, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 5, 2, 186, 10, 2, 3, 2, 5, 2, 189, 10, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 3, 203, 10, 3, 3, 3, 5, 3, 206, 10, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 5, 3, 5, 3, 5, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 7, 3, 7, 3, 7, 3, 7, 3, 7, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 11, 3, 11, 3, 11, 3, 11, 3, 11, 3, 11, 3, 12, 3, 12, 3, 12, 3, 12, 3, 13, 3, 13, 3, 13, 3, 13, 3, 13, 3, 13, 3, 13, 3, 13, 3, 13, 3, 13, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 14, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 5, 17, 323, 10, 17, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 19, 3, 19, 3, 19, 3, 19, 3, 20, 3, 20, 3, 21, 3, 21, 3, 22, 3, 22, 3, 23, 3, 23, 3, 24, 3, 24, 3, 25, 5, 25, 348, 10, 25, 3, 25, 7, 25, 351, 10, 25, 12, 25, 14, 25, 354, 11, 25, 3, 25, 5, 25, 357, 10, 25, 3, 25, 6, 25, 360, 10, 25, 13, 25, 14, 25, 361, 3, 26, 3, 26, 3, 26, 3, 26, 7, 26, 368, 10, 26, 12, 26, 14, 26, 371, 11, 26, 3, 26, 3, 26, 3, 26, 3, 26, 6, 26, 377, 10, 26, 13, 26, 14, 26, 378, 5, 26, 381, 10, 26, 3, 27, 3, 27, 3, 27, 3, 27, 7, 27, 387, 10, 27, 12, 27, 14, 27, 390, 11, 27, 3, 27, 3, 27, 3, 28, 3, 28, 3, 28, 3, 28, 7, 28, 398, 10, 28, 12, 28, 14, 28, 401, 11, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 7, 28, 408, 10, 28, 12, 28, 14, 28, 411, 11, 28, 3, 28, 5, 28, 414, 10, 28, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 7, 29, 421, 10, 29, 12, 29, 14, 29, 424, 11, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 7, 29, 434, 10, 29, 12, 29, 14, 29, 437, 11, 29, 3, 29, 3, 29, 3, 29, 5, 29, 442, 10, 29, 3, 30, 3, 30, 3, 31, 3, 31, 3, 32, 3, 32, 3, 32, 3, 32, 7, 32, 452, 10, 32, 12, 32, 14, 32, 455, 11, 32, 3, 32, 5, 32, 458, 10, 32, 3, 32, 3, 32, 3, 33, 3, 33, 3, 33, 3, 33, 7, 33, 466, 10, 33, 12, 33, 14, 33, 469, 11, 33, 3, 33, 3, 33, 3, 33, 3, 33, 3, 33, 3, 34, 3, 34, 3, 34, 5, 34, 479, 10, 34, 3, 35, 6, 35, 482, 10, 35, 13, 35, 14, 35, 483, 3, 35, 3, 35, 3, 36, 3, 36, 3, 37, 3, 37, 3, 37, 3, 37, 3, 38, 3, 38, 3, 38, 3, 38, 3, 39, 3, 39, 3, 39, 5, 39, 501, 10, 39, 3, 40, 3, 40, 3, 40, 3, 40, 3, 40, 7, 40, 508, 10, 40, 12, 40, 14, 40, 511, 11, 40, 3, 40, 3, 40, 3, 40, 3, 40, 3, 40, 3, 40, 3, 40, 3, 40, 7, 40, 521, 10, 40, 12, 40, 14, 40, 524, 11, 40, 3, 40, 3, 40, 3, 40, 3, 40, 3, 40, 3, 40, 3, 40, 7, 40, 533, 10, 40, 12, 40, 14, 40, 536, 11, 40, 3, 40, 3, 40, 3, 40, 3, 40, 3, 40, 7, 40, 543, 10, 40, 12, 40, 14, 40, 546, 11, 40, 3, 40, 5, 40, 549, 10, 40, 3, 41, 3, 41, 3, 41, 3, 41, 7, 41, 555, 10, 41, 12, 41, 14, 41, 558, 11, 41, 3, 41, 3, 41, 3, 41, 3, 41, 6, 41, 564, 10, 41, 13, 41, 14, 41, 565, 5, 41, 568, 10, 41, 3, 42, 3, 42, 7, 42, 572, 10, 42, 12, 42, 14, 42, 575, 11, 42, 3, 42, 3, 42, 3, 42, 7, 42, 580, 10, 42, 12, 42, 14, 42, 583, 11, 42, 3, 42, 3, 42, 7, 42, 587, 10, 42, 12, 42, 14, 42, 590, 11, 42, 3, 42, 3, 42, 3, 42, 7, 42, 595, 10, 42, 12, 42, 14, 42, 598, 11, 42, 3, 42, 3, 42, 7, 42, 602, 10, 42, 12, 42, 14, 42, 605, 11, 42, 3, 42, 5, 42, 608, 10, 42, 3, 43, 6, 43, 611, 10, 43, 13, 43, 14, 43, 612, 3, 43, 3, 43, 7, 43, 617, 10, 43, 12, 43, 14, 43, 620, 11, 43, 3, 44, 3, 44, 3, 44, 3, 44, 6, 44, 626, 10, 44, 13, 44, 14, 44, 627, 3, 44, 5, 44, 631, 10, 44, 3, 45, 6, 45, 634, 10, 45, 13, 45, 14, 45, 635, 3, 45, 7, 45, 639, 10, 45, 12, 45, 14, 45, 642, 11, 45, 3, 45, 3, 45, 3, 46, 6, 46, 647, 10, 46, 13, 46, 14, 46, 648, 3, 46, 3, 46, 3, 47, 3, 47, 3, 47, 3, 47, 3, 48, 3, 48, 3, 48, 3, 48, 3, 49, 3, 49, 3, 49, 5, 49, 664, 10, 49, 3, 50, 3, 50, 5, 50, 668, 10, 50, 3, 50, 3, 50, 5, 50, 672, 10, 50, 3, 50, 3, 50, 5, 50, 676, 10, 50, 5, 50, 678, 10, 50, 3, 51, 3, 51, 3, 51, 3, 51, 3, 51, 5, 51, 685, 10, 51, 3, 52, 3, 52, 3, 52, 3, 52, 3, 52, 5, 52, 692, 10, 52, 3, 53, 3, 53, 3, 53, 3, 53, 3, 53, 3, 53, 3, 53, 3, 53, 3, 53, 3, 53, 5, 53, 704, 10, 53, 3, 54, 6, 54, 707, 10, 54, 13, 54, 14, 54, 708, 3, 54, 7, 54, 712, 10, 54, 12, 54, 14, 54, 715, 11, 54, 3, 54, 3, 54, 3, 55, 6, 55, 720, 10, 55, 13, 55, 14, 55, 721, 3, 55, 7, 55, 725, 10, 55, 12, 55, 14, 55, 728, 11, 55, 3, 55, 3, 55, 3, 56, 3, 56, 3, 56, 3, 56, 7, 56, 736, 10, 56, 12, 56, 14, 56, 739, 11, 56, 3, 56, 3, 56, 3, 56, 3, 56, 3, 56, 3, 57, 3, 57, 3, 57, 3, 57, 3, 57, 3, 57, 3, 57, 3, 57, 6, 57, 754, 10, 57, 13, 57, 14, 57, 755, 3, 57, 3, 57, 3, 58, 3, 58, 3, 58, 3, 58, 3, 58, 3, 58, 3, 58, 6, 58, 767, 10, 58, 13, 58, 14, 58, 768, 3, 58, 3, 58, 3, 59, 3, 59, 3, 59, 3, 59, 3, 59, 3, 59, 6, 59, 779, 10, 59, 13, 59, 14, 59, 780, 3, 59, 3, 59, 3, 60, 3, 60, 3, 60, 3, 60, 3, 60, 3, 60, 3, 60, 3, 60, 6, 60, 793, 10, 60, 13, 60, 14, 60, 794, 3, 60, 3, 60, 3, 61, 3, 61, 3, 61, 3, 61, 3, 61, 3, 61, 3, 61, 3, 61, 3, 61, 3, 61, 6, 61, 809, 10, 61, 13, 61, 14, 61, 810, 3, 61, 3, 61, 3, 62, 3, 62, 3, 62, 3, 62, 3, 62, 3, 62, 3, 62, 3, 62, 6, 62, 823, 10, 62, 13, 62, 14, 62, 824, 3, 62, 3, 62, 3, 63, 3, 63, 3, 63, 3, 63, 3, 63, 3, 63, 3, 63, 3, 63, 6, 63, 837, 10, 63, 13, 63, 14, 63, 838, 3, 63, 3, 63, 3, 64, 3, 64, 3, 64, 3, 64, 3, 64, 3, 64, 3, 64, 3, 64, 6, 64, 851, 10, 64, 13, 64, 14, 64, 852, 3, 64, 3, 64, 3, 65, 3, 65, 3, 65, 3, 65, 3, 65, 3, 65, 3, 65, 3, 65, 6, 65, 865, 10, 65, 13, 65, 14, 65, 866, 3, 65, 3, 65, 3, 66, 3, 66, 3, 66, 3, 66, 3, 66, 3, 66, 3, 66, 3, 66, 3, 66, 6, 66, 880, 10, 66, 13, 66, 14, 66, 881, 3, 66, 3, 66, 3, 67, 3, 67, 3, 67, 3, 67, 3, 67, 6, 67, 891, 10, 67, 13, 67, 14, 67, 892, 3, 67, 3, 67, 3, 68, 3, 68, 3, 68, 3, 68, 3, 68, 3, 68, 6, 68, 903, 10, 68, 13, 68, 14, 68, 904, 3, 68, 3, 68, 3, 69, 3, 69, 3, 69, 3, 69, 3, 69, 3, 69, 3, 69, 3, 69, 3, 69, 6, 69, 918, 10, 69, 13, 69, 14, 69, 919, 3, 69, 3, 69, 3, 70, 3, 70, 3, 70, 3, 70, 3, 70, 6, 70, 929, 10, 70, 13, 70, 14, 70, 930, 3, 70, 3, 70, 3, 71, 3, 71, 3, 71, 3, 71, 3, 71, 3, 71, 6, 71, 941, 10, 71, 13, 71, 14, 71, 942, 3, 71, 3, 71, 3, 72, 3, 72, 3, 72, 3, 72, 3, 72, 3, 72, 6, 72, 953, 10, 72, 13, 72, 14, 72, 954, 3, 72, 3, 72, 3, 73, 3, 73, 3, 73, 3, 73, 3, 73, 3, 73, 3, 73, 6, 73, 966, 10, 73, 13, 73, 14, 73, 967, 3, 73, 3, 73, 3, 74, 3, 74, 3, 74, 3, 74, 3, 74, 3, 74, 3, 74, 3, 74, 3, 74, 3, 74, 5, 74, 982, 10, 74, 3, 74, 6, 74, 985, 10, 74, 13, 74, 14, 74, 986, 3, 74, 3, 74, 3, 75, 3, 75, 3, 75, 3, 75, 3, 75, 3, 75, 3, 75, 3, 75, 7, 75, 999, 10, 75, 12, 75, 14, 75, 1002, 11, 75, 3, 75, 3, 75, 3, 76, 3, 76, 3, 76, 3, 76, 3, 76, 3, 76, 3, 76, 3, 76, 3, 76, 3, 76, 7, 76, 1016, 10, 76, 12, 76, 14, 76, 1019, 11, 76, 3, 76, 3, 76, 3, 77, 6, 77, 1024, 10, 77, 13, 77, 14, 77, 1025, 3, 77, 3, 77, 3, 78, 3, 78, 3, 78, 3, 78, 3, 79, 3, 79, 3, 79, 3, 79, 3, 80, 3, 80, 3, 80, 5, 80, 1041, 10, 80, 3, 81, 3, 81, 3, 81, 3, 81, 3, 81, 7, 81, 1048, 10, 81, 12, 81, 14, 81, 1051, 11, 81, 3, 81, 3, 81, 3, 81, 3, 81, 3, 81, 3, 81, 3, 81, 3, 81, 7, 81, 1061, 10, 81, 12, 81, 14, 81, 1064, 11, 81, 3, 81, 3, 81, 3, 81, 3, 81, 3, 81, 3, 81, 3, 81, 7, 81, 1073, 10, 81, 12, 81, 14, 81, 1076, 11, 81, 3, 81, 3, 81, 3, 81, 3, 81, 3, 81, 7, 81, 1083, 10, 81, 12, 81, 14, 81, 1086, 11, 81, 3, 81, 5, 81, 1089, 10, 81, 3, 82, 6, 82, 1092, 10, 82, 13, 82, 14, 82, 1093, 3, 82, 3, 82, 7, 82, 1098, 10, 82, 12, 82, 14, 82, 1101, 11, 82, 3, 83, 3, 83, 3, 83, 6, 83, 1106, 10, 83, 13, 83, 14, 83, 1107, 3, 83, 3, 83, 5, 83, 1112, 10, 83, 3, 84, 6, 84, 1115, 10, 84, 13, 84, 14, 84, 1116, 3, 84, 7, 84, 1120, 10, 84, 12, 84, 14, 84, 1123, 11, 84, 3, 84, 3, 84, 3, 85, 6, 85, 1128, 10, 85, 13, 85, 14, 85, 1129, 3, 85, 3, 85, 20, 388, 399, 409, 422, 435, 467, 509, 522, 534, 544, 588, 603, 618, 737, 1049, 1062, 1074, 1084, 2, 86, 6, 3, 8, 4, 10, 5, 12, 6, 14, 7, 16, 8, 18, 9, 20, 10, 22, 11, 24, 12, 26, 13, 28, 14, 30, 15, 32, 16, 34, 17, 36, 18, 38, 19, 40, 20, 42, 21, 44, 22, 46, 23, 48, 24, 50, 25, 52, 26, 54, 27, 56, 28, 58, 29, 60, 30, 62, 2, 64, 2, 66, 31, 68, 32, 70, 33, 72, 34, 74, 35, 76, 36, 78, 2, 80, 37, 82, 38, 84, 39, 86, 40, 88, 41, 90, 42, 92, 43, 94, 44, 96, 45, 98, 2, 100, 46, 102, 47, 104, 48, 106, 49, 108, 50, 110, 51, 112, 52, 114, 53, 116, 54, 118, 55, 120, 56, 122, 57, 124, 58, 126, 59, 128, 60, 130, 61, 132, 62, 134, 63, 136, 64, 138, 65, 140, 66, 142, 67, 144, 68, 146, 69, 148, 70, 150, 71, 152, 72, 154, 73, 156, 74, 158, 75, 160, 2, 162, 76, 164, 77, 166, 78, 168, 79, 170, 80, 172, 81, 6, 2, 3, 4, 5, 17, 4, 2, 45, 45, 47, 47, 4, 2, 94, 94, 98, 98, 4, 2, 41, 41, 94, 94, 4, 2, 36, 36, 94, 94, 3, 2, 50, 59, 4, 2, 67, 92, 99, 124, 4, 2, 12, 12, 15, 15, 5, 2, 11, 12, 15, 15, 34, 34, 4, 2, 11, 11, 34, 34, 7, 2, 12, 12, 15, 15, 36, 37, 39, 39, 41, 41, 5, 2, 12, 12, 15, 15, 37, 37, 5, 2, 12, 12, 15, 15, 47, 47, 3, 2, 61, 61, 5, 2, 12, 12, 15, 15, 61, 61, 8, 2, 12, 12, 15, 15, 36, 37, 39, 39, 41, 41, 61, 61, 2, 1263, 2, 6, 3, 2, 2, 2, 2, 8, 3, 2, 2, 2, 2, 10, 3, 2, 2, 2, 2, 12, 3, 2, 2, 2, 2, 14, 3, 2, 2, 2, 2, 16, 3, 2, 2, 2, 2, 18, 3, 2, 2, 2, 2, 20, 3, 2, 2, 2, 2, 22, 3, 2, 2, 2, 2, 24, 3, 2, 2, 2, 2, 26, 3, 2, 2, 2, 2, 28, 3, 2, 2, 2, 2, 30, 3, 2, 2, 2, 2, 32, 3, 2, 2, 2, 2, 34, 3, 2, 2, 2, 2, 36, 3, 2, 2, 2, 2, 38, 3, 2, 2, 2, 2, 40, 3, 2, 2, 2, 2, 42, 3, 2, 2, 2, 2, 44, 3, 2, 2, 2, 2, 46, 3, 2, 2, 2, 2, 48, 3, 2, 2, 2, 2, 50, 3, 2, 2, 2, 2, 52, 3, 2, 2, 2, 2, 54, 3, 2, 2, 2, 2, 56, 3, 2, 2, 2, 2, 58, 3, 2, 2, 2, 2, 60, 3, 2, 2, 2, 2, 66, 3, 2, 2, 2, 2, 68, 3, 2, 2, 2, 2, 70, 3, 2, 2, 2, 2, 72, 3, 2, 2, 2, 2, 74, 3, 2, 2, 2, 3, 76, 3, 2, 2, 2, 3, 78, 3, 2, 2, 2, 3, 80, 3, 2, 2, 2, 3, 82, 3, 2, 2, 2, 3, 84, 3, 2, 2, 2, 3, 86, 3, 2, 2, 2, 3, 88, 3, 2, 2, 2, 3, 90, 3, 2, 2, 2, 3, 92, 3, 2, 2, 2, 3, 94, 3, 2, 2, 2, 4, 96, 3, 2, 2, 2, 4, 98, 3, 2, 2, 2, 4, 100, 3, 2, 2, 2, 4, 102, 3, 2, 2, 2, 4, 104, 3, 2, 2, 2, 4, 106, 3, 2, 2, 2, 4, 108, 3, 2, 2, 2, 4, 110, 3, 2, 2, 2, 4, 112, 3, 2, 2, 2, 4, 114, 3, 2, 2, 2, 4, 116, 3, 2, 2, 2, 4, 118, 3, 2, 2, 2, 4, 120, 3, 2, 2, 2, 4, 122, 3, 2, 2, 2, 4, 124, 3, 2, 2, 2, 4, 126, 3, 2, 2, 2, 4, 128, 3, 2, 2, 2, 4, 130, 3, 2, 2, 2, 4, 132, 3, 2, 2, 2, 4, 134, 3, 2, 2, 2, 4, 136, 3, 2, 2, 2, 4, 138, 3, 2, 2, 2, 4, 140, 3, 2, 2, 2, 4, 142, 3, 2, 2, 2, 4, 144, 3, 2, 2, 2, 4, 146, 3, 2, 2, 2, 4, 148, 3, 2, 2, 2, 4, 150, 3, 2, 2, 2, 4, 152, 3, 2, 2, 2, 4, 154, 3, 2, 2, 2, 4, 156, 3, 2, 2, 2, 5, 158, 3, 2, 2, 2, 5, 160, 3, 2, 2, 2, 5, 162, 3, 2, 2, 2, 5, 164, 3, 2, 2, 2, 5, 166, 3, 2, 2, 2, 5, 168, 3, 2, 2, 2, 5, 170, 3, 2, 2, 2, 5, 172, 3, 2, 2, 2, 6, 174, 3, 2, 2, 2, 8, 194, 3, 2, 2, 2, 10, 211, 3, 2, 2, 2, 12, 219, 3, 2, 2, 2, 14, 222, 3, 2, 2, 2, 16, 227, 3, 2, 2, 2, 18, 232, 3, 2, 2, 2, 20, 237, 3, 2, 2, 2, 22, 244, 3, 2, 2, 2, 24, 252, 3, 2, 2, 2, 26, 258, 3, 2, 2, 2, 28, 262, 3, 2, 2, 2, 30, 272, 3, 2, 2, 2, 32, 279, 3, 2, 2, 2, 34, 293, 3, 2, 2, 2, 36, 322, 3, 2, 2, 2, 38, 324, 3, 2, 2, 2, 40, 332, 3, 2, 2, 2, 42, 336, 3, 2, 2, 2, 44, 338, 3, 2, 2, 2, 46, 340, 3, 2, 2, 2, 48, 342, 3, 2, 2, 2, 50, 344, 3, 2, 2, 2, 52, 347, 3, 2, 2, 2, 54, 380, 3, 2, 2, 2, 56, 382, 3, 2, 2, 2, 58, 413, 3, 2, 2, 2, 60, 441, 3, 2, 2, 2, 62, 443, 3, 2, 2, 2, 64, 445, 3, 2, 2, 2, 66, 447, 3, 2, 2, 2, 68, 461, 3, 2, 2, 2, 70, 478, 3, 2, 2, 2, 72, 481, 3, 2, 2, 2, 74, 487, 3, 2, 2, 2, 76, 489, 3, 2, 2, 2, 78, 493, 3, 2, 2, 2, 80, 500, 3, 2, 2, 2, 82, 548, 3, 2, 2, 2, 84, 567, 3, 2, 2, 2, 86, 607, 3, 2, 2, 2, 88, 610, 3, 2, 2, 2, 90, 625, 3, 2, 2, 2, 92, 633, 3, 2, 2, 2, 94, 646, 3, 2, 2, 2, 96, 652, 3, 2, 2, 2, 98, 656, 3, 2, 2, 2, 100, 663, 3, 2, 2, 2, 102, 677, 3, 2, 2, 2, 104, 684, 3, 2, 2, 2, 106, 691, 3, 2, 2, 2, 108, 703, 3, 2, 2, 2, 110, 706, 3, 2, 2, 2, 112, 719, 3, 2, 2, 2, 114, 731, 3, 2, 2, 2, 116, 745, 3, 2, 2, 2, 118, 759, 3, 2, 2, 2, 120, 772, 3, 2, 2, 2, 122, 784, 3, 2, 2, 2, 124, 798, 3, 2, 2, 2, 126, 814, 3, 2, 2, 2, 128, 828, 3, 2, 2, 2, 130, 842, 3, 2, 2, 2, 132, 856, 3, 2, 2, 2, 134, 870, 3, 2, 2, 2, 136, 885, 3, 2, 2, 2, 138, 896, 3, 2, 2, 2, 140, 908, 3, 2, 2, 2, 142, 923, 3, 2, 2, 2, 144, 934, 3, 2, 2, 2, 146, 946, 3, 2, 2, 2, 148, 958, 3, 2, 2, 2, 150, 981, 3, 2, 2, 2, 152, 990, 3, 2, 2, 2, 154, 1005, 3, 2, 2, 2, 156, 1023, 3, 2, 2, 2, 158, 1029, 3, 2, 2, 2, 160, 1033, 3, 2, 2, 2, 162, 1040, 3, 2, 2, 2, 164, 1088, 3, 2, 2, 2, 166, 1091, 3, 2, 2, 2, 168, 1105, 3, 2, 2, 2, 170, 1114, 3, 2, 2, 2, 172, 1127, 3, 2, 2, 2, 174, 175, 7, 39, 2, 2, 175, 176, 7, 114, 2, 2, 176, 177, 7, 123, 2, 2, 177, 178, 7, 118, 2, 2, 178, 179, 7, 106, 2, 2, 179, 180, 7, 113, 2, 2, 180, 181, 7, 112, 2, 2, 181, 188, 3, 2, 2, 2, 182, 185, 7, 42, 2, 2, 183, 186, 5, 54, 26, 2, 184, 186, 5, 56, 27, 2, 185, 183, 3, 2, 2, 2, 185, 184, 3, 2, 2, 2, 185, 186, 3, 2, 2, 2, 186, 187, 3, 2, 2, 2, 187, 189, 7, 43, 2, 2, 188, 182, 3, 2, 2, 2, 188, 189, 3, 2, 2, 2, 189, 190, 3, 2, 2, 2, 190, 191, 5, 70, 34, 2, 191, 192, 3, 2, 2, 2, 192, 193, 8, 2, 2, 2, 193, 7, 3, 2, 2, 2, 194, 195, 7, 39, 2, 2, 195, 196, 7, 117, 2, 2, 196, 197, 7, 115, 2, 2, 197, 198, 7, 110, 2, 2, 198, 205, 3, 2, 2, 2, 199, 202, 7, 42, 2, 2, 200, 203, 5, 54, 26, 2, 201, 203, 5, 56, 27, 2, 202, 200, 3, 2, 2, 2, 202, 201, 3, 2, 2, 2, 202, 203, 3, 2, 2, 2, 203, 204, 3, 2, 2, 2, 204, 206, 7, 43, 2, 2, 205, 199, 3, 2, 2, 2, 205, 206, 3, 2, 2, 2, 206, 207, 3, 2, 2, 2, 207, 208, 5, 70, 34, 2, 208, 209, 3, 2, 2, 2, 209, 210, 8, 3, 3, 2, 210, 9, 3, 2, 2, 2, 211, 212, 7, 39, 2, 2, 212, 213, 7, 117, 2, 2, 213, 214, 7, 106, 2, 2, 214, 215, 3, 2, 2, 2, 215, 216, 5, 70, 34, 2, 216, 217, 3, 2, 2, 2, 217, 218, 8, 4, 4, 2, 218, 11, 3, 2, 2, 2, 219, 220, 7, 99, 2, 2, 220, 221, 7, 117, 2, 2, 221, 13, 3, 2, 2, 2, 222, 223, 7, 107, 2, 2, 223, 224, 7, 112, 2, 2, 224, 225, 7, 118, 2, 2, 225, 226, 7, 113, 2, 2, 226, 15, 3, 2, 2, 2, 227, 228, 7, 110, 2, 2, 228, 229, 7, 113, 2, 2, 229, 230, 7, 99, 2, 2, 230, 231, 7, 102, 2, 2, 231, 17, 3, 2, 2, 2, 232, 233, 7, 117, 2, 2, 233, 234, 7, 99, 2, 2, 234, 235, 7, 120, 2, 2, 235, 236, 7, 103, 2, 2, 236, 19, 3, 2, 2, 2, 237, 238, 7, 117, 2, 2, 238, 239, 7, 103, 2, 2, 239, 240, 7, 110, 2, 2, 240, 241, 7, 103, 2, 2, 241, 242, 7, 101, 2, 2, 242, 243, 7, 118, 2, 2, 243, 21, 3, 2, 2, 2, 244, 245, 7, 113, 2, 2, 245, 246, 7, 114, 2, 2, 246, 247, 7, 118, 2, 2, 247, 248, 7, 107, 2, 2, 248, 249, 7, 113, 2, 2, 249, 250, 7, 112, 2, 2, 250, 251, 7, 117, 2, 2, 251, 23, 3, 2, 2, 2, 252, 253, 7, 121, 2, 2, 253, 254, 7, 106, 2, 2, 254, 255, 7, 103, 2, 2, 255, 256, 7, 116, 2, 2, 256, 257, 7, 103, 2, 2, 257, 25, 3, 2, 2, 2, 258, 259, 7, 99, 2, 2, 259, 260, 7, 112, 2, 2, 260, 261, 7, 102, 2, 2, 261, 27, 3, 2, 2, 2, 262, 263, 7, 113, 2, 2, 263, 264, 7, 120, 2, 2, 264, 265, 7, 103, 2, 2, 265, 266, 7, 116, 2, 2, 266, 267, 7, 121, 2, 2, 267, 268, 7, 116, 2, 2, 268, 269, 7, 107, 2, 2, 269, 270, 7, 118, 2, 2, 270, 271, 7, 103, 2, 2, 271, 29, 3, 2, 2, 2, 272, 273, 7, 99, 2, 2, 273, 274, 7, 114, 2, 2, 274, 275, 7, 114, 2, 2, 275, 276, 7, 103, 2, 2, 276, 277, 7, 112, 2, 2, 277, 278, 7, 102, 2, 2, 278, 31, 3, 2, 2, 2, 279, 280, 7, 103, 2, 2, 280, 281, 7, 116, 2, 2, 281, 282, 7, 116, 2, 2, 282, 283, 7, 113, 2, 2, 283, 284, 7, 116, 2, 2, 284, 285, 7, 75, 2, 2, 285, 286, 7, 104, 2, 2, 286, 287, 7, 71, 2, 2, 287, 288, 7, 122, 2, 2, 288, 289, 7, 107, 2, 2, 289, 290, 7, 117, 2, 2, 290, 291, 7, 118, 2, 2, 291, 292, 7, 117, 2, 2, 292, 33, 3, 2, 2, 2, 293, 294, 7, 107, 2, 2, 294, 295, 7, 105, 2, 2, 295, 296, 7, 112, 2, 2, 296, 297, 7, 113, 2, 2, 297, 298, 7, 116, 2, 2, 298, 299, 7, 103, 2, 2, 299, 35, 3, 2, 2, 2, 300, 301, 7, 114, 2, 2, 301, 302, 7, 99, 2, 2, 302, 303, 7, 116, 2, 2, 303, 304, 7, 118, 2, 2, 304, 305, 7, 107, 2, 2, 305, 306, 7, 118, 2, 2, 306, 307, 7, 107, 2, 2, 307, 308, 7, 113, 2, 2, 308, 309, 7, 112, 2, 2, 309, 310, 7, 68, 2, 2, 310, 323, 7, 123, 2, 2, 311, 312, 7, 114, 2, 2, 312, 313, 7, 99, 2, 2, 313, 314, 7, 116, 2, 2, 314, 315, 7, 118, 2, 2, 315, 316, 7, 107, 2, 2, 316, 317, 7, 118, 2, 2, 317, 318, 7, 107, 2, 2, 318, 319, 7, 113, 2, 2, 319, 320, 7, 112, 2, 2, 320, 321, 7, 100, 2, 2, 321, 323, 7, 123, 2, 2, 322, 300, 3, 2, 2, 2, 322, 311, 3, 2, 2, 2, 323, 37, 3, 2, 2, 2, 324, 325, 7, 101, 2, 2, 325, 326, 7, 113, 2, 2, 326, 327, 7, 112, 2, 2, 327, 328, 7, 112, 2, 2, 328, 329, 7, 103, 2, 2, 329, 330, 7, 101, 2, 2, 330, 331, 7, 118, 2, 2, 331, 39, 3, 2, 2, 2, 332, 333, 7, 117, 2, 2, 333, 334, 7, 103, 2, 2, 334, 335, 7, 118, 2, 2, 335, 41, 3, 2, 2, 2, 336, 337, 7, 48, 2, 2, 337, 43, 3, 2, 2, 2, 338, 339, 7, 63, 2, 2, 339, 45, 3, 2, 2, 2, 340, 341, 7, 46, 2, 2, 341, 47, 3, 2, 2, 2, 342, 343, 7, 64, 2, 2, 343, 49, 3, 2, 2, 2, 344, 345, 7, 61, 2, 2, 345, 51, 3, 2, 2, 2, 346, 348, 9, 2, 2, 2, 347, 346, 3, 2, 2, 2, 347, 348, 3, 2, 2, 2, 348, 352, 3, 2, 2, 2, 349, 351, 5, 62, 30, 2, 350, 349, 3, 2, 2, 2, 351, 354, 3, 2, 2, 2, 352, 350, 3, 2, 2, 2, 352, 353, 3, 2, 2, 2, 353, 356, 3, 2, 2, 2, 354, 352, 3, 2, 2, 2, 355, 357, 7, 48, 2, 2, 356, 355, 3, 2, 2, 2, 356, 357, 3, 2, 2, 2, 357, 359, 3, 2, 2, 2, 358, 360, 5, 62, 30, 2, 359, 358, 3, 2, 2, 2, 360, 361, 3, 2, 2, 2, 361, 359, 3, 2, 2, 2, 361, 362, 3, 2, 2, 2, 362, 53, 3, 2, 2, 2, 363, 369, 5, 64, 31, 2, 364, 368, 5, 62, 30, 2, 365, 368, 5, 64, 31, 2, 366, 368, 7, 97, 2, 2, 367, 364, 3, 2, 2, 2, 367, 365, 3, 2, 2, 2, 367, 366, 3, 2, 2, 2, 368, 371, 3, 2, 2, 2, 369, 367, 3, 2, 2, 2, 369, 370, 3, 2, 2, 2, 370, 381, 3, 2, 2, 2, 371, 369, 3, 2, 2, 2, 372, 376, 7, 97, 2, 2, 373, 377, 5, 62, 30, 2, 374, 377, 5, 64, 31, 2, 375, 377, 7, 97, 2, 2, 376, 373, 3, 2, 2, 2, 376, 374, 3, 2, 2, 2, 376, 375, 3, 2, 2, 2, 377, 378, 3, 2, 2, 2, 378, 376, 3, 2, 2, 2, 378, 379, 3, 2, 2, 2, 379, 381, 3, 2, 2, 2, 380, 363, 3, 2, 2, 2, 380, 372, 3, 2, 2, 2, 381, 55, 3, 2, 2, 2, 382, 388, 7, 98, 2, 2, 383, 387, 10, 3, 2, 2, 384, 385, 7, 94, 2, 2, 385, 387, 11, 2, 2, 2, 386, 383, 3, 2, 2, 2, 386, 384, 3, 2, 2, 2, 387, 390, 3, 2, 2, 2, 388, 389, 3, 2, 2, 2, 388, 386, 3, 2, 2, 2, 389, 391, 3, 2, 2, 2, 390, 388, 3, 2, 2, 2, 391, 392, 7, 98, 2, 2, 392, 57, 3, 2, 2, 2, 393, 399, 7, 41, 2, 2, 394, 398, 10, 4, 2, 2, 395, 396, 7, 94, 2, 2, 396, 398, 11, 2, 2, 2, 397, 394, 3, 2, 2, 2, 397, 395, 3, 2, 2, 2, 398, 401, 3, 2, 2, 2, 399, 400, 3, 2, 2, 2, 399, 397, 3, 2, 2, 2, 400, 402, 3, 2, 2, 2, 401, 399, 3, 2, 2, 2, 402, 414, 7, 41, 2, 2, 403, 409, 7, 36, 2, 2, 404, 408, 10, 5, 2, 2, 405, 406, 7, 94, 2, 2, 406, 408, 11, 2, 2, 2, 407, 404, 3, 2, 2, 2, 407, 405, 3, 2, 2, 2, 408, 411, 3, 2, 2, 2, 409, 410, 3, 2, 2, 2, 409, 407, 3, 2, 2, 2, 410, 412, 3, 2, 2, 2, 411, 409, 3, 2, 2, 2, 412, 414, 7, 36, 2, 2, 413, 393, 3, 2, 2, 2, 413, 403, 3, 2, 2, 2, 414, 59, 3, 2, 2, 2, 415, 416, 7, 41, 2, 2, 416, 417, 7, 41, 2, 2, 417, 418, 7, 41, 2, 2, 418, 422, 3, 2, 2, 2, 419, 421, 11, 2, 2, 2, 420, 419, 3, 2, 2, 2, 421, 424, 3, 2, 2, 2, 422, 423, 3, 2, 2, 2, 422, 420, 3, 2, 2, 2, 423, 425, 3, 2, 2, 2, 424, 422, 3, 2, 2, 2, 425, 426, 7, 41, 2, 2, 426, 427, 7, 41, 2, 2, 427, 442, 7, 41, 2, 2, 428, 429, 7, 36, 2, 2, 429, 430, 7, 36, 2, 2, 430, 431, 7, 36, 2, 2, 431, 435, 3, 2, 2, 2, 432, 434, 11, 2, 2, 2, 433, 432, 3, 2, 2, 2, 434, 437, 3, 2, 2, 2, 435, 436, 3, 2, 2, 2, 435, 433, 3, 2, 2, 2, 436, 438, 3, 2, 2, 2, 437, 435, 3, 2, 2, 2, 438, 439, 7, 36, 2, 2, 439, 440, 7, 36, 2, 2, 440, 442, 7, 36, 2, 2, 441, 415, 3, 2, 2, 2, 441, 428, 3, 2, 2, 2, 442, 61, 3, 2, 2, 2, 443, 444, 9, 6, 2, 2, 444, 63, 3, 2, 2, 2, 445, 446, 9, 7, 2, 2, 446, 65, 3, 2, 2, 2, 447, 448, 7, 47, 2, 2, 448, 449, 7, 47, 2, 2, 449, 453, 3, 2, 2, 2, 450, 452, 10, 8, 2, 2, 451, 450, 3, 2, 2, 2, 452, 455, 3, 2, 2, 2, 453, 451, 3, 2, 2, 2, 453, 454, 3, 2, 2, 2, 454, 457, 3, 2, 2, 2, 455, 453, 3, 2, 2, 2, 456, 458, 5, 70, 34, 2, 457, 456, 3, 2, 2, 2, 457, 458, 3, 2, 2, 2, 458, 459, 3, 2, 2, 2, 459, 460, 8, 32, 5, 2, 460, 67, 3, 2, 2, 2, 461, 462, 7, 49, 2, 2, 462, 463, 7, 44, 2, 2, 463, 467, 3, 2, 2, 2, 464, 466, 11, 2, 2, 2, 465, 464, 3, 2, 2, 2, 466, 469, 3, 2, 2, 2, 467, 468, 3, 2, 2, 2, 467, 465, 3, 2, 2, 2, 468, 470, 3, 2, 2, 2, 469, 467, 3, 2, 2, 2, 470, 471, 7, 44, 2, 2, 471, 472, 7, 49, 2, 2, 472, 473, 3, 2, 2, 2, 473, 474, 8, 33, 5, 2, 474, 69, 3, 2, 2, 2, 475, 479, 7, 12, 2, 2, 476, 477, 7, 15, 2, 2, 477, 479, 7, 12, 2, 2, 478, 475, 3, 2, 2, 2, 478, 476, 3, 2, 2, 2, 479, 71, 3, 2, 2, 2, 480, 482, 9, 9, 2, 2, 481, 480, 3, 2, 2, 2, 482, 483, 3, 2, 2, 2, 483, 481, 3, 2, 2, 2, 483, 484, 3, 2, 2, 2, 484, 485, 3, 2, 2, 2, 485, 486, 8, 35, 5, 2, 486, 73, 3, 2, 2, 2, 487, 488, 11, 2, 2, 2, 488, 75, 3, 2, 2, 2, 489, 490, 7, 39, 2, 2, 490, 491, 3, 2, 2, 2, 491, 492, 8, 37, 6, 2, 492, 77, 3, 2, 2, 2, 493, 494, 11, 2, 2, 2, 494, 495, 3, 2, 2, 2, 495, 496, 8, 38, 7, 2, 496, 79, 3, 2, 2, 2, 497, 501, 7, 12, 2, 2, 498, 499, 7, 15, 2, 2, 499, 501, 7, 12, 2, 2, 500, 497, 3, 2, 2, 2, 500, 498, 3, 2, 2, 2, 501, 81, 3, 2, 2, 2, 502, 503, 7, 41, 2, 2, 503, 504, 7, 41, 2, 2, 504, 505, 7, 41, 2, 2, 505, 509, 3, 2, 2, 2, 506, 508, 11, 2, 2, 2, 507, 506, 3, 2, 2, 2, 508, 511, 3, 2, 2, 2, 509, 510, 3, 2, 2, 2, 509, 507, 3, 2, 2, 2, 510, 512, 3, 2, 2, 2, 511, 509, 3, 2, 2, 2, 512, 513, 7, 41, 2, 2, 513, 514, 7, 41, 2, 2, 514, 549, 7, 41, 2, 2, 515, 516, 7, 36, 2, 2, 516, 517, 7, 36, 2, 2, 517, 518, 7, 36, 2, 2, 518, 522, 3, 2, 2, 2, 519, 521, 11, 2, 2, 2, 520, 519, 3, 2, 2, 2, 521, 524, 3, 2, 2, 2, 522, 523, 3, 2, 2, 2, 522, 520, 3, 2, 2, 2, 523, 525, 3, 2, 2, 2, 524, 522, 3, 2, 2, 2, 525, 526, 7, 36, 2, 2, 526, 527, 7, 36, 2, 2, 527, 549, 7, 36, 2, 2, 528, 534, 7, 41, 2, 2, 529, 533, 10, 4, 2, 2, 530, 531, 7, 94, 2, 2, 531, 533, 11, 2, 2, 2, 532, 529, 3, 2, 2, 2, 532, 530, 3, 2, 2, 2, 533, 536, 3, 2, 2, 2, 534, 535, 3, 2, 2, 2, 534, 532, 3, 2, 2, 2, 535, 537, 3, 2, 2, 2, 536, 534, 3, 2, 2, 2, 537, 549, 7, 41, 2, 2, 538, 544, 7, 36, 2, 2, 539, 543, 10, 5, 2, 2, 540, 541, 7, 94, 2, 2, 541, 543, 11, 2, 2, 2, 542, 539, 3, 2, 2, 2, 542, 540, 3, 2, 2, 2, 543, 546, 3, 2, 2, 2, 544, 545, 3, 2, 2, 2, 544, 542, 3, 2, 2, 2, 545, 547, 3, 2, 2, 2, 546, 544, 3, 2, 2, 2, 547, 549, 7, 36, 2, 2, 548, 502, 3, 2, 2, 2, 548, 515, 3, 2, 2, 2, 548, 528, 3, 2, 2, 2, 548, 538, 3, 2, 2, 2, 549, 83, 3, 2, 2, 2, 550, 556, 5, 64, 31, 2, 551, 555, 5, 62, 30, 2, 552, 555, 5, 64, 31, 2, 553, 555, 7, 97, 2, 2, 554, 551, 3, 2, 2, 2, 554, 552, 3, 2, 2, 2, 554, 553, 3, 2, 2, 2, 555, 558, 3, 2, 2, 2, 556, 554, 3, 2, 2, 2, 556, 557, 3, 2, 2, 2, 557, 568, 3, 2, 2, 2, 558, 556, 3, 2, 2, 2, 559, 563, 7, 97, 2, 2, 560, 564, 5, 62, 30, 2, 561, 564, 5, 64, 31, 2, 562, 564, 7, 97, 2, 2, 563, 560, 3, 2, 2, 2, 563, 561, 3, 2, 2, 2, 563, 562, 3, 2, 2, 2, 564, 565, 3, 2, 2, 2, 565, 563, 3, 2, 2, 2, 565, 566, 3, 2, 2, 2, 566, 568, 3, 2, 2, 2, 567, 550, 3, 2, 2, 2, 567, 559, 3, 2, 2, 2, 568, 85, 3, 2, 2, 2, 569, 573, 7, 39, 2, 2, 570, 572, 9, 10, 2, 2, 571, 570, 3, 2, 2, 2, 572, 575, 3, 2, 2, 2, 573, 571, 3, 2, 2, 2, 573, 574, 3, 2, 2, 2, 574, 576, 3, 2, 2, 2, 575, 573, 3, 2, 2, 2, 576, 608, 5, 84, 41, 2, 577, 581, 7, 39, 2, 2, 578, 580, 9, 10, 2, 2, 579, 578, 3, 2, 2, 2, 580, 583, 3, 2, 2, 2, 581, 579, 3, 2, 2, 2, 581, 582, 3, 2, 2, 2, 582, 584, 3, 2, 2, 2, 583, 581, 3, 2, 2, 2, 584, 588, 7, 42, 2, 2, 585, 587, 11, 2, 2, 2, 586, 585, 3, 2, 2, 2, 587, 590, 3, 2, 2, 2, 588, 589, 3, 2, 2, 2, 588, 586, 3, 2, 2, 2, 589, 591, 3, 2, 2, 2, 590, 588, 3, 2, 2, 2, 591, 608, 7, 43, 2, 2, 592, 596, 7, 39, 2, 2, 593, 595, 9, 10, 2, 2, 594, 593, 3, 2, 2, 2, 595, 598, 3, 2, 2, 2, 596, 594, 3, 2, 2, 2, 596, 597, 3, 2, 2, 2, 597, 599, 3, 2, 2, 2, 598, 596, 3, 2, 2, 2, 599, 603, 7, 125, 2, 2, 600, 602, 11, 2, 2, 2, 601, 600, 3, 2, 2, 2, 602, 605, 3, 2, 2, 2, 603, 604, 3, 2, 2, 2, 603, 601, 3, 2, 2, 2, 604, 606, 3, 2, 2, 2, 605, 603, 3, 2, 2, 2, 606, 608, 7, 127, 2, 2, 607, 569, 3, 2, 2, 2, 607, 577, 3, 2, 2, 2, 607, 592, 3, 2, 2, 2, 608, 87, 3, 2, 2, 2, 609, 611, 10, 9, 2, 2, 610, 609, 3, 2, 2, 2, 611, 612, 3, 2, 2, 2, 612, 610, 3, 2, 2, 2, 612, 613, 3, 2, 2, 2, 613, 614, 3, 2, 2, 2, 614, 618, 7, 39, 2, 2, 615, 617, 11, 2, 2, 2, 616, 615, 3, 2, 2, 2, 617, 620, 3, 2, 2, 2, 618, 619, 3, 2, 2, 2, 618, 616, 3, 2, 2, 2, 619, 89, 3, 2, 2, 2, 620, 618, 3, 2, 2, 2, 621, 626, 10, 11, 2, 2, 622, 626, 5, 82, 40, 2, 623, 626, 5, 88, 43, 2, 624, 626, 5, 86, 42, 2, 625, 621, 3, 2, 2, 2, 625, 622, 3, 2, 2, 2, 625, 623, 3, 2, 2, 2, 625, 624, 3, 2, 2, 2, 626, 627, 3, 2, 2, 2, 627, 625, 3, 2, 2, 2, 627, 628, 3, 2, 2, 2, 628, 630, 3, 2, 2, 2, 629, 631, 5, 80, 39, 2, 630, 629, 3, 2, 2, 2, 630, 631, 3, 2, 2, 2, 631, 91, 3, 2, 2, 2, 632, 634, 7, 37, 2, 2, 633, 632, 3, 2, 2, 2, 634, 635, 3, 2, 2, 2, 635, 633, 3, 2, 2, 2, 635, 636, 3, 2, 2, 2, 636, 640, 3, 2, 2, 2, 637, 639, 10, 12, 2, 2, 638, 637, 3, 2, 2, 2, 639, 642, 3, 2, 2, 2, 640, 638, 3, 2, 2, 2, 640, 641, 3, 2, 2, 2, 641, 643, 3, 2, 2, 2, 642, 640, 3, 2, 2, 2, 643, 644, 8, 45, 8, 2, 644, 93, 3, 2, 2, 2, 645, 647, 9, 9, 2, 2, 646, 645, 3, 2, 2, 2, 647, 648, 3, 2, 2, 2, 648, 646, 3, 2, 2, 2, 648, 649, 3, 2, 2, 2, 649, 650, 3, 2, 2, 2, 650, 651, 8, 46, 9, 2, 651, 95, 3, 2, 2, 2, 652, 653, 7, 39, 2, 2, 653, 654, 3, 2, 2, 2, 654, 655, 8, 47, 6, 2, 655, 97, 3, 2, 2, 2, 656, 657, 11, 2, 2, 2, 657, 658, 3, 2, 2, 2, 658, 659, 8, 48, 7, 2, 659, 99, 3, 2, 2, 2, 660, 664, 7, 12, 2, 2, 661, 662, 7, 15, 2, 2, 662, 664, 7, 12, 2, 2, 663, 660, 3, 2, 2, 2, 663, 661, 3, 2, 2, 2, 664, 101, 3, 2, 2, 2, 665, 667, 5, 106, 52, 2, 666, 668, 5, 100, 49, 2, 667, 666, 3, 2, 2, 2, 667, 668, 3, 2, 2, 2, 668, 678, 3, 2, 2, 2, 669, 671, 5, 104, 51, 2, 670, 672, 5, 100, 49, 2, 671, 670, 3, 2, 2, 2, 671, 672, 3, 2, 2, 2, 672, 678, 3, 2, 2, 2, 673, 675, 5, 108, 53, 2, 674, 676, 5, 100, 49, 2, 675, 674, 3, 2, 2, 2, 675, 676, 3, 2, 2, 2, 676, 678, 3, 2, 2, 2, 677, 665, 3, 2, 2, 2, 677, 669, 3, 2, 2, 2, 677, 673, 3, 2, 2, 2, 678, 103, 3, 2, 2, 2, 679, 685, 5, 116, 57, 2, 680, 685, 5, 118, 58, 2, 681, 685, 5, 120, 59, 2, 682, 685, 5, 122, 60, 2, 683, 685, 5, 124, 61, 2, 684, 679, 3, 2, 2, 2, 684, 680, 3, 2, 2, 2, 684, 681, 3, 2, 2, 2, 684, 682, 3, 2, 2, 2, 684, 683, 3, 2, 2, 2, 685, 105, 3, 2, 2, 2, 686, 692, 5, 126, 62, 2, 687, 692, 5, 128, 63, 2, 688, 692, 5, 130, 64, 2, 689, 692, 5, 132, 65, 2, 690, 692, 5, 134, 66, 2, 691, 686, 3, 2, 2, 2, 691, 687, 3, 2, 2, 2, 691, 688, 3, 2, 2, 2, 691, 689, 3, 2, 2, 2, 691, 690, 3, 2, 2, 2, 692, 107, 3, 2, 2, 2, 693, 704, 5, 136, 67, 2, 694, 704, 5, 138, 68, 2, 695, 704, 5, 140, 69, 2, 696, 704, 5, 142, 70, 2, 697, 704, 5, 144, 71, 2, 698, 704, 5, 146, 72, 2, 699, 704, 5, 148, 73, 2, 700, 704, 5, 150, 74, 2, 701, 704, 5, 152, 75, 2, 702, 704, 5, 154, 76, 2, 703, 693, 3, 2, 2, 2, 703, 694, 3, 2, 2, 2, 703, 695, 3, 2, 2, 2, 703, 696, 3, 2, 2, 2, 703, 697, 3, 2, 2, 2, 703, 698, 3, 2, 2, 2, 703, 699, 3, 2, 2, 2, 703, 700, 3, 2, 2, 2, 703, 701, 3, 2, 2, 2, 703, 702, 3, 2, 2, 2, 704, 109, 3, 2, 2, 2, 705, 707, 7, 37, 2, 2, 706, 705, 3, 2, 2, 2, 707, 708, 3, 2, 2, 2, 708, 706, 3, 2, 2, 2, 708, 709, 3, 2, 2, 2, 709, 713, 3, 2, 2, 2, 710, 712, 10, 12, 2, 2, 711, 710, 3, 2, 2, 2, 712, 715, 3, 2, 2, 2, 713, 711, 3, 2, 2, 2, 713, 714, 3, 2, 2, 2, 714, 716, 3, 2, 2, 2, 715, 713, 3, 2, 2, 2, 716, 717, 8, 54, 8, 2, 717, 111, 3, 2, 2, 2, 718, 720, 7, 47, 2, 2, 719, 718, 3, 2, 2, 2, 720, 721, 3, 2, 2, 2, 721, 719, 3, 2, 2, 2, 721, 722, 3, 2, 2, 2, 722, 726, 3, 2, 2, 2, 723, 725, 10, 13, 2, 2, 724, 723, 3, 2, 2, 2, 725, 728, 3, 2, 2, 2, 726, 724, 3, 2, 2, 2, 726, 727, 3, 2, 2, 2, 727, 729, 3, 2, 2, 2, 728, 726, 3, 2, 2, 2, 729, 730, 8, 55, 8, 2, 730, 113, 3, 2, 2, 2, 731, 732, 7, 49, 2, 2, 732, 733, 7, 44, 2, 2, 733, 737, 3, 2, 2, 2, 734, 736, 11, 2, 2, 2, 735, 734, 3, 2, 2, 2, 736, 739, 3, 2, 2, 2, 737, 738, 3, 2, 2, 2, 737, 735, 3, 2, 2, 2, 738, 740, 3, 2, 2, 2, 739, 737, 3, 2, 2, 2, 740, 741, 7, 44, 2, 2, 741, 742, 7, 49, 2, 2, 742, 743, 3, 2, 2, 2, 743, 744, 8, 56, 8, 2, 744, 115, 3, 2, 2, 2, 745, 746, 7, 101, 2, 2, 746, 747, 7, 116, 2, 2, 747, 748, 7, 103, 2, 2, 748, 749, 7, 99, 2, 2, 749, 750, 7, 118, 2, 2, 750, 751, 7, 103, 2, 2, 751, 753, 3, 2, 2, 2, 752, 754, 10, 14, 2, 2, 753, 752, 3, 2, 2, 2, 754, 755, 3, 2, 2, 2, 755, 753, 3, 2, 2, 2, 755, 756, 3, 2, 2, 2, 756, 757, 3, 2, 2, 2, 757, 758, 7, 61, 2, 2, 758, 117, 3, 2, 2, 2, 759, 760, 7, 99, 2, 2, 760, 761, 7, 110, 2, 2, 761, 762, 7, 118, 2, 2, 762, 763, 7, 103, 2, 2, 763, 764, 7, 116, 2, 2, 764, 766, 3, 2, 2, 2, 765, 767, 10, 14, 2, 2, 766, 765, 3, 2, 2, 2, 767, 768, 3, 2, 2, 2, 768, 766, 3, 2, 2, 2, 768, 769, 3, 2, 2, 2, 769, 770, 3, 2, 2, 2, 770, 771, 7, 61, 2, 2, 771, 119, 3, 2, 2, 2, 772, 773, 7, 102, 2, 2, 773, 774, 7, 116, 2, 2, 774, 775, 7, 113, 2, 2, 775, 776, 7, 114, 2, 2, 776, 778, 3, 2, 2, 2, 777, 779, 10, 14, 2, 2, 778, 777, 3, 2, 2, 2, 779, 780, 3, 2, 2, 2, 780, 778, 3, 2, 2, 2, 780, 781, 3, 2, 2, 2, 781, 782, 3, 2, 2, 2, 782, 783, 7, 61, 2, 2, 783, 121, 3, 2, 2, 2, 784, 785, 7, 116, 2, 2, 785, 786, 7, 103, 2, 2, 786, 787, 7, 112, 2, 2, 787, 788, 7, 99, 2, 2, 788, 789, 7, 111, 2, 2, 789, 790, 7, 103, 2, 2, 790, 792, 3, 2, 2, 2, 791, 793, 10, 14, 2, 2, 792, 791, 3, 2, 2, 2, 793, 794, 3, 2, 2, 2, 794, 792, 3, 2, 2, 2, 794, 795, 3, 2, 2, 2, 795, 796, 3, 2, 2, 2, 796, 797, 7, 61, 2, 2, 797, 123, 3, 2, 2, 2, 798, 799, 7, 118, 2, 2, 799, 800, 7, 116, 2, 2, 800, 801, 7, 119, 2, 2, 801, 802, 7, 112, 2, 2, 802, 803, 7, 101, 2, 2, 803, 804, 7, 99, 2, 2, 804, 805, 7, 118, 2, 2, 805, 806, 7, 103, 2, 2, 806, 808, 3, 2, 2, 2, 807, 809, 10, 14, 2, 2, 808, 807, 3, 2, 2, 2, 809, 810, 3, 2, 2, 2, 810, 808, 3, 2, 2, 2, 810, 811, 3, 2, 2, 2, 811, 812, 3, 2, 2, 2, 812, 813, 7, 61, 2, 2, 813, 125, 3, 2, 2, 2, 814, 815, 7, 117, 2, 2, 815, 816, 7, 103, 2, 2, 816, 817, 7, 110, 2, 2, 817, 818, 7, 103, 2, 2, 818, 819, 7, 101, 2, 2, 819, 820, 7, 118, 2, 2, 820, 822, 3, 2, 2, 2, 821, 823, 10, 14, 2, 2, 822, 821, 3, 2, 2, 2, 823, 824, 3, 2, 2, 2, 824, 822, 3, 2, 2, 2, 824, 825, 3, 2, 2, 2, 825, 826, 3, 2, 2, 2, 826, 827, 7, 61, 2, 2, 827, 127, 3, 2, 2, 2, 828, 829, 7, 107, 2, 2, 829, 830, 7, 112, 2, 2, 830, 831, 7, 117, 2, 2, 831, 832, 7, 103, 2, 2, 832, 833, 7, 116, 2, 2, 833, 834, 7, 118, 2, 2, 834, 836, 3, 2, 2, 2, 835, 837, 10, 14, 2, 2, 836, 835, 3, 2, 2, 2, 837, 838, 3, 2, 2, 2, 838, 836, 3, 2, 2, 2, 838, 839, 3, 2, 2, 2, 839, 840, 3, 2, 2, 2, 840, 841, 7, 61, 2, 2, 841, 129, 3, 2, 2, 2, 842, 843, 7, 119, 2, 2, 843, 844, 7, 114, 2, 2, 844, 845, 7, 102, 2, 2, 845, 846, 7, 99, 2, 2, 846, 847, 7, 118, 2, 2, 847, 848, 7, 103, 2, 2, 848, 850, 3, 2, 2, 2, 849, 851, 10, 14, 2, 2, 850, 849, 3, 2, 2, 2, 851, 852, 3, 2, 2, 2, 852, 850, 3, 2, 2, 2, 852, 853, 3, 2, 2, 2, 853, 854, 3, 2, 2, 2, 854, 855, 7, 61, 2, 2, 855, 131, 3, 2, 2, 2, 856, 857, 7, 102, 2, 2, 857, 858, 7, 103, 2, 2, 858, 859, 7, 110, 2, 2, 859, 860, 7, 103, 2, 2, 860, 861, 7, 118, 2, 2, 861, 862, 7, 103, 2, 2, 862, 864, 3, 2, 2, 2, 863, 865, 10, 14, 2, 2, 864, 863, 3, 2, 2, 2, 865, 866, 3, 2, 2, 2, 866, 864, 3, 2, 2, 2, 866, 867, 3, 2, 2, 2, 867, 868, 3, 2, 2, 2, 868, 869, 7, 61, 2, 2, 869, 133, 3, 2, 2, 2, 870, 871, 7, 116, 2, 2, 871, 872, 7, 103, 2, 2, 872, 873, 7, 114, 2, 2, 873, 874, 7, 110, 2, 2, 874, 875, 7, 99, 2, 2, 875, 876, 7, 101, 2, 2, 876, 877, 7, 103, 2, 2, 877, 879, 3, 2, 2, 2, 878, 880, 10, 14, 2, 2, 879, 878, 3, 2, 2, 2, 880, 881, 3, 2, 2, 2, 881, 879, 3, 2, 2, 2, 881, 882, 3, 2, 2, 2, 882, 883, 3, 2, 2, 2, 883, 884, 7, 61, 2, 2, 884, 135, 3, 2, 2, 2, 885, 886, 7, 119, 2, 2, 886, 887, 7, 117, 2, 2, 887, 888, 7, 103, 2, 2, 888, 890, 3, 2, 2, 2, 889, 891, 10, 14, 2, 2, 890, 889, 3, 2, 2, 2, 891, 892, 3, 2, 2, 2, 892, 890, 3, 2, 2, 2, 892, 893, 3, 2, 2, 2, 893, 894, 3, 2, 2, 2, 894, 895, 7, 61, 2, 2, 895, 137, 3, 2, 2, 2, 896, 897, 7, 117, 2, 2, 897, 898, 7, 106, 2, 2, 898, 899, 7, 113, 2, 2, 899, 900, 7, 121, 2, 2, 900, 902, 3, 2, 2, 2, 901, 903, 10, 14, 2, 2, 902, 901, 3, 2, 2, 2, 903, 904, 3, 2, 2, 2, 904, 902, 3, 2, 2, 2, 904, 905, 3, 2, 2, 2, 905, 906, 3, 2, 2, 2, 906, 907, 7, 61, 2, 2, 907, 139, 3, 2, 2, 2, 908, 909, 7, 103, 2, 2, 909, 910, 7, 122, 2, 2, 910, 911, 7, 114, 2, 2, 911, 912, 7, 110, 2, 2, 912, 913, 7, 99, 2, 2, 913, 914, 7, 107, 2, 2, 914, 915, 7, 112, 2, 2, 915, 917, 3, 2, 2, 2, 916, 918, 10, 14, 2, 2, 917, 916, 3, 2, 2, 2, 918, 919, 3, 2, 2, 2, 919, 917, 3, 2, 2, 2, 919, 920, 3, 2, 2, 2, 920, 921, 3, 2, 2, 2, 921, 922, 7, 61, 2, 2, 922, 141, 3, 2, 2, 2, 923, 924, 7, 117, 2, 2, 924, 925, 7, 103, 2, 2, 925, 926, 7, 118, 2, 2, 926, 928, 3, 2, 2, 2, 927, 929, 10, 14, 2, 2, 928, 927, 3, 2, 2, 2, 929, 930, 3, 2, 2, 2, 930, 928, 3, 2, 2, 2, 930, 931, 3, 2, 2, 2, 931, 932, 3, 2, 2, 2, 932, 933, 7, 61, 2, 2, 933, 143, 3, 2, 2, 2, 934, 935, 7, 101, 2, 2, 935, 936, 7, 99, 2, 2, 936, 937, 7, 110, 2, 2, 937, 938, 7, 110, 2, 2, 938, 940, 3, 2, 2, 2, 939, 941, 10, 14, 2, 2, 940, 939, 3, 2, 2, 2, 941, 942, 3, 2, 2, 2, 942, 940, 3, 2, 2, 2, 942, 943, 3, 2, 2, 2, 943, 944, 3, 2, 2, 2, 944, 945, 7, 61, 2, 2, 945, 145, 3, 2, 2, 2, 946, 947, 7, 113, 2, 2, 947, 948, 7, 114, 2, 2, 948, 949, 7, 103, 2, 2, 949, 950, 7, 112, 2, 2, 950, 952, 3, 2, 2, 2, 951, 953, 10, 14, 2, 2, 952, 951, 3, 2, 2, 2, 953, 954, 3, 2, 2, 2, 954, 952, 3, 2, 2, 2, 954, 955, 3, 2, 2, 2, 955, 956, 3, 2, 2, 2, 956, 957, 7, 61, 2, 2, 957, 147, 3, 2, 2, 2, 958, 959, 7, 101, 2, 2, 959, 960, 7, 110, 2, 2, 960, 961, 7, 113, 2, 2, 961, 962, 7, 117, 2, 2, 962, 963, 7, 103, 2, 2, 963, 965, 3, 2, 2, 2, 964, 966, 10, 14, 2, 2, 965, 964, 3, 2, 2, 2, 966, 967, 3, 2, 2, 2, 967, 965, 3, 2, 2, 2, 967, 968, 3, 2, 2, 2, 968, 969, 3, 2, 2, 2, 969, 970, 7, 61, 2, 2, 970, 149, 3, 2, 2, 2, 971, 972, 7, 117, 2, 2, 972, 973, 7, 118, 2, 2, 973, 974, 7, 99, 2, 2, 974, 975, 7, 116, 2, 2, 975, 982, 7, 118, 2, 2, 976, 977, 7, 100, 2, 2, 977, 978, 7, 103, 2, 2, 978, 979, 7, 105, 2, 2, 979, 980, 7, 107, 2, 2, 980, 982, 7, 112, 2, 2, 981, 971, 3, 2, 2, 2, 981, 976, 3, 2, 2, 2, 982, 984, 3, 2, 2, 2, 983, 985, 10, 14, 2, 2, 984, 983, 3, 2, 2, 2, 985, 986, 3, 2, 2, 2, 986, 984, 3, 2, 2, 2, 986, 987, 3, 2, 2, 2, 987, 988, 3, 2, 2, 2, 988, 989, 7, 61, 2, 2, 989, 151, 3, 2, 2, 2, 990, 991, 7, 101, 2, 2, 991, 992, 7, 113, 2, 2, 992, 993, 7, 111, 2, 2, 993, 994, 7, 111, 2, 2, 994, 995, 7, 107, 2, 2, 995, 996, 7, 118, 2, 2, 996, 1000, 3, 2, 2, 2, 997, 999, 10, 14, 2, 2, 998, 997, 3, 2, 2, 2, 999, 1002, 3, 2, 2, 2, 1000, 998, 3, 2, 2, 2, 1000, 1001, 3, 2, 2, 2, 1001, 1003, 3, 2, 2, 2, 1002, 1000, 3, 2, 2, 2, 1003, 1004, 7, 61, 2, 2, 1004, 153, 3, 2, 2, 2, 1005, 1006, 7, 116, 2, 2, 1006, 1007, 7, 113, 2, 2, 1007, 1008, 7, 110, 2, 2, 1008, 1009, 7, 110, 2, 2, 1009, 1010, 7, 100, 2, 2, 1010, 1011, 7, 99, 2, 2, 1011, 1012, 7, 101, 2, 2, 1012, 1013, 7, 109, 2, 2, 1013, 1017, 3, 2, 2, 2, 1014, 1016, 10, 14, 2, 2, 1015, 1014, 3, 2, 2, 2, 1016, 1019, 3, 2, 2, 2, 1017, 1015, 3, 2, 2, 2, 1017, 1018, 3, 2, 2, 2, 1018, 1020, 3, 2, 2, 2, 1019, 1017, 3, 2, 2, 2, 1020, 1021, 7, 61, 2, 2, 1021, 155, 3, 2, 2, 2, 1022, 1024, 9, 9, 2, 2, 1023, 1022, 3, 2, 2, 2, 1024, 1025, 3, 2, 2, 2, 1025, 1023, 3, 2, 2, 2, 1025, 1026, 3, 2, 2, 2, 1026, 1027, 3, 2, 2, 2, 1027, 1028, 8, 77, 9, 2, 1028, 157, 3, 2, 2, 2, 1029, 1030, 7, 39, 2, 2, 1030, 1031, 3, 2, 2, 2, 1031, 1032, 8, 78, 6, 2, 1032, 159, 3, 2, 2, 2, 1033, 1034, 11, 2, 2, 2, 1034, 1035, 3, 2, 2, 2, 1035, 1036, 8, 79, 7, 2, 1036, 161, 3, 2, 2, 2, 1037, 1041, 7, 12, 2, 2, 1038, 1039, 7, 15, 2, 2, 1039, 1041, 7, 12, 2, 2, 1040, 1037, 3, 2, 2, 2, 1040, 1038, 3, 2, 2, 2, 1041, 163, 3, 2, 2, 2, 1042, 1043, 7, 41, 2, 2, 1043, 1044, 7, 41, 2, 2, 1044, 1045, 7, 41, 2, 2, 1045, 1049, 3, 2, 2, 2, 1046, 1048, 11, 2, 2, 2, 1047, 1046, 3, 2, 2, 2, 1048, 1051, 3, 2, 2, 2, 1049, 1050, 3, 2, 2, 2, 1049, 1047, 3, 2, 2, 2, 1050, 1052, 3, 2, 2, 2, 1051, 1049, 3, 2, 2, 2, 1052, 1053, 7, 41, 2, 2, 1053, 1054, 7, 41, 2, 2, 1054, 1089, 7, 41, 2, 2, 1055, 1056, 7, 36, 2, 2, 1056, 1057, 7, 36, 2, 2, 1057, 1058, 7, 36, 2, 2, 1058, 1062, 3, 2, 2, 2, 1059, 1061, 11, 2, 2, 2, 1060, 1059, 3, 2, 2, 2, 1061, 1064, 3, 2, 2, 2, 1062, 1063, 3, 2, 2, 2, 1062, 1060, 3, 2, 2, 2, 1063, 1065, 3, 2, 2, 2, 1064, 1062, 3, 2, 2, 2, 1065, 1066, 7, 36, 2, 2, 1066, 1067, 7, 36, 2, 2, 1067, 1089, 7, 36, 2, 2, 1068, 1074, 7, 41, 2, 2, 1069, 1073, 10, 4, 2, 2, 1070, 1071, 7, 94, 2, 2, 1071, 1073, 11, 2, 2, 2, 1072, 1069, 3, 2, 2, 2, 1072, 1070, 3, 2, 2, 2, 1073, 1076, 3, 2, 2, 2, 1074, 1075, 3, 2, 2, 2, 1074, 1072, 3, 2, 2, 2, 1075, 1077, 3, 2, 2, 2, 1076, 1074, 3, 2, 2, 2, 1077, 1089, 7, 41, 2, 2, 1078, 1084, 7, 36, 2, 2, 1079, 1083, 10, 5, 2, 2, 1080, 1081, 7, 94, 2, 2, 1081, 1083, 11, 2, 2, 2, 1082, 1079, 3, 2, 2, 2, 1082, 1080, 3, 2, 2, 2, 1083, 1086, 3, 2, 2, 2, 1084, 1085, 3, 2, 2, 2, 1084, 1082, 3, 2, 2, 2, 1085, 1087, 3, 2, 2, 2, 1086, 1084, 3, 2, 2, 2, 1087, 1089, 7, 36, 2, 2, 1088, 1042, 3, 2, 2, 2, 1088, 1055, 3, 2, 2, 2, 1088, 1068, 3, 2, 2, 2, 1088, 1078, 3, 2, 2, 2, 1089, 165, 3, 2, 2, 2, 1090, 1092, 10, 9, 2, 2, 1091, 1090, 3, 2, 2, 2, 1092, 1093, 3, 2, 2, 2, 1093, 1091, 3, 2, 2, 2, 1093, 1094, 3, 2, 2, 2, 1094, 1095, 3, 2, 2, 2, 1095, 1099, 7, 39, 2, 2, 1096, 1098, 10, 15, 2, 2, 1097, 1096, 3, 2, 2, 2, 1098, 1101, 3, 2, 2, 2, 1099, 1097, 3, 2, 2, 2, 1099, 1100, 3, 2, 2, 2, 1100, 167, 3, 2, 2, 2, 1101, 1099, 3, 2, 2, 2, 1102, 1106, 10, 16, 2, 2, 1103, 1106, 5, 164, 81, 2, 1104, 1106, 5, 166, 82, 2, 1105, 1102, 3, 2, 2, 2, 1105, 1103, 3, 2, 2, 2, 1105, 1104, 3, 2, 2, 2, 1106, 1107, 3, 2, 2, 2, 1107, 1105, 3, 2, 2, 2, 1107, 1108, 3, 2, 2, 2, 1108, 1109, 3, 2, 2, 2, 1109, 1111, 7, 61, 2, 2, 1110, 1112, 5, 162, 80, 2, 1111, 1110, 3, 2, 2, 2, 1111, 1112, 3, 2, 2, 2, 1112, 169, 3, 2, 2, 2, 1113, 1115, 7, 37, 2, 2, 1114, 1113, 3, 2, 2, 2, 1115, 1116, 3, 2, 2, 2, 1116, 1114, 3, 2, 2, 2, 1116, 1117, 3, 2, 2, 2, 1117, 1121, 3, 2, 2, 2, 1118, 1120, 10, 12, 2, 2, 1119, 1118, 3, 2, 2, 2, 1120, 1123, 3, 2, 2, 2, 1121, 1119, 3, 2, 2, 2, 1121, 1122, 3, 2, 2, 2, 1122, 1124, 3, 2, 2, 2, 1123, 1121, 3, 2, 2, 2, 1124, 1125, 8, 84, 8, 2, 1125, 171, 3, 2, 2, 2, 1126, 1128, 9, 9, 2, 2, 1127, 1126, 3, 2, 2, 2, 1128, 1129, 3, 2, 2, 2, 1129, 1127, 3, 2, 2, 2, 1129, 1130, 3, 2, 2, 2, 1130, 1131, 3, 2, 2, 2, 1131, 1132, 8, 85, 9, 2, 1132, 173, 3, 2, 2, 2, 113, 2, 3, 4, 5, 185, 188, 202, 205, 322, 347, 352, 356, 361, 367, 369, 376, 378, 380, 386, 388, 397, 399, 407, 409, 413, 422, 435, 441, 453, 457, 467, 478, 483, 500, 509, 522, 532, 534, 542, 544, 548, 554, 556, 563, 565, 567, 573, 581, 588, 596, 603, 607, 612, 618, 625, 627, 630, 635, 640, 648, 663, 667, 671, 675, 677, 684, 691, 703, 708, 713, 721, 726, 737, 755, 768, 780, 794, 810, 824, 838, 852, 866, 881, 892, 904, 919, 930, 942, 954, 967, 981, 986, 1000, 1017, 1025, 1040, 1049, 1062, 1072, 1074, 1082, 1084, 1088, 1093, 1099, 1105, 1107, 1111, 1116, 1121, 1129, 10, 7, 3, 2, 7, 4, 2, 7, 5, 2, 2, 3, 2, 6, 2, 2, 5, 2, 2, 2, 4, 2, 8, 2, 2]
\ No newline at end of file
diff --git a/dsl/src/main/java/ides/dsl/parser/IdesLexer.java b/dsl/src/main/java/ides/dsl/parser/IdesLexer.java
new file mode 100644
index 0000000..0e9c02e
--- /dev/null
+++ b/dsl/src/main/java/ides/dsl/parser/IdesLexer.java
@@ -0,0 +1,596 @@
+// Generated from /Users/sgr/develop/github/ides/dsl/src/main/resources/IdesLexer.g4 by ANTLR 4.7.2
+
+ package ides.dsl.parser;
+
+import org.antlr.v4.runtime.Lexer;
+import org.antlr.v4.runtime.CharStream;
+import org.antlr.v4.runtime.Token;
+import org.antlr.v4.runtime.TokenStream;
+import org.antlr.v4.runtime.*;
+import org.antlr.v4.runtime.atn.*;
+import org.antlr.v4.runtime.dfa.DFA;
+import org.antlr.v4.runtime.misc.*;
+
+@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"})
+public class IdesLexer extends Lexer {
+ static { RuntimeMetaData.checkVersion("4.7.2", RuntimeMetaData.VERSION); }
+
+ protected static final DFA[] _decisionToDFA;
+ protected static final PredictionContextCache _sharedContextCache =
+ new PredictionContextCache();
+ public static final int
+ PY_MODE=1, SQL_MODE=2, SHELL_MODE=3, AS=4, INTO=5, LOAD=6, SAVE=7, SELECT=8,
+ OPTIONS=9, WHERE=10, AND=11, OVERWRITE=12, APPEND=13, ERRORIfExists=14,
+ IGNORE=15, PARTITIONBY=16, CONNECT=17, SET=18, DOT=19, EQ=20, COMMA=21,
+ OUT=22, EOQ=23, MUMERIC=24, IDENTIFIER=25, QUOTED_TEXT=26, STRING_TEXT=27,
+ BLOCK_STRING_TEXT=28, LINE_COMMENT=29, BLOCK_COMMENT=30, NL=31, WS=32,
+ UNRECOGNIZED=33, EXIT_PY=34, PY_RETURN=35, PY_STRING=36, VARIABLE=37,
+ VariableRef=38, PY_NonEnd=39, PY_TEXT=40, PY_COMMENT=41, PY_WS=42, EXIT_SQL=43,
+ SQL_RETURN=44, SQL_TEXT=45, DDL=46, DML=47, Profile=48, SQL_COMMENT1=49,
+ SQL_COMMENT2=50, SQL_COMMENT_BLOCK=51, CreatStatement=52, AlterStatement=53,
+ DropStatement=54, RenameStatement=55, TruncateStatement=56, SelectStatement=57,
+ InsertStatement=58, UpdateStatement=59, DeleteStatement=60, ReplaceStatement=61,
+ UseStatement=62, ShowStatement=63, ExplainStatement=64, SetStatement=65,
+ CallStatement=66, OpenStatement=67, CloseStatement=68, TransactionStatement=69,
+ CommitStatement=70, RollbackStatement=71, SQL_WS=72, EXIT_SH=73, SH_RETURN=74,
+ SH_STRING=75, SH_NonEnd=76, SHELL_TEXT=77, SEHLL_COMMENT=78, SH_WS=79;
+ public static final int
+ COMMENT=2;
+ public static final int
+ PYTHON_LAN=1, SQL_LAN=2, SHELL_LAN=3;
+ public static String[] channelNames = {
+ "DEFAULT_TOKEN_CHANNEL", "HIDDEN", "COMMENT"
+ };
+
+ public static String[] modeNames = {
+ "DEFAULT_MODE", "PYTHON_LAN", "SQL_LAN", "SHELL_LAN"
+ };
+
+ private static String[] makeRuleNames() {
+ return new String[] {
+ "PY_MODE", "SQL_MODE", "SHELL_MODE", "AS", "INTO", "LOAD", "SAVE", "SELECT",
+ "OPTIONS", "WHERE", "AND", "OVERWRITE", "APPEND", "ERRORIfExists", "IGNORE",
+ "PARTITIONBY", "CONNECT", "SET", "DOT", "EQ", "COMMA", "OUT", "EOQ",
+ "MUMERIC", "IDENTIFIER", "QUOTED_TEXT", "STRING_TEXT", "BLOCK_STRING_TEXT",
+ "DIGIT", "LETTER", "LINE_COMMENT", "BLOCK_COMMENT", "NL", "WS", "UNRECOGNIZED",
+ "EXIT_PY", "IGNORE_PY", "PY_RETURN", "PY_STRING", "VARIABLE", "VariableRef",
+ "PY_NonEnd", "PY_TEXT", "PY_COMMENT", "PY_WS", "EXIT_SQL", "IGNORE_SQL",
+ "SQL_RETURN", "SQL_TEXT", "DDL", "DML", "Profile", "SQL_COMMENT1", "SQL_COMMENT2",
+ "SQL_COMMENT_BLOCK", "CreatStatement", "AlterStatement", "DropStatement",
+ "RenameStatement", "TruncateStatement", "SelectStatement", "InsertStatement",
+ "UpdateStatement", "DeleteStatement", "ReplaceStatement", "UseStatement",
+ "ShowStatement", "ExplainStatement", "SetStatement", "CallStatement",
+ "OpenStatement", "CloseStatement", "TransactionStatement", "CommitStatement",
+ "RollbackStatement", "SQL_WS", "EXIT_SH", "IGNORE_SH", "SH_RETURN", "SH_STRING",
+ "SH_NonEnd", "SHELL_TEXT", "SEHLL_COMMENT", "SH_WS"
+ };
+ }
+ public static final String[] ruleNames = makeRuleNames();
+
+ private static String[] makeLiteralNames() {
+ return new String[] {
+ null, null, null, null, "'as'", "'into'", "'load'", "'save'", "'select'",
+ "'options'", "'where'", "'and'", "'overwrite'", "'append'", "'errorIfExists'",
+ "'ignore'", null, "'connect'", "'set'", "'.'", "'='", "','", "'>'", "';'"
+ };
+ }
+ private static final String[] _LITERAL_NAMES = makeLiteralNames();
+ private static String[] makeSymbolicNames() {
+ return new String[] {
+ null, "PY_MODE", "SQL_MODE", "SHELL_MODE", "AS", "INTO", "LOAD", "SAVE",
+ "SELECT", "OPTIONS", "WHERE", "AND", "OVERWRITE", "APPEND", "ERRORIfExists",
+ "IGNORE", "PARTITIONBY", "CONNECT", "SET", "DOT", "EQ", "COMMA", "OUT",
+ "EOQ", "MUMERIC", "IDENTIFIER", "QUOTED_TEXT", "STRING_TEXT", "BLOCK_STRING_TEXT",
+ "LINE_COMMENT", "BLOCK_COMMENT", "NL", "WS", "UNRECOGNIZED", "EXIT_PY",
+ "PY_RETURN", "PY_STRING", "VARIABLE", "VariableRef", "PY_NonEnd", "PY_TEXT",
+ "PY_COMMENT", "PY_WS", "EXIT_SQL", "SQL_RETURN", "SQL_TEXT", "DDL", "DML",
+ "Profile", "SQL_COMMENT1", "SQL_COMMENT2", "SQL_COMMENT_BLOCK", "CreatStatement",
+ "AlterStatement", "DropStatement", "RenameStatement", "TruncateStatement",
+ "SelectStatement", "InsertStatement", "UpdateStatement", "DeleteStatement",
+ "ReplaceStatement", "UseStatement", "ShowStatement", "ExplainStatement",
+ "SetStatement", "CallStatement", "OpenStatement", "CloseStatement", "TransactionStatement",
+ "CommitStatement", "RollbackStatement", "SQL_WS", "EXIT_SH", "SH_RETURN",
+ "SH_STRING", "SH_NonEnd", "SHELL_TEXT", "SEHLL_COMMENT", "SH_WS"
+ };
+ }
+ 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;
+ }
+
+
+ public IdesLexer(CharStream input) {
+ super(input);
+ _interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
+ }
+
+ @Override
+ public String getGrammarFileName() { return "IdesLexer.g4"; }
+
+ @Override
+ public String[] getRuleNames() { return ruleNames; }
+
+ @Override
+ public String getSerializedATN() { return _serializedATN; }
+
+ @Override
+ public String[] getChannelNames() { return channelNames; }
+
+ @Override
+ public String[] getModeNames() { return modeNames; }
+
+ @Override
+ public ATN getATN() { return _ATN; }
+
+ public static final String _serializedATN =
+ "\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2Q\u046d\b\1\b\1\b"+
+ "\1\b\1\4\2\t\2\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7\4\b\t\b\4\t\t\t"+
+ "\4\n\t\n\4\13\t\13\4\f\t\f\4\r\t\r\4\16\t\16\4\17\t\17\4\20\t\20\4\21"+
+ "\t\21\4\22\t\22\4\23\t\23\4\24\t\24\4\25\t\25\4\26\t\26\4\27\t\27\4\30"+
+ "\t\30\4\31\t\31\4\32\t\32\4\33\t\33\4\34\t\34\4\35\t\35\4\36\t\36\4\37"+
+ "\t\37\4 \t \4!\t!\4\"\t\"\4#\t#\4$\t$\4%\t%\4&\t&\4\'\t\'\4(\t(\4)\t)"+
+ "\4*\t*\4+\t+\4,\t,\4-\t-\4.\t.\4/\t/\4\60\t\60\4\61\t\61\4\62\t\62\4\63"+
+ "\t\63\4\64\t\64\4\65\t\65\4\66\t\66\4\67\t\67\48\t8\49\t9\4:\t:\4;\t;"+
+ "\4<\t<\4=\t=\4>\t>\4?\t?\4@\t@\4A\tA\4B\tB\4C\tC\4D\tD\4E\tE\4F\tF\4G"+
+ "\tG\4H\tH\4I\tI\4J\tJ\4K\tK\4L\tL\4M\tM\4N\tN\4O\tO\4P\tP\4Q\tQ\4R\tR"+
+ "\4S\tS\4T\tT\4U\tU\3\2\3\2\3\2\3\2\3\2\3\2\3\2\3\2\3\2\3\2\3\2\5\2\u00ba"+
+ "\n\2\3\2\5\2\u00bd\n\2\3\2\3\2\3\2\3\2\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3"+
+ "\5\3\u00cb\n\3\3\3\5\3\u00ce\n\3\3\3\3\3\3\3\3\3\3\4\3\4\3\4\3\4\3\4\3"+
+ "\4\3\4\3\4\3\5\3\5\3\5\3\6\3\6\3\6\3\6\3\6\3\7\3\7\3\7\3\7\3\7\3\b\3\b"+
+ "\3\b\3\b\3\b\3\t\3\t\3\t\3\t\3\t\3\t\3\t\3\n\3\n\3\n\3\n\3\n\3\n\3\n\3"+
+ "\n\3\13\3\13\3\13\3\13\3\13\3\13\3\f\3\f\3\f\3\f\3\r\3\r\3\r\3\r\3\r\3"+
+ "\r\3\r\3\r\3\r\3\r\3\16\3\16\3\16\3\16\3\16\3\16\3\16\3\17\3\17\3\17\3"+
+ "\17\3\17\3\17\3\17\3\17\3\17\3\17\3\17\3\17\3\17\3\17\3\20\3\20\3\20\3"+
+ "\20\3\20\3\20\3\20\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3"+
+ "\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\5\21\u0143"+
+ "\n\21\3\22\3\22\3\22\3\22\3\22\3\22\3\22\3\22\3\23\3\23\3\23\3\23\3\24"+
+ "\3\24\3\25\3\25\3\26\3\26\3\27\3\27\3\30\3\30\3\31\5\31\u015c\n\31\3\31"+
+ "\7\31\u015f\n\31\f\31\16\31\u0162\13\31\3\31\5\31\u0165\n\31\3\31\6\31"+
+ "\u0168\n\31\r\31\16\31\u0169\3\32\3\32\3\32\3\32\7\32\u0170\n\32\f\32"+
+ "\16\32\u0173\13\32\3\32\3\32\3\32\3\32\6\32\u0179\n\32\r\32\16\32\u017a"+
+ "\5\32\u017d\n\32\3\33\3\33\3\33\3\33\7\33\u0183\n\33\f\33\16\33\u0186"+
+ "\13\33\3\33\3\33\3\34\3\34\3\34\3\34\7\34\u018e\n\34\f\34\16\34\u0191"+
+ "\13\34\3\34\3\34\3\34\3\34\3\34\7\34\u0198\n\34\f\34\16\34\u019b\13\34"+
+ "\3\34\5\34\u019e\n\34\3\35\3\35\3\35\3\35\3\35\7\35\u01a5\n\35\f\35\16"+
+ "\35\u01a8\13\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35\7\35\u01b2\n\35"+
+ "\f\35\16\35\u01b5\13\35\3\35\3\35\3\35\5\35\u01ba\n\35\3\36\3\36\3\37"+
+ "\3\37\3 \3 \3 \3 \7 \u01c4\n \f \16 \u01c7\13 \3 \5 \u01ca\n \3 \3 \3"+
+ "!\3!\3!\3!\7!\u01d2\n!\f!\16!\u01d5\13!\3!\3!\3!\3!\3!\3\"\3\"\3\"\5\""+
+ "\u01df\n\"\3#\6#\u01e2\n#\r#\16#\u01e3\3#\3#\3$\3$\3%\3%\3%\3%\3&\3&\3"+
+ "&\3&\3\'\3\'\3\'\5\'\u01f5\n\'\3(\3(\3(\3(\3(\7(\u01fc\n(\f(\16(\u01ff"+
+ "\13(\3(\3(\3(\3(\3(\3(\3(\3(\7(\u0209\n(\f(\16(\u020c\13(\3(\3(\3(\3("+
+ "\3(\3(\3(\7(\u0215\n(\f(\16(\u0218\13(\3(\3(\3(\3(\3(\7(\u021f\n(\f(\16"+
+ "(\u0222\13(\3(\5(\u0225\n(\3)\3)\3)\3)\7)\u022b\n)\f)\16)\u022e\13)\3"+
+ ")\3)\3)\3)\6)\u0234\n)\r)\16)\u0235\5)\u0238\n)\3*\3*\7*\u023c\n*\f*\16"+
+ "*\u023f\13*\3*\3*\3*\7*\u0244\n*\f*\16*\u0247\13*\3*\3*\7*\u024b\n*\f"+
+ "*\16*\u024e\13*\3*\3*\3*\7*\u0253\n*\f*\16*\u0256\13*\3*\3*\7*\u025a\n"+
+ "*\f*\16*\u025d\13*\3*\5*\u0260\n*\3+\6+\u0263\n+\r+\16+\u0264\3+\3+\7"+
+ "+\u0269\n+\f+\16+\u026c\13+\3,\3,\3,\3,\6,\u0272\n,\r,\16,\u0273\3,\5"+
+ ",\u0277\n,\3-\6-\u027a\n-\r-\16-\u027b\3-\7-\u027f\n-\f-\16-\u0282\13"+
+ "-\3-\3-\3.\6.\u0287\n.\r.\16.\u0288\3.\3.\3/\3/\3/\3/\3\60\3\60\3\60\3"+
+ "\60\3\61\3\61\3\61\5\61\u0298\n\61\3\62\3\62\5\62\u029c\n\62\3\62\3\62"+
+ "\5\62\u02a0\n\62\3\62\3\62\5\62\u02a4\n\62\5\62\u02a6\n\62\3\63\3\63\3"+
+ "\63\3\63\3\63\5\63\u02ad\n\63\3\64\3\64\3\64\3\64\3\64\5\64\u02b4\n\64"+
+ "\3\65\3\65\3\65\3\65\3\65\3\65\3\65\3\65\3\65\3\65\5\65\u02c0\n\65\3\66"+
+ "\6\66\u02c3\n\66\r\66\16\66\u02c4\3\66\7\66\u02c8\n\66\f\66\16\66\u02cb"+
+ "\13\66\3\66\3\66\3\67\6\67\u02d0\n\67\r\67\16\67\u02d1\3\67\7\67\u02d5"+
+ "\n\67\f\67\16\67\u02d8\13\67\3\67\3\67\38\38\38\38\78\u02e0\n8\f8\168"+
+ "\u02e3\138\38\38\38\38\38\39\39\39\39\39\39\39\39\69\u02f2\n9\r9\169\u02f3"+
+ "\39\39\3:\3:\3:\3:\3:\3:\3:\6:\u02ff\n:\r:\16:\u0300\3:\3:\3;\3;\3;\3"+
+ ";\3;\3;\6;\u030b\n;\r;\16;\u030c\3;\3;\3<\3<\3<\3<\3<\3<\3<\3<\6<\u0319"+
+ "\n<\r<\16<\u031a\3<\3<\3=\3=\3=\3=\3=\3=\3=\3=\3=\3=\6=\u0329\n=\r=\16"+
+ "=\u032a\3=\3=\3>\3>\3>\3>\3>\3>\3>\3>\6>\u0337\n>\r>\16>\u0338\3>\3>\3"+
+ "?\3?\3?\3?\3?\3?\3?\3?\6?\u0345\n?\r?\16?\u0346\3?\3?\3@\3@\3@\3@\3@\3"+
+ "@\3@\3@\6@\u0353\n@\r@\16@\u0354\3@\3@\3A\3A\3A\3A\3A\3A\3A\3A\6A\u0361"+
+ "\nA\rA\16A\u0362\3A\3A\3B\3B\3B\3B\3B\3B\3B\3B\3B\6B\u0370\nB\rB\16B\u0371"+
+ "\3B\3B\3C\3C\3C\3C\3C\6C\u037b\nC\rC\16C\u037c\3C\3C\3D\3D\3D\3D\3D\3"+
+ "D\6D\u0387\nD\rD\16D\u0388\3D\3D\3E\3E\3E\3E\3E\3E\3E\3E\3E\6E\u0396\n"+
+ "E\rE\16E\u0397\3E\3E\3F\3F\3F\3F\3F\6F\u03a1\nF\rF\16F\u03a2\3F\3F\3G"+
+ "\3G\3G\3G\3G\3G\6G\u03ad\nG\rG\16G\u03ae\3G\3G\3H\3H\3H\3H\3H\3H\6H\u03b9"+
+ "\nH\rH\16H\u03ba\3H\3H\3I\3I\3I\3I\3I\3I\3I\6I\u03c6\nI\rI\16I\u03c7\3"+
+ "I\3I\3J\3J\3J\3J\3J\3J\3J\3J\3J\3J\5J\u03d6\nJ\3J\6J\u03d9\nJ\rJ\16J\u03da"+
+ "\3J\3J\3K\3K\3K\3K\3K\3K\3K\3K\7K\u03e7\nK\fK\16K\u03ea\13K\3K\3K\3L\3"+
+ "L\3L\3L\3L\3L\3L\3L\3L\3L\7L\u03f8\nL\fL\16L\u03fb\13L\3L\3L\3M\6M\u0400"+
+ "\nM\rM\16M\u0401\3M\3M\3N\3N\3N\3N\3O\3O\3O\3O\3P\3P\3P\5P\u0411\nP\3"+
+ "Q\3Q\3Q\3Q\3Q\7Q\u0418\nQ\fQ\16Q\u041b\13Q\3Q\3Q\3Q\3Q\3Q\3Q\3Q\3Q\7Q"+
+ "\u0425\nQ\fQ\16Q\u0428\13Q\3Q\3Q\3Q\3Q\3Q\3Q\3Q\7Q\u0431\nQ\fQ\16Q\u0434"+
+ "\13Q\3Q\3Q\3Q\3Q\3Q\7Q\u043b\nQ\fQ\16Q\u043e\13Q\3Q\5Q\u0441\nQ\3R\6R"+
+ "\u0444\nR\rR\16R\u0445\3R\3R\7R\u044a\nR\fR\16R\u044d\13R\3S\3S\3S\6S"+
+ "\u0452\nS\rS\16S\u0453\3S\3S\5S\u0458\nS\3T\6T\u045b\nT\rT\16T\u045c\3"+
+ "T\7T\u0460\nT\fT\16T\u0463\13T\3T\3T\3U\6U\u0468\nU\rU\16U\u0469\3U\3"+
+ "U\24\u0184\u018f\u0199\u01a6\u01b3\u01d3\u01fd\u020a\u0216\u0220\u024c"+
+ "\u025b\u026a\u02e1\u0419\u0426\u0432\u043c\2V\6\3\b\4\n\5\f\6\16\7\20"+
+ "\b\22\t\24\n\26\13\30\f\32\r\34\16\36\17 \20\"\21$\22&\23(\24*\25,\26"+
+ ".\27\60\30\62\31\64\32\66\338\34:\35<\36>\2@\2B\37D F!H\"J#L$N\2P%R&T"+
+ "\'V(X)Z*\\+^,`-b\2d.f/h\60j\61l\62n\63p\64r\65t\66v\67x8z9|:~;\u0080<"+
+ "\u0082=\u0084>\u0086?\u0088@\u008aA\u008cB\u008eC\u0090D\u0092E\u0094"+
+ "F\u0096G\u0098H\u009aI\u009cJ\u009eK\u00a0\2\u00a2L\u00a4M\u00a6N\u00a8"+
+ "O\u00aaP\u00acQ\6\2\3\4\5\21\4\2--//\4\2^^bb\4\2))^^\4\2$$^^\3\2\62;\4"+
+ "\2C\\c|\4\2\f\f\17\17\5\2\13\f\17\17\"\"\4\2\13\13\"\"\7\2\f\f\17\17$"+
+ "%\'\'))\5\2\f\f\17\17%%\5\2\f\f\17\17//\3\2==\5\2\f\f\17\17==\b\2\f\f"+
+ "\17\17$%\'\'))==\2\u04ef\2\6\3\2\2\2\2\b\3\2\2\2\2\n\3\2\2\2\2\f\3\2\2"+
+ "\2\2\16\3\2\2\2\2\20\3\2\2\2\2\22\3\2\2\2\2\24\3\2\2\2\2\26\3\2\2\2\2"+
+ "\30\3\2\2\2\2\32\3\2\2\2\2\34\3\2\2\2\2\36\3\2\2\2\2 \3\2\2\2\2\"\3\2"+
+ "\2\2\2$\3\2\2\2\2&\3\2\2\2\2(\3\2\2\2\2*\3\2\2\2\2,\3\2\2\2\2.\3\2\2\2"+
+ "\2\60\3\2\2\2\2\62\3\2\2\2\2\64\3\2\2\2\2\66\3\2\2\2\28\3\2\2\2\2:\3\2"+
+ "\2\2\2<\3\2\2\2\2B\3\2\2\2\2D\3\2\2\2\2F\3\2\2\2\2H\3\2\2\2\2J\3\2\2\2"+
+ "\3L\3\2\2\2\3N\3\2\2\2\3P\3\2\2\2\3R\3\2\2\2\3T\3\2\2\2\3V\3\2\2\2\3X"+
+ "\3\2\2\2\3Z\3\2\2\2\3\\\3\2\2\2\3^\3\2\2\2\4`\3\2\2\2\4b\3\2\2\2\4d\3"+
+ "\2\2\2\4f\3\2\2\2\4h\3\2\2\2\4j\3\2\2\2\4l\3\2\2\2\4n\3\2\2\2\4p\3\2\2"+
+ "\2\4r\3\2\2\2\4t\3\2\2\2\4v\3\2\2\2\4x\3\2\2\2\4z\3\2\2\2\4|\3\2\2\2\4"+
+ "~\3\2\2\2\4\u0080\3\2\2\2\4\u0082\3\2\2\2\4\u0084\3\2\2\2\4\u0086\3\2"+
+ "\2\2\4\u0088\3\2\2\2\4\u008a\3\2\2\2\4\u008c\3\2\2\2\4\u008e\3\2\2\2\4"+
+ "\u0090\3\2\2\2\4\u0092\3\2\2\2\4\u0094\3\2\2\2\4\u0096\3\2\2\2\4\u0098"+
+ "\3\2\2\2\4\u009a\3\2\2\2\4\u009c\3\2\2\2\5\u009e\3\2\2\2\5\u00a0\3\2\2"+
+ "\2\5\u00a2\3\2\2\2\5\u00a4\3\2\2\2\5\u00a6\3\2\2\2\5\u00a8\3\2\2\2\5\u00aa"+
+ "\3\2\2\2\5\u00ac\3\2\2\2\6\u00ae\3\2\2\2\b\u00c2\3\2\2\2\n\u00d3\3\2\2"+
+ "\2\f\u00db\3\2\2\2\16\u00de\3\2\2\2\20\u00e3\3\2\2\2\22\u00e8\3\2\2\2"+
+ "\24\u00ed\3\2\2\2\26\u00f4\3\2\2\2\30\u00fc\3\2\2\2\32\u0102\3\2\2\2\34"+
+ "\u0106\3\2\2\2\36\u0110\3\2\2\2 \u0117\3\2\2\2\"\u0125\3\2\2\2$\u0142"+
+ "\3\2\2\2&\u0144\3\2\2\2(\u014c\3\2\2\2*\u0150\3\2\2\2,\u0152\3\2\2\2."+
+ "\u0154\3\2\2\2\60\u0156\3\2\2\2\62\u0158\3\2\2\2\64\u015b\3\2\2\2\66\u017c"+
+ "\3\2\2\28\u017e\3\2\2\2:\u019d\3\2\2\2<\u01b9\3\2\2\2>\u01bb\3\2\2\2@"+
+ "\u01bd\3\2\2\2B\u01bf\3\2\2\2D\u01cd\3\2\2\2F\u01de\3\2\2\2H\u01e1\3\2"+
+ "\2\2J\u01e7\3\2\2\2L\u01e9\3\2\2\2N\u01ed\3\2\2\2P\u01f4\3\2\2\2R\u0224"+
+ "\3\2\2\2T\u0237\3\2\2\2V\u025f\3\2\2\2X\u0262\3\2\2\2Z\u0271\3\2\2\2\\"+
+ "\u0279\3\2\2\2^\u0286\3\2\2\2`\u028c\3\2\2\2b\u0290\3\2\2\2d\u0297\3\2"+
+ "\2\2f\u02a5\3\2\2\2h\u02ac\3\2\2\2j\u02b3\3\2\2\2l\u02bf\3\2\2\2n\u02c2"+
+ "\3\2\2\2p\u02cf\3\2\2\2r\u02db\3\2\2\2t\u02e9\3\2\2\2v\u02f7\3\2\2\2x"+
+ "\u0304\3\2\2\2z\u0310\3\2\2\2|\u031e\3\2\2\2~\u032e\3\2\2\2\u0080\u033c"+
+ "\3\2\2\2\u0082\u034a\3\2\2\2\u0084\u0358\3\2\2\2\u0086\u0366\3\2\2\2\u0088"+
+ "\u0375\3\2\2\2\u008a\u0380\3\2\2\2\u008c\u038c\3\2\2\2\u008e\u039b\3\2"+
+ "\2\2\u0090\u03a6\3\2\2\2\u0092\u03b2\3\2\2\2\u0094\u03be\3\2\2\2\u0096"+
+ "\u03d5\3\2\2\2\u0098\u03de\3\2\2\2\u009a\u03ed\3\2\2\2\u009c\u03ff\3\2"+
+ "\2\2\u009e\u0405\3\2\2\2\u00a0\u0409\3\2\2\2\u00a2\u0410\3\2\2\2\u00a4"+
+ "\u0440\3\2\2\2\u00a6\u0443\3\2\2\2\u00a8\u0451\3\2\2\2\u00aa\u045a\3\2"+
+ "\2\2\u00ac\u0467\3\2\2\2\u00ae\u00af\7\'\2\2\u00af\u00b0\7r\2\2\u00b0"+
+ "\u00b1\7{\2\2\u00b1\u00b2\7v\2\2\u00b2\u00b3\7j\2\2\u00b3\u00b4\7q\2\2"+
+ "\u00b4\u00b5\7p\2\2\u00b5\u00bc\3\2\2\2\u00b6\u00b9\7*\2\2\u00b7\u00ba"+
+ "\5\66\32\2\u00b8\u00ba\58\33\2\u00b9\u00b7\3\2\2\2\u00b9\u00b8\3\2\2\2"+
+ "\u00b9\u00ba\3\2\2\2\u00ba\u00bb\3\2\2\2\u00bb\u00bd\7+\2\2\u00bc\u00b6"+
+ "\3\2\2\2\u00bc\u00bd\3\2\2\2\u00bd\u00be\3\2\2\2\u00be\u00bf\5F\"\2\u00bf"+
+ "\u00c0\3\2\2\2\u00c0\u00c1\b\2\2\2\u00c1\7\3\2\2\2\u00c2\u00c3\7\'\2\2"+
+ "\u00c3\u00c4\7u\2\2\u00c4\u00c5\7s\2\2\u00c5\u00c6\7n\2\2\u00c6\u00cd"+
+ "\3\2\2\2\u00c7\u00ca\7*\2\2\u00c8\u00cb\5\66\32\2\u00c9\u00cb\58\33\2"+
+ "\u00ca\u00c8\3\2\2\2\u00ca\u00c9\3\2\2\2\u00ca\u00cb\3\2\2\2\u00cb\u00cc"+
+ "\3\2\2\2\u00cc\u00ce\7+\2\2\u00cd\u00c7\3\2\2\2\u00cd\u00ce\3\2\2\2\u00ce"+
+ "\u00cf\3\2\2\2\u00cf\u00d0\5F\"\2\u00d0\u00d1\3\2\2\2\u00d1\u00d2\b\3"+
+ "\3\2\u00d2\t\3\2\2\2\u00d3\u00d4\7\'\2\2\u00d4\u00d5\7u\2\2\u00d5\u00d6"+
+ "\7j\2\2\u00d6\u00d7\3\2\2\2\u00d7\u00d8\5F\"\2\u00d8\u00d9\3\2\2\2\u00d9"+
+ "\u00da\b\4\4\2\u00da\13\3\2\2\2\u00db\u00dc\7c\2\2\u00dc\u00dd\7u\2\2"+
+ "\u00dd\r\3\2\2\2\u00de\u00df\7k\2\2\u00df\u00e0\7p\2\2\u00e0\u00e1\7v"+
+ "\2\2\u00e1\u00e2\7q\2\2\u00e2\17\3\2\2\2\u00e3\u00e4\7n\2\2\u00e4\u00e5"+
+ "\7q\2\2\u00e5\u00e6\7c\2\2\u00e6\u00e7\7f\2\2\u00e7\21\3\2\2\2\u00e8\u00e9"+
+ "\7u\2\2\u00e9\u00ea\7c\2\2\u00ea\u00eb\7x\2\2\u00eb\u00ec\7g\2\2\u00ec"+
+ "\23\3\2\2\2\u00ed\u00ee\7u\2\2\u00ee\u00ef\7g\2\2\u00ef\u00f0\7n\2\2\u00f0"+
+ "\u00f1\7g\2\2\u00f1\u00f2\7e\2\2\u00f2\u00f3\7v\2\2\u00f3\25\3\2\2\2\u00f4"+
+ "\u00f5\7q\2\2\u00f5\u00f6\7r\2\2\u00f6\u00f7\7v\2\2\u00f7\u00f8\7k\2\2"+
+ "\u00f8\u00f9\7q\2\2\u00f9\u00fa\7p\2\2\u00fa\u00fb\7u\2\2\u00fb\27\3\2"+
+ "\2\2\u00fc\u00fd\7y\2\2\u00fd\u00fe\7j\2\2\u00fe\u00ff\7g\2\2\u00ff\u0100"+
+ "\7t\2\2\u0100\u0101\7g\2\2\u0101\31\3\2\2\2\u0102\u0103\7c\2\2\u0103\u0104"+
+ "\7p\2\2\u0104\u0105\7f\2\2\u0105\33\3\2\2\2\u0106\u0107\7q\2\2\u0107\u0108"+
+ "\7x\2\2\u0108\u0109\7g\2\2\u0109\u010a\7t\2\2\u010a\u010b\7y\2\2\u010b"+
+ "\u010c\7t\2\2\u010c\u010d\7k\2\2\u010d\u010e\7v\2\2\u010e\u010f\7g\2\2"+
+ "\u010f\35\3\2\2\2\u0110\u0111\7c\2\2\u0111\u0112\7r\2\2\u0112\u0113\7"+
+ "r\2\2\u0113\u0114\7g\2\2\u0114\u0115\7p\2\2\u0115\u0116\7f\2\2\u0116\37"+
+ "\3\2\2\2\u0117\u0118\7g\2\2\u0118\u0119\7t\2\2\u0119\u011a\7t\2\2\u011a"+
+ "\u011b\7q\2\2\u011b\u011c\7t\2\2\u011c\u011d\7K\2\2\u011d\u011e\7h\2\2"+
+ "\u011e\u011f\7G\2\2\u011f\u0120\7z\2\2\u0120\u0121\7k\2\2\u0121\u0122"+
+ "\7u\2\2\u0122\u0123\7v\2\2\u0123\u0124\7u\2\2\u0124!\3\2\2\2\u0125\u0126"+
+ "\7k\2\2\u0126\u0127\7i\2\2\u0127\u0128\7p\2\2\u0128\u0129\7q\2\2\u0129"+
+ "\u012a\7t\2\2\u012a\u012b\7g\2\2\u012b#\3\2\2\2\u012c\u012d\7r\2\2\u012d"+
+ "\u012e\7c\2\2\u012e\u012f\7t\2\2\u012f\u0130\7v\2\2\u0130\u0131\7k\2\2"+
+ "\u0131\u0132\7v\2\2\u0132\u0133\7k\2\2\u0133\u0134\7q\2\2\u0134\u0135"+
+ "\7p\2\2\u0135\u0136\7D\2\2\u0136\u0143\7{\2\2\u0137\u0138\7r\2\2\u0138"+
+ "\u0139\7c\2\2\u0139\u013a\7t\2\2\u013a\u013b\7v\2\2\u013b\u013c\7k\2\2"+
+ "\u013c\u013d\7v\2\2\u013d\u013e\7k\2\2\u013e\u013f\7q\2\2\u013f\u0140"+
+ "\7p\2\2\u0140\u0141\7d\2\2\u0141\u0143\7{\2\2\u0142\u012c\3\2\2\2\u0142"+
+ "\u0137\3\2\2\2\u0143%\3\2\2\2\u0144\u0145\7e\2\2\u0145\u0146\7q\2\2\u0146"+
+ "\u0147\7p\2\2\u0147\u0148\7p\2\2\u0148\u0149\7g\2\2\u0149\u014a\7e\2\2"+
+ "\u014a\u014b\7v\2\2\u014b\'\3\2\2\2\u014c\u014d\7u\2\2\u014d\u014e\7g"+
+ "\2\2\u014e\u014f\7v\2\2\u014f)\3\2\2\2\u0150\u0151\7\60\2\2\u0151+\3\2"+
+ "\2\2\u0152\u0153\7?\2\2\u0153-\3\2\2\2\u0154\u0155\7.\2\2\u0155/\3\2\2"+
+ "\2\u0156\u0157\7@\2\2\u0157\61\3\2\2\2\u0158\u0159\7=\2\2\u0159\63\3\2"+
+ "\2\2\u015a\u015c\t\2\2\2\u015b\u015a\3\2\2\2\u015b\u015c\3\2\2\2\u015c"+
+ "\u0160\3\2\2\2\u015d\u015f\5>\36\2\u015e\u015d\3\2\2\2\u015f\u0162\3\2"+
+ "\2\2\u0160\u015e\3\2\2\2\u0160\u0161\3\2\2\2\u0161\u0164\3\2\2\2\u0162"+
+ "\u0160\3\2\2\2\u0163\u0165\7\60\2\2\u0164\u0163\3\2\2\2\u0164\u0165\3"+
+ "\2\2\2\u0165\u0167\3\2\2\2\u0166\u0168\5>\36\2\u0167\u0166\3\2\2\2\u0168"+
+ "\u0169\3\2\2\2\u0169\u0167\3\2\2\2\u0169\u016a\3\2\2\2\u016a\65\3\2\2"+
+ "\2\u016b\u0171\5@\37\2\u016c\u0170\5>\36\2\u016d\u0170\5@\37\2\u016e\u0170"+
+ "\7a\2\2\u016f\u016c\3\2\2\2\u016f\u016d\3\2\2\2\u016f\u016e\3\2\2\2\u0170"+
+ "\u0173\3\2\2\2\u0171\u016f\3\2\2\2\u0171\u0172\3\2\2\2\u0172\u017d\3\2"+
+ "\2\2\u0173\u0171\3\2\2\2\u0174\u0178\7a\2\2\u0175\u0179\5>\36\2\u0176"+
+ "\u0179\5@\37\2\u0177\u0179\7a\2\2\u0178\u0175\3\2\2\2\u0178\u0176\3\2"+
+ "\2\2\u0178\u0177\3\2\2\2\u0179\u017a\3\2\2\2\u017a\u0178\3\2\2\2\u017a"+
+ "\u017b\3\2\2\2\u017b\u017d\3\2\2\2\u017c\u016b\3\2\2\2\u017c\u0174\3\2"+
+ "\2\2\u017d\67\3\2\2\2\u017e\u0184\7b\2\2\u017f\u0183\n\3\2\2\u0180\u0181"+
+ "\7^\2\2\u0181\u0183\13\2\2\2\u0182\u017f\3\2\2\2\u0182\u0180\3\2\2\2\u0183"+
+ "\u0186\3\2\2\2\u0184\u0185\3\2\2\2\u0184\u0182\3\2\2\2\u0185\u0187\3\2"+
+ "\2\2\u0186\u0184\3\2\2\2\u0187\u0188\7b\2\2\u01889\3\2\2\2\u0189\u018f"+
+ "\7)\2\2\u018a\u018e\n\4\2\2\u018b\u018c\7^\2\2\u018c\u018e\13\2\2\2\u018d"+
+ "\u018a\3\2\2\2\u018d\u018b\3\2\2\2\u018e\u0191\3\2\2\2\u018f\u0190\3\2"+
+ "\2\2\u018f\u018d\3\2\2\2\u0190\u0192\3\2\2\2\u0191\u018f\3\2\2\2\u0192"+
+ "\u019e\7)\2\2\u0193\u0199\7$\2\2\u0194\u0198\n\5\2\2\u0195\u0196\7^\2"+
+ "\2\u0196\u0198\13\2\2\2\u0197\u0194\3\2\2\2\u0197\u0195\3\2\2\2\u0198"+
+ "\u019b\3\2\2\2\u0199\u019a\3\2\2\2\u0199\u0197\3\2\2\2\u019a\u019c\3\2"+
+ "\2\2\u019b\u0199\3\2\2\2\u019c\u019e\7$\2\2\u019d\u0189\3\2\2\2\u019d"+
+ "\u0193\3\2\2\2\u019e;\3\2\2\2\u019f\u01a0\7)\2\2\u01a0\u01a1\7)\2\2\u01a1"+
+ "\u01a2\7)\2\2\u01a2\u01a6\3\2\2\2\u01a3\u01a5\13\2\2\2\u01a4\u01a3\3\2"+
+ "\2\2\u01a5\u01a8\3\2\2\2\u01a6\u01a7\3\2\2\2\u01a6\u01a4\3\2\2\2\u01a7"+
+ "\u01a9\3\2\2\2\u01a8\u01a6\3\2\2\2\u01a9\u01aa\7)\2\2\u01aa\u01ab\7)\2"+
+ "\2\u01ab\u01ba\7)\2\2\u01ac\u01ad\7$\2\2\u01ad\u01ae\7$\2\2\u01ae\u01af"+
+ "\7$\2\2\u01af\u01b3\3\2\2\2\u01b0\u01b2\13\2\2\2\u01b1\u01b0\3\2\2\2\u01b2"+
+ "\u01b5\3\2\2\2\u01b3\u01b4\3\2\2\2\u01b3\u01b1\3\2\2\2\u01b4\u01b6\3\2"+
+ "\2\2\u01b5\u01b3\3\2\2\2\u01b6\u01b7\7$\2\2\u01b7\u01b8\7$\2\2\u01b8\u01ba"+
+ "\7$\2\2\u01b9\u019f\3\2\2\2\u01b9\u01ac\3\2\2\2\u01ba=\3\2\2\2\u01bb\u01bc"+
+ "\t\6\2\2\u01bc?\3\2\2\2\u01bd\u01be\t\7\2\2\u01beA\3\2\2\2\u01bf\u01c0"+
+ "\7/\2\2\u01c0\u01c1\7/\2\2\u01c1\u01c5\3\2\2\2\u01c2\u01c4\n\b\2\2\u01c3"+
+ "\u01c2\3\2\2\2\u01c4\u01c7\3\2\2\2\u01c5\u01c3\3\2\2\2\u01c5\u01c6\3\2"+
+ "\2\2\u01c6\u01c9\3\2\2\2\u01c7\u01c5\3\2\2\2\u01c8\u01ca\5F\"\2\u01c9"+
+ "\u01c8\3\2\2\2\u01c9\u01ca\3\2\2\2\u01ca\u01cb\3\2\2\2\u01cb\u01cc\b "+
+ "\5\2\u01ccC\3\2\2\2\u01cd\u01ce\7\61\2\2\u01ce\u01cf\7,\2\2\u01cf\u01d3"+
+ "\3\2\2\2\u01d0\u01d2\13\2\2\2\u01d1\u01d0\3\2\2\2\u01d2\u01d5\3\2\2\2"+
+ "\u01d3\u01d4\3\2\2\2\u01d3\u01d1\3\2\2\2\u01d4\u01d6\3\2\2\2\u01d5\u01d3"+
+ "\3\2\2\2\u01d6\u01d7\7,\2\2\u01d7\u01d8\7\61\2\2\u01d8\u01d9\3\2\2\2\u01d9"+
+ "\u01da\b!\5\2\u01daE\3\2\2\2\u01db\u01df\7\f\2\2\u01dc\u01dd\7\17\2\2"+
+ "\u01dd\u01df\7\f\2\2\u01de\u01db\3\2\2\2\u01de\u01dc\3\2\2\2\u01dfG\3"+
+ "\2\2\2\u01e0\u01e2\t\t\2\2\u01e1\u01e0\3\2\2\2\u01e2\u01e3\3\2\2\2\u01e3"+
+ "\u01e1\3\2\2\2\u01e3\u01e4\3\2\2\2\u01e4\u01e5\3\2\2\2\u01e5\u01e6\b#"+
+ "\5\2\u01e6I\3\2\2\2\u01e7\u01e8\13\2\2\2\u01e8K\3\2\2\2\u01e9\u01ea\7"+
+ "\'\2\2\u01ea\u01eb\3\2\2\2\u01eb\u01ec\b%\6\2\u01ecM\3\2\2\2\u01ed\u01ee"+
+ "\13\2\2\2\u01ee\u01ef\3\2\2\2\u01ef\u01f0\b&\7\2\u01f0O\3\2\2\2\u01f1"+
+ "\u01f5\7\f\2\2\u01f2\u01f3\7\17\2\2\u01f3\u01f5\7\f\2\2\u01f4\u01f1\3"+
+ "\2\2\2\u01f4\u01f2\3\2\2\2\u01f5Q\3\2\2\2\u01f6\u01f7\7)\2\2\u01f7\u01f8"+
+ "\7)\2\2\u01f8\u01f9\7)\2\2\u01f9\u01fd\3\2\2\2\u01fa\u01fc\13\2\2\2\u01fb"+
+ "\u01fa\3\2\2\2\u01fc\u01ff\3\2\2\2\u01fd\u01fe\3\2\2\2\u01fd\u01fb\3\2"+
+ "\2\2\u01fe\u0200\3\2\2\2\u01ff\u01fd\3\2\2\2\u0200\u0201\7)\2\2\u0201"+
+ "\u0202\7)\2\2\u0202\u0225\7)\2\2\u0203\u0204\7$\2\2\u0204\u0205\7$\2\2"+
+ "\u0205\u0206\7$\2\2\u0206\u020a\3\2\2\2\u0207\u0209\13\2\2\2\u0208\u0207"+
+ "\3\2\2\2\u0209\u020c\3\2\2\2\u020a\u020b\3\2\2\2\u020a\u0208\3\2\2\2\u020b"+
+ "\u020d\3\2\2\2\u020c\u020a\3\2\2\2\u020d\u020e\7$\2\2\u020e\u020f\7$\2"+
+ "\2\u020f\u0225\7$\2\2\u0210\u0216\7)\2\2\u0211\u0215\n\4\2\2\u0212\u0213"+
+ "\7^\2\2\u0213\u0215\13\2\2\2\u0214\u0211\3\2\2\2\u0214\u0212\3\2\2\2\u0215"+
+ "\u0218\3\2\2\2\u0216\u0217\3\2\2\2\u0216\u0214\3\2\2\2\u0217\u0219\3\2"+
+ "\2\2\u0218\u0216\3\2\2\2\u0219\u0225\7)\2\2\u021a\u0220\7$\2\2\u021b\u021f"+
+ "\n\5\2\2\u021c\u021d\7^\2\2\u021d\u021f\13\2\2\2\u021e\u021b\3\2\2\2\u021e"+
+ "\u021c\3\2\2\2\u021f\u0222\3\2\2\2\u0220\u0221\3\2\2\2\u0220\u021e\3\2"+
+ "\2\2\u0221\u0223\3\2\2\2\u0222\u0220\3\2\2\2\u0223\u0225\7$\2\2\u0224"+
+ "\u01f6\3\2\2\2\u0224\u0203\3\2\2\2\u0224\u0210\3\2\2\2\u0224\u021a\3\2"+
+ "\2\2\u0225S\3\2\2\2\u0226\u022c\5@\37\2\u0227\u022b\5>\36\2\u0228\u022b"+
+ "\5@\37\2\u0229\u022b\7a\2\2\u022a\u0227\3\2\2\2\u022a\u0228\3\2\2\2\u022a"+
+ "\u0229\3\2\2\2\u022b\u022e\3\2\2\2\u022c\u022a\3\2\2\2\u022c\u022d\3\2"+
+ "\2\2\u022d\u0238\3\2\2\2\u022e\u022c\3\2\2\2\u022f\u0233\7a\2\2\u0230"+
+ "\u0234\5>\36\2\u0231\u0234\5@\37\2\u0232\u0234\7a\2\2\u0233\u0230\3\2"+
+ "\2\2\u0233\u0231\3\2\2\2\u0233\u0232\3\2\2\2\u0234\u0235\3\2\2\2\u0235"+
+ "\u0233\3\2\2\2\u0235\u0236\3\2\2\2\u0236\u0238\3\2\2\2\u0237\u0226\3\2"+
+ "\2\2\u0237\u022f\3\2\2\2\u0238U\3\2\2\2\u0239\u023d\7\'\2\2\u023a\u023c"+
+ "\t\n\2\2\u023b\u023a\3\2\2\2\u023c\u023f\3\2\2\2\u023d\u023b\3\2\2\2\u023d"+
+ "\u023e\3\2\2\2\u023e\u0240\3\2\2\2\u023f\u023d\3\2\2\2\u0240\u0260\5T"+
+ ")\2\u0241\u0245\7\'\2\2\u0242\u0244\t\n\2\2\u0243\u0242\3\2\2\2\u0244"+
+ "\u0247\3\2\2\2\u0245\u0243\3\2\2\2\u0245\u0246\3\2\2\2\u0246\u0248\3\2"+
+ "\2\2\u0247\u0245\3\2\2\2\u0248\u024c\7*\2\2\u0249\u024b\13\2\2\2\u024a"+
+ "\u0249\3\2\2\2\u024b\u024e\3\2\2\2\u024c\u024d\3\2\2\2\u024c\u024a\3\2"+
+ "\2\2\u024d\u024f\3\2\2\2\u024e\u024c\3\2\2\2\u024f\u0260\7+\2\2\u0250"+
+ "\u0254\7\'\2\2\u0251\u0253\t\n\2\2\u0252\u0251\3\2\2\2\u0253\u0256\3\2"+
+ "\2\2\u0254\u0252\3\2\2\2\u0254\u0255\3\2\2\2\u0255\u0257\3\2\2\2\u0256"+
+ "\u0254\3\2\2\2\u0257\u025b\7}\2\2\u0258\u025a\13\2\2\2\u0259\u0258\3\2"+
+ "\2\2\u025a\u025d\3\2\2\2\u025b\u025c\3\2\2\2\u025b\u0259\3\2\2\2\u025c"+
+ "\u025e\3\2\2\2\u025d\u025b\3\2\2\2\u025e\u0260\7\177\2\2\u025f\u0239\3"+
+ "\2\2\2\u025f\u0241\3\2\2\2\u025f\u0250\3\2\2\2\u0260W\3\2\2\2\u0261\u0263"+
+ "\n\t\2\2\u0262\u0261\3\2\2\2\u0263\u0264\3\2\2\2\u0264\u0262\3\2\2\2\u0264"+
+ "\u0265\3\2\2\2\u0265\u0266\3\2\2\2\u0266\u026a\7\'\2\2\u0267\u0269\13"+
+ "\2\2\2\u0268\u0267\3\2\2\2\u0269\u026c\3\2\2\2\u026a\u026b\3\2\2\2\u026a"+
+ "\u0268\3\2\2\2\u026bY\3\2\2\2\u026c\u026a\3\2\2\2\u026d\u0272\n\13\2\2"+
+ "\u026e\u0272\5R(\2\u026f\u0272\5X+\2\u0270\u0272\5V*\2\u0271\u026d\3\2"+
+ "\2\2\u0271\u026e\3\2\2\2\u0271\u026f\3\2\2\2\u0271\u0270\3\2\2\2\u0272"+
+ "\u0273\3\2\2\2\u0273\u0271\3\2\2\2\u0273\u0274\3\2\2\2\u0274\u0276\3\2"+
+ "\2\2\u0275\u0277\5P\'\2\u0276\u0275\3\2\2\2\u0276\u0277\3\2\2\2\u0277"+
+ "[\3\2\2\2\u0278\u027a\7%\2\2\u0279\u0278\3\2\2\2\u027a\u027b\3\2\2\2\u027b"+
+ "\u0279\3\2\2\2\u027b\u027c\3\2\2\2\u027c\u0280\3\2\2\2\u027d\u027f\n\f"+
+ "\2\2\u027e\u027d\3\2\2\2\u027f\u0282\3\2\2\2\u0280\u027e\3\2\2\2\u0280"+
+ "\u0281\3\2\2\2\u0281\u0283\3\2\2\2\u0282\u0280\3\2\2\2\u0283\u0284\b-"+
+ "\b\2\u0284]\3\2\2\2\u0285\u0287\t\t\2\2\u0286\u0285\3\2\2\2\u0287\u0288"+
+ "\3\2\2\2\u0288\u0286\3\2\2\2\u0288\u0289\3\2\2\2\u0289\u028a\3\2\2\2\u028a"+
+ "\u028b\b.\t\2\u028b_\3\2\2\2\u028c\u028d\7\'\2\2\u028d\u028e\3\2\2\2\u028e"+
+ "\u028f\b/\6\2\u028fa\3\2\2\2\u0290\u0291\13\2\2\2\u0291\u0292\3\2\2\2"+
+ "\u0292\u0293\b\60\7\2\u0293c\3\2\2\2\u0294\u0298\7\f\2\2\u0295\u0296\7"+
+ "\17\2\2\u0296\u0298\7\f\2\2\u0297\u0294\3\2\2\2\u0297\u0295\3\2\2\2\u0298"+
+ "e\3\2\2\2\u0299\u029b\5j\64\2\u029a\u029c\5d\61\2\u029b\u029a\3\2\2\2"+
+ "\u029b\u029c\3\2\2\2\u029c\u02a6\3\2\2\2\u029d\u029f\5h\63\2\u029e\u02a0"+
+ "\5d\61\2\u029f\u029e\3\2\2\2\u029f\u02a0\3\2\2\2\u02a0\u02a6\3\2\2\2\u02a1"+
+ "\u02a3\5l\65\2\u02a2\u02a4\5d\61\2\u02a3\u02a2\3\2\2\2\u02a3\u02a4\3\2"+
+ "\2\2\u02a4\u02a6\3\2\2\2\u02a5\u0299\3\2\2\2\u02a5\u029d\3\2\2\2\u02a5"+
+ "\u02a1\3\2\2\2\u02a6g\3\2\2\2\u02a7\u02ad\5t9\2\u02a8\u02ad\5v:\2\u02a9"+
+ "\u02ad\5x;\2\u02aa\u02ad\5z<\2\u02ab\u02ad\5|=\2\u02ac\u02a7\3\2\2\2\u02ac"+
+ "\u02a8\3\2\2\2\u02ac\u02a9\3\2\2\2\u02ac\u02aa\3\2\2\2\u02ac\u02ab\3\2"+
+ "\2\2\u02adi\3\2\2\2\u02ae\u02b4\5~>\2\u02af\u02b4\5\u0080?\2\u02b0\u02b4"+
+ "\5\u0082@\2\u02b1\u02b4\5\u0084A\2\u02b2\u02b4\5\u0086B\2\u02b3\u02ae"+
+ "\3\2\2\2\u02b3\u02af\3\2\2\2\u02b3\u02b0\3\2\2\2\u02b3\u02b1\3\2\2\2\u02b3"+
+ "\u02b2\3\2\2\2\u02b4k\3\2\2\2\u02b5\u02c0\5\u0088C\2\u02b6\u02c0\5\u008a"+
+ "D\2\u02b7\u02c0\5\u008cE\2\u02b8\u02c0\5\u008eF\2\u02b9\u02c0\5\u0090"+
+ "G\2\u02ba\u02c0\5\u0092H\2\u02bb\u02c0\5\u0094I\2\u02bc\u02c0\5\u0096"+
+ "J\2\u02bd\u02c0\5\u0098K\2\u02be\u02c0\5\u009aL\2\u02bf\u02b5\3\2\2\2"+
+ "\u02bf\u02b6\3\2\2\2\u02bf\u02b7\3\2\2\2\u02bf\u02b8\3\2\2\2\u02bf\u02b9"+
+ "\3\2\2\2\u02bf\u02ba\3\2\2\2\u02bf\u02bb\3\2\2\2\u02bf\u02bc\3\2\2\2\u02bf"+
+ "\u02bd\3\2\2\2\u02bf\u02be\3\2\2\2\u02c0m\3\2\2\2\u02c1\u02c3\7%\2\2\u02c2"+
+ "\u02c1\3\2\2\2\u02c3\u02c4\3\2\2\2\u02c4\u02c2\3\2\2\2\u02c4\u02c5\3\2"+
+ "\2\2\u02c5\u02c9\3\2\2\2\u02c6\u02c8\n\f\2\2\u02c7\u02c6\3\2\2\2\u02c8"+
+ "\u02cb\3\2\2\2\u02c9\u02c7\3\2\2\2\u02c9\u02ca\3\2\2\2\u02ca\u02cc\3\2"+
+ "\2\2\u02cb\u02c9\3\2\2\2\u02cc\u02cd\b\66\b\2\u02cdo\3\2\2\2\u02ce\u02d0"+
+ "\7/\2\2\u02cf\u02ce\3\2\2\2\u02d0\u02d1\3\2\2\2\u02d1\u02cf\3\2\2\2\u02d1"+
+ "\u02d2\3\2\2\2\u02d2\u02d6\3\2\2\2\u02d3\u02d5\n\r\2\2\u02d4\u02d3\3\2"+
+ "\2\2\u02d5\u02d8\3\2\2\2\u02d6\u02d4\3\2\2\2\u02d6\u02d7\3\2\2\2\u02d7"+
+ "\u02d9\3\2\2\2\u02d8\u02d6\3\2\2\2\u02d9\u02da\b\67\b\2\u02daq\3\2\2\2"+
+ "\u02db\u02dc\7\61\2\2\u02dc\u02dd\7,\2\2\u02dd\u02e1\3\2\2\2\u02de\u02e0"+
+ "\13\2\2\2\u02df\u02de\3\2\2\2\u02e0\u02e3\3\2\2\2\u02e1\u02e2\3\2\2\2"+
+ "\u02e1\u02df\3\2\2\2\u02e2\u02e4\3\2\2\2\u02e3\u02e1\3\2\2\2\u02e4\u02e5"+
+ "\7,\2\2\u02e5\u02e6\7\61\2\2\u02e6\u02e7\3\2\2\2\u02e7\u02e8\b8\b\2\u02e8"+
+ "s\3\2\2\2\u02e9\u02ea\7e\2\2\u02ea\u02eb\7t\2\2\u02eb\u02ec\7g\2\2\u02ec"+
+ "\u02ed\7c\2\2\u02ed\u02ee\7v\2\2\u02ee\u02ef\7g\2\2\u02ef\u02f1\3\2\2"+
+ "\2\u02f0\u02f2\n\16\2\2\u02f1\u02f0\3\2\2\2\u02f2\u02f3\3\2\2\2\u02f3"+
+ "\u02f1\3\2\2\2\u02f3\u02f4\3\2\2\2\u02f4\u02f5\3\2\2\2\u02f5\u02f6\7="+
+ "\2\2\u02f6u\3\2\2\2\u02f7\u02f8\7c\2\2\u02f8\u02f9\7n\2\2\u02f9\u02fa"+
+ "\7v\2\2\u02fa\u02fb\7g\2\2\u02fb\u02fc\7t\2\2\u02fc\u02fe\3\2\2\2\u02fd"+
+ "\u02ff\n\16\2\2\u02fe\u02fd\3\2\2\2\u02ff\u0300\3\2\2\2\u0300\u02fe\3"+
+ "\2\2\2\u0300\u0301\3\2\2\2\u0301\u0302\3\2\2\2\u0302\u0303\7=\2\2\u0303"+
+ "w\3\2\2\2\u0304\u0305\7f\2\2\u0305\u0306\7t\2\2\u0306\u0307\7q\2\2\u0307"+
+ "\u0308\7r\2\2\u0308\u030a\3\2\2\2\u0309\u030b\n\16\2\2\u030a\u0309\3\2"+
+ "\2\2\u030b\u030c\3\2\2\2\u030c\u030a\3\2\2\2\u030c\u030d\3\2\2\2\u030d"+
+ "\u030e\3\2\2\2\u030e\u030f\7=\2\2\u030fy\3\2\2\2\u0310\u0311\7t\2\2\u0311"+
+ "\u0312\7g\2\2\u0312\u0313\7p\2\2\u0313\u0314\7c\2\2\u0314\u0315\7o\2\2"+
+ "\u0315\u0316\7g\2\2\u0316\u0318\3\2\2\2\u0317\u0319\n\16\2\2\u0318\u0317"+
+ "\3\2\2\2\u0319\u031a\3\2\2\2\u031a\u0318\3\2\2\2\u031a\u031b\3\2\2\2\u031b"+
+ "\u031c\3\2\2\2\u031c\u031d\7=\2\2\u031d{\3\2\2\2\u031e\u031f\7v\2\2\u031f"+
+ "\u0320\7t\2\2\u0320\u0321\7w\2\2\u0321\u0322\7p\2\2\u0322\u0323\7e\2\2"+
+ "\u0323\u0324\7c\2\2\u0324\u0325\7v\2\2\u0325\u0326\7g\2\2\u0326\u0328"+
+ "\3\2\2\2\u0327\u0329\n\16\2\2\u0328\u0327\3\2\2\2\u0329\u032a\3\2\2\2"+
+ "\u032a\u0328\3\2\2\2\u032a\u032b\3\2\2\2\u032b\u032c\3\2\2\2\u032c\u032d"+
+ "\7=\2\2\u032d}\3\2\2\2\u032e\u032f\7u\2\2\u032f\u0330\7g\2\2\u0330\u0331"+
+ "\7n\2\2\u0331\u0332\7g\2\2\u0332\u0333\7e\2\2\u0333\u0334\7v\2\2\u0334"+
+ "\u0336\3\2\2\2\u0335\u0337\n\16\2\2\u0336\u0335\3\2\2\2\u0337\u0338\3"+
+ "\2\2\2\u0338\u0336\3\2\2\2\u0338\u0339\3\2\2\2\u0339\u033a\3\2\2\2\u033a"+
+ "\u033b\7=\2\2\u033b\177\3\2\2\2\u033c\u033d\7k\2\2\u033d\u033e\7p\2\2"+
+ "\u033e\u033f\7u\2\2\u033f\u0340\7g\2\2\u0340\u0341\7t\2\2\u0341\u0342"+
+ "\7v\2\2\u0342\u0344\3\2\2\2\u0343\u0345\n\16\2\2\u0344\u0343\3\2\2\2\u0345"+
+ "\u0346\3\2\2\2\u0346\u0344\3\2\2\2\u0346\u0347\3\2\2\2\u0347\u0348\3\2"+
+ "\2\2\u0348\u0349\7=\2\2\u0349\u0081\3\2\2\2\u034a\u034b\7w\2\2\u034b\u034c"+
+ "\7r\2\2\u034c\u034d\7f\2\2\u034d\u034e\7c\2\2\u034e\u034f\7v\2\2\u034f"+
+ "\u0350\7g\2\2\u0350\u0352\3\2\2\2\u0351\u0353\n\16\2\2\u0352\u0351\3\2"+
+ "\2\2\u0353\u0354\3\2\2\2\u0354\u0352\3\2\2\2\u0354\u0355\3\2\2\2\u0355"+
+ "\u0356\3\2\2\2\u0356\u0357\7=\2\2\u0357\u0083\3\2\2\2\u0358\u0359\7f\2"+
+ "\2\u0359\u035a\7g\2\2\u035a\u035b\7n\2\2\u035b\u035c\7g\2\2\u035c\u035d"+
+ "\7v\2\2\u035d\u035e\7g\2\2\u035e\u0360\3\2\2\2\u035f\u0361\n\16\2\2\u0360"+
+ "\u035f\3\2\2\2\u0361\u0362\3\2\2\2\u0362\u0360\3\2\2\2\u0362\u0363\3\2"+
+ "\2\2\u0363\u0364\3\2\2\2\u0364\u0365\7=\2\2\u0365\u0085\3\2\2\2\u0366"+
+ "\u0367\7t\2\2\u0367\u0368\7g\2\2\u0368\u0369\7r\2\2\u0369\u036a\7n\2\2"+
+ "\u036a\u036b\7c\2\2\u036b\u036c\7e\2\2\u036c\u036d\7g\2\2\u036d\u036f"+
+ "\3\2\2\2\u036e\u0370\n\16\2\2\u036f\u036e\3\2\2\2\u0370\u0371\3\2\2\2"+
+ "\u0371\u036f\3\2\2\2\u0371\u0372\3\2\2\2\u0372\u0373\3\2\2\2\u0373\u0374"+
+ "\7=\2\2\u0374\u0087\3\2\2\2\u0375\u0376\7w\2\2\u0376\u0377\7u\2\2\u0377"+
+ "\u0378\7g\2\2\u0378\u037a\3\2\2\2\u0379\u037b\n\16\2\2\u037a\u0379\3\2"+
+ "\2\2\u037b\u037c\3\2\2\2\u037c\u037a\3\2\2\2\u037c\u037d\3\2\2\2\u037d"+
+ "\u037e\3\2\2\2\u037e\u037f\7=\2\2\u037f\u0089\3\2\2\2\u0380\u0381\7u\2"+
+ "\2\u0381\u0382\7j\2\2\u0382\u0383\7q\2\2\u0383\u0384\7y\2\2\u0384\u0386"+
+ "\3\2\2\2\u0385\u0387\n\16\2\2\u0386\u0385\3\2\2\2\u0387\u0388\3\2\2\2"+
+ "\u0388\u0386\3\2\2\2\u0388\u0389\3\2\2\2\u0389\u038a\3\2\2\2\u038a\u038b"+
+ "\7=\2\2\u038b\u008b\3\2\2\2\u038c\u038d\7g\2\2\u038d\u038e\7z\2\2\u038e"+
+ "\u038f\7r\2\2\u038f\u0390\7n\2\2\u0390\u0391\7c\2\2\u0391\u0392\7k\2\2"+
+ "\u0392\u0393\7p\2\2\u0393\u0395\3\2\2\2\u0394\u0396\n\16\2\2\u0395\u0394"+
+ "\3\2\2\2\u0396\u0397\3\2\2\2\u0397\u0395\3\2\2\2\u0397\u0398\3\2\2\2\u0398"+
+ "\u0399\3\2\2\2\u0399\u039a\7=\2\2\u039a\u008d\3\2\2\2\u039b\u039c\7u\2"+
+ "\2\u039c\u039d\7g\2\2\u039d\u039e\7v\2\2\u039e\u03a0\3\2\2\2\u039f\u03a1"+
+ "\n\16\2\2\u03a0\u039f\3\2\2\2\u03a1\u03a2\3\2\2\2\u03a2\u03a0\3\2\2\2"+
+ "\u03a2\u03a3\3\2\2\2\u03a3\u03a4\3\2\2\2\u03a4\u03a5\7=\2\2\u03a5\u008f"+
+ "\3\2\2\2\u03a6\u03a7\7e\2\2\u03a7\u03a8\7c\2\2\u03a8\u03a9\7n\2\2\u03a9"+
+ "\u03aa\7n\2\2\u03aa\u03ac\3\2\2\2\u03ab\u03ad\n\16\2\2\u03ac\u03ab\3\2"+
+ "\2\2\u03ad\u03ae\3\2\2\2\u03ae\u03ac\3\2\2\2\u03ae\u03af\3\2\2\2\u03af"+
+ "\u03b0\3\2\2\2\u03b0\u03b1\7=\2\2\u03b1\u0091\3\2\2\2\u03b2\u03b3\7q\2"+
+ "\2\u03b3\u03b4\7r\2\2\u03b4\u03b5\7g\2\2\u03b5\u03b6\7p\2\2\u03b6\u03b8"+
+ "\3\2\2\2\u03b7\u03b9\n\16\2\2\u03b8\u03b7\3\2\2\2\u03b9\u03ba\3\2\2\2"+
+ "\u03ba\u03b8\3\2\2\2\u03ba\u03bb\3\2\2\2\u03bb\u03bc\3\2\2\2\u03bc\u03bd"+
+ "\7=\2\2\u03bd\u0093\3\2\2\2\u03be\u03bf\7e\2\2\u03bf\u03c0\7n\2\2\u03c0"+
+ "\u03c1\7q\2\2\u03c1\u03c2\7u\2\2\u03c2\u03c3\7g\2\2\u03c3\u03c5\3\2\2"+
+ "\2\u03c4\u03c6\n\16\2\2\u03c5\u03c4\3\2\2\2\u03c6\u03c7\3\2\2\2\u03c7"+
+ "\u03c5\3\2\2\2\u03c7\u03c8\3\2\2\2\u03c8\u03c9\3\2\2\2\u03c9\u03ca\7="+
+ "\2\2\u03ca\u0095\3\2\2\2\u03cb\u03cc\7u\2\2\u03cc\u03cd\7v\2\2\u03cd\u03ce"+
+ "\7c\2\2\u03ce\u03cf\7t\2\2\u03cf\u03d6\7v\2\2\u03d0\u03d1\7d\2\2\u03d1"+
+ "\u03d2\7g\2\2\u03d2\u03d3\7i\2\2\u03d3\u03d4\7k\2\2\u03d4\u03d6\7p\2\2"+
+ "\u03d5\u03cb\3\2\2\2\u03d5\u03d0\3\2\2\2\u03d6\u03d8\3\2\2\2\u03d7\u03d9"+
+ "\n\16\2\2\u03d8\u03d7\3\2\2\2\u03d9\u03da\3\2\2\2\u03da\u03d8\3\2\2\2"+
+ "\u03da\u03db\3\2\2\2\u03db\u03dc\3\2\2\2\u03dc\u03dd\7=\2\2\u03dd\u0097"+
+ "\3\2\2\2\u03de\u03df\7e\2\2\u03df\u03e0\7q\2\2\u03e0\u03e1\7o\2\2\u03e1"+
+ "\u03e2\7o\2\2\u03e2\u03e3\7k\2\2\u03e3\u03e4\7v\2\2\u03e4\u03e8\3\2\2"+
+ "\2\u03e5\u03e7\n\16\2\2\u03e6\u03e5\3\2\2\2\u03e7\u03ea\3\2\2\2\u03e8"+
+ "\u03e6\3\2\2\2\u03e8\u03e9\3\2\2\2\u03e9\u03eb\3\2\2\2\u03ea\u03e8\3\2"+
+ "\2\2\u03eb\u03ec\7=\2\2\u03ec\u0099\3\2\2\2\u03ed\u03ee\7t\2\2\u03ee\u03ef"+
+ "\7q\2\2\u03ef\u03f0\7n\2\2\u03f0\u03f1\7n\2\2\u03f1\u03f2\7d\2\2\u03f2"+
+ "\u03f3\7c\2\2\u03f3\u03f4\7e\2\2\u03f4\u03f5\7m\2\2\u03f5\u03f9\3\2\2"+
+ "\2\u03f6\u03f8\n\16\2\2\u03f7\u03f6\3\2\2\2\u03f8\u03fb\3\2\2\2\u03f9"+
+ "\u03f7\3\2\2\2\u03f9\u03fa\3\2\2\2\u03fa\u03fc\3\2\2\2\u03fb\u03f9\3\2"+
+ "\2\2\u03fc\u03fd\7=\2\2\u03fd\u009b\3\2\2\2\u03fe\u0400\t\t\2\2\u03ff"+
+ "\u03fe\3\2\2\2\u0400\u0401\3\2\2\2\u0401\u03ff\3\2\2\2\u0401\u0402\3\2"+
+ "\2\2\u0402\u0403\3\2\2\2\u0403\u0404\bM\t\2\u0404\u009d\3\2\2\2\u0405"+
+ "\u0406\7\'\2\2\u0406\u0407\3\2\2\2\u0407\u0408\bN\6\2\u0408\u009f\3\2"+
+ "\2\2\u0409\u040a\13\2\2\2\u040a\u040b\3\2\2\2\u040b\u040c\bO\7\2\u040c"+
+ "\u00a1\3\2\2\2\u040d\u0411\7\f\2\2\u040e\u040f\7\17\2\2\u040f\u0411\7"+
+ "\f\2\2\u0410\u040d\3\2\2\2\u0410\u040e\3\2\2\2\u0411\u00a3\3\2\2\2\u0412"+
+ "\u0413\7)\2\2\u0413\u0414\7)\2\2\u0414\u0415\7)\2\2\u0415\u0419\3\2\2"+
+ "\2\u0416\u0418\13\2\2\2\u0417\u0416\3\2\2\2\u0418\u041b\3\2\2\2\u0419"+
+ "\u041a\3\2\2\2\u0419\u0417\3\2\2\2\u041a\u041c\3\2\2\2\u041b\u0419\3\2"+
+ "\2\2\u041c\u041d\7)\2\2\u041d\u041e\7)\2\2\u041e\u0441\7)\2\2\u041f\u0420"+
+ "\7$\2\2\u0420\u0421\7$\2\2\u0421\u0422\7$\2\2\u0422\u0426\3\2\2\2\u0423"+
+ "\u0425\13\2\2\2\u0424\u0423\3\2\2\2\u0425\u0428\3\2\2\2\u0426\u0427\3"+
+ "\2\2\2\u0426\u0424\3\2\2\2\u0427\u0429\3\2\2\2\u0428\u0426\3\2\2\2\u0429"+
+ "\u042a\7$\2\2\u042a\u042b\7$\2\2\u042b\u0441\7$\2\2\u042c\u0432\7)\2\2"+
+ "\u042d\u0431\n\4\2\2\u042e\u042f\7^\2\2\u042f\u0431\13\2\2\2\u0430\u042d"+
+ "\3\2\2\2\u0430\u042e\3\2\2\2\u0431\u0434\3\2\2\2\u0432\u0433\3\2\2\2\u0432"+
+ "\u0430\3\2\2\2\u0433\u0435\3\2\2\2\u0434\u0432\3\2\2\2\u0435\u0441\7)"+
+ "\2\2\u0436\u043c\7$\2\2\u0437\u043b\n\5\2\2\u0438\u0439\7^\2\2\u0439\u043b"+
+ "\13\2\2\2\u043a\u0437\3\2\2\2\u043a\u0438\3\2\2\2\u043b\u043e\3\2\2\2"+
+ "\u043c\u043d\3\2\2\2\u043c\u043a\3\2\2\2\u043d\u043f\3\2\2\2\u043e\u043c"+
+ "\3\2\2\2\u043f\u0441\7$\2\2\u0440\u0412\3\2\2\2\u0440\u041f\3\2\2\2\u0440"+
+ "\u042c\3\2\2\2\u0440\u0436\3\2\2\2\u0441\u00a5\3\2\2\2\u0442\u0444\n\t"+
+ "\2\2\u0443\u0442\3\2\2\2\u0444\u0445\3\2\2\2\u0445\u0443\3\2\2\2\u0445"+
+ "\u0446\3\2\2\2\u0446\u0447\3\2\2\2\u0447\u044b\7\'\2\2\u0448\u044a\n\17"+
+ "\2\2\u0449\u0448\3\2\2\2\u044a\u044d\3\2\2\2\u044b\u0449\3\2\2\2\u044b"+
+ "\u044c\3\2\2\2\u044c\u00a7\3\2\2\2\u044d\u044b\3\2\2\2\u044e\u0452\n\20"+
+ "\2\2\u044f\u0452\5\u00a4Q\2\u0450\u0452\5\u00a6R\2\u0451\u044e\3\2\2\2"+
+ "\u0451\u044f\3\2\2\2\u0451\u0450\3\2\2\2\u0452\u0453\3\2\2\2\u0453\u0451"+
+ "\3\2\2\2\u0453\u0454\3\2\2\2\u0454\u0455\3\2\2\2\u0455\u0457\7=\2\2\u0456"+
+ "\u0458\5\u00a2P\2\u0457\u0456\3\2\2\2\u0457\u0458\3\2\2\2\u0458\u00a9"+
+ "\3\2\2\2\u0459\u045b\7%\2\2\u045a\u0459\3\2\2\2\u045b\u045c\3\2\2\2\u045c"+
+ "\u045a\3\2\2\2\u045c\u045d\3\2\2\2\u045d\u0461\3\2\2\2\u045e\u0460\n\f"+
+ "\2\2\u045f\u045e\3\2\2\2\u0460\u0463\3\2\2\2\u0461\u045f\3\2\2\2\u0461"+
+ "\u0462\3\2\2\2\u0462\u0464\3\2\2\2\u0463\u0461\3\2\2\2\u0464\u0465\bT"+
+ "\b\2\u0465\u00ab\3\2\2\2\u0466\u0468\t\t\2\2\u0467\u0466\3\2\2\2\u0468"+
+ "\u0469\3\2\2\2\u0469\u0467\3\2\2\2\u0469\u046a\3\2\2\2\u046a\u046b\3\2"+
+ "\2\2\u046b\u046c\bU\t\2\u046c\u00ad\3\2\2\2q\2\3\4\5\u00b9\u00bc\u00ca"+
+ "\u00cd\u0142\u015b\u0160\u0164\u0169\u016f\u0171\u0178\u017a\u017c\u0182"+
+ "\u0184\u018d\u018f\u0197\u0199\u019d\u01a6\u01b3\u01b9\u01c5\u01c9\u01d3"+
+ "\u01de\u01e3\u01f4\u01fd\u020a\u0214\u0216\u021e\u0220\u0224\u022a\u022c"+
+ "\u0233\u0235\u0237\u023d\u0245\u024c\u0254\u025b\u025f\u0264\u026a\u0271"+
+ "\u0273\u0276\u027b\u0280\u0288\u0297\u029b\u029f\u02a3\u02a5\u02ac\u02b3"+
+ "\u02bf\u02c4\u02c9\u02d1\u02d6\u02e1\u02f3\u0300\u030c\u031a\u032a\u0338"+
+ "\u0346\u0354\u0362\u0371\u037c\u0388\u0397\u03a2\u03ae\u03ba\u03c7\u03d5"+
+ "\u03da\u03e8\u03f9\u0401\u0410\u0419\u0426\u0430\u0432\u043a\u043c\u0440"+
+ "\u0445\u044b\u0451\u0453\u0457\u045c\u0461\u0469\n\7\3\2\7\4\2\7\5\2\2"+
+ "\3\2\6\2\2\5\2\2\2\4\2\b\2\2";
+ 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);
+ }
+ }
+}
\ No newline at end of file
diff --git a/dsl/src/main/java/ides/dsl/parser/IdesLexer.tokens b/dsl/src/main/java/ides/dsl/parser/IdesLexer.tokens
new file mode 100644
index 0000000..b058032
--- /dev/null
+++ b/dsl/src/main/java/ides/dsl/parser/IdesLexer.tokens
@@ -0,0 +1,98 @@
+PY_MODE=1
+SQL_MODE=2
+SHELL_MODE=3
+AS=4
+INTO=5
+LOAD=6
+SAVE=7
+SELECT=8
+OPTIONS=9
+WHERE=10
+AND=11
+OVERWRITE=12
+APPEND=13
+ERRORIfExists=14
+IGNORE=15
+PARTITIONBY=16
+CONNECT=17
+SET=18
+DOT=19
+EQ=20
+COMMA=21
+OUT=22
+EOQ=23
+MUMERIC=24
+IDENTIFIER=25
+QUOTED_TEXT=26
+STRING_TEXT=27
+BLOCK_STRING_TEXT=28
+LINE_COMMENT=29
+BLOCK_COMMENT=30
+NL=31
+WS=32
+UNRECOGNIZED=33
+EXIT_PY=34
+PY_RETURN=35
+PY_STRING=36
+VARIABLE=37
+VariableRef=38
+PY_NonEnd=39
+PY_TEXT=40
+PY_COMMENT=41
+PY_WS=42
+EXIT_SQL=43
+SQL_RETURN=44
+SQL_TEXT=45
+DDL=46
+DML=47
+Profile=48
+SQL_COMMENT1=49
+SQL_COMMENT2=50
+SQL_COMMENT_BLOCK=51
+CreatStatement=52
+AlterStatement=53
+DropStatement=54
+RenameStatement=55
+TruncateStatement=56
+SelectStatement=57
+InsertStatement=58
+UpdateStatement=59
+DeleteStatement=60
+ReplaceStatement=61
+UseStatement=62
+ShowStatement=63
+ExplainStatement=64
+SetStatement=65
+CallStatement=66
+OpenStatement=67
+CloseStatement=68
+TransactionStatement=69
+CommitStatement=70
+RollbackStatement=71
+SQL_WS=72
+EXIT_SH=73
+SH_RETURN=74
+SH_STRING=75
+SH_NonEnd=76
+SHELL_TEXT=77
+SEHLL_COMMENT=78
+SH_WS=79
+'as'=4
+'into'=5
+'load'=6
+'save'=7
+'select'=8
+'options'=9
+'where'=10
+'and'=11
+'overwrite'=12
+'append'=13
+'errorIfExists'=14
+'ignore'=15
+'connect'=17
+'set'=18
+'.'=19
+'='=20
+','=21
+'>'=22
+';'=23
diff --git a/dsl/src/main/java/ides/dsl/parser/IdesParser.interp b/dsl/src/main/java/ides/dsl/parser/IdesParser.interp
new file mode 100644
index 0000000..89880cb
--- /dev/null
+++ b/dsl/src/main/java/ides/dsl/parser/IdesParser.interp
@@ -0,0 +1,196 @@
+token literal names:
+null
+null
+null
+null
+'as'
+'into'
+'load'
+'save'
+'select'
+'options'
+'where'
+'and'
+'overwrite'
+'append'
+'errorIfExists'
+'ignore'
+null
+'connect'
+'set'
+'.'
+'='
+','
+'>'
+';'
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+null
+
+token symbolic names:
+null
+PY_MODE
+SQL_MODE
+SHELL_MODE
+AS
+INTO
+LOAD
+SAVE
+SELECT
+OPTIONS
+WHERE
+AND
+OVERWRITE
+APPEND
+ERRORIfExists
+IGNORE
+PARTITIONBY
+CONNECT
+SET
+DOT
+EQ
+COMMA
+OUT
+EOQ
+MUMERIC
+IDENTIFIER
+QUOTED_TEXT
+STRING_TEXT
+BLOCK_STRING_TEXT
+LINE_COMMENT
+BLOCK_COMMENT
+NL
+WS
+UNRECOGNIZED
+EXIT_PY
+PY_RETURN
+PY_STRING
+VARIABLE
+VariableRef
+PY_NonEnd
+PY_TEXT
+PY_COMMENT
+PY_WS
+EXIT_SQL
+SQL_RETURN
+SQL_TEXT
+DDL
+DML
+Profile
+SQL_COMMENT1
+SQL_COMMENT2
+SQL_COMMENT_BLOCK
+CreatStatement
+AlterStatement
+DropStatement
+RenameStatement
+TruncateStatement
+SelectStatement
+InsertStatement
+UpdateStatement
+DeleteStatement
+ReplaceStatement
+UseStatement
+ShowStatement
+ExplainStatement
+SetStatement
+CallStatement
+OpenStatement
+CloseStatement
+TransactionStatement
+CommitStatement
+RollbackStatement
+SQL_WS
+EXIT_SH
+SH_RETURN
+SH_STRING
+SH_NonEnd
+SHELL_TEXT
+SEHLL_COMMENT
+SH_WS
+
+rule names:
+statement
+script
+pythonCode
+pyStatement
+sqlCode
+sqlStatement
+shellCode
+shellStatement
+query
+format
+path
+col
+colGroup
+whereExpressions
+partitionbyExpression
+booleanExpression
+keyName
+valueName
+expression
+qualifiedName
+asAsset
+assetName
+identifier
+quotedIdentifier
+where
+saveMode
+outTable
+
+
+atn:
+[3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 3, 81, 226, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12, 4, 13, 9, 13, 4, 14, 9, 14, 4, 15, 9, 15, 4, 16, 9, 16, 4, 17, 9, 17, 4, 18, 9, 18, 4, 19, 9, 19, 4, 20, 9, 20, 4, 21, 9, 21, 4, 22, 9, 22, 4, 23, 9, 23, 4, 24, 9, 24, 4, 25, 9, 25, 4, 26, 9, 26, 4, 27, 9, 27, 4, 28, 9, 28, 3, 2, 7, 2, 58, 10, 2, 12, 2, 14, 2, 61, 11, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 3, 70, 10, 3, 3, 3, 5, 3, 73, 10, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 3, 79, 10, 3, 3, 3, 5, 3, 82, 10, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 3, 88, 10, 3, 3, 3, 5, 3, 91, 10, 3, 5, 3, 93, 10, 3, 3, 4, 7, 4, 96, 10, 4, 12, 4, 14, 4, 99, 11, 4, 3, 5, 3, 5, 3, 6, 7, 6, 104, 10, 6, 12, 6, 14, 6, 107, 11, 6, 3, 7, 3, 7, 3, 8, 7, 8, 112, 10, 8, 12, 8, 14, 8, 115, 11, 8, 3, 9, 3, 9, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 5, 10, 124, 10, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 5, 10, 131, 10, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 5, 10, 138, 10, 10, 3, 10, 5, 10, 141, 10, 10, 3, 10, 3, 10, 6, 10, 145, 10, 10, 13, 10, 14, 10, 146, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 5, 10, 158, 10, 10, 5, 10, 160, 10, 10, 3, 11, 3, 11, 5, 11, 164, 10, 11, 3, 12, 3, 12, 3, 13, 3, 13, 3, 14, 3, 14, 3, 14, 3, 15, 3, 15, 3, 15, 7, 15, 176, 10, 15, 12, 15, 14, 15, 179, 11, 15, 3, 16, 3, 16, 3, 16, 7, 16, 184, 10, 16, 12, 16, 14, 16, 187, 11, 16, 3, 17, 3, 17, 3, 17, 3, 18, 3, 18, 3, 19, 3, 19, 3, 20, 3, 20, 3, 20, 3, 20, 3, 21, 3, 21, 3, 21, 7, 21, 203, 10, 21, 12, 21, 14, 21, 206, 11, 21, 3, 22, 3, 22, 3, 22, 3, 23, 3, 23, 5, 23, 213, 10, 23, 3, 24, 3, 24, 3, 25, 3, 25, 3, 26, 3, 26, 3, 27, 3, 27, 3, 28, 3, 28, 3, 28, 3, 28, 2, 2, 29, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 2, 6, 3, 2, 25, 25, 4, 2, 26, 26, 28, 30, 3, 2, 11, 12, 3, 2, 14, 17, 2, 226, 2, 59, 3, 2, 2, 2, 4, 92, 3, 2, 2, 2, 6, 97, 3, 2, 2, 2, 8, 100, 3, 2, 2, 2, 10, 105, 3, 2, 2, 2, 12, 108, 3, 2, 2, 2, 14, 113, 3, 2, 2, 2, 16, 116, 3, 2, 2, 2, 18, 159, 3, 2, 2, 2, 20, 163, 3, 2, 2, 2, 22, 165, 3, 2, 2, 2, 24, 167, 3, 2, 2, 2, 26, 169, 3, 2, 2, 2, 28, 172, 3, 2, 2, 2, 30, 180, 3, 2, 2, 2, 32, 188, 3, 2, 2, 2, 34, 191, 3, 2, 2, 2, 36, 193, 3, 2, 2, 2, 38, 195, 3, 2, 2, 2, 40, 199, 3, 2, 2, 2, 42, 207, 3, 2, 2, 2, 44, 212, 3, 2, 2, 2, 46, 214, 3, 2, 2, 2, 48, 216, 3, 2, 2, 2, 50, 218, 3, 2, 2, 2, 52, 220, 3, 2, 2, 2, 54, 222, 3, 2, 2, 2, 56, 58, 5, 4, 3, 2, 57, 56, 3, 2, 2, 2, 58, 61, 3, 2, 2, 2, 59, 57, 3, 2, 2, 2, 59, 60, 3, 2, 2, 2, 60, 3, 3, 2, 2, 2, 61, 59, 3, 2, 2, 2, 62, 63, 5, 18, 10, 2, 63, 64, 7, 25, 2, 2, 64, 93, 3, 2, 2, 2, 65, 66, 7, 3, 2, 2, 66, 67, 5, 6, 4, 2, 67, 69, 7, 36, 2, 2, 68, 70, 7, 33, 2, 2, 69, 68, 3, 2, 2, 2, 69, 70, 3, 2, 2, 2, 70, 72, 3, 2, 2, 2, 71, 73, 5, 54, 28, 2, 72, 71, 3, 2, 2, 2, 72, 73, 3, 2, 2, 2, 73, 93, 3, 2, 2, 2, 74, 75, 7, 4, 2, 2, 75, 76, 5, 10, 6, 2, 76, 78, 7, 45, 2, 2, 77, 79, 7, 33, 2, 2, 78, 77, 3, 2, 2, 2, 78, 79, 3, 2, 2, 2, 79, 81, 3, 2, 2, 2, 80, 82, 5, 54, 28, 2, 81, 80, 3, 2, 2, 2, 81, 82, 3, 2, 2, 2, 82, 93, 3, 2, 2, 2, 83, 84, 7, 5, 2, 2, 84, 85, 5, 14, 8, 2, 85, 87, 7, 75, 2, 2, 86, 88, 7, 33, 2, 2, 87, 86, 3, 2, 2, 2, 87, 88, 3, 2, 2, 2, 88, 90, 3, 2, 2, 2, 89, 91, 5, 54, 28, 2, 90, 89, 3, 2, 2, 2, 90, 91, 3, 2, 2, 2, 91, 93, 3, 2, 2, 2, 92, 62, 3, 2, 2, 2, 92, 65, 3, 2, 2, 2, 92, 74, 3, 2, 2, 2, 92, 83, 3, 2, 2, 2, 93, 5, 3, 2, 2, 2, 94, 96, 5, 8, 5, 2, 95, 94, 3, 2, 2, 2, 96, 99, 3, 2, 2, 2, 97, 95, 3, 2, 2, 2, 97, 98, 3, 2, 2, 2, 98, 7, 3, 2, 2, 2, 99, 97, 3, 2, 2, 2, 100, 101, 7, 42, 2, 2, 101, 9, 3, 2, 2, 2, 102, 104, 5, 12, 7, 2, 103, 102, 3, 2, 2, 2, 104, 107, 3, 2, 2, 2, 105, 103, 3, 2, 2, 2, 105, 106, 3, 2, 2, 2, 106, 11, 3, 2, 2, 2, 107, 105, 3, 2, 2, 2, 108, 109, 7, 47, 2, 2, 109, 13, 3, 2, 2, 2, 110, 112, 5, 16, 9, 2, 111, 110, 3, 2, 2, 2, 112, 115, 3, 2, 2, 2, 113, 111, 3, 2, 2, 2, 113, 114, 3, 2, 2, 2, 114, 15, 3, 2, 2, 2, 115, 113, 3, 2, 2, 2, 116, 117, 7, 79, 2, 2, 117, 17, 3, 2, 2, 2, 118, 119, 7, 8, 2, 2, 119, 120, 5, 20, 11, 2, 120, 121, 7, 21, 2, 2, 121, 123, 5, 22, 12, 2, 122, 124, 5, 28, 15, 2, 123, 122, 3, 2, 2, 2, 123, 124, 3, 2, 2, 2, 124, 125, 3, 2, 2, 2, 125, 126, 5, 42, 22, 2, 126, 160, 3, 2, 2, 2, 127, 128, 7, 9, 2, 2, 128, 130, 5, 44, 23, 2, 129, 131, 5, 52, 27, 2, 130, 129, 3, 2, 2, 2, 130, 131, 3, 2, 2, 2, 131, 132, 3, 2, 2, 2, 132, 133, 7, 7, 2, 2, 133, 134, 5, 20, 11, 2, 134, 135, 7, 21, 2, 2, 135, 137, 5, 22, 12, 2, 136, 138, 5, 28, 15, 2, 137, 136, 3, 2, 2, 2, 137, 138, 3, 2, 2, 2, 138, 140, 3, 2, 2, 2, 139, 141, 5, 30, 16, 2, 140, 139, 3, 2, 2, 2, 140, 141, 3, 2, 2, 2, 141, 160, 3, 2, 2, 2, 142, 144, 7, 10, 2, 2, 143, 145, 10, 2, 2, 2, 144, 143, 3, 2, 2, 2, 145, 146, 3, 2, 2, 2, 146, 144, 3, 2, 2, 2, 146, 147, 3, 2, 2, 2, 147, 148, 3, 2, 2, 2, 148, 160, 5, 42, 22, 2, 149, 150, 7, 19, 2, 2, 150, 151, 5, 20, 11, 2, 151, 152, 5, 28, 15, 2, 152, 153, 5, 42, 22, 2, 153, 160, 3, 2, 2, 2, 154, 155, 7, 20, 2, 2, 155, 157, 5, 38, 20, 2, 156, 158, 5, 28, 15, 2, 157, 156, 3, 2, 2, 2, 157, 158, 3, 2, 2, 2, 158, 160, 3, 2, 2, 2, 159, 118, 3, 2, 2, 2, 159, 127, 3, 2, 2, 2, 159, 142, 3, 2, 2, 2, 159, 149, 3, 2, 2, 2, 159, 154, 3, 2, 2, 2, 160, 19, 3, 2, 2, 2, 161, 164, 5, 46, 24, 2, 162, 164, 5, 48, 25, 2, 163, 161, 3, 2, 2, 2, 163, 162, 3, 2, 2, 2, 164, 21, 3, 2, 2, 2, 165, 166, 5, 48, 25, 2, 166, 23, 3, 2, 2, 2, 167, 168, 5, 46, 24, 2, 168, 25, 3, 2, 2, 2, 169, 170, 7, 23, 2, 2, 170, 171, 5, 24, 13, 2, 171, 27, 3, 2, 2, 2, 172, 173, 5, 50, 26, 2, 173, 177, 5, 38, 20, 2, 174, 176, 5, 32, 17, 2, 175, 174, 3, 2, 2, 2, 176, 179, 3, 2, 2, 2, 177, 175, 3, 2, 2, 2, 177, 178, 3, 2, 2, 2, 178, 29, 3, 2, 2, 2, 179, 177, 3, 2, 2, 2, 180, 181, 7, 18, 2, 2, 181, 185, 5, 24, 13, 2, 182, 184, 5, 26, 14, 2, 183, 182, 3, 2, 2, 2, 184, 187, 3, 2, 2, 2, 185, 183, 3, 2, 2, 2, 185, 186, 3, 2, 2, 2, 186, 31, 3, 2, 2, 2, 187, 185, 3, 2, 2, 2, 188, 189, 7, 13, 2, 2, 189, 190, 5, 38, 20, 2, 190, 33, 3, 2, 2, 2, 191, 192, 5, 40, 21, 2, 192, 35, 3, 2, 2, 2, 193, 194, 9, 3, 2, 2, 194, 37, 3, 2, 2, 2, 195, 196, 5, 34, 18, 2, 196, 197, 7, 22, 2, 2, 197, 198, 5, 36, 19, 2, 198, 39, 3, 2, 2, 2, 199, 204, 5, 46, 24, 2, 200, 201, 7, 21, 2, 2, 201, 203, 5, 46, 24, 2, 202, 200, 3, 2, 2, 2, 203, 206, 3, 2, 2, 2, 204, 202, 3, 2, 2, 2, 204, 205, 3, 2, 2, 2, 205, 41, 3, 2, 2, 2, 206, 204, 3, 2, 2, 2, 207, 208, 7, 6, 2, 2, 208, 209, 5, 44, 23, 2, 209, 43, 3, 2, 2, 2, 210, 213, 5, 46, 24, 2, 211, 213, 5, 48, 25, 2, 212, 210, 3, 2, 2, 2, 212, 211, 3, 2, 2, 2, 213, 45, 3, 2, 2, 2, 214, 215, 7, 27, 2, 2, 215, 47, 3, 2, 2, 2, 216, 217, 7, 28, 2, 2, 217, 49, 3, 2, 2, 2, 218, 219, 9, 4, 2, 2, 219, 51, 3, 2, 2, 2, 220, 221, 9, 5, 2, 2, 221, 53, 3, 2, 2, 2, 222, 223, 7, 24, 2, 2, 223, 224, 5, 44, 23, 2, 224, 55, 3, 2, 2, 2, 25, 59, 69, 72, 78, 81, 87, 90, 92, 97, 105, 113, 123, 130, 137, 140, 146, 157, 159, 163, 177, 185, 204, 212]
\ No newline at end of file
diff --git a/dsl/src/main/java/ides/dsl/parser/IdesParser.java b/dsl/src/main/java/ides/dsl/parser/IdesParser.java
new file mode 100644
index 0000000..8d86678
--- /dev/null
+++ b/dsl/src/main/java/ides/dsl/parser/IdesParser.java
@@ -0,0 +1,2086 @@
+// Generated from /Users/sgr/develop/github/ides/dsl/src/main/resources/IdesParser.g4 by ANTLR 4.7.2
+
+ package ides.dsl.parser;
+
+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 IdesParser extends Parser {
+ static { RuntimeMetaData.checkVersion("4.7.2", RuntimeMetaData.VERSION); }
+
+ protected static final DFA[] _decisionToDFA;
+ protected static final PredictionContextCache _sharedContextCache =
+ new PredictionContextCache();
+ public static final int
+ PY_MODE=1, SQL_MODE=2, SHELL_MODE=3, AS=4, INTO=5, LOAD=6, SAVE=7, SELECT=8,
+ OPTIONS=9, WHERE=10, AND=11, OVERWRITE=12, APPEND=13, ERRORIfExists=14,
+ IGNORE=15, PARTITIONBY=16, CONNECT=17, SET=18, DOT=19, EQ=20, COMMA=21,
+ OUT=22, EOQ=23, MUMERIC=24, IDENTIFIER=25, QUOTED_TEXT=26, STRING_TEXT=27,
+ BLOCK_STRING_TEXT=28, LINE_COMMENT=29, BLOCK_COMMENT=30, NL=31, WS=32,
+ UNRECOGNIZED=33, EXIT_PY=34, PY_RETURN=35, PY_STRING=36, VARIABLE=37,
+ VariableRef=38, PY_NonEnd=39, PY_TEXT=40, PY_COMMENT=41, PY_WS=42, EXIT_SQL=43,
+ SQL_RETURN=44, SQL_TEXT=45, DDL=46, DML=47, Profile=48, SQL_COMMENT1=49,
+ SQL_COMMENT2=50, SQL_COMMENT_BLOCK=51, CreatStatement=52, AlterStatement=53,
+ DropStatement=54, RenameStatement=55, TruncateStatement=56, SelectStatement=57,
+ InsertStatement=58, UpdateStatement=59, DeleteStatement=60, ReplaceStatement=61,
+ UseStatement=62, ShowStatement=63, ExplainStatement=64, SetStatement=65,
+ CallStatement=66, OpenStatement=67, CloseStatement=68, TransactionStatement=69,
+ CommitStatement=70, RollbackStatement=71, SQL_WS=72, EXIT_SH=73, SH_RETURN=74,
+ SH_STRING=75, SH_NonEnd=76, SHELL_TEXT=77, SEHLL_COMMENT=78, SH_WS=79;
+ public static final int
+ RULE_statement = 0, RULE_script = 1, RULE_pythonCode = 2, RULE_pyStatement = 3,
+ RULE_sqlCode = 4, RULE_sqlStatement = 5, RULE_shellCode = 6, RULE_shellStatement = 7,
+ RULE_query = 8, RULE_format = 9, RULE_path = 10, RULE_col = 11, RULE_colGroup = 12,
+ RULE_whereExpressions = 13, RULE_partitionbyExpression = 14, RULE_booleanExpression = 15,
+ RULE_keyName = 16, RULE_valueName = 17, RULE_expression = 18, RULE_qualifiedName = 19,
+ RULE_asAsset = 20, RULE_assetName = 21, RULE_identifier = 22, RULE_quotedIdentifier = 23,
+ RULE_where = 24, RULE_saveMode = 25, RULE_outTable = 26;
+ private static String[] makeRuleNames() {
+ return new String[] {
+ "statement", "script", "pythonCode", "pyStatement", "sqlCode", "sqlStatement",
+ "shellCode", "shellStatement", "query", "format", "path", "col", "colGroup",
+ "whereExpressions", "partitionbyExpression", "booleanExpression", "keyName",
+ "valueName", "expression", "qualifiedName", "asAsset", "assetName", "identifier",
+ "quotedIdentifier", "where", "saveMode", "outTable"
+ };
+ }
+ public static final String[] ruleNames = makeRuleNames();
+
+ private static String[] makeLiteralNames() {
+ return new String[] {
+ null, null, null, null, "'as'", "'into'", "'load'", "'save'", "'select'",
+ "'options'", "'where'", "'and'", "'overwrite'", "'append'", "'errorIfExists'",
+ "'ignore'", null, "'connect'", "'set'", "'.'", "'='", "','", "'>'", "';'"
+ };
+ }
+ private static final String[] _LITERAL_NAMES = makeLiteralNames();
+ private static String[] makeSymbolicNames() {
+ return new String[] {
+ null, "PY_MODE", "SQL_MODE", "SHELL_MODE", "AS", "INTO", "LOAD", "SAVE",
+ "SELECT", "OPTIONS", "WHERE", "AND", "OVERWRITE", "APPEND", "ERRORIfExists",
+ "IGNORE", "PARTITIONBY", "CONNECT", "SET", "DOT", "EQ", "COMMA", "OUT",
+ "EOQ", "MUMERIC", "IDENTIFIER", "QUOTED_TEXT", "STRING_TEXT", "BLOCK_STRING_TEXT",
+ "LINE_COMMENT", "BLOCK_COMMENT", "NL", "WS", "UNRECOGNIZED", "EXIT_PY",
+ "PY_RETURN", "PY_STRING", "VARIABLE", "VariableRef", "PY_NonEnd", "PY_TEXT",
+ "PY_COMMENT", "PY_WS", "EXIT_SQL", "SQL_RETURN", "SQL_TEXT", "DDL", "DML",
+ "Profile", "SQL_COMMENT1", "SQL_COMMENT2", "SQL_COMMENT_BLOCK", "CreatStatement",
+ "AlterStatement", "DropStatement", "RenameStatement", "TruncateStatement",
+ "SelectStatement", "InsertStatement", "UpdateStatement", "DeleteStatement",
+ "ReplaceStatement", "UseStatement", "ShowStatement", "ExplainStatement",
+ "SetStatement", "CallStatement", "OpenStatement", "CloseStatement", "TransactionStatement",
+ "CommitStatement", "RollbackStatement", "SQL_WS", "EXIT_SH", "SH_RETURN",
+ "SH_STRING", "SH_NonEnd", "SHELL_TEXT", "SEHLL_COMMENT", "SH_WS"
+ };
+ }
+ 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 "IdesParser.g4"; }
+
+ @Override
+ public String[] getRuleNames() { return ruleNames; }
+
+ @Override
+ public String getSerializedATN() { return _serializedATN; }
+
+ @Override
+ public ATN getATN() { return _ATN; }
+
+ public IdesParser(TokenStream input) {
+ super(input);
+ _interp = new ParserATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
+ }
+
+ public static class StatementContext extends ParserRuleContext {
+ public List script() {
+ return getRuleContexts(ScriptContext.class);
+ }
+ public ScriptContext script(int i) {
+ return getRuleContext(ScriptContext.class,i);
+ }
+ public StatementContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_statement; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterStatement(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitStatement(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitStatement(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final StatementContext statement() throws RecognitionException {
+ StatementContext _localctx = new StatementContext(_ctx, getState());
+ enterRule(_localctx, 0, RULE_statement);
+ int _la;
+ try {
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(57);
+ _errHandler.sync(this);
+ _la = _input.LA(1);
+ while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << PY_MODE) | (1L << SQL_MODE) | (1L << SHELL_MODE) | (1L << LOAD) | (1L << SAVE) | (1L << SELECT) | (1L << CONNECT) | (1L << SET))) != 0)) {
+ {
+ {
+ setState(54);
+ script();
+ }
+ }
+ setState(59);
+ _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 ScriptContext extends ParserRuleContext {
+ public ScriptContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_script; }
+
+ public ScriptContext() { }
+ public void copyFrom(ScriptContext ctx) {
+ super.copyFrom(ctx);
+ }
+ }
+ public static class IqlContext extends ScriptContext {
+ public QueryContext query() {
+ return getRuleContext(QueryContext.class,0);
+ }
+ public TerminalNode EOQ() { return getToken(IdesParser.EOQ, 0); }
+ public IqlContext(ScriptContext ctx) { copyFrom(ctx); }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterIql(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitIql(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitIql(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+ public static class ShContext extends ScriptContext {
+ public TerminalNode SHELL_MODE() { return getToken(IdesParser.SHELL_MODE, 0); }
+ public ShellCodeContext shellCode() {
+ return getRuleContext(ShellCodeContext.class,0);
+ }
+ public TerminalNode EXIT_SH() { return getToken(IdesParser.EXIT_SH, 0); }
+ public TerminalNode NL() { return getToken(IdesParser.NL, 0); }
+ public OutTableContext outTable() {
+ return getRuleContext(OutTableContext.class,0);
+ }
+ public ShContext(ScriptContext ctx) { copyFrom(ctx); }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterSh(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitSh(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitSh(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+ public static class PyContext extends ScriptContext {
+ public TerminalNode PY_MODE() { return getToken(IdesParser.PY_MODE, 0); }
+ public PythonCodeContext pythonCode() {
+ return getRuleContext(PythonCodeContext.class,0);
+ }
+ public TerminalNode EXIT_PY() { return getToken(IdesParser.EXIT_PY, 0); }
+ public TerminalNode NL() { return getToken(IdesParser.NL, 0); }
+ public OutTableContext outTable() {
+ return getRuleContext(OutTableContext.class,0);
+ }
+ public PyContext(ScriptContext ctx) { copyFrom(ctx); }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterPy(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitPy(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitPy(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+ public static class SqlContext extends ScriptContext {
+ public TerminalNode SQL_MODE() { return getToken(IdesParser.SQL_MODE, 0); }
+ public SqlCodeContext sqlCode() {
+ return getRuleContext(SqlCodeContext.class,0);
+ }
+ public TerminalNode EXIT_SQL() { return getToken(IdesParser.EXIT_SQL, 0); }
+ public TerminalNode NL() { return getToken(IdesParser.NL, 0); }
+ public OutTableContext outTable() {
+ return getRuleContext(OutTableContext.class,0);
+ }
+ public SqlContext(ScriptContext ctx) { copyFrom(ctx); }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterSql(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitSql(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitSql(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final ScriptContext script() throws RecognitionException {
+ ScriptContext _localctx = new ScriptContext(_ctx, getState());
+ enterRule(_localctx, 2, RULE_script);
+ int _la;
+ try {
+ setState(90);
+ _errHandler.sync(this);
+ switch (_input.LA(1)) {
+ case LOAD:
+ case SAVE:
+ case SELECT:
+ case CONNECT:
+ case SET:
+ _localctx = new IqlContext(_localctx);
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(60);
+ query();
+ setState(61);
+ match(EOQ);
+ }
+ break;
+ case PY_MODE:
+ _localctx = new PyContext(_localctx);
+ enterOuterAlt(_localctx, 2);
+ {
+ setState(63);
+ match(PY_MODE);
+ setState(64);
+ pythonCode();
+ setState(65);
+ match(EXIT_PY);
+ setState(67);
+ _errHandler.sync(this);
+ _la = _input.LA(1);
+ if (_la==NL) {
+ {
+ setState(66);
+ match(NL);
+ }
+ }
+
+ setState(70);
+ _errHandler.sync(this);
+ _la = _input.LA(1);
+ if (_la==OUT) {
+ {
+ setState(69);
+ outTable();
+ }
+ }
+
+ }
+ break;
+ case SQL_MODE:
+ _localctx = new SqlContext(_localctx);
+ enterOuterAlt(_localctx, 3);
+ {
+ setState(72);
+ match(SQL_MODE);
+ setState(73);
+ sqlCode();
+ setState(74);
+ match(EXIT_SQL);
+ setState(76);
+ _errHandler.sync(this);
+ _la = _input.LA(1);
+ if (_la==NL) {
+ {
+ setState(75);
+ match(NL);
+ }
+ }
+
+ setState(79);
+ _errHandler.sync(this);
+ _la = _input.LA(1);
+ if (_la==OUT) {
+ {
+ setState(78);
+ outTable();
+ }
+ }
+
+ }
+ break;
+ case SHELL_MODE:
+ _localctx = new ShContext(_localctx);
+ enterOuterAlt(_localctx, 4);
+ {
+ setState(81);
+ match(SHELL_MODE);
+ setState(82);
+ shellCode();
+ setState(83);
+ match(EXIT_SH);
+ setState(85);
+ _errHandler.sync(this);
+ _la = _input.LA(1);
+ if (_la==NL) {
+ {
+ setState(84);
+ match(NL);
+ }
+ }
+
+ setState(88);
+ _errHandler.sync(this);
+ _la = _input.LA(1);
+ if (_la==OUT) {
+ {
+ setState(87);
+ outTable();
+ }
+ }
+
+ }
+ 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 PythonCodeContext extends ParserRuleContext {
+ public List pyStatement() {
+ return getRuleContexts(PyStatementContext.class);
+ }
+ public PyStatementContext pyStatement(int i) {
+ return getRuleContext(PyStatementContext.class,i);
+ }
+ public PythonCodeContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_pythonCode; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterPythonCode(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitPythonCode(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitPythonCode(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final PythonCodeContext pythonCode() throws RecognitionException {
+ PythonCodeContext _localctx = new PythonCodeContext(_ctx, getState());
+ enterRule(_localctx, 4, RULE_pythonCode);
+ int _la;
+ try {
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(95);
+ _errHandler.sync(this);
+ _la = _input.LA(1);
+ while (_la==PY_TEXT) {
+ {
+ {
+ setState(92);
+ pyStatement();
+ }
+ }
+ setState(97);
+ _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 PyStatementContext extends ParserRuleContext {
+ public TerminalNode PY_TEXT() { return getToken(IdesParser.PY_TEXT, 0); }
+ public PyStatementContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_pyStatement; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterPyStatement(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitPyStatement(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitPyStatement(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final PyStatementContext pyStatement() throws RecognitionException {
+ PyStatementContext _localctx = new PyStatementContext(_ctx, getState());
+ enterRule(_localctx, 6, RULE_pyStatement);
+ try {
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(98);
+ match(PY_TEXT);
+ }
+ }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ exitRule();
+ }
+ return _localctx;
+ }
+
+ public static class SqlCodeContext extends ParserRuleContext {
+ public List sqlStatement() {
+ return getRuleContexts(SqlStatementContext.class);
+ }
+ public SqlStatementContext sqlStatement(int i) {
+ return getRuleContext(SqlStatementContext.class,i);
+ }
+ public SqlCodeContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_sqlCode; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterSqlCode(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitSqlCode(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitSqlCode(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final SqlCodeContext sqlCode() throws RecognitionException {
+ SqlCodeContext _localctx = new SqlCodeContext(_ctx, getState());
+ enterRule(_localctx, 8, RULE_sqlCode);
+ int _la;
+ try {
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(103);
+ _errHandler.sync(this);
+ _la = _input.LA(1);
+ while (_la==SQL_TEXT) {
+ {
+ {
+ setState(100);
+ sqlStatement();
+ }
+ }
+ setState(105);
+ _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 SqlStatementContext extends ParserRuleContext {
+ public TerminalNode SQL_TEXT() { return getToken(IdesParser.SQL_TEXT, 0); }
+ public SqlStatementContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_sqlStatement; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterSqlStatement(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitSqlStatement(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitSqlStatement(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final SqlStatementContext sqlStatement() throws RecognitionException {
+ SqlStatementContext _localctx = new SqlStatementContext(_ctx, getState());
+ enterRule(_localctx, 10, RULE_sqlStatement);
+ try {
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(106);
+ match(SQL_TEXT);
+ }
+ }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ exitRule();
+ }
+ return _localctx;
+ }
+
+ public static class ShellCodeContext extends ParserRuleContext {
+ public List shellStatement() {
+ return getRuleContexts(ShellStatementContext.class);
+ }
+ public ShellStatementContext shellStatement(int i) {
+ return getRuleContext(ShellStatementContext.class,i);
+ }
+ public ShellCodeContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_shellCode; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterShellCode(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitShellCode(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitShellCode(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final ShellCodeContext shellCode() throws RecognitionException {
+ ShellCodeContext _localctx = new ShellCodeContext(_ctx, getState());
+ enterRule(_localctx, 12, RULE_shellCode);
+ int _la;
+ try {
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(111);
+ _errHandler.sync(this);
+ _la = _input.LA(1);
+ while (_la==SHELL_TEXT) {
+ {
+ {
+ setState(108);
+ shellStatement();
+ }
+ }
+ setState(113);
+ _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 ShellStatementContext extends ParserRuleContext {
+ public TerminalNode SHELL_TEXT() { return getToken(IdesParser.SHELL_TEXT, 0); }
+ public ShellStatementContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_shellStatement; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterShellStatement(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitShellStatement(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitShellStatement(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final ShellStatementContext shellStatement() throws RecognitionException {
+ ShellStatementContext _localctx = new ShellStatementContext(_ctx, getState());
+ enterRule(_localctx, 14, RULE_shellStatement);
+ try {
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(114);
+ match(SHELL_TEXT);
+ }
+ }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ exitRule();
+ }
+ return _localctx;
+ }
+
+ public static class QueryContext extends ParserRuleContext {
+ public QueryContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_query; }
+
+ public QueryContext() { }
+ public void copyFrom(QueryContext ctx) {
+ super.copyFrom(ctx);
+ }
+ }
+ public static class LoadContext extends QueryContext {
+ public TerminalNode LOAD() { return getToken(IdesParser.LOAD, 0); }
+ public FormatContext format() {
+ return getRuleContext(FormatContext.class,0);
+ }
+ public TerminalNode DOT() { return getToken(IdesParser.DOT, 0); }
+ public PathContext path() {
+ return getRuleContext(PathContext.class,0);
+ }
+ public AsAssetContext asAsset() {
+ return getRuleContext(AsAssetContext.class,0);
+ }
+ public WhereExpressionsContext whereExpressions() {
+ return getRuleContext(WhereExpressionsContext.class,0);
+ }
+ public LoadContext(QueryContext ctx) { copyFrom(ctx); }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterLoad(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitLoad(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitLoad(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+ public static class SetContext extends QueryContext {
+ public TerminalNode SET() { return getToken(IdesParser.SET, 0); }
+ public ExpressionContext expression() {
+ return getRuleContext(ExpressionContext.class,0);
+ }
+ public WhereExpressionsContext whereExpressions() {
+ return getRuleContext(WhereExpressionsContext.class,0);
+ }
+ public SetContext(QueryContext ctx) { copyFrom(ctx); }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterSet(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitSet(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitSet(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+ public static class ConnectContext extends QueryContext {
+ public TerminalNode CONNECT() { return getToken(IdesParser.CONNECT, 0); }
+ public FormatContext format() {
+ return getRuleContext(FormatContext.class,0);
+ }
+ public WhereExpressionsContext whereExpressions() {
+ return getRuleContext(WhereExpressionsContext.class,0);
+ }
+ public AsAssetContext asAsset() {
+ return getRuleContext(AsAssetContext.class,0);
+ }
+ public ConnectContext(QueryContext ctx) { copyFrom(ctx); }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterConnect(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitConnect(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitConnect(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+ public static class SelectContext extends QueryContext {
+ public TerminalNode SELECT() { return getToken(IdesParser.SELECT, 0); }
+ public AsAssetContext asAsset() {
+ return getRuleContext(AsAssetContext.class,0);
+ }
+ public List EOQ() { return getTokens(IdesParser.EOQ); }
+ public TerminalNode EOQ(int i) {
+ return getToken(IdesParser.EOQ, i);
+ }
+ public SelectContext(QueryContext ctx) { copyFrom(ctx); }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterSelect(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitSelect(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitSelect(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+ public static class SaveContext extends QueryContext {
+ public TerminalNode SAVE() { return getToken(IdesParser.SAVE, 0); }
+ public AssetNameContext assetName() {
+ return getRuleContext(AssetNameContext.class,0);
+ }
+ public TerminalNode INTO() { return getToken(IdesParser.INTO, 0); }
+ public FormatContext format() {
+ return getRuleContext(FormatContext.class,0);
+ }
+ public TerminalNode DOT() { return getToken(IdesParser.DOT, 0); }
+ public PathContext path() {
+ return getRuleContext(PathContext.class,0);
+ }
+ public SaveModeContext saveMode() {
+ return getRuleContext(SaveModeContext.class,0);
+ }
+ public WhereExpressionsContext whereExpressions() {
+ return getRuleContext(WhereExpressionsContext.class,0);
+ }
+ public PartitionbyExpressionContext partitionbyExpression() {
+ return getRuleContext(PartitionbyExpressionContext.class,0);
+ }
+ public SaveContext(QueryContext ctx) { copyFrom(ctx); }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterSave(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitSave(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitSave(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final QueryContext query() throws RecognitionException {
+ QueryContext _localctx = new QueryContext(_ctx, getState());
+ enterRule(_localctx, 16, RULE_query);
+ int _la;
+ try {
+ int _alt;
+ setState(157);
+ _errHandler.sync(this);
+ switch (_input.LA(1)) {
+ case LOAD:
+ _localctx = new LoadContext(_localctx);
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(116);
+ match(LOAD);
+ setState(117);
+ format();
+ setState(118);
+ match(DOT);
+ setState(119);
+ path();
+ setState(121);
+ _errHandler.sync(this);
+ _la = _input.LA(1);
+ if (_la==OPTIONS || _la==WHERE) {
+ {
+ setState(120);
+ whereExpressions();
+ }
+ }
+
+ setState(123);
+ asAsset();
+ }
+ break;
+ case SAVE:
+ _localctx = new SaveContext(_localctx);
+ enterOuterAlt(_localctx, 2);
+ {
+ setState(125);
+ match(SAVE);
+ setState(126);
+ assetName();
+ setState(128);
+ _errHandler.sync(this);
+ _la = _input.LA(1);
+ if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << OVERWRITE) | (1L << APPEND) | (1L << ERRORIfExists) | (1L << IGNORE))) != 0)) {
+ {
+ setState(127);
+ saveMode();
+ }
+ }
+
+ setState(130);
+ match(INTO);
+ setState(131);
+ format();
+ setState(132);
+ match(DOT);
+ setState(133);
+ path();
+ setState(135);
+ _errHandler.sync(this);
+ _la = _input.LA(1);
+ if (_la==OPTIONS || _la==WHERE) {
+ {
+ setState(134);
+ whereExpressions();
+ }
+ }
+
+ setState(138);
+ _errHandler.sync(this);
+ _la = _input.LA(1);
+ if (_la==PARTITIONBY) {
+ {
+ setState(137);
+ partitionbyExpression();
+ }
+ }
+
+ }
+ break;
+ case SELECT:
+ _localctx = new SelectContext(_localctx);
+ enterOuterAlt(_localctx, 3);
+ {
+ setState(140);
+ match(SELECT);
+ setState(142);
+ _errHandler.sync(this);
+ _alt = 1;
+ do {
+ switch (_alt) {
+ case 1:
+ {
+ {
+ setState(141);
+ _la = _input.LA(1);
+ if ( _la <= 0 || (_la==EOQ) ) {
+ _errHandler.recoverInline(this);
+ }
+ else {
+ if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
+ _errHandler.reportMatch(this);
+ consume();
+ }
+ }
+ }
+ break;
+ default:
+ throw new NoViableAltException(this);
+ }
+ setState(144);
+ _errHandler.sync(this);
+ _alt = getInterpreter().adaptivePredict(_input,15,_ctx);
+ } while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER );
+ setState(146);
+ asAsset();
+ }
+ break;
+ case CONNECT:
+ _localctx = new ConnectContext(_localctx);
+ enterOuterAlt(_localctx, 4);
+ {
+ setState(147);
+ match(CONNECT);
+ setState(148);
+ format();
+ setState(149);
+ whereExpressions();
+ setState(150);
+ asAsset();
+ }
+ break;
+ case SET:
+ _localctx = new SetContext(_localctx);
+ enterOuterAlt(_localctx, 5);
+ {
+ setState(152);
+ match(SET);
+ setState(153);
+ expression();
+ setState(155);
+ _errHandler.sync(this);
+ _la = _input.LA(1);
+ if (_la==OPTIONS || _la==WHERE) {
+ {
+ setState(154);
+ whereExpressions();
+ }
+ }
+
+ }
+ 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 FormatContext extends ParserRuleContext {
+ public IdentifierContext identifier() {
+ return getRuleContext(IdentifierContext.class,0);
+ }
+ public QuotedIdentifierContext quotedIdentifier() {
+ return getRuleContext(QuotedIdentifierContext.class,0);
+ }
+ public FormatContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_format; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterFormat(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitFormat(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitFormat(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final FormatContext format() throws RecognitionException {
+ FormatContext _localctx = new FormatContext(_ctx, getState());
+ enterRule(_localctx, 18, RULE_format);
+ try {
+ setState(161);
+ _errHandler.sync(this);
+ switch (_input.LA(1)) {
+ case IDENTIFIER:
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(159);
+ identifier();
+ }
+ break;
+ case QUOTED_TEXT:
+ enterOuterAlt(_localctx, 2);
+ {
+ setState(160);
+ quotedIdentifier();
+ }
+ 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 PathContext extends ParserRuleContext {
+ public QuotedIdentifierContext quotedIdentifier() {
+ return getRuleContext(QuotedIdentifierContext.class,0);
+ }
+ public PathContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_path; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterPath(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitPath(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitPath(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final PathContext path() throws RecognitionException {
+ PathContext _localctx = new PathContext(_ctx, getState());
+ enterRule(_localctx, 20, RULE_path);
+ try {
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(163);
+ quotedIdentifier();
+ }
+ }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ exitRule();
+ }
+ return _localctx;
+ }
+
+ public static class ColContext extends ParserRuleContext {
+ public IdentifierContext identifier() {
+ return getRuleContext(IdentifierContext.class,0);
+ }
+ public ColContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_col; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterCol(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitCol(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitCol(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final ColContext col() throws RecognitionException {
+ ColContext _localctx = new ColContext(_ctx, getState());
+ enterRule(_localctx, 22, RULE_col);
+ try {
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(165);
+ identifier();
+ }
+ }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ exitRule();
+ }
+ return _localctx;
+ }
+
+ public static class ColGroupContext extends ParserRuleContext {
+ public TerminalNode COMMA() { return getToken(IdesParser.COMMA, 0); }
+ public ColContext col() {
+ return getRuleContext(ColContext.class,0);
+ }
+ public ColGroupContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_colGroup; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterColGroup(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitColGroup(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitColGroup(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final ColGroupContext colGroup() throws RecognitionException {
+ ColGroupContext _localctx = new ColGroupContext(_ctx, getState());
+ enterRule(_localctx, 24, RULE_colGroup);
+ try {
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(167);
+ match(COMMA);
+ setState(168);
+ col();
+ }
+ }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ exitRule();
+ }
+ return _localctx;
+ }
+
+ public static class WhereExpressionsContext extends ParserRuleContext {
+ public WhereContext where() {
+ return getRuleContext(WhereContext.class,0);
+ }
+ public ExpressionContext expression() {
+ return getRuleContext(ExpressionContext.class,0);
+ }
+ public List booleanExpression() {
+ return getRuleContexts(BooleanExpressionContext.class);
+ }
+ public BooleanExpressionContext booleanExpression(int i) {
+ return getRuleContext(BooleanExpressionContext.class,i);
+ }
+ public WhereExpressionsContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_whereExpressions; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterWhereExpressions(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitWhereExpressions(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitWhereExpressions(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final WhereExpressionsContext whereExpressions() throws RecognitionException {
+ WhereExpressionsContext _localctx = new WhereExpressionsContext(_ctx, getState());
+ enterRule(_localctx, 26, RULE_whereExpressions);
+ int _la;
+ try {
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(170);
+ where();
+ setState(171);
+ expression();
+ setState(175);
+ _errHandler.sync(this);
+ _la = _input.LA(1);
+ while (_la==AND) {
+ {
+ {
+ setState(172);
+ booleanExpression();
+ }
+ }
+ setState(177);
+ _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 PartitionbyExpressionContext extends ParserRuleContext {
+ public TerminalNode PARTITIONBY() { return getToken(IdesParser.PARTITIONBY, 0); }
+ public ColContext col() {
+ return getRuleContext(ColContext.class,0);
+ }
+ public List colGroup() {
+ return getRuleContexts(ColGroupContext.class);
+ }
+ public ColGroupContext colGroup(int i) {
+ return getRuleContext(ColGroupContext.class,i);
+ }
+ public PartitionbyExpressionContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_partitionbyExpression; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterPartitionbyExpression(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitPartitionbyExpression(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitPartitionbyExpression(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final PartitionbyExpressionContext partitionbyExpression() throws RecognitionException {
+ PartitionbyExpressionContext _localctx = new PartitionbyExpressionContext(_ctx, getState());
+ enterRule(_localctx, 28, RULE_partitionbyExpression);
+ int _la;
+ try {
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(178);
+ match(PARTITIONBY);
+ setState(179);
+ col();
+ setState(183);
+ _errHandler.sync(this);
+ _la = _input.LA(1);
+ while (_la==COMMA) {
+ {
+ {
+ setState(180);
+ colGroup();
+ }
+ }
+ setState(185);
+ _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 BooleanExpressionContext extends ParserRuleContext {
+ public TerminalNode AND() { return getToken(IdesParser.AND, 0); }
+ public ExpressionContext expression() {
+ return getRuleContext(ExpressionContext.class,0);
+ }
+ public BooleanExpressionContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_booleanExpression; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterBooleanExpression(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitBooleanExpression(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitBooleanExpression(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final BooleanExpressionContext booleanExpression() throws RecognitionException {
+ BooleanExpressionContext _localctx = new BooleanExpressionContext(_ctx, getState());
+ enterRule(_localctx, 30, RULE_booleanExpression);
+ try {
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(186);
+ match(AND);
+ setState(187);
+ expression();
+ }
+ }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ exitRule();
+ }
+ return _localctx;
+ }
+
+ public static class KeyNameContext extends ParserRuleContext {
+ public QualifiedNameContext qualifiedName() {
+ return getRuleContext(QualifiedNameContext.class,0);
+ }
+ public KeyNameContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_keyName; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterKeyName(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitKeyName(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitKeyName(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final KeyNameContext keyName() throws RecognitionException {
+ KeyNameContext _localctx = new KeyNameContext(_ctx, getState());
+ enterRule(_localctx, 32, RULE_keyName);
+ try {
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(189);
+ qualifiedName();
+ }
+ }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ exitRule();
+ }
+ return _localctx;
+ }
+
+ public static class ValueNameContext extends ParserRuleContext {
+ public TerminalNode MUMERIC() { return getToken(IdesParser.MUMERIC, 0); }
+ public TerminalNode STRING_TEXT() { return getToken(IdesParser.STRING_TEXT, 0); }
+ public TerminalNode BLOCK_STRING_TEXT() { return getToken(IdesParser.BLOCK_STRING_TEXT, 0); }
+ public TerminalNode QUOTED_TEXT() { return getToken(IdesParser.QUOTED_TEXT, 0); }
+ public ValueNameContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_valueName; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterValueName(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitValueName(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitValueName(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final ValueNameContext valueName() throws RecognitionException {
+ ValueNameContext _localctx = new ValueNameContext(_ctx, getState());
+ enterRule(_localctx, 34, RULE_valueName);
+ int _la;
+ try {
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(191);
+ _la = _input.LA(1);
+ if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << MUMERIC) | (1L << QUOTED_TEXT) | (1L << STRING_TEXT) | (1L << BLOCK_STRING_TEXT))) != 0)) ) {
+ _errHandler.recoverInline(this);
+ }
+ else {
+ if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
+ _errHandler.reportMatch(this);
+ consume();
+ }
+ }
+ }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ exitRule();
+ }
+ return _localctx;
+ }
+
+ public static class ExpressionContext extends ParserRuleContext {
+ public KeyNameContext keyName() {
+ return getRuleContext(KeyNameContext.class,0);
+ }
+ public TerminalNode EQ() { return getToken(IdesParser.EQ, 0); }
+ public ValueNameContext valueName() {
+ return getRuleContext(ValueNameContext.class,0);
+ }
+ public ExpressionContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_expression; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterExpression(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitExpression(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitExpression(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final ExpressionContext expression() throws RecognitionException {
+ ExpressionContext _localctx = new ExpressionContext(_ctx, getState());
+ enterRule(_localctx, 36, RULE_expression);
+ try {
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(193);
+ keyName();
+ setState(194);
+ match(EQ);
+ setState(195);
+ valueName();
+ }
+ }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ exitRule();
+ }
+ return _localctx;
+ }
+
+ public static class QualifiedNameContext extends ParserRuleContext {
+ public List identifier() {
+ return getRuleContexts(IdentifierContext.class);
+ }
+ public IdentifierContext identifier(int i) {
+ return getRuleContext(IdentifierContext.class,i);
+ }
+ public List DOT() { return getTokens(IdesParser.DOT); }
+ public TerminalNode DOT(int i) {
+ return getToken(IdesParser.DOT, i);
+ }
+ public QualifiedNameContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_qualifiedName; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterQualifiedName(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitQualifiedName(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitQualifiedName(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final QualifiedNameContext qualifiedName() throws RecognitionException {
+ QualifiedNameContext _localctx = new QualifiedNameContext(_ctx, getState());
+ enterRule(_localctx, 38, RULE_qualifiedName);
+ int _la;
+ try {
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(197);
+ identifier();
+ setState(202);
+ _errHandler.sync(this);
+ _la = _input.LA(1);
+ while (_la==DOT) {
+ {
+ {
+ setState(198);
+ match(DOT);
+ setState(199);
+ identifier();
+ }
+ }
+ setState(204);
+ _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 AsAssetContext extends ParserRuleContext {
+ public TerminalNode AS() { return getToken(IdesParser.AS, 0); }
+ public AssetNameContext assetName() {
+ return getRuleContext(AssetNameContext.class,0);
+ }
+ public AsAssetContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_asAsset; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterAsAsset(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitAsAsset(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitAsAsset(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final AsAssetContext asAsset() throws RecognitionException {
+ AsAssetContext _localctx = new AsAssetContext(_ctx, getState());
+ enterRule(_localctx, 40, RULE_asAsset);
+ try {
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(205);
+ match(AS);
+ setState(206);
+ assetName();
+ }
+ }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ exitRule();
+ }
+ return _localctx;
+ }
+
+ public static class AssetNameContext extends ParserRuleContext {
+ public IdentifierContext identifier() {
+ return getRuleContext(IdentifierContext.class,0);
+ }
+ public QuotedIdentifierContext quotedIdentifier() {
+ return getRuleContext(QuotedIdentifierContext.class,0);
+ }
+ public AssetNameContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_assetName; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterAssetName(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitAssetName(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitAssetName(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final AssetNameContext assetName() throws RecognitionException {
+ AssetNameContext _localctx = new AssetNameContext(_ctx, getState());
+ enterRule(_localctx, 42, RULE_assetName);
+ try {
+ setState(210);
+ _errHandler.sync(this);
+ switch (_input.LA(1)) {
+ case IDENTIFIER:
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(208);
+ identifier();
+ }
+ break;
+ case QUOTED_TEXT:
+ enterOuterAlt(_localctx, 2);
+ {
+ setState(209);
+ quotedIdentifier();
+ }
+ 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 IdentifierContext extends ParserRuleContext {
+ public TerminalNode IDENTIFIER() { return getToken(IdesParser.IDENTIFIER, 0); }
+ public IdentifierContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_identifier; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterIdentifier(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitIdentifier(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitIdentifier(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final IdentifierContext identifier() throws RecognitionException {
+ IdentifierContext _localctx = new IdentifierContext(_ctx, getState());
+ enterRule(_localctx, 44, RULE_identifier);
+ try {
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(212);
+ match(IDENTIFIER);
+ }
+ }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ exitRule();
+ }
+ return _localctx;
+ }
+
+ public static class QuotedIdentifierContext extends ParserRuleContext {
+ public TerminalNode QUOTED_TEXT() { return getToken(IdesParser.QUOTED_TEXT, 0); }
+ public QuotedIdentifierContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_quotedIdentifier; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterQuotedIdentifier(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitQuotedIdentifier(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitQuotedIdentifier(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final QuotedIdentifierContext quotedIdentifier() throws RecognitionException {
+ QuotedIdentifierContext _localctx = new QuotedIdentifierContext(_ctx, getState());
+ enterRule(_localctx, 46, RULE_quotedIdentifier);
+ try {
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(214);
+ match(QUOTED_TEXT);
+ }
+ }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ exitRule();
+ }
+ return _localctx;
+ }
+
+ public static class WhereContext extends ParserRuleContext {
+ public TerminalNode OPTIONS() { return getToken(IdesParser.OPTIONS, 0); }
+ public TerminalNode WHERE() { return getToken(IdesParser.WHERE, 0); }
+ public WhereContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_where; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterWhere(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitWhere(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitWhere(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final WhereContext where() throws RecognitionException {
+ WhereContext _localctx = new WhereContext(_ctx, getState());
+ enterRule(_localctx, 48, RULE_where);
+ int _la;
+ try {
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(216);
+ _la = _input.LA(1);
+ if ( !(_la==OPTIONS || _la==WHERE) ) {
+ _errHandler.recoverInline(this);
+ }
+ else {
+ if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
+ _errHandler.reportMatch(this);
+ consume();
+ }
+ }
+ }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ exitRule();
+ }
+ return _localctx;
+ }
+
+ public static class SaveModeContext extends ParserRuleContext {
+ public TerminalNode OVERWRITE() { return getToken(IdesParser.OVERWRITE, 0); }
+ public TerminalNode APPEND() { return getToken(IdesParser.APPEND, 0); }
+ public TerminalNode ERRORIfExists() { return getToken(IdesParser.ERRORIfExists, 0); }
+ public TerminalNode IGNORE() { return getToken(IdesParser.IGNORE, 0); }
+ public SaveModeContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_saveMode; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterSaveMode(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitSaveMode(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitSaveMode(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final SaveModeContext saveMode() throws RecognitionException {
+ SaveModeContext _localctx = new SaveModeContext(_ctx, getState());
+ enterRule(_localctx, 50, RULE_saveMode);
+ int _la;
+ try {
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(218);
+ _la = _input.LA(1);
+ if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << OVERWRITE) | (1L << APPEND) | (1L << ERRORIfExists) | (1L << IGNORE))) != 0)) ) {
+ _errHandler.recoverInline(this);
+ }
+ else {
+ if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
+ _errHandler.reportMatch(this);
+ consume();
+ }
+ }
+ }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ exitRule();
+ }
+ return _localctx;
+ }
+
+ public static class OutTableContext extends ParserRuleContext {
+ public TerminalNode OUT() { return getToken(IdesParser.OUT, 0); }
+ public AssetNameContext assetName() {
+ return getRuleContext(AssetNameContext.class,0);
+ }
+ public OutTableContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_outTable; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).enterOutTable(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof IdesParserListener ) ((IdesParserListener)listener).exitOutTable(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof IdesParserVisitor ) return ((IdesParserVisitor extends T>)visitor).visitOutTable(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final OutTableContext outTable() throws RecognitionException {
+ OutTableContext _localctx = new OutTableContext(_ctx, getState());
+ enterRule(_localctx, 52, RULE_outTable);
+ try {
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(220);
+ match(OUT);
+ setState(221);
+ assetName();
+ }
+ }
+ 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\3Q\u00e2\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\3\2\7\2:\n\2\f\2\16\2=\13\2\3\3\3\3\3\3"+
+ "\3\3\3\3\3\3\3\3\5\3F\n\3\3\3\5\3I\n\3\3\3\3\3\3\3\3\3\5\3O\n\3\3\3\5"+
+ "\3R\n\3\3\3\3\3\3\3\3\3\5\3X\n\3\3\3\5\3[\n\3\5\3]\n\3\3\4\7\4`\n\4\f"+
+ "\4\16\4c\13\4\3\5\3\5\3\6\7\6h\n\6\f\6\16\6k\13\6\3\7\3\7\3\b\7\bp\n\b"+
+ "\f\b\16\bs\13\b\3\t\3\t\3\n\3\n\3\n\3\n\3\n\5\n|\n\n\3\n\3\n\3\n\3\n\3"+
+ "\n\5\n\u0083\n\n\3\n\3\n\3\n\3\n\3\n\5\n\u008a\n\n\3\n\5\n\u008d\n\n\3"+
+ "\n\3\n\6\n\u0091\n\n\r\n\16\n\u0092\3\n\3\n\3\n\3\n\3\n\3\n\3\n\3\n\3"+
+ "\n\5\n\u009e\n\n\5\n\u00a0\n\n\3\13\3\13\5\13\u00a4\n\13\3\f\3\f\3\r\3"+
+ "\r\3\16\3\16\3\16\3\17\3\17\3\17\7\17\u00b0\n\17\f\17\16\17\u00b3\13\17"+
+ "\3\20\3\20\3\20\7\20\u00b8\n\20\f\20\16\20\u00bb\13\20\3\21\3\21\3\21"+
+ "\3\22\3\22\3\23\3\23\3\24\3\24\3\24\3\24\3\25\3\25\3\25\7\25\u00cb\n\25"+
+ "\f\25\16\25\u00ce\13\25\3\26\3\26\3\26\3\27\3\27\5\27\u00d5\n\27\3\30"+
+ "\3\30\3\31\3\31\3\32\3\32\3\33\3\33\3\34\3\34\3\34\3\34\2\2\35\2\4\6\b"+
+ "\n\f\16\20\22\24\26\30\32\34\36 \"$&(*,.\60\62\64\66\2\6\3\2\31\31\4\2"+
+ "\32\32\34\36\3\2\13\f\3\2\16\21\2\u00e2\2;\3\2\2\2\4\\\3\2\2\2\6a\3\2"+
+ "\2\2\bd\3\2\2\2\ni\3\2\2\2\fl\3\2\2\2\16q\3\2\2\2\20t\3\2\2\2\22\u009f"+
+ "\3\2\2\2\24\u00a3\3\2\2\2\26\u00a5\3\2\2\2\30\u00a7\3\2\2\2\32\u00a9\3"+
+ "\2\2\2\34\u00ac\3\2\2\2\36\u00b4\3\2\2\2 \u00bc\3\2\2\2\"\u00bf\3\2\2"+
+ "\2$\u00c1\3\2\2\2&\u00c3\3\2\2\2(\u00c7\3\2\2\2*\u00cf\3\2\2\2,\u00d4"+
+ "\3\2\2\2.\u00d6\3\2\2\2\60\u00d8\3\2\2\2\62\u00da\3\2\2\2\64\u00dc\3\2"+
+ "\2\2\66\u00de\3\2\2\28:\5\4\3\298\3\2\2\2:=\3\2\2\2;9\3\2\2\2;<\3\2\2"+
+ "\2<\3\3\2\2\2=;\3\2\2\2>?\5\22\n\2?@\7\31\2\2@]\3\2\2\2AB\7\3\2\2BC\5"+
+ "\6\4\2CE\7$\2\2DF\7!\2\2ED\3\2\2\2EF\3\2\2\2FH\3\2\2\2GI\5\66\34\2HG\3"+
+ "\2\2\2HI\3\2\2\2I]\3\2\2\2JK\7\4\2\2KL\5\n\6\2LN\7-\2\2MO\7!\2\2NM\3\2"+
+ "\2\2NO\3\2\2\2OQ\3\2\2\2PR\5\66\34\2QP\3\2\2\2QR\3\2\2\2R]\3\2\2\2ST\7"+
+ "\5\2\2TU\5\16\b\2UW\7K\2\2VX\7!\2\2WV\3\2\2\2WX\3\2\2\2XZ\3\2\2\2Y[\5"+
+ "\66\34\2ZY\3\2\2\2Z[\3\2\2\2[]\3\2\2\2\\>\3\2\2\2\\A\3\2\2\2\\J\3\2\2"+
+ "\2\\S\3\2\2\2]\5\3\2\2\2^`\5\b\5\2_^\3\2\2\2`c\3\2\2\2a_\3\2\2\2ab\3\2"+
+ "\2\2b\7\3\2\2\2ca\3\2\2\2de\7*\2\2e\t\3\2\2\2fh\5\f\7\2gf\3\2\2\2hk\3"+
+ "\2\2\2ig\3\2\2\2ij\3\2\2\2j\13\3\2\2\2ki\3\2\2\2lm\7/\2\2m\r\3\2\2\2n"+
+ "p\5\20\t\2on\3\2\2\2ps\3\2\2\2qo\3\2\2\2qr\3\2\2\2r\17\3\2\2\2sq\3\2\2"+
+ "\2tu\7O\2\2u\21\3\2\2\2vw\7\b\2\2wx\5\24\13\2xy\7\25\2\2y{\5\26\f\2z|"+
+ "\5\34\17\2{z\3\2\2\2{|\3\2\2\2|}\3\2\2\2}~\5*\26\2~\u00a0\3\2\2\2\177"+
+ "\u0080\7\t\2\2\u0080\u0082\5,\27\2\u0081\u0083\5\64\33\2\u0082\u0081\3"+
+ "\2\2\2\u0082\u0083\3\2\2\2\u0083\u0084\3\2\2\2\u0084\u0085\7\7\2\2\u0085"+
+ "\u0086\5\24\13\2\u0086\u0087\7\25\2\2\u0087\u0089\5\26\f\2\u0088\u008a"+
+ "\5\34\17\2\u0089\u0088\3\2\2\2\u0089\u008a\3\2\2\2\u008a\u008c\3\2\2\2"+
+ "\u008b\u008d\5\36\20\2\u008c\u008b\3\2\2\2\u008c\u008d\3\2\2\2\u008d\u00a0"+
+ "\3\2\2\2\u008e\u0090\7\n\2\2\u008f\u0091\n\2\2\2\u0090\u008f\3\2\2\2\u0091"+
+ "\u0092\3\2\2\2\u0092\u0090\3\2\2\2\u0092\u0093\3\2\2\2\u0093\u0094\3\2"+
+ "\2\2\u0094\u00a0\5*\26\2\u0095\u0096\7\23\2\2\u0096\u0097\5\24\13\2\u0097"+
+ "\u0098\5\34\17\2\u0098\u0099\5*\26\2\u0099\u00a0\3\2\2\2\u009a\u009b\7"+
+ "\24\2\2\u009b\u009d\5&\24\2\u009c\u009e\5\34\17\2\u009d\u009c\3\2\2\2"+
+ "\u009d\u009e\3\2\2\2\u009e\u00a0\3\2\2\2\u009fv\3\2\2\2\u009f\177\3\2"+
+ "\2\2\u009f\u008e\3\2\2\2\u009f\u0095\3\2\2\2\u009f\u009a\3\2\2\2\u00a0"+
+ "\23\3\2\2\2\u00a1\u00a4\5.\30\2\u00a2\u00a4\5\60\31\2\u00a3\u00a1\3\2"+
+ "\2\2\u00a3\u00a2\3\2\2\2\u00a4\25\3\2\2\2\u00a5\u00a6\5\60\31\2\u00a6"+
+ "\27\3\2\2\2\u00a7\u00a8\5.\30\2\u00a8\31\3\2\2\2\u00a9\u00aa\7\27\2\2"+
+ "\u00aa\u00ab\5\30\r\2\u00ab\33\3\2\2\2\u00ac\u00ad\5\62\32\2\u00ad\u00b1"+
+ "\5&\24\2\u00ae\u00b0\5 \21\2\u00af\u00ae\3\2\2\2\u00b0\u00b3\3\2\2\2\u00b1"+
+ "\u00af\3\2\2\2\u00b1\u00b2\3\2\2\2\u00b2\35\3\2\2\2\u00b3\u00b1\3\2\2"+
+ "\2\u00b4\u00b5\7\22\2\2\u00b5\u00b9\5\30\r\2\u00b6\u00b8\5\32\16\2\u00b7"+
+ "\u00b6\3\2\2\2\u00b8\u00bb\3\2\2\2\u00b9\u00b7\3\2\2\2\u00b9\u00ba\3\2"+
+ "\2\2\u00ba\37\3\2\2\2\u00bb\u00b9\3\2\2\2\u00bc\u00bd\7\r\2\2\u00bd\u00be"+
+ "\5&\24\2\u00be!\3\2\2\2\u00bf\u00c0\5(\25\2\u00c0#\3\2\2\2\u00c1\u00c2"+
+ "\t\3\2\2\u00c2%\3\2\2\2\u00c3\u00c4\5\"\22\2\u00c4\u00c5\7\26\2\2\u00c5"+
+ "\u00c6\5$\23\2\u00c6\'\3\2\2\2\u00c7\u00cc\5.\30\2\u00c8\u00c9\7\25\2"+
+ "\2\u00c9\u00cb\5.\30\2\u00ca\u00c8\3\2\2\2\u00cb\u00ce\3\2\2\2\u00cc\u00ca"+
+ "\3\2\2\2\u00cc\u00cd\3\2\2\2\u00cd)\3\2\2\2\u00ce\u00cc\3\2\2\2\u00cf"+
+ "\u00d0\7\6\2\2\u00d0\u00d1\5,\27\2\u00d1+\3\2\2\2\u00d2\u00d5\5.\30\2"+
+ "\u00d3\u00d5\5\60\31\2\u00d4\u00d2\3\2\2\2\u00d4\u00d3\3\2\2\2\u00d5-"+
+ "\3\2\2\2\u00d6\u00d7\7\33\2\2\u00d7/\3\2\2\2\u00d8\u00d9\7\34\2\2\u00d9"+
+ "\61\3\2\2\2\u00da\u00db\t\4\2\2\u00db\63\3\2\2\2\u00dc\u00dd\t\5\2\2\u00dd"+
+ "\65\3\2\2\2\u00de\u00df\7\30\2\2\u00df\u00e0\5,\27\2\u00e0\67\3\2\2\2"+
+ "\31;EHNQWZ\\aiq{\u0082\u0089\u008c\u0092\u009d\u009f\u00a3\u00b1\u00b9"+
+ "\u00cc\u00d4";
+ 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);
+ }
+ }
+}
\ No newline at end of file
diff --git a/dsl/src/main/java/ides/dsl/parser/IdesParser.tokens b/dsl/src/main/java/ides/dsl/parser/IdesParser.tokens
new file mode 100644
index 0000000..b058032
--- /dev/null
+++ b/dsl/src/main/java/ides/dsl/parser/IdesParser.tokens
@@ -0,0 +1,98 @@
+PY_MODE=1
+SQL_MODE=2
+SHELL_MODE=3
+AS=4
+INTO=5
+LOAD=6
+SAVE=7
+SELECT=8
+OPTIONS=9
+WHERE=10
+AND=11
+OVERWRITE=12
+APPEND=13
+ERRORIfExists=14
+IGNORE=15
+PARTITIONBY=16
+CONNECT=17
+SET=18
+DOT=19
+EQ=20
+COMMA=21
+OUT=22
+EOQ=23
+MUMERIC=24
+IDENTIFIER=25
+QUOTED_TEXT=26
+STRING_TEXT=27
+BLOCK_STRING_TEXT=28
+LINE_COMMENT=29
+BLOCK_COMMENT=30
+NL=31
+WS=32
+UNRECOGNIZED=33
+EXIT_PY=34
+PY_RETURN=35
+PY_STRING=36
+VARIABLE=37
+VariableRef=38
+PY_NonEnd=39
+PY_TEXT=40
+PY_COMMENT=41
+PY_WS=42
+EXIT_SQL=43
+SQL_RETURN=44
+SQL_TEXT=45
+DDL=46
+DML=47
+Profile=48
+SQL_COMMENT1=49
+SQL_COMMENT2=50
+SQL_COMMENT_BLOCK=51
+CreatStatement=52
+AlterStatement=53
+DropStatement=54
+RenameStatement=55
+TruncateStatement=56
+SelectStatement=57
+InsertStatement=58
+UpdateStatement=59
+DeleteStatement=60
+ReplaceStatement=61
+UseStatement=62
+ShowStatement=63
+ExplainStatement=64
+SetStatement=65
+CallStatement=66
+OpenStatement=67
+CloseStatement=68
+TransactionStatement=69
+CommitStatement=70
+RollbackStatement=71
+SQL_WS=72
+EXIT_SH=73
+SH_RETURN=74
+SH_STRING=75
+SH_NonEnd=76
+SHELL_TEXT=77
+SEHLL_COMMENT=78
+SH_WS=79
+'as'=4
+'into'=5
+'load'=6
+'save'=7
+'select'=8
+'options'=9
+'where'=10
+'and'=11
+'overwrite'=12
+'append'=13
+'errorIfExists'=14
+'ignore'=15
+'connect'=17
+'set'=18
+'.'=19
+'='=20
+','=21
+'>'=22
+';'=23
diff --git a/dsl/src/main/java/ides/dsl/parser/IdesParserBaseListener.java b/dsl/src/main/java/ides/dsl/parser/IdesParserBaseListener.java
new file mode 100644
index 0000000..dff6314
--- /dev/null
+++ b/dsl/src/main/java/ides/dsl/parser/IdesParserBaseListener.java
@@ -0,0 +1,449 @@
+// Generated from /Users/sgr/develop/github/ides/dsl/src/main/resources/IdesParser.g4 by ANTLR 4.7.2
+
+ package ides.dsl.parser;
+
+
+import org.antlr.v4.runtime.ParserRuleContext;
+import org.antlr.v4.runtime.tree.ErrorNode;
+import org.antlr.v4.runtime.tree.TerminalNode;
+
+/**
+ * This class provides an empty implementation of {@link IdesParserListener},
+ * which can be extended to create a listener which only needs to handle a subset
+ * of the available methods.
+ */
+public class IdesParserBaseListener implements IdesParserListener {
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterStatement(IdesParser.StatementContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitStatement(IdesParser.StatementContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterIql(IdesParser.IqlContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitIql(IdesParser.IqlContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterPy(IdesParser.PyContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitPy(IdesParser.PyContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterSql(IdesParser.SqlContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitSql(IdesParser.SqlContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterSh(IdesParser.ShContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitSh(IdesParser.ShContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterPythonCode(IdesParser.PythonCodeContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitPythonCode(IdesParser.PythonCodeContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterPyStatement(IdesParser.PyStatementContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitPyStatement(IdesParser.PyStatementContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterSqlCode(IdesParser.SqlCodeContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitSqlCode(IdesParser.SqlCodeContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterSqlStatement(IdesParser.SqlStatementContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitSqlStatement(IdesParser.SqlStatementContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterShellCode(IdesParser.ShellCodeContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitShellCode(IdesParser.ShellCodeContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterShellStatement(IdesParser.ShellStatementContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitShellStatement(IdesParser.ShellStatementContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterLoad(IdesParser.LoadContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitLoad(IdesParser.LoadContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterSave(IdesParser.SaveContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitSave(IdesParser.SaveContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterSelect(IdesParser.SelectContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitSelect(IdesParser.SelectContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterConnect(IdesParser.ConnectContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitConnect(IdesParser.ConnectContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterSet(IdesParser.SetContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitSet(IdesParser.SetContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterFormat(IdesParser.FormatContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitFormat(IdesParser.FormatContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterPath(IdesParser.PathContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitPath(IdesParser.PathContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterCol(IdesParser.ColContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitCol(IdesParser.ColContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterColGroup(IdesParser.ColGroupContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitColGroup(IdesParser.ColGroupContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterWhereExpressions(IdesParser.WhereExpressionsContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitWhereExpressions(IdesParser.WhereExpressionsContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterPartitionbyExpression(IdesParser.PartitionbyExpressionContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitPartitionbyExpression(IdesParser.PartitionbyExpressionContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterBooleanExpression(IdesParser.BooleanExpressionContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitBooleanExpression(IdesParser.BooleanExpressionContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterKeyName(IdesParser.KeyNameContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitKeyName(IdesParser.KeyNameContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterValueName(IdesParser.ValueNameContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitValueName(IdesParser.ValueNameContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterExpression(IdesParser.ExpressionContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitExpression(IdesParser.ExpressionContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterQualifiedName(IdesParser.QualifiedNameContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitQualifiedName(IdesParser.QualifiedNameContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterAsAsset(IdesParser.AsAssetContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitAsAsset(IdesParser.AsAssetContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterAssetName(IdesParser.AssetNameContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitAssetName(IdesParser.AssetNameContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterIdentifier(IdesParser.IdentifierContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitIdentifier(IdesParser.IdentifierContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterQuotedIdentifier(IdesParser.QuotedIdentifierContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitQuotedIdentifier(IdesParser.QuotedIdentifierContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterWhere(IdesParser.WhereContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitWhere(IdesParser.WhereContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterSaveMode(IdesParser.SaveModeContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitSaveMode(IdesParser.SaveModeContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterOutTable(IdesParser.OutTableContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitOutTable(IdesParser.OutTableContext ctx) { }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterEveryRule(ParserRuleContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitEveryRule(ParserRuleContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void visitTerminal(TerminalNode node) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void visitErrorNode(ErrorNode node) { }
+}
\ No newline at end of file
diff --git a/dsl/src/main/java/ides/dsl/parser/IdesParserBaseVisitor.java b/dsl/src/main/java/ides/dsl/parser/IdesParserBaseVisitor.java
new file mode 100644
index 0000000..146922b
--- /dev/null
+++ b/dsl/src/main/java/ides/dsl/parser/IdesParserBaseVisitor.java
@@ -0,0 +1,254 @@
+// Generated from /Users/sgr/develop/github/ides/dsl/src/main/resources/IdesParser.g4 by ANTLR 4.7.2
+
+ package ides.dsl.parser;
+
+import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;
+
+/**
+ * This class provides an empty implementation of {@link IdesParserVisitor},
+ * which can be extended to create a visitor which only needs to handle a subset
+ * of the available methods.
+ *
+ * @param The return type of the visit operation. Use {@link Void} for
+ * operations with no return type.
+ */
+public class IdesParserBaseVisitor extends AbstractParseTreeVisitor implements IdesParserVisitor {
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitStatement(IdesParser.StatementContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitIql(IdesParser.IqlContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitPy(IdesParser.PyContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitSql(IdesParser.SqlContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitSh(IdesParser.ShContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitPythonCode(IdesParser.PythonCodeContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitPyStatement(IdesParser.PyStatementContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitSqlCode(IdesParser.SqlCodeContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitSqlStatement(IdesParser.SqlStatementContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitShellCode(IdesParser.ShellCodeContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitShellStatement(IdesParser.ShellStatementContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitLoad(IdesParser.LoadContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitSave(IdesParser.SaveContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitSelect(IdesParser.SelectContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitConnect(IdesParser.ConnectContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitSet(IdesParser.SetContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitFormat(IdesParser.FormatContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitPath(IdesParser.PathContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitCol(IdesParser.ColContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitColGroup(IdesParser.ColGroupContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitWhereExpressions(IdesParser.WhereExpressionsContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitPartitionbyExpression(IdesParser.PartitionbyExpressionContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitBooleanExpression(IdesParser.BooleanExpressionContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitKeyName(IdesParser.KeyNameContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitValueName(IdesParser.ValueNameContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitExpression(IdesParser.ExpressionContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitQualifiedName(IdesParser.QualifiedNameContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitAsAsset(IdesParser.AsAssetContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitAssetName(IdesParser.AssetNameContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitIdentifier(IdesParser.IdentifierContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitQuotedIdentifier(IdesParser.QuotedIdentifierContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitWhere(IdesParser.WhereContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitSaveMode(IdesParser.SaveModeContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitOutTable(IdesParser.OutTableContext ctx) { return visitChildren(ctx); }
+}
\ No newline at end of file
diff --git a/dsl/src/main/java/ides/dsl/parser/IdesParserListener.java b/dsl/src/main/java/ides/dsl/parser/IdesParserListener.java
new file mode 100644
index 0000000..03d13e4
--- /dev/null
+++ b/dsl/src/main/java/ides/dsl/parser/IdesParserListener.java
@@ -0,0 +1,370 @@
+// Generated from /Users/sgr/develop/github/ides/dsl/src/main/resources/IdesParser.g4 by ANTLR 4.7.2
+
+ package ides.dsl.parser;
+
+import org.antlr.v4.runtime.tree.ParseTreeListener;
+
+/**
+ * This interface defines a complete listener for a parse tree produced by
+ * {@link IdesParser}.
+ */
+public interface IdesParserListener extends ParseTreeListener {
+ /**
+ * Enter a parse tree produced by {@link IdesParser#statement}.
+ * @param ctx the parse tree
+ */
+ void enterStatement(IdesParser.StatementContext ctx);
+ /**
+ * Exit a parse tree produced by {@link IdesParser#statement}.
+ * @param ctx the parse tree
+ */
+ void exitStatement(IdesParser.StatementContext ctx);
+ /**
+ * Enter a parse tree produced by the {@code Iql}
+ * labeled alternative in {@link IdesParser#script}.
+ * @param ctx the parse tree
+ */
+ void enterIql(IdesParser.IqlContext ctx);
+ /**
+ * Exit a parse tree produced by the {@code Iql}
+ * labeled alternative in {@link IdesParser#script}.
+ * @param ctx the parse tree
+ */
+ void exitIql(IdesParser.IqlContext ctx);
+ /**
+ * Enter a parse tree produced by the {@code Py}
+ * labeled alternative in {@link IdesParser#script}.
+ * @param ctx the parse tree
+ */
+ void enterPy(IdesParser.PyContext ctx);
+ /**
+ * Exit a parse tree produced by the {@code Py}
+ * labeled alternative in {@link IdesParser#script}.
+ * @param ctx the parse tree
+ */
+ void exitPy(IdesParser.PyContext ctx);
+ /**
+ * Enter a parse tree produced by the {@code Sql}
+ * labeled alternative in {@link IdesParser#script}.
+ * @param ctx the parse tree
+ */
+ void enterSql(IdesParser.SqlContext ctx);
+ /**
+ * Exit a parse tree produced by the {@code Sql}
+ * labeled alternative in {@link IdesParser#script}.
+ * @param ctx the parse tree
+ */
+ void exitSql(IdesParser.SqlContext ctx);
+ /**
+ * Enter a parse tree produced by the {@code Sh}
+ * labeled alternative in {@link IdesParser#script}.
+ * @param ctx the parse tree
+ */
+ void enterSh(IdesParser.ShContext ctx);
+ /**
+ * Exit a parse tree produced by the {@code Sh}
+ * labeled alternative in {@link IdesParser#script}.
+ * @param ctx the parse tree
+ */
+ void exitSh(IdesParser.ShContext ctx);
+ /**
+ * Enter a parse tree produced by {@link IdesParser#pythonCode}.
+ * @param ctx the parse tree
+ */
+ void enterPythonCode(IdesParser.PythonCodeContext ctx);
+ /**
+ * Exit a parse tree produced by {@link IdesParser#pythonCode}.
+ * @param ctx the parse tree
+ */
+ void exitPythonCode(IdesParser.PythonCodeContext ctx);
+ /**
+ * Enter a parse tree produced by {@link IdesParser#pyStatement}.
+ * @param ctx the parse tree
+ */
+ void enterPyStatement(IdesParser.PyStatementContext ctx);
+ /**
+ * Exit a parse tree produced by {@link IdesParser#pyStatement}.
+ * @param ctx the parse tree
+ */
+ void exitPyStatement(IdesParser.PyStatementContext ctx);
+ /**
+ * Enter a parse tree produced by {@link IdesParser#sqlCode}.
+ * @param ctx the parse tree
+ */
+ void enterSqlCode(IdesParser.SqlCodeContext ctx);
+ /**
+ * Exit a parse tree produced by {@link IdesParser#sqlCode}.
+ * @param ctx the parse tree
+ */
+ void exitSqlCode(IdesParser.SqlCodeContext ctx);
+ /**
+ * Enter a parse tree produced by {@link IdesParser#sqlStatement}.
+ * @param ctx the parse tree
+ */
+ void enterSqlStatement(IdesParser.SqlStatementContext ctx);
+ /**
+ * Exit a parse tree produced by {@link IdesParser#sqlStatement}.
+ * @param ctx the parse tree
+ */
+ void exitSqlStatement(IdesParser.SqlStatementContext ctx);
+ /**
+ * Enter a parse tree produced by {@link IdesParser#shellCode}.
+ * @param ctx the parse tree
+ */
+ void enterShellCode(IdesParser.ShellCodeContext ctx);
+ /**
+ * Exit a parse tree produced by {@link IdesParser#shellCode}.
+ * @param ctx the parse tree
+ */
+ void exitShellCode(IdesParser.ShellCodeContext ctx);
+ /**
+ * Enter a parse tree produced by {@link IdesParser#shellStatement}.
+ * @param ctx the parse tree
+ */
+ void enterShellStatement(IdesParser.ShellStatementContext ctx);
+ /**
+ * Exit a parse tree produced by {@link IdesParser#shellStatement}.
+ * @param ctx the parse tree
+ */
+ void exitShellStatement(IdesParser.ShellStatementContext ctx);
+ /**
+ * Enter a parse tree produced by the {@code Load}
+ * labeled alternative in {@link IdesParser#query}.
+ * @param ctx the parse tree
+ */
+ void enterLoad(IdesParser.LoadContext ctx);
+ /**
+ * Exit a parse tree produced by the {@code Load}
+ * labeled alternative in {@link IdesParser#query}.
+ * @param ctx the parse tree
+ */
+ void exitLoad(IdesParser.LoadContext ctx);
+ /**
+ * Enter a parse tree produced by the {@code Save}
+ * labeled alternative in {@link IdesParser#query}.
+ * @param ctx the parse tree
+ */
+ void enterSave(IdesParser.SaveContext ctx);
+ /**
+ * Exit a parse tree produced by the {@code Save}
+ * labeled alternative in {@link IdesParser#query}.
+ * @param ctx the parse tree
+ */
+ void exitSave(IdesParser.SaveContext ctx);
+ /**
+ * Enter a parse tree produced by the {@code Select}
+ * labeled alternative in {@link IdesParser#query}.
+ * @param ctx the parse tree
+ */
+ void enterSelect(IdesParser.SelectContext ctx);
+ /**
+ * Exit a parse tree produced by the {@code Select}
+ * labeled alternative in {@link IdesParser#query}.
+ * @param ctx the parse tree
+ */
+ void exitSelect(IdesParser.SelectContext ctx);
+ /**
+ * Enter a parse tree produced by the {@code Connect}
+ * labeled alternative in {@link IdesParser#query}.
+ * @param ctx the parse tree
+ */
+ void enterConnect(IdesParser.ConnectContext ctx);
+ /**
+ * Exit a parse tree produced by the {@code Connect}
+ * labeled alternative in {@link IdesParser#query}.
+ * @param ctx the parse tree
+ */
+ void exitConnect(IdesParser.ConnectContext ctx);
+ /**
+ * Enter a parse tree produced by the {@code Set}
+ * labeled alternative in {@link IdesParser#query}.
+ * @param ctx the parse tree
+ */
+ void enterSet(IdesParser.SetContext ctx);
+ /**
+ * Exit a parse tree produced by the {@code Set}
+ * labeled alternative in {@link IdesParser#query}.
+ * @param ctx the parse tree
+ */
+ void exitSet(IdesParser.SetContext ctx);
+ /**
+ * Enter a parse tree produced by {@link IdesParser#format}.
+ * @param ctx the parse tree
+ */
+ void enterFormat(IdesParser.FormatContext ctx);
+ /**
+ * Exit a parse tree produced by {@link IdesParser#format}.
+ * @param ctx the parse tree
+ */
+ void exitFormat(IdesParser.FormatContext ctx);
+ /**
+ * Enter a parse tree produced by {@link IdesParser#path}.
+ * @param ctx the parse tree
+ */
+ void enterPath(IdesParser.PathContext ctx);
+ /**
+ * Exit a parse tree produced by {@link IdesParser#path}.
+ * @param ctx the parse tree
+ */
+ void exitPath(IdesParser.PathContext ctx);
+ /**
+ * Enter a parse tree produced by {@link IdesParser#col}.
+ * @param ctx the parse tree
+ */
+ void enterCol(IdesParser.ColContext ctx);
+ /**
+ * Exit a parse tree produced by {@link IdesParser#col}.
+ * @param ctx the parse tree
+ */
+ void exitCol(IdesParser.ColContext ctx);
+ /**
+ * Enter a parse tree produced by {@link IdesParser#colGroup}.
+ * @param ctx the parse tree
+ */
+ void enterColGroup(IdesParser.ColGroupContext ctx);
+ /**
+ * Exit a parse tree produced by {@link IdesParser#colGroup}.
+ * @param ctx the parse tree
+ */
+ void exitColGroup(IdesParser.ColGroupContext ctx);
+ /**
+ * Enter a parse tree produced by {@link IdesParser#whereExpressions}.
+ * @param ctx the parse tree
+ */
+ void enterWhereExpressions(IdesParser.WhereExpressionsContext ctx);
+ /**
+ * Exit a parse tree produced by {@link IdesParser#whereExpressions}.
+ * @param ctx the parse tree
+ */
+ void exitWhereExpressions(IdesParser.WhereExpressionsContext ctx);
+ /**
+ * Enter a parse tree produced by {@link IdesParser#partitionbyExpression}.
+ * @param ctx the parse tree
+ */
+ void enterPartitionbyExpression(IdesParser.PartitionbyExpressionContext ctx);
+ /**
+ * Exit a parse tree produced by {@link IdesParser#partitionbyExpression}.
+ * @param ctx the parse tree
+ */
+ void exitPartitionbyExpression(IdesParser.PartitionbyExpressionContext ctx);
+ /**
+ * Enter a parse tree produced by {@link IdesParser#booleanExpression}.
+ * @param ctx the parse tree
+ */
+ void enterBooleanExpression(IdesParser.BooleanExpressionContext ctx);
+ /**
+ * Exit a parse tree produced by {@link IdesParser#booleanExpression}.
+ * @param ctx the parse tree
+ */
+ void exitBooleanExpression(IdesParser.BooleanExpressionContext ctx);
+ /**
+ * Enter a parse tree produced by {@link IdesParser#keyName}.
+ * @param ctx the parse tree
+ */
+ void enterKeyName(IdesParser.KeyNameContext ctx);
+ /**
+ * Exit a parse tree produced by {@link IdesParser#keyName}.
+ * @param ctx the parse tree
+ */
+ void exitKeyName(IdesParser.KeyNameContext ctx);
+ /**
+ * Enter a parse tree produced by {@link IdesParser#valueName}.
+ * @param ctx the parse tree
+ */
+ void enterValueName(IdesParser.ValueNameContext ctx);
+ /**
+ * Exit a parse tree produced by {@link IdesParser#valueName}.
+ * @param ctx the parse tree
+ */
+ void exitValueName(IdesParser.ValueNameContext ctx);
+ /**
+ * Enter a parse tree produced by {@link IdesParser#expression}.
+ * @param ctx the parse tree
+ */
+ void enterExpression(IdesParser.ExpressionContext ctx);
+ /**
+ * Exit a parse tree produced by {@link IdesParser#expression}.
+ * @param ctx the parse tree
+ */
+ void exitExpression(IdesParser.ExpressionContext ctx);
+ /**
+ * Enter a parse tree produced by {@link IdesParser#qualifiedName}.
+ * @param ctx the parse tree
+ */
+ void enterQualifiedName(IdesParser.QualifiedNameContext ctx);
+ /**
+ * Exit a parse tree produced by {@link IdesParser#qualifiedName}.
+ * @param ctx the parse tree
+ */
+ void exitQualifiedName(IdesParser.QualifiedNameContext ctx);
+ /**
+ * Enter a parse tree produced by {@link IdesParser#asAsset}.
+ * @param ctx the parse tree
+ */
+ void enterAsAsset(IdesParser.AsAssetContext ctx);
+ /**
+ * Exit a parse tree produced by {@link IdesParser#asAsset}.
+ * @param ctx the parse tree
+ */
+ void exitAsAsset(IdesParser.AsAssetContext ctx);
+ /**
+ * Enter a parse tree produced by {@link IdesParser#assetName}.
+ * @param ctx the parse tree
+ */
+ void enterAssetName(IdesParser.AssetNameContext ctx);
+ /**
+ * Exit a parse tree produced by {@link IdesParser#assetName}.
+ * @param ctx the parse tree
+ */
+ void exitAssetName(IdesParser.AssetNameContext ctx);
+ /**
+ * Enter a parse tree produced by {@link IdesParser#identifier}.
+ * @param ctx the parse tree
+ */
+ void enterIdentifier(IdesParser.IdentifierContext ctx);
+ /**
+ * Exit a parse tree produced by {@link IdesParser#identifier}.
+ * @param ctx the parse tree
+ */
+ void exitIdentifier(IdesParser.IdentifierContext ctx);
+ /**
+ * Enter a parse tree produced by {@link IdesParser#quotedIdentifier}.
+ * @param ctx the parse tree
+ */
+ void enterQuotedIdentifier(IdesParser.QuotedIdentifierContext ctx);
+ /**
+ * Exit a parse tree produced by {@link IdesParser#quotedIdentifier}.
+ * @param ctx the parse tree
+ */
+ void exitQuotedIdentifier(IdesParser.QuotedIdentifierContext ctx);
+ /**
+ * Enter a parse tree produced by {@link IdesParser#where}.
+ * @param ctx the parse tree
+ */
+ void enterWhere(IdesParser.WhereContext ctx);
+ /**
+ * Exit a parse tree produced by {@link IdesParser#where}.
+ * @param ctx the parse tree
+ */
+ void exitWhere(IdesParser.WhereContext ctx);
+ /**
+ * Enter a parse tree produced by {@link IdesParser#saveMode}.
+ * @param ctx the parse tree
+ */
+ void enterSaveMode(IdesParser.SaveModeContext ctx);
+ /**
+ * Exit a parse tree produced by {@link IdesParser#saveMode}.
+ * @param ctx the parse tree
+ */
+ void exitSaveMode(IdesParser.SaveModeContext ctx);
+ /**
+ * Enter a parse tree produced by {@link IdesParser#outTable}.
+ * @param ctx the parse tree
+ */
+ void enterOutTable(IdesParser.OutTableContext ctx);
+ /**
+ * Exit a parse tree produced by {@link IdesParser#outTable}.
+ * @param ctx the parse tree
+ */
+ void exitOutTable(IdesParser.OutTableContext ctx);
+}
\ No newline at end of file
diff --git a/dsl/src/main/java/ides/dsl/parser/IdesParserVisitor.java b/dsl/src/main/java/ides/dsl/parser/IdesParserVisitor.java
new file mode 100644
index 0000000..04daf44
--- /dev/null
+++ b/dsl/src/main/java/ides/dsl/parser/IdesParserVisitor.java
@@ -0,0 +1,228 @@
+// Generated from /Users/sgr/develop/github/ides/dsl/src/main/resources/IdesParser.g4 by ANTLR 4.7.2
+
+ package ides.dsl.parser;
+
+import org.antlr.v4.runtime.tree.ParseTreeVisitor;
+
+/**
+ * This interface defines a complete generic visitor for a parse tree produced
+ * by {@link IdesParser}.
+ *
+ * @param The return type of the visit operation. Use {@link Void} for
+ * operations with no return type.
+ */
+public interface IdesParserVisitor extends ParseTreeVisitor {
+ /**
+ * Visit a parse tree produced by {@link IdesParser#statement}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitStatement(IdesParser.StatementContext ctx);
+ /**
+ * Visit a parse tree produced by the {@code Iql}
+ * labeled alternative in {@link IdesParser#script}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitIql(IdesParser.IqlContext ctx);
+ /**
+ * Visit a parse tree produced by the {@code Py}
+ * labeled alternative in {@link IdesParser#script}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitPy(IdesParser.PyContext ctx);
+ /**
+ * Visit a parse tree produced by the {@code Sql}
+ * labeled alternative in {@link IdesParser#script}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitSql(IdesParser.SqlContext ctx);
+ /**
+ * Visit a parse tree produced by the {@code Sh}
+ * labeled alternative in {@link IdesParser#script}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitSh(IdesParser.ShContext ctx);
+ /**
+ * Visit a parse tree produced by {@link IdesParser#pythonCode}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitPythonCode(IdesParser.PythonCodeContext ctx);
+ /**
+ * Visit a parse tree produced by {@link IdesParser#pyStatement}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitPyStatement(IdesParser.PyStatementContext ctx);
+ /**
+ * Visit a parse tree produced by {@link IdesParser#sqlCode}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitSqlCode(IdesParser.SqlCodeContext ctx);
+ /**
+ * Visit a parse tree produced by {@link IdesParser#sqlStatement}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitSqlStatement(IdesParser.SqlStatementContext ctx);
+ /**
+ * Visit a parse tree produced by {@link IdesParser#shellCode}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitShellCode(IdesParser.ShellCodeContext ctx);
+ /**
+ * Visit a parse tree produced by {@link IdesParser#shellStatement}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitShellStatement(IdesParser.ShellStatementContext ctx);
+ /**
+ * Visit a parse tree produced by the {@code Load}
+ * labeled alternative in {@link IdesParser#query}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitLoad(IdesParser.LoadContext ctx);
+ /**
+ * Visit a parse tree produced by the {@code Save}
+ * labeled alternative in {@link IdesParser#query}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitSave(IdesParser.SaveContext ctx);
+ /**
+ * Visit a parse tree produced by the {@code Select}
+ * labeled alternative in {@link IdesParser#query}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitSelect(IdesParser.SelectContext ctx);
+ /**
+ * Visit a parse tree produced by the {@code Connect}
+ * labeled alternative in {@link IdesParser#query}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitConnect(IdesParser.ConnectContext ctx);
+ /**
+ * Visit a parse tree produced by the {@code Set}
+ * labeled alternative in {@link IdesParser#query}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitSet(IdesParser.SetContext ctx);
+ /**
+ * Visit a parse tree produced by {@link IdesParser#format}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitFormat(IdesParser.FormatContext ctx);
+ /**
+ * Visit a parse tree produced by {@link IdesParser#path}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitPath(IdesParser.PathContext ctx);
+ /**
+ * Visit a parse tree produced by {@link IdesParser#col}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitCol(IdesParser.ColContext ctx);
+ /**
+ * Visit a parse tree produced by {@link IdesParser#colGroup}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitColGroup(IdesParser.ColGroupContext ctx);
+ /**
+ * Visit a parse tree produced by {@link IdesParser#whereExpressions}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitWhereExpressions(IdesParser.WhereExpressionsContext ctx);
+ /**
+ * Visit a parse tree produced by {@link IdesParser#partitionbyExpression}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitPartitionbyExpression(IdesParser.PartitionbyExpressionContext ctx);
+ /**
+ * Visit a parse tree produced by {@link IdesParser#booleanExpression}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitBooleanExpression(IdesParser.BooleanExpressionContext ctx);
+ /**
+ * Visit a parse tree produced by {@link IdesParser#keyName}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitKeyName(IdesParser.KeyNameContext ctx);
+ /**
+ * Visit a parse tree produced by {@link IdesParser#valueName}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitValueName(IdesParser.ValueNameContext ctx);
+ /**
+ * Visit a parse tree produced by {@link IdesParser#expression}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitExpression(IdesParser.ExpressionContext ctx);
+ /**
+ * Visit a parse tree produced by {@link IdesParser#qualifiedName}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitQualifiedName(IdesParser.QualifiedNameContext ctx);
+ /**
+ * Visit a parse tree produced by {@link IdesParser#asAsset}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitAsAsset(IdesParser.AsAssetContext ctx);
+ /**
+ * Visit a parse tree produced by {@link IdesParser#assetName}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitAssetName(IdesParser.AssetNameContext ctx);
+ /**
+ * Visit a parse tree produced by {@link IdesParser#identifier}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitIdentifier(IdesParser.IdentifierContext ctx);
+ /**
+ * Visit a parse tree produced by {@link IdesParser#quotedIdentifier}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitQuotedIdentifier(IdesParser.QuotedIdentifierContext ctx);
+ /**
+ * Visit a parse tree produced by {@link IdesParser#where}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitWhere(IdesParser.WhereContext ctx);
+ /**
+ * Visit a parse tree produced by {@link IdesParser#saveMode}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitSaveMode(IdesParser.SaveModeContext ctx);
+ /**
+ * Visit a parse tree produced by {@link IdesParser#outTable}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitOutTable(IdesParser.OutTableContext ctx);
+}
\ No newline at end of file
diff --git a/dsl/src/main/resources/IdesDsl.g4 b/dsl/src/main/resources/IdesDsl.g4
deleted file mode 100644
index d216338..0000000
--- a/dsl/src/main/resources/IdesDsl.g4
+++ /dev/null
@@ -1,185 +0,0 @@
-grammar IdesDsl;
-
-@header {
- package ides.dsl.parser;
-}
-
-// 一个脚本以0到n条query语句组成
-statement
- : script*
- ;
-
-script
- : query EOQ # Sql
- ;
-
-// query语句规则
-query
- : LOAD format DOT path whereExpressions? asAsset # Load
- | SAVE assetName saveMode? INTO format DOT path whereExpressions? partitionbyExpression? # Save
- | SELECT ~(EOQ)+ asAsset # Select
- | CONNECT format whereExpressions asAsset # Connect
- | SET expression whereExpressions? # Set
- ;
-
-format
- : identifier
- | quotedIdentifier
- ;
-
-path
- : quotedIdentifier
- ;
-
-col
- : identifier
- ;
-
-colGroup
- : ',' col
- ;
-
-whereExpressions
- : where expression booleanExpression*
- ;
-
-partitionbyExpression
- : PARTITIONBY col colGroup*
- ;
-
-booleanExpression
- : AND expression
- ;
-
-keyName
- : qualifiedName
- ;
-valueName
- : MUMERIC
- | STRING_TEXT
- | BLOCK_STRING_TEXT
- | QUOTED_TEXT
- ;
-
-expression
- : keyName '=' valueName
- ;
-
-qualifiedName
- : identifier ('.' identifier)*
- ;
-
-asAsset
- : AS assetName
- ;
-
-assetName
- : identifier
- | quotedIdentifier
- ;
-
-identifier
- : IDENTIFIER
- ;
-
-quotedIdentifier
- : QUOTED_TEXT
- ;
-
-where: OPTIONS|WHERE;
-saveMode: OVERWRITE|APPEND|ERRORIfExists|IGNORE;
-
-
-//============================
-// Start of the keywords list
-//============================
-AS: 'as';
-INTO: 'into';
-LOAD: 'load';
-SAVE: 'save';
-SELECT: 'select';
-OPTIONS:'options';
-WHERE: 'where';
-AND: 'and';
-OVERWRITE: 'overwrite';
-APPEND: 'append';
-ERRORIfExists: 'errorIfExists';
-IGNORE: 'ignore';
-PARTITIONBY: 'partitionBy'|'partitionby';
-CONNECT: 'connect';
-SET: 'set';
-//============================
-// End of the keywords list
-//============================
-
-DOT
- : '.'
- ;
-
-// end of query
-EOQ
- : ';'
- ;
-
-MUMERIC
- : ('-'|'+')? DIGIT* '.'? DIGIT+
- ;
-
-// 标识符规则: 数字,字母和下划线(_)组成,数字不能打头,下划线不能单独打头
-IDENTIFIER
- : LETTER(DIGIT | LETTER | '_')* // 字母开头后面接任意个(数字|字母|下划线) a1 ab1 a_1 ab_
- | '_'(DIGIT | LETTER | '_')+ // _开头后面至少接一个(数字|字母|下划线) _1 _a _a1 _1a
- ;
-
-// 匹配`x` x是非`(可以通过\转义)的任何字符
-QUOTED_TEXT
- : '`' ( ~('`'|'\\') | ('\\' .) )*? '`'
- ;
-
-STRING_TEXT
- : '\'' ( ~('\''|'\\') | ('\\' .) )*? '\''
- | '"' ( ~('"'|'\\') | ('\\' .) )*? '"'
- ;
-
-BLOCK_STRING_TEXT
- : '\'\'\'' .*? '\'\'\''
- | '"""' .*? '"""'
- ;
-
-// fragment:该规则本身不是一个词法符号,它只会被其他词法规则使用
-fragment
-DIGIT
- : [0-9] // 定义数字
- ;
-
-fragment
-LETTER
- : [a-zA-Z] // 定义字母
- ;
-
-// ~x 是指除x外的任何字符
-LINE_COMMENT
- : '--' ~[\r\n]* ('\n' | '\r\n')? -> channel(HIDDEN) // 单行注释
- ;
-
-BLOCK_COMMENT
- : '/*' .*? '*/' -> channel(HIDDEN) // 多行注释
- ;
-
-// match both UNIX and Windows newLines
-//NL
-// : '\n'
-// | '\r\n'
-// ;
-
-// channel(HIDDEN) 隐藏通道会 忽略却保留 匹配的词法符号
-WS
- : [ \r\n\t]+ -> channel(HIDDEN) // 匹配一个或者多个空白字符
- ;
-
-// Catch-all for anything we can't recognize.
-// We use this to be able to ignore and recover all the text
-// when splitting statements with DelimiterLexer
-UNRECOGNIZED
- : .
- ;
\ No newline at end of file
diff --git a/dsl/src/main/resources/IdesLexer.g4 b/dsl/src/main/resources/IdesLexer.g4
new file mode 100644
index 0000000..f28cac2
--- /dev/null
+++ b/dsl/src/main/resources/IdesLexer.g4
@@ -0,0 +1,299 @@
+lexer grammar IdesLexer;
+
+@header {
+ package ides.dsl.parser;
+}
+
+channels { COMMENT }
+
+PY_MODE : '%python'('(' (IDENTIFIER|QUOTED_TEXT)? ')')? NL -> pushMode(PYTHON_LAN);
+SQL_MODE : '%sql'('(' (IDENTIFIER|QUOTED_TEXT)? ')')? NL -> pushMode(SQL_LAN);
+SHELL_MODE : '%sh' NL -> pushMode(SHELL_LAN);
+
+//============================
+// Start of the keywords list
+//============================
+AS: 'as';
+INTO: 'into';
+LOAD: 'load';
+SAVE: 'save';
+SELECT: 'select';
+OPTIONS:'options';
+WHERE: 'where';
+AND: 'and';
+OVERWRITE: 'overwrite';
+APPEND: 'append';
+ERRORIfExists: 'errorIfExists';
+IGNORE: 'ignore';
+PARTITIONBY: 'partitionBy'|'partitionby';
+CONNECT: 'connect';
+SET: 'set';
+//============================
+// End of the keywords list
+//============================
+
+DOT
+ : '.'
+ ;
+
+EQ
+ : '='
+ ;
+
+COMMA
+ : ','
+ ;
+
+OUT
+ : '>'
+ ;
+
+// end of query
+EOQ
+ : ';'
+ ;
+
+MUMERIC
+ : ('-'|'+')? DIGIT* '.'? DIGIT+
+ ;
+
+// 标识符规则: 数字,字母和下划线(_)组成,数字不能打头,下划线不能单独打头
+IDENTIFIER
+ : LETTER(DIGIT | LETTER | '_')* // 字母开头后面接任意个(数字|字母|下划线) a1 ab1 a_1 ab_
+ | '_'(DIGIT | LETTER | '_')+ // _开头后面至少接一个(数字|字母|下划线) _1 _a _a1 _1a
+ ;
+
+// 匹配`x` x是非`(可以通过\转义)的任何字符
+QUOTED_TEXT
+ : '`' ( ~('`'|'\\') | ('\\' .) )*? '`'
+ ;
+
+STRING_TEXT
+ : '\'' ( ~('\''|'\\') | ('\\' .) )*? '\''
+ | '"' ( ~('"'|'\\') | ('\\' .) )*? '"'
+ ;
+
+BLOCK_STRING_TEXT
+ : '\'\'\'' .*? '\'\'\''
+ | '"""' .*? '"""'
+ ;
+
+// fragment:该规则本身不是一个词法符号,它只会被其他词法规则使用
+fragment
+DIGIT
+ : [0-9] // 定义数字
+ ;
+
+fragment
+LETTER
+ : [a-zA-Z] // 定义字母
+ ;
+
+// ~x 是指除x外的任何字符
+LINE_COMMENT
+ : '--' ~[\r\n]* NL? -> channel(HIDDEN) // 单行注释
+ ;
+
+BLOCK_COMMENT
+ : '/*' .*? '*/' -> channel(HIDDEN) // 多行注释
+ ;
+
+// match both UNIX and Windows newLines
+NL
+ : '\n'
+ | '\r\n'
+ ;
+
+// channel(HIDDEN) 隐藏通道会 忽略却保留 匹配的词法符号
+WS
+ : [ \r\n\t]+ -> channel(HIDDEN) // 匹配一个或者多个空白字符
+ ;
+
+// Catch-all for anything we can't recognize.
+// We use this to be able to ignore and recover all the text
+// when splitting statements with DelimiterLexer
+UNRECOGNIZED
+ : .
+ ;
+
+
+//============================
+// Start of the python mode
+//============================
+mode PYTHON_LAN;
+
+EXIT_PY : '%' -> popMode;
+IGNORE_PY : . -> more ;
+
+PY_RETURN
+ : '\n'
+ | '\r\n'
+ ;
+
+PY_STRING
+ : '\'\'\'' .*? '\'\'\''
+ | '"""' .*? '"""'
+ | '\'' ( ~('\''|'\\') | ('\\' .) )*? '\''
+ | '"' ( ~('"'|'\\') | ('\\' .) )*? '"'
+ ;
+
+VARIABLE
+ : LETTER(DIGIT | LETTER | '_')*
+ | '_'(DIGIT | LETTER | '_')+
+ ;
+
+VariableRef
+ : '%'[ \t]*VARIABLE
+ | '%'[ \t]*'(' .*? ')'
+ | '%'[ \t]*'{' .*? '}'
+ ;
+
+// % 打头认为end
+PY_NonEnd
+ : ~[ \r\n\t]+ '%' .*?
+ ;
+
+PY_TEXT
+ : ( ~('#'|'%'|'"'|'\''|'\r'|'\n') | PY_STRING| PY_NonEnd | VariableRef )+ PY_RETURN?
+ ;
+
+PY_COMMENT
+ : '#'+ ~('#'|'\r'|'\n')* -> channel(COMMENT)
+ ;
+
+PY_WS
+ : [ \r\n\t]+ -> skip
+ ;
+//============================
+// End of the python mode
+//============================
+
+//============================
+// Start of the SQL mode
+//============================
+mode SQL_LAN;
+
+EXIT_SQL : '%' -> popMode;
+IGNORE_SQL : . -> more ;
+
+SQL_RETURN
+ : '\n'
+ | '\r\n'
+ ;
+
+SQL_TEXT
+ : DML SQL_RETURN?
+ | DDL SQL_RETURN?
+ | Profile SQL_RETURN?
+ ;
+
+DDL
+ : CreatStatement
+ | AlterStatement
+ | DropStatement
+ | RenameStatement
+ | TruncateStatement
+ ;
+
+DML
+ : SelectStatement
+ | InsertStatement
+ | UpdateStatement
+ | DeleteStatement
+ | ReplaceStatement
+ ;
+
+Profile
+ : UseStatement
+ | ShowStatement
+ | ExplainStatement
+ | SetStatement
+ | CallStatement
+ | OpenStatement
+ | CloseStatement
+ | TransactionStatement
+ | CommitStatement
+ | RollbackStatement
+ ;
+
+SQL_COMMENT1
+ : '#'+ ~('#'|'\r'|'\n')* -> channel(COMMENT)
+ ;
+
+SQL_COMMENT2
+ : '-'+ ~('-'|'\r'|'\n')* -> channel(COMMENT)
+ ;
+
+SQL_COMMENT_BLOCK
+ : '/*' .*? '*/' -> channel(COMMENT)
+ ;
+
+CreatStatement : 'create' ~(';')+ ';' ;
+AlterStatement : 'alter' ~(';')+ ';' ;
+DropStatement : 'drop' ~(';')+ ';' ;
+RenameStatement : 'rename' ~(';')+ ';' ;
+TruncateStatement : 'truncate' ~(';')+ ';' ;
+
+SelectStatement : 'select' ~(';')+ ';' ;
+InsertStatement : 'insert' ~(';')+ ';' ;
+UpdateStatement : 'update' ~(';')+ ';' ;
+DeleteStatement : 'delete' ~(';')+ ';' ;
+ReplaceStatement : 'replace' ~(';')+ ';' ;
+
+UseStatement : 'use' ~(';')+ ';' ;
+ShowStatement : 'show' ~(';')+ ';' ;
+ExplainStatement : 'explain' ~(';')+ ';' ;
+SetStatement : 'set' ~(';')+ ';' ;
+CallStatement : 'call' ~(';')+ ';' ;
+OpenStatement : 'open' ~(';')+ ';' ;
+CloseStatement : 'close' ~(';')+ ';' ;
+TransactionStatement : ('start'|'begin') ~(';')+ ';';
+CommitStatement : 'commit' ~(';')* ';';
+RollbackStatement : 'rollback' ~(';')* ';';
+
+SQL_WS
+ : [ \r\n\t]+ -> skip
+ ;
+//============================
+// End of the SQL mode
+//============================
+
+//============================
+// Start of the shell mode
+//============================
+mode SHELL_LAN;
+
+EXIT_SH : '%' -> popMode;
+IGNORE_SH : . -> more ;
+
+SH_RETURN
+ : '\n'
+ | '\r\n'
+ ;
+
+SH_STRING
+ : '\'\'\'' .*? '\'\'\''
+ | '"""' .*? '"""'
+ | '\'' ( ~('\''|'\\') | ('\\' .) )*? '\''
+ | '"' ( ~('"'|'\\') | ('\\' .) )*? '"'
+ ;
+
+// % 打头认为end
+SH_NonEnd
+ : ~[ \r\n\t]+ '%' ~(';'|'\r'|'\n')*
+ ;
+
+SHELL_TEXT
+ : (~('#'|'%'|'"'|'\''|';'|'\r'|'\n') | SH_STRING| SH_NonEnd)+ ';' SH_RETURN?
+ ;
+
+SEHLL_COMMENT
+ : '#'+ ~('#'|'\r'|'\n')* -> channel(COMMENT)
+ ;
+
+SH_WS
+ : [ \r\n\t]+ -> skip
+ ;
+//============================
+// End of the shell mode
+//============================
\ No newline at end of file
diff --git a/dsl/src/main/resources/IdesParser.g4 b/dsl/src/main/resources/IdesParser.g4
new file mode 100644
index 0000000..fb9dfb3
--- /dev/null
+++ b/dsl/src/main/resources/IdesParser.g4
@@ -0,0 +1,121 @@
+parser grammar IdesParser;
+
+@header {
+ package ides.dsl.parser;
+}
+
+options { tokenVocab=IdesLexer; }
+
+// 一个脚本以0到n条query语句组成
+statement
+ : script*
+ ;
+
+script
+ : query EOQ # Iql
+ | PY_MODE pythonCode EXIT_PY NL? outTable? # Py
+ | SQL_MODE sqlCode EXIT_SQL NL? outTable? # Sql
+ | SHELL_MODE shellCode EXIT_SH NL? outTable? # Sh
+ ;
+
+pythonCode
+ : pyStatement*
+ ;
+
+pyStatement
+ : PY_TEXT
+ ;
+
+sqlCode
+ : sqlStatement*
+ ;
+
+sqlStatement
+ : SQL_TEXT
+ ;
+
+shellCode
+ : shellStatement*
+ ;
+
+shellStatement
+ : SHELL_TEXT
+ ;
+
+// query语句规则
+query
+ : LOAD format DOT path whereExpressions? asAsset # Load
+ | SAVE assetName saveMode? INTO format DOT path whereExpressions? partitionbyExpression? # Save
+ | SELECT ~(EOQ)+ asAsset # Select
+ | CONNECT format whereExpressions asAsset # Connect
+ | SET expression whereExpressions? # Set
+ ;
+
+format
+ : identifier
+ | quotedIdentifier
+ ;
+
+path
+ : quotedIdentifier
+ ;
+
+col
+ : identifier
+ ;
+
+colGroup
+ : COMMA col
+ ;
+
+whereExpressions
+ : where expression booleanExpression*
+ ;
+
+partitionbyExpression
+ : PARTITIONBY col colGroup*
+ ;
+
+booleanExpression
+ : AND expression
+ ;
+
+keyName
+ : qualifiedName
+ ;
+valueName
+ : MUMERIC
+ | STRING_TEXT
+ | BLOCK_STRING_TEXT
+ | QUOTED_TEXT
+ ;
+
+expression
+ : keyName EQ valueName
+ ;
+
+qualifiedName
+ : identifier (DOT identifier)*
+ ;
+
+asAsset
+ : AS assetName
+ ;
+
+assetName
+ : identifier
+ | quotedIdentifier
+ ;
+
+identifier
+ : IDENTIFIER
+ ;
+
+quotedIdentifier
+ : QUOTED_TEXT
+ ;
+
+where: OPTIONS|WHERE;
+saveMode: OVERWRITE|APPEND|ERRORIfExists|IGNORE;
+
+outTable : OUT assetName;
\ No newline at end of file
diff --git a/dsl/src/test/java/ides/dsl/parser/ListenerTest.java b/dsl/src/test/java/ides/dsl/parser/ListenerTest.java
index 9b6c166..f7a09f1 100644
--- a/dsl/src/test/java/ides/dsl/parser/ListenerTest.java
+++ b/dsl/src/test/java/ides/dsl/parser/ListenerTest.java
@@ -21,27 +21,27 @@ public static void main(String[] args) {
"load hive.`a.abc` as table1;\n" +
"save a;";
CodePointCharStream cpcs = CharStreams.fromString(expr);
- IdesDslLexer idesDslLexer = new IdesDslLexer(cpcs);
+ IdesLexer idesDslLexer = new IdesLexer(cpcs);
CommonTokenStream tokenStream = new CommonTokenStream(idesDslLexer);
- IdesDslParser parser = new IdesDslParser(tokenStream);
+ IdesParser parser = new IdesParser(tokenStream);
MyListener listener = new MyListener();
- IdesDslParser.StatementContext statement = parser.statement();
+ IdesParser.StatementContext statement = parser.statement();
ParseTreeWalker.DEFAULT.walk(listener, statement);
}
}
-class MyListener extends IdesDslBaseListener {
+class MyListener extends IdesParserBaseListener {
@Override
- public void exitSql(IdesDslParser.SqlContext ctx) {
+ public void exitSql(IdesParser.SqlContext ctx) {
System.out.println(ctx.getText());
}
@Override
- public void exitLoad(IdesDslParser.LoadContext ctx) {
+ public void exitLoad(IdesParser.LoadContext ctx) {
String text = ctx.format().getText();
System.out.println("load -----> " + text);
diff --git a/dsl/src/test/java/ides/dsl/parser/VisitorTest.java b/dsl/src/test/java/ides/dsl/parser/VisitorTest.java
index e6b7818..9d93c01 100644
--- a/dsl/src/test/java/ides/dsl/parser/VisitorTest.java
+++ b/dsl/src/test/java/ides/dsl/parser/VisitorTest.java
@@ -10,7 +10,8 @@
public class VisitorTest {
public static void main(String[] args) {
- String expr = "load hive.`a.bc` as table1;\n" +
+ String expr =
+ "load hive.`a.bc` as table1;\n" +
"\n----注释" +
"\n" +
"\n/*------*/" +
@@ -21,14 +22,14 @@ public static void main(String[] args) {
"load hive.`a.abc` as table1;\n" +
"save a;";
CodePointCharStream cpcs = CharStreams.fromString(expr);
- IdesDslLexer helloLexer = new IdesDslLexer(cpcs);
+ IdesLexer helloLexer = new IdesLexer(cpcs);
CommonTokenStream tokenStream = new CommonTokenStream(helloLexer);
- IdesDslParser parser = new IdesDslParser(tokenStream);
+ IdesParser parser = new IdesParser(tokenStream);
- IdesDslParser.StatementContext statement = parser.statement();
+ IdesParser.StatementContext statement = parser.statement();
MyVisitor myVisitor = new MyVisitor();
myVisitor.visit(statement);
@@ -39,12 +40,12 @@ public static void main(String[] args) {
}
-class MyVisitor extends IdesDslBaseVisitor {
+class MyVisitor extends IdesParserBaseVisitor {
int cnt = 0;
int loadcnt = 0;
@Override
- public Object visitSql(IdesDslParser.SqlContext ctx) {
+ public Object visitSql(IdesParser.SqlContext ctx) {
cnt += 1;
System.out.println(ctx.getText());
@@ -52,7 +53,7 @@ public Object visitSql(IdesDslParser.SqlContext ctx) {
}
@Override
- public Object visitLoad(IdesDslParser.LoadContext ctx) {
+ public Object visitLoad(IdesParser.LoadContext ctx) {
loadcnt += 1;
System.out.println("load ---> " + ctx.format().getText());
return super.visitLoad(ctx);