com.zeoflow.depot.parser.SQLiteParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of depot-compiler Show documentation
Show all versions of depot-compiler Show documentation
The Depot persistence library provides an abstraction layer over SQLite to allow for more robust database access while using the full power of SQLite.
The newest version!
// Generated from SQLite.g4 by ANTLR 4.7.1
package com.zeoflow.depot.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 SQLiteParser extends Parser {
static { RuntimeMetaData.checkVersion("4.7.1", RuntimeMetaData.VERSION); }
protected static final DFA[] _decisionToDFA;
protected static final PredictionContextCache _sharedContextCache =
new PredictionContextCache();
public static final int
SCOL=1, DOT=2, OPEN_PAR=3, CLOSE_PAR=4, COMMA=5, ASSIGN=6, STAR=7, PLUS=8,
MINUS=9, TILDE=10, PIPE2=11, DIV=12, MOD=13, LT2=14, GT2=15, AMP=16, PIPE=17,
LT=18, LT_EQ=19, GT=20, GT_EQ=21, EQ=22, NOT_EQ1=23, NOT_EQ2=24, TRUE=25,
FALSE=26, K_ABORT=27, K_ACTION=28, K_ADD=29, K_AFTER=30, K_ALL=31, K_ALTER=32,
K_ANALYZE=33, K_AND=34, K_AS=35, K_ASC=36, K_ATTACH=37, K_AUTOINCREMENT=38,
K_BEFORE=39, K_BEGIN=40, K_BETWEEN=41, K_BY=42, K_CASCADE=43, K_CASE=44,
K_CAST=45, K_CHECK=46, K_COLLATE=47, K_COLUMN=48, K_COMMIT=49, K_CONFLICT=50,
K_CONSTRAINT=51, K_CREATE=52, K_CROSS=53, K_CURRENT_DATE=54, K_CURRENT_TIME=55,
K_CURRENT_TIMESTAMP=56, K_DATABASE=57, K_DEFAULT=58, K_DEFERRABLE=59,
K_DEFERRED=60, K_DELETE=61, K_DESC=62, K_DETACH=63, K_DISTINCT=64, K_DROP=65,
K_EACH=66, K_ELSE=67, K_END=68, K_ESCAPE=69, K_EXCEPT=70, K_EXCLUSIVE=71,
K_EXISTS=72, K_EXPLAIN=73, K_FAIL=74, K_FOR=75, K_FOREIGN=76, K_FROM=77,
K_FULL=78, K_GLOB=79, K_GROUP=80, K_HAVING=81, K_IF=82, K_IGNORE=83, K_IMMEDIATE=84,
K_IN=85, K_INDEX=86, K_INDEXED=87, K_INITIALLY=88, K_INNER=89, K_INSERT=90,
K_INSTEAD=91, K_INTERSECT=92, K_INTO=93, K_IS=94, K_ISNULL=95, K_JOIN=96,
K_KEY=97, K_LEFT=98, K_LIKE=99, K_LIMIT=100, K_MATCH=101, K_NATURAL=102,
K_NO=103, K_NOT=104, K_NOTNULL=105, K_NULL=106, K_OF=107, K_OFFSET=108,
K_ON=109, K_OR=110, K_ORDER=111, K_OUTER=112, K_PLAN=113, K_PRAGMA=114,
K_PRIMARY=115, K_QUERY=116, K_RAISE=117, K_RECURSIVE=118, K_REFERENCES=119,
K_REGEXP=120, K_REINDEX=121, K_RELEASE=122, K_RENAME=123, K_REPLACE=124,
K_RESTRICT=125, K_RIGHT=126, K_ROLLBACK=127, K_ROW=128, K_SAVEPOINT=129,
K_SELECT=130, K_SET=131, K_TABLE=132, K_TEMP=133, K_TEMPORARY=134, K_THEN=135,
K_TO=136, K_TRANSACTION=137, K_TRIGGER=138, K_UNION=139, K_UNIQUE=140,
K_UPDATE=141, K_USING=142, K_VACUUM=143, K_VALUES=144, K_VIEW=145, K_VIRTUAL=146,
K_WHEN=147, K_WHERE=148, K_WITH=149, K_WITHOUT=150, WITHOUT_ROWID=151,
DO_NOTHING=152, DO_UPDATE=153, IDENTIFIER=154, NUMERIC_LITERAL=155, BIND_PARAMETER=156,
STRING_LITERAL=157, BLOB_LITERAL=158, SINGLE_LINE_COMMENT=159, MULTILINE_COMMENT=160,
SPACES=161, UNEXPECTED_CHAR=162;
public static final int
RULE_parse = 0, RULE_error = 1, RULE_sql_stmt_list = 2, RULE_sql_stmt = 3,
RULE_alter_table_stmt = 4, RULE_analyze_stmt = 5, RULE_attach_stmt = 6,
RULE_begin_stmt = 7, RULE_commit_stmt = 8, RULE_create_index_stmt = 9,
RULE_create_table_stmt = 10, RULE_create_trigger_stmt = 11, RULE_create_view_stmt = 12,
RULE_create_virtual_table_stmt = 13, RULE_delete_stmt = 14, RULE_delete_stmt_limited = 15,
RULE_detach_stmt = 16, RULE_drop_index_stmt = 17, RULE_drop_table_stmt = 18,
RULE_drop_trigger_stmt = 19, RULE_drop_view_stmt = 20, RULE_insert_stmt = 21,
RULE_upsert_clause = 22, RULE_pragma_stmt = 23, RULE_reindex_stmt = 24,
RULE_release_stmt = 25, RULE_rollback_stmt = 26, RULE_savepoint_stmt = 27,
RULE_select_stmt = 28, RULE_select_or_values = 29, RULE_update_stmt = 30,
RULE_update_stmt_limited = 31, RULE_vacuum_stmt = 32, RULE_column_def = 33,
RULE_type_name = 34, RULE_column_constraint = 35, RULE_conflict_clause = 36,
RULE_expr = 37, RULE_comma_separated_expr = 38, RULE_foreign_key_clause = 39,
RULE_raise_function = 40, RULE_indexed_column = 41, RULE_table_constraint = 42,
RULE_with_clause = 43, RULE_common_table_expression = 44, RULE_qualified_table_name = 45,
RULE_order_clause = 46, RULE_ordering_term = 47, RULE_limit_clause = 48,
RULE_pragma_value = 49, RULE_result_column = 50, RULE_table_or_subquery = 51,
RULE_join_clause = 52, RULE_join_operator = 53, RULE_join_constraint = 54,
RULE_compound_operator = 55, RULE_signed_number = 56, RULE_literal_value = 57,
RULE_boolean_literal = 58, RULE_unary_operator = 59, RULE_binary_operator = 60,
RULE_error_message = 61, RULE_module_argument = 62, RULE_column_alias = 63,
RULE_column_name_list = 64, RULE_keyword = 65, RULE_name = 66, RULE_function_name = 67,
RULE_schema_name = 68, RULE_table_function = 69, RULE_table_name = 70,
RULE_table_or_index_name = 71, RULE_new_table_name = 72, RULE_column_name = 73,
RULE_collation_name = 74, RULE_foreign_table = 75, RULE_index_name = 76,
RULE_trigger_name = 77, RULE_view_name = 78, RULE_module_name = 79, RULE_pragma_name = 80,
RULE_savepoint_name = 81, RULE_table_alias = 82, RULE_transaction_name = 83,
RULE_any_name = 84;
public static final String[] ruleNames = {
"parse", "error", "sql_stmt_list", "sql_stmt", "alter_table_stmt", "analyze_stmt",
"attach_stmt", "begin_stmt", "commit_stmt", "create_index_stmt", "create_table_stmt",
"create_trigger_stmt", "create_view_stmt", "create_virtual_table_stmt",
"delete_stmt", "delete_stmt_limited", "detach_stmt", "drop_index_stmt",
"drop_table_stmt", "drop_trigger_stmt", "drop_view_stmt", "insert_stmt",
"upsert_clause", "pragma_stmt", "reindex_stmt", "release_stmt", "rollback_stmt",
"savepoint_stmt", "select_stmt", "select_or_values", "update_stmt", "update_stmt_limited",
"vacuum_stmt", "column_def", "type_name", "column_constraint", "conflict_clause",
"expr", "comma_separated_expr", "foreign_key_clause", "raise_function",
"indexed_column", "table_constraint", "with_clause", "common_table_expression",
"qualified_table_name", "order_clause", "ordering_term", "limit_clause",
"pragma_value", "result_column", "table_or_subquery", "join_clause", "join_operator",
"join_constraint", "compound_operator", "signed_number", "literal_value",
"boolean_literal", "unary_operator", "binary_operator", "error_message",
"module_argument", "column_alias", "column_name_list", "keyword", "name",
"function_name", "schema_name", "table_function", "table_name", "table_or_index_name",
"new_table_name", "column_name", "collation_name", "foreign_table", "index_name",
"trigger_name", "view_name", "module_name", "pragma_name", "savepoint_name",
"table_alias", "transaction_name", "any_name"
};
private static final String[] _LITERAL_NAMES = {
null, "';'", "'.'", "'('", "')'", "','", "'='", "'*'", "'+'", "'-'", "'~'",
"'||'", "'/'", "'%'", "'<<'", "'>>'", "'&'", "'|'", "'<'", "'<='", "'>'",
"'>='", "'=='", "'!='", "'<>'"
};
private static final String[] _SYMBOLIC_NAMES = {
null, "SCOL", "DOT", "OPEN_PAR", "CLOSE_PAR", "COMMA", "ASSIGN", "STAR",
"PLUS", "MINUS", "TILDE", "PIPE2", "DIV", "MOD", "LT2", "GT2", "AMP",
"PIPE", "LT", "LT_EQ", "GT", "GT_EQ", "EQ", "NOT_EQ1", "NOT_EQ2", "TRUE",
"FALSE", "K_ABORT", "K_ACTION", "K_ADD", "K_AFTER", "K_ALL", "K_ALTER",
"K_ANALYZE", "K_AND", "K_AS", "K_ASC", "K_ATTACH", "K_AUTOINCREMENT",
"K_BEFORE", "K_BEGIN", "K_BETWEEN", "K_BY", "K_CASCADE", "K_CASE", "K_CAST",
"K_CHECK", "K_COLLATE", "K_COLUMN", "K_COMMIT", "K_CONFLICT", "K_CONSTRAINT",
"K_CREATE", "K_CROSS", "K_CURRENT_DATE", "K_CURRENT_TIME", "K_CURRENT_TIMESTAMP",
"K_DATABASE", "K_DEFAULT", "K_DEFERRABLE", "K_DEFERRED", "K_DELETE", "K_DESC",
"K_DETACH", "K_DISTINCT", "K_DROP", "K_EACH", "K_ELSE", "K_END", "K_ESCAPE",
"K_EXCEPT", "K_EXCLUSIVE", "K_EXISTS", "K_EXPLAIN", "K_FAIL", "K_FOR",
"K_FOREIGN", "K_FROM", "K_FULL", "K_GLOB", "K_GROUP", "K_HAVING", "K_IF",
"K_IGNORE", "K_IMMEDIATE", "K_IN", "K_INDEX", "K_INDEXED", "K_INITIALLY",
"K_INNER", "K_INSERT", "K_INSTEAD", "K_INTERSECT", "K_INTO", "K_IS", "K_ISNULL",
"K_JOIN", "K_KEY", "K_LEFT", "K_LIKE", "K_LIMIT", "K_MATCH", "K_NATURAL",
"K_NO", "K_NOT", "K_NOTNULL", "K_NULL", "K_OF", "K_OFFSET", "K_ON", "K_OR",
"K_ORDER", "K_OUTER", "K_PLAN", "K_PRAGMA", "K_PRIMARY", "K_QUERY", "K_RAISE",
"K_RECURSIVE", "K_REFERENCES", "K_REGEXP", "K_REINDEX", "K_RELEASE", "K_RENAME",
"K_REPLACE", "K_RESTRICT", "K_RIGHT", "K_ROLLBACK", "K_ROW", "K_SAVEPOINT",
"K_SELECT", "K_SET", "K_TABLE", "K_TEMP", "K_TEMPORARY", "K_THEN", "K_TO",
"K_TRANSACTION", "K_TRIGGER", "K_UNION", "K_UNIQUE", "K_UPDATE", "K_USING",
"K_VACUUM", "K_VALUES", "K_VIEW", "K_VIRTUAL", "K_WHEN", "K_WHERE", "K_WITH",
"K_WITHOUT", "WITHOUT_ROWID", "DO_NOTHING", "DO_UPDATE", "IDENTIFIER",
"NUMERIC_LITERAL", "BIND_PARAMETER", "STRING_LITERAL", "BLOB_LITERAL",
"SINGLE_LINE_COMMENT", "MULTILINE_COMMENT", "SPACES", "UNEXPECTED_CHAR"
};
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 "SQLite.g4"; }
@Override
public String[] getRuleNames() { return ruleNames; }
@Override
public String getSerializedATN() { return _serializedATN; }
@Override
public ATN getATN() { return _ATN; }
public SQLiteParser(TokenStream input) {
super(input);
_interp = new ParserATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
public static class ParseContext extends ParserRuleContext {
public TerminalNode EOF() { return getToken(SQLiteParser.EOF, 0); }
public List sql_stmt_list() {
return getRuleContexts(Sql_stmt_listContext.class);
}
public Sql_stmt_listContext sql_stmt_list(int i) {
return getRuleContext(Sql_stmt_listContext.class,i);
}
public List error() {
return getRuleContexts(ErrorContext.class);
}
public ErrorContext error(int i) {
return getRuleContext(ErrorContext.class,i);
}
public ParseContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_parse; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterParse(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitParse(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitParse(this);
else return visitor.visitChildren(this);
}
}
public final ParseContext parse() throws RecognitionException {
ParseContext _localctx = new ParseContext(_ctx, getState());
enterRule(_localctx, 0, RULE_parse);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(174);
_errHandler.sync(this);
_la = _input.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << SCOL) | (1L << K_ALTER) | (1L << K_ANALYZE) | (1L << K_ATTACH) | (1L << K_BEGIN) | (1L << K_COMMIT) | (1L << K_CREATE) | (1L << K_DELETE) | (1L << K_DETACH))) != 0) || ((((_la - 65)) & ~0x3f) == 0 && ((1L << (_la - 65)) & ((1L << (K_DROP - 65)) | (1L << (K_END - 65)) | (1L << (K_EXPLAIN - 65)) | (1L << (K_INSERT - 65)) | (1L << (K_PRAGMA - 65)) | (1L << (K_REINDEX - 65)) | (1L << (K_RELEASE - 65)) | (1L << (K_REPLACE - 65)) | (1L << (K_ROLLBACK - 65)))) != 0) || ((((_la - 129)) & ~0x3f) == 0 && ((1L << (_la - 129)) & ((1L << (K_SAVEPOINT - 129)) | (1L << (K_SELECT - 129)) | (1L << (K_UPDATE - 129)) | (1L << (K_VACUUM - 129)) | (1L << (K_VALUES - 129)) | (1L << (K_WITH - 129)) | (1L << (UNEXPECTED_CHAR - 129)))) != 0)) {
{
setState(172);
_errHandler.sync(this);
switch (_input.LA(1)) {
case SCOL:
case K_ALTER:
case K_ANALYZE:
case K_ATTACH:
case K_BEGIN:
case K_COMMIT:
case K_CREATE:
case K_DELETE:
case K_DETACH:
case K_DROP:
case K_END:
case K_EXPLAIN:
case K_INSERT:
case K_PRAGMA:
case K_REINDEX:
case K_RELEASE:
case K_REPLACE:
case K_ROLLBACK:
case K_SAVEPOINT:
case K_SELECT:
case K_UPDATE:
case K_VACUUM:
case K_VALUES:
case K_WITH:
{
setState(170);
sql_stmt_list();
}
break;
case UNEXPECTED_CHAR:
{
setState(171);
error();
}
break;
default:
throw new NoViableAltException(this);
}
}
setState(176);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(177);
match(EOF);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ErrorContext extends ParserRuleContext {
public Token UNEXPECTED_CHAR;
public TerminalNode UNEXPECTED_CHAR() { return getToken(SQLiteParser.UNEXPECTED_CHAR, 0); }
public ErrorContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_error; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterError(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitError(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitError(this);
else return visitor.visitChildren(this);
}
}
public final ErrorContext error() throws RecognitionException {
ErrorContext _localctx = new ErrorContext(_ctx, getState());
enterRule(_localctx, 2, RULE_error);
try {
enterOuterAlt(_localctx, 1);
{
setState(179);
((ErrorContext)_localctx).UNEXPECTED_CHAR = match(UNEXPECTED_CHAR);
throw new RuntimeException("UNEXPECTED_CHAR=" + (((ErrorContext)_localctx).UNEXPECTED_CHAR!=null?((ErrorContext)_localctx).UNEXPECTED_CHAR.getText():null));
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Sql_stmt_listContext extends ParserRuleContext {
public List sql_stmt() {
return getRuleContexts(Sql_stmtContext.class);
}
public Sql_stmtContext sql_stmt(int i) {
return getRuleContext(Sql_stmtContext.class,i);
}
public Sql_stmt_listContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_sql_stmt_list; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterSql_stmt_list(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitSql_stmt_list(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitSql_stmt_list(this);
else return visitor.visitChildren(this);
}
}
public final Sql_stmt_listContext sql_stmt_list() throws RecognitionException {
Sql_stmt_listContext _localctx = new Sql_stmt_listContext(_ctx, getState());
enterRule(_localctx, 4, RULE_sql_stmt_list);
int _la;
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
setState(185);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==SCOL) {
{
{
setState(182);
match(SCOL);
}
}
setState(187);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(188);
sql_stmt();
setState(197);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,4,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
setState(190);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(189);
match(SCOL);
}
}
setState(192);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( _la==SCOL );
setState(194);
sql_stmt();
}
}
}
setState(199);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,4,_ctx);
}
setState(203);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,5,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
setState(200);
match(SCOL);
}
}
}
setState(205);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,5,_ctx);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Sql_stmtContext extends ParserRuleContext {
public Alter_table_stmtContext alter_table_stmt() {
return getRuleContext(Alter_table_stmtContext.class,0);
}
public Analyze_stmtContext analyze_stmt() {
return getRuleContext(Analyze_stmtContext.class,0);
}
public Attach_stmtContext attach_stmt() {
return getRuleContext(Attach_stmtContext.class,0);
}
public Begin_stmtContext begin_stmt() {
return getRuleContext(Begin_stmtContext.class,0);
}
public Commit_stmtContext commit_stmt() {
return getRuleContext(Commit_stmtContext.class,0);
}
public Create_index_stmtContext create_index_stmt() {
return getRuleContext(Create_index_stmtContext.class,0);
}
public Create_table_stmtContext create_table_stmt() {
return getRuleContext(Create_table_stmtContext.class,0);
}
public Create_trigger_stmtContext create_trigger_stmt() {
return getRuleContext(Create_trigger_stmtContext.class,0);
}
public Create_view_stmtContext create_view_stmt() {
return getRuleContext(Create_view_stmtContext.class,0);
}
public Create_virtual_table_stmtContext create_virtual_table_stmt() {
return getRuleContext(Create_virtual_table_stmtContext.class,0);
}
public Delete_stmtContext delete_stmt() {
return getRuleContext(Delete_stmtContext.class,0);
}
public Delete_stmt_limitedContext delete_stmt_limited() {
return getRuleContext(Delete_stmt_limitedContext.class,0);
}
public Detach_stmtContext detach_stmt() {
return getRuleContext(Detach_stmtContext.class,0);
}
public Drop_index_stmtContext drop_index_stmt() {
return getRuleContext(Drop_index_stmtContext.class,0);
}
public Drop_table_stmtContext drop_table_stmt() {
return getRuleContext(Drop_table_stmtContext.class,0);
}
public Drop_trigger_stmtContext drop_trigger_stmt() {
return getRuleContext(Drop_trigger_stmtContext.class,0);
}
public Drop_view_stmtContext drop_view_stmt() {
return getRuleContext(Drop_view_stmtContext.class,0);
}
public Insert_stmtContext insert_stmt() {
return getRuleContext(Insert_stmtContext.class,0);
}
public Pragma_stmtContext pragma_stmt() {
return getRuleContext(Pragma_stmtContext.class,0);
}
public Reindex_stmtContext reindex_stmt() {
return getRuleContext(Reindex_stmtContext.class,0);
}
public Release_stmtContext release_stmt() {
return getRuleContext(Release_stmtContext.class,0);
}
public Rollback_stmtContext rollback_stmt() {
return getRuleContext(Rollback_stmtContext.class,0);
}
public Savepoint_stmtContext savepoint_stmt() {
return getRuleContext(Savepoint_stmtContext.class,0);
}
public Select_stmtContext select_stmt() {
return getRuleContext(Select_stmtContext.class,0);
}
public Update_stmtContext update_stmt() {
return getRuleContext(Update_stmtContext.class,0);
}
public Update_stmt_limitedContext update_stmt_limited() {
return getRuleContext(Update_stmt_limitedContext.class,0);
}
public Vacuum_stmtContext vacuum_stmt() {
return getRuleContext(Vacuum_stmtContext.class,0);
}
public TerminalNode K_EXPLAIN() { return getToken(SQLiteParser.K_EXPLAIN, 0); }
public TerminalNode K_QUERY() { return getToken(SQLiteParser.K_QUERY, 0); }
public TerminalNode K_PLAN() { return getToken(SQLiteParser.K_PLAN, 0); }
public Sql_stmtContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_sql_stmt; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterSql_stmt(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitSql_stmt(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitSql_stmt(this);
else return visitor.visitChildren(this);
}
}
public final Sql_stmtContext sql_stmt() throws RecognitionException {
Sql_stmtContext _localctx = new Sql_stmtContext(_ctx, getState());
enterRule(_localctx, 6, RULE_sql_stmt);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(211);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_EXPLAIN) {
{
setState(206);
match(K_EXPLAIN);
setState(209);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_QUERY) {
{
setState(207);
match(K_QUERY);
setState(208);
match(K_PLAN);
}
}
}
}
setState(240);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,8,_ctx) ) {
case 1:
{
setState(213);
alter_table_stmt();
}
break;
case 2:
{
setState(214);
analyze_stmt();
}
break;
case 3:
{
setState(215);
attach_stmt();
}
break;
case 4:
{
setState(216);
begin_stmt();
}
break;
case 5:
{
setState(217);
commit_stmt();
}
break;
case 6:
{
setState(218);
create_index_stmt();
}
break;
case 7:
{
setState(219);
create_table_stmt();
}
break;
case 8:
{
setState(220);
create_trigger_stmt();
}
break;
case 9:
{
setState(221);
create_view_stmt();
}
break;
case 10:
{
setState(222);
create_virtual_table_stmt();
}
break;
case 11:
{
setState(223);
delete_stmt();
}
break;
case 12:
{
setState(224);
delete_stmt_limited();
}
break;
case 13:
{
setState(225);
detach_stmt();
}
break;
case 14:
{
setState(226);
drop_index_stmt();
}
break;
case 15:
{
setState(227);
drop_table_stmt();
}
break;
case 16:
{
setState(228);
drop_trigger_stmt();
}
break;
case 17:
{
setState(229);
drop_view_stmt();
}
break;
case 18:
{
setState(230);
insert_stmt();
}
break;
case 19:
{
setState(231);
pragma_stmt();
}
break;
case 20:
{
setState(232);
reindex_stmt();
}
break;
case 21:
{
setState(233);
release_stmt();
}
break;
case 22:
{
setState(234);
rollback_stmt();
}
break;
case 23:
{
setState(235);
savepoint_stmt();
}
break;
case 24:
{
setState(236);
select_stmt();
}
break;
case 25:
{
setState(237);
update_stmt();
}
break;
case 26:
{
setState(238);
update_stmt_limited();
}
break;
case 27:
{
setState(239);
vacuum_stmt();
}
break;
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Alter_table_stmtContext extends ParserRuleContext {
public TerminalNode K_ALTER() { return getToken(SQLiteParser.K_ALTER, 0); }
public TerminalNode K_TABLE() { return getToken(SQLiteParser.K_TABLE, 0); }
public Table_nameContext table_name() {
return getRuleContext(Table_nameContext.class,0);
}
public TerminalNode K_RENAME() { return getToken(SQLiteParser.K_RENAME, 0); }
public TerminalNode K_TO() { return getToken(SQLiteParser.K_TO, 0); }
public New_table_nameContext new_table_name() {
return getRuleContext(New_table_nameContext.class,0);
}
public TerminalNode K_ADD() { return getToken(SQLiteParser.K_ADD, 0); }
public Column_defContext column_def() {
return getRuleContext(Column_defContext.class,0);
}
public Schema_nameContext schema_name() {
return getRuleContext(Schema_nameContext.class,0);
}
public TerminalNode K_COLUMN() { return getToken(SQLiteParser.K_COLUMN, 0); }
public Alter_table_stmtContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_alter_table_stmt; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterAlter_table_stmt(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitAlter_table_stmt(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitAlter_table_stmt(this);
else return visitor.visitChildren(this);
}
}
public final Alter_table_stmtContext alter_table_stmt() throws RecognitionException {
Alter_table_stmtContext _localctx = new Alter_table_stmtContext(_ctx, getState());
enterRule(_localctx, 8, RULE_alter_table_stmt);
try {
enterOuterAlt(_localctx, 1);
{
setState(242);
match(K_ALTER);
setState(243);
match(K_TABLE);
setState(247);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,9,_ctx) ) {
case 1:
{
setState(244);
schema_name();
setState(245);
match(DOT);
}
break;
}
setState(249);
table_name();
setState(258);
_errHandler.sync(this);
switch (_input.LA(1)) {
case K_RENAME:
{
setState(250);
match(K_RENAME);
setState(251);
match(K_TO);
setState(252);
new_table_name();
}
break;
case K_ADD:
{
setState(253);
match(K_ADD);
setState(255);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,10,_ctx) ) {
case 1:
{
setState(254);
match(K_COLUMN);
}
break;
}
setState(257);
column_def();
}
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 Analyze_stmtContext extends ParserRuleContext {
public TerminalNode K_ANALYZE() { return getToken(SQLiteParser.K_ANALYZE, 0); }
public Schema_nameContext schema_name() {
return getRuleContext(Schema_nameContext.class,0);
}
public Table_or_index_nameContext table_or_index_name() {
return getRuleContext(Table_or_index_nameContext.class,0);
}
public Analyze_stmtContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_analyze_stmt; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterAnalyze_stmt(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitAnalyze_stmt(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitAnalyze_stmt(this);
else return visitor.visitChildren(this);
}
}
public final Analyze_stmtContext analyze_stmt() throws RecognitionException {
Analyze_stmtContext _localctx = new Analyze_stmtContext(_ctx, getState());
enterRule(_localctx, 10, RULE_analyze_stmt);
try {
enterOuterAlt(_localctx, 1);
{
setState(260);
match(K_ANALYZE);
setState(267);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,12,_ctx) ) {
case 1:
{
setState(261);
schema_name();
}
break;
case 2:
{
setState(262);
table_or_index_name();
}
break;
case 3:
{
setState(263);
schema_name();
setState(264);
match(DOT);
setState(265);
table_or_index_name();
}
break;
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Attach_stmtContext extends ParserRuleContext {
public TerminalNode K_ATTACH() { return getToken(SQLiteParser.K_ATTACH, 0); }
public ExprContext expr() {
return getRuleContext(ExprContext.class,0);
}
public TerminalNode K_AS() { return getToken(SQLiteParser.K_AS, 0); }
public Schema_nameContext schema_name() {
return getRuleContext(Schema_nameContext.class,0);
}
public TerminalNode K_DATABASE() { return getToken(SQLiteParser.K_DATABASE, 0); }
public Attach_stmtContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_attach_stmt; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterAttach_stmt(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitAttach_stmt(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitAttach_stmt(this);
else return visitor.visitChildren(this);
}
}
public final Attach_stmtContext attach_stmt() throws RecognitionException {
Attach_stmtContext _localctx = new Attach_stmtContext(_ctx, getState());
enterRule(_localctx, 12, RULE_attach_stmt);
try {
enterOuterAlt(_localctx, 1);
{
setState(269);
match(K_ATTACH);
setState(271);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,13,_ctx) ) {
case 1:
{
setState(270);
match(K_DATABASE);
}
break;
}
setState(273);
expr(0);
setState(274);
match(K_AS);
setState(275);
schema_name();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Begin_stmtContext extends ParserRuleContext {
public TerminalNode K_BEGIN() { return getToken(SQLiteParser.K_BEGIN, 0); }
public TerminalNode K_TRANSACTION() { return getToken(SQLiteParser.K_TRANSACTION, 0); }
public TerminalNode K_DEFERRED() { return getToken(SQLiteParser.K_DEFERRED, 0); }
public TerminalNode K_IMMEDIATE() { return getToken(SQLiteParser.K_IMMEDIATE, 0); }
public TerminalNode K_EXCLUSIVE() { return getToken(SQLiteParser.K_EXCLUSIVE, 0); }
public Transaction_nameContext transaction_name() {
return getRuleContext(Transaction_nameContext.class,0);
}
public Begin_stmtContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_begin_stmt; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterBegin_stmt(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitBegin_stmt(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitBegin_stmt(this);
else return visitor.visitChildren(this);
}
}
public final Begin_stmtContext begin_stmt() throws RecognitionException {
Begin_stmtContext _localctx = new Begin_stmtContext(_ctx, getState());
enterRule(_localctx, 14, RULE_begin_stmt);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(277);
match(K_BEGIN);
setState(279);
_errHandler.sync(this);
_la = _input.LA(1);
if (((((_la - 60)) & ~0x3f) == 0 && ((1L << (_la - 60)) & ((1L << (K_DEFERRED - 60)) | (1L << (K_EXCLUSIVE - 60)) | (1L << (K_IMMEDIATE - 60)))) != 0)) {
{
setState(278);
_la = _input.LA(1);
if ( !(((((_la - 60)) & ~0x3f) == 0 && ((1L << (_la - 60)) & ((1L << (K_DEFERRED - 60)) | (1L << (K_EXCLUSIVE - 60)) | (1L << (K_IMMEDIATE - 60)))) != 0)) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
}
}
setState(285);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_TRANSACTION) {
{
setState(281);
match(K_TRANSACTION);
setState(283);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,15,_ctx) ) {
case 1:
{
setState(282);
transaction_name();
}
break;
}
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Commit_stmtContext extends ParserRuleContext {
public TerminalNode K_COMMIT() { return getToken(SQLiteParser.K_COMMIT, 0); }
public TerminalNode K_END() { return getToken(SQLiteParser.K_END, 0); }
public TerminalNode K_TRANSACTION() { return getToken(SQLiteParser.K_TRANSACTION, 0); }
public Transaction_nameContext transaction_name() {
return getRuleContext(Transaction_nameContext.class,0);
}
public Commit_stmtContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_commit_stmt; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterCommit_stmt(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitCommit_stmt(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitCommit_stmt(this);
else return visitor.visitChildren(this);
}
}
public final Commit_stmtContext commit_stmt() throws RecognitionException {
Commit_stmtContext _localctx = new Commit_stmtContext(_ctx, getState());
enterRule(_localctx, 16, RULE_commit_stmt);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(287);
_la = _input.LA(1);
if ( !(_la==K_COMMIT || _la==K_END) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
setState(292);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_TRANSACTION) {
{
setState(288);
match(K_TRANSACTION);
setState(290);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,17,_ctx) ) {
case 1:
{
setState(289);
transaction_name();
}
break;
}
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Create_index_stmtContext extends ParserRuleContext {
public TerminalNode K_CREATE() { return getToken(SQLiteParser.K_CREATE, 0); }
public TerminalNode K_INDEX() { return getToken(SQLiteParser.K_INDEX, 0); }
public Index_nameContext index_name() {
return getRuleContext(Index_nameContext.class,0);
}
public TerminalNode K_ON() { return getToken(SQLiteParser.K_ON, 0); }
public Table_nameContext table_name() {
return getRuleContext(Table_nameContext.class,0);
}
public List indexed_column() {
return getRuleContexts(Indexed_columnContext.class);
}
public Indexed_columnContext indexed_column(int i) {
return getRuleContext(Indexed_columnContext.class,i);
}
public TerminalNode K_UNIQUE() { return getToken(SQLiteParser.K_UNIQUE, 0); }
public TerminalNode K_IF() { return getToken(SQLiteParser.K_IF, 0); }
public TerminalNode K_NOT() { return getToken(SQLiteParser.K_NOT, 0); }
public TerminalNode K_EXISTS() { return getToken(SQLiteParser.K_EXISTS, 0); }
public Schema_nameContext schema_name() {
return getRuleContext(Schema_nameContext.class,0);
}
public TerminalNode K_WHERE() { return getToken(SQLiteParser.K_WHERE, 0); }
public ExprContext expr() {
return getRuleContext(ExprContext.class,0);
}
public Create_index_stmtContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_create_index_stmt; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterCreate_index_stmt(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitCreate_index_stmt(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitCreate_index_stmt(this);
else return visitor.visitChildren(this);
}
}
public final Create_index_stmtContext create_index_stmt() throws RecognitionException {
Create_index_stmtContext _localctx = new Create_index_stmtContext(_ctx, getState());
enterRule(_localctx, 18, RULE_create_index_stmt);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(294);
match(K_CREATE);
setState(296);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_UNIQUE) {
{
setState(295);
match(K_UNIQUE);
}
}
setState(298);
match(K_INDEX);
setState(302);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,20,_ctx) ) {
case 1:
{
setState(299);
match(K_IF);
setState(300);
match(K_NOT);
setState(301);
match(K_EXISTS);
}
break;
}
setState(307);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,21,_ctx) ) {
case 1:
{
setState(304);
schema_name();
setState(305);
match(DOT);
}
break;
}
setState(309);
index_name();
setState(310);
match(K_ON);
setState(311);
table_name();
setState(312);
match(OPEN_PAR);
setState(313);
indexed_column();
setState(318);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
setState(314);
match(COMMA);
setState(315);
indexed_column();
}
}
setState(320);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(321);
match(CLOSE_PAR);
setState(324);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_WHERE) {
{
setState(322);
match(K_WHERE);
setState(323);
expr(0);
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Create_table_stmtContext extends ParserRuleContext {
public TerminalNode K_CREATE() { return getToken(SQLiteParser.K_CREATE, 0); }
public TerminalNode K_TABLE() { return getToken(SQLiteParser.K_TABLE, 0); }
public Table_nameContext table_name() {
return getRuleContext(Table_nameContext.class,0);
}
public List column_def() {
return getRuleContexts(Column_defContext.class);
}
public Column_defContext column_def(int i) {
return getRuleContext(Column_defContext.class,i);
}
public TerminalNode K_AS() { return getToken(SQLiteParser.K_AS, 0); }
public Select_stmtContext select_stmt() {
return getRuleContext(Select_stmtContext.class,0);
}
public TerminalNode K_IF() { return getToken(SQLiteParser.K_IF, 0); }
public TerminalNode K_NOT() { return getToken(SQLiteParser.K_NOT, 0); }
public TerminalNode K_EXISTS() { return getToken(SQLiteParser.K_EXISTS, 0); }
public Schema_nameContext schema_name() {
return getRuleContext(Schema_nameContext.class,0);
}
public TerminalNode K_TEMP() { return getToken(SQLiteParser.K_TEMP, 0); }
public TerminalNode K_TEMPORARY() { return getToken(SQLiteParser.K_TEMPORARY, 0); }
public List table_constraint() {
return getRuleContexts(Table_constraintContext.class);
}
public Table_constraintContext table_constraint(int i) {
return getRuleContext(Table_constraintContext.class,i);
}
public TerminalNode WITHOUT_ROWID() { return getToken(SQLiteParser.WITHOUT_ROWID, 0); }
public Create_table_stmtContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_create_table_stmt; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterCreate_table_stmt(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitCreate_table_stmt(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitCreate_table_stmt(this);
else return visitor.visitChildren(this);
}
}
public final Create_table_stmtContext create_table_stmt() throws RecognitionException {
Create_table_stmtContext _localctx = new Create_table_stmtContext(_ctx, getState());
enterRule(_localctx, 20, RULE_create_table_stmt);
int _la;
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
setState(326);
match(K_CREATE);
setState(328);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_TEMP || _la==K_TEMPORARY) {
{
setState(327);
_la = _input.LA(1);
if ( !(_la==K_TEMP || _la==K_TEMPORARY) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
}
}
setState(330);
match(K_TABLE);
setState(334);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,25,_ctx) ) {
case 1:
{
setState(331);
match(K_IF);
setState(332);
match(K_NOT);
setState(333);
match(K_EXISTS);
}
break;
}
setState(339);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,26,_ctx) ) {
case 1:
{
setState(336);
schema_name();
setState(337);
match(DOT);
}
break;
}
setState(341);
table_name();
setState(364);
_errHandler.sync(this);
switch (_input.LA(1)) {
case OPEN_PAR:
{
setState(342);
match(OPEN_PAR);
setState(343);
column_def();
setState(348);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,27,_ctx);
while ( _alt!=1 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1+1 ) {
{
{
setState(344);
match(COMMA);
setState(345);
column_def();
}
}
}
setState(350);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,27,_ctx);
}
setState(355);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
setState(351);
match(COMMA);
setState(352);
table_constraint();
}
}
setState(357);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(358);
match(CLOSE_PAR);
setState(360);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==WITHOUT_ROWID) {
{
setState(359);
match(WITHOUT_ROWID);
}
}
}
break;
case K_AS:
{
setState(362);
match(K_AS);
setState(363);
select_stmt();
}
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 Create_trigger_stmtContext extends ParserRuleContext {
public TerminalNode K_CREATE() { return getToken(SQLiteParser.K_CREATE, 0); }
public TerminalNode K_TRIGGER() { return getToken(SQLiteParser.K_TRIGGER, 0); }
public Trigger_nameContext trigger_name() {
return getRuleContext(Trigger_nameContext.class,0);
}
public TerminalNode K_ON() { return getToken(SQLiteParser.K_ON, 0); }
public Table_nameContext table_name() {
return getRuleContext(Table_nameContext.class,0);
}
public TerminalNode K_BEGIN() { return getToken(SQLiteParser.K_BEGIN, 0); }
public TerminalNode K_END() { return getToken(SQLiteParser.K_END, 0); }
public TerminalNode K_DELETE() { return getToken(SQLiteParser.K_DELETE, 0); }
public TerminalNode K_INSERT() { return getToken(SQLiteParser.K_INSERT, 0); }
public TerminalNode K_UPDATE() { return getToken(SQLiteParser.K_UPDATE, 0); }
public TerminalNode K_IF() { return getToken(SQLiteParser.K_IF, 0); }
public TerminalNode K_NOT() { return getToken(SQLiteParser.K_NOT, 0); }
public TerminalNode K_EXISTS() { return getToken(SQLiteParser.K_EXISTS, 0); }
public List schema_name() {
return getRuleContexts(Schema_nameContext.class);
}
public Schema_nameContext schema_name(int i) {
return getRuleContext(Schema_nameContext.class,i);
}
public TerminalNode K_BEFORE() { return getToken(SQLiteParser.K_BEFORE, 0); }
public TerminalNode K_AFTER() { return getToken(SQLiteParser.K_AFTER, 0); }
public TerminalNode K_INSTEAD() { return getToken(SQLiteParser.K_INSTEAD, 0); }
public List K_OF() { return getTokens(SQLiteParser.K_OF); }
public TerminalNode K_OF(int i) {
return getToken(SQLiteParser.K_OF, i);
}
public TerminalNode K_FOR() { return getToken(SQLiteParser.K_FOR, 0); }
public TerminalNode K_EACH() { return getToken(SQLiteParser.K_EACH, 0); }
public TerminalNode K_ROW() { return getToken(SQLiteParser.K_ROW, 0); }
public TerminalNode K_WHEN() { return getToken(SQLiteParser.K_WHEN, 0); }
public ExprContext expr() {
return getRuleContext(ExprContext.class,0);
}
public TerminalNode K_TEMP() { return getToken(SQLiteParser.K_TEMP, 0); }
public TerminalNode K_TEMPORARY() { return getToken(SQLiteParser.K_TEMPORARY, 0); }
public List column_name() {
return getRuleContexts(Column_nameContext.class);
}
public Column_nameContext column_name(int i) {
return getRuleContext(Column_nameContext.class,i);
}
public List update_stmt() {
return getRuleContexts(Update_stmtContext.class);
}
public Update_stmtContext update_stmt(int i) {
return getRuleContext(Update_stmtContext.class,i);
}
public List insert_stmt() {
return getRuleContexts(Insert_stmtContext.class);
}
public Insert_stmtContext insert_stmt(int i) {
return getRuleContext(Insert_stmtContext.class,i);
}
public List delete_stmt() {
return getRuleContexts(Delete_stmtContext.class);
}
public Delete_stmtContext delete_stmt(int i) {
return getRuleContext(Delete_stmtContext.class,i);
}
public List select_stmt() {
return getRuleContexts(Select_stmtContext.class);
}
public Select_stmtContext select_stmt(int i) {
return getRuleContext(Select_stmtContext.class,i);
}
public Create_trigger_stmtContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_create_trigger_stmt; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterCreate_trigger_stmt(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitCreate_trigger_stmt(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitCreate_trigger_stmt(this);
else return visitor.visitChildren(this);
}
}
public final Create_trigger_stmtContext create_trigger_stmt() throws RecognitionException {
Create_trigger_stmtContext _localctx = new Create_trigger_stmtContext(_ctx, getState());
enterRule(_localctx, 22, RULE_create_trigger_stmt);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(366);
match(K_CREATE);
setState(368);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_TEMP || _la==K_TEMPORARY) {
{
setState(367);
_la = _input.LA(1);
if ( !(_la==K_TEMP || _la==K_TEMPORARY) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
}
}
setState(370);
match(K_TRIGGER);
setState(374);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,32,_ctx) ) {
case 1:
{
setState(371);
match(K_IF);
setState(372);
match(K_NOT);
setState(373);
match(K_EXISTS);
}
break;
}
setState(379);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,33,_ctx) ) {
case 1:
{
setState(376);
schema_name();
setState(377);
match(DOT);
}
break;
}
setState(381);
trigger_name();
setState(386);
_errHandler.sync(this);
switch (_input.LA(1)) {
case K_BEFORE:
{
setState(382);
match(K_BEFORE);
}
break;
case K_AFTER:
{
setState(383);
match(K_AFTER);
}
break;
case K_INSTEAD:
{
setState(384);
match(K_INSTEAD);
setState(385);
match(K_OF);
}
break;
case K_DELETE:
case K_INSERT:
case K_UPDATE:
break;
default:
break;
}
setState(402);
_errHandler.sync(this);
switch (_input.LA(1)) {
case K_DELETE:
{
setState(388);
match(K_DELETE);
}
break;
case K_INSERT:
{
setState(389);
match(K_INSERT);
}
break;
case K_UPDATE:
{
setState(390);
match(K_UPDATE);
setState(400);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_OF) {
{
setState(391);
match(K_OF);
setState(392);
column_name();
setState(397);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
setState(393);
match(COMMA);
setState(394);
column_name();
}
}
setState(399);
_errHandler.sync(this);
_la = _input.LA(1);
}
}
}
}
break;
default:
throw new NoViableAltException(this);
}
setState(404);
match(K_ON);
setState(408);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,38,_ctx) ) {
case 1:
{
setState(405);
schema_name();
setState(406);
match(DOT);
}
break;
}
setState(410);
table_name();
setState(414);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_FOR) {
{
setState(411);
match(K_FOR);
setState(412);
match(K_EACH);
setState(413);
match(K_ROW);
}
}
setState(418);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_WHEN) {
{
setState(416);
match(K_WHEN);
setState(417);
expr(0);
}
}
setState(420);
match(K_BEGIN);
setState(429);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(425);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,41,_ctx) ) {
case 1:
{
setState(421);
update_stmt();
}
break;
case 2:
{
setState(422);
insert_stmt();
}
break;
case 3:
{
setState(423);
delete_stmt();
}
break;
case 4:
{
setState(424);
select_stmt();
}
break;
}
setState(427);
match(SCOL);
}
}
setState(431);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( _la==K_DELETE || ((((_la - 90)) & ~0x3f) == 0 && ((1L << (_la - 90)) & ((1L << (K_INSERT - 90)) | (1L << (K_REPLACE - 90)) | (1L << (K_SELECT - 90)) | (1L << (K_UPDATE - 90)) | (1L << (K_VALUES - 90)) | (1L << (K_WITH - 90)))) != 0) );
setState(433);
match(K_END);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Create_view_stmtContext extends ParserRuleContext {
public TerminalNode K_CREATE() { return getToken(SQLiteParser.K_CREATE, 0); }
public TerminalNode K_VIEW() { return getToken(SQLiteParser.K_VIEW, 0); }
public View_nameContext view_name() {
return getRuleContext(View_nameContext.class,0);
}
public TerminalNode K_AS() { return getToken(SQLiteParser.K_AS, 0); }
public Select_stmtContext select_stmt() {
return getRuleContext(Select_stmtContext.class,0);
}
public TerminalNode K_IF() { return getToken(SQLiteParser.K_IF, 0); }
public TerminalNode K_NOT() { return getToken(SQLiteParser.K_NOT, 0); }
public TerminalNode K_EXISTS() { return getToken(SQLiteParser.K_EXISTS, 0); }
public Schema_nameContext schema_name() {
return getRuleContext(Schema_nameContext.class,0);
}
public List column_name() {
return getRuleContexts(Column_nameContext.class);
}
public Column_nameContext column_name(int i) {
return getRuleContext(Column_nameContext.class,i);
}
public TerminalNode K_TEMP() { return getToken(SQLiteParser.K_TEMP, 0); }
public TerminalNode K_TEMPORARY() { return getToken(SQLiteParser.K_TEMPORARY, 0); }
public Create_view_stmtContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_create_view_stmt; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterCreate_view_stmt(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitCreate_view_stmt(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitCreate_view_stmt(this);
else return visitor.visitChildren(this);
}
}
public final Create_view_stmtContext create_view_stmt() throws RecognitionException {
Create_view_stmtContext _localctx = new Create_view_stmtContext(_ctx, getState());
enterRule(_localctx, 24, RULE_create_view_stmt);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(435);
match(K_CREATE);
setState(437);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_TEMP || _la==K_TEMPORARY) {
{
setState(436);
_la = _input.LA(1);
if ( !(_la==K_TEMP || _la==K_TEMPORARY) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
}
}
setState(439);
match(K_VIEW);
setState(443);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,44,_ctx) ) {
case 1:
{
setState(440);
match(K_IF);
setState(441);
match(K_NOT);
setState(442);
match(K_EXISTS);
}
break;
}
setState(448);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,45,_ctx) ) {
case 1:
{
setState(445);
schema_name();
setState(446);
match(DOT);
}
break;
}
setState(450);
view_name();
setState(459);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,47,_ctx) ) {
case 1:
{
setState(451);
column_name();
setState(456);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
setState(452);
match(COMMA);
setState(453);
column_name();
}
}
setState(458);
_errHandler.sync(this);
_la = _input.LA(1);
}
}
break;
}
setState(461);
match(K_AS);
setState(462);
select_stmt();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Create_virtual_table_stmtContext extends ParserRuleContext {
public TerminalNode K_CREATE() { return getToken(SQLiteParser.K_CREATE, 0); }
public TerminalNode K_VIRTUAL() { return getToken(SQLiteParser.K_VIRTUAL, 0); }
public TerminalNode K_TABLE() { return getToken(SQLiteParser.K_TABLE, 0); }
public Table_nameContext table_name() {
return getRuleContext(Table_nameContext.class,0);
}
public TerminalNode K_USING() { return getToken(SQLiteParser.K_USING, 0); }
public Module_nameContext module_name() {
return getRuleContext(Module_nameContext.class,0);
}
public TerminalNode K_IF() { return getToken(SQLiteParser.K_IF, 0); }
public TerminalNode K_NOT() { return getToken(SQLiteParser.K_NOT, 0); }
public TerminalNode K_EXISTS() { return getToken(SQLiteParser.K_EXISTS, 0); }
public Schema_nameContext schema_name() {
return getRuleContext(Schema_nameContext.class,0);
}
public List module_argument() {
return getRuleContexts(Module_argumentContext.class);
}
public Module_argumentContext module_argument(int i) {
return getRuleContext(Module_argumentContext.class,i);
}
public Create_virtual_table_stmtContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_create_virtual_table_stmt; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterCreate_virtual_table_stmt(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitCreate_virtual_table_stmt(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitCreate_virtual_table_stmt(this);
else return visitor.visitChildren(this);
}
}
public final Create_virtual_table_stmtContext create_virtual_table_stmt() throws RecognitionException {
Create_virtual_table_stmtContext _localctx = new Create_virtual_table_stmtContext(_ctx, getState());
enterRule(_localctx, 26, RULE_create_virtual_table_stmt);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(464);
match(K_CREATE);
setState(465);
match(K_VIRTUAL);
setState(466);
match(K_TABLE);
setState(470);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,48,_ctx) ) {
case 1:
{
setState(467);
match(K_IF);
setState(468);
match(K_NOT);
setState(469);
match(K_EXISTS);
}
break;
}
setState(475);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,49,_ctx) ) {
case 1:
{
setState(472);
schema_name();
setState(473);
match(DOT);
}
break;
}
setState(477);
table_name();
setState(478);
match(K_USING);
setState(479);
module_name();
setState(491);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==OPEN_PAR) {
{
setState(480);
match(OPEN_PAR);
setState(481);
module_argument();
setState(486);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
setState(482);
match(COMMA);
setState(483);
module_argument();
}
}
setState(488);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(489);
match(CLOSE_PAR);
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Delete_stmtContext extends ParserRuleContext {
public TerminalNode K_DELETE() { return getToken(SQLiteParser.K_DELETE, 0); }
public TerminalNode K_FROM() { return getToken(SQLiteParser.K_FROM, 0); }
public Qualified_table_nameContext qualified_table_name() {
return getRuleContext(Qualified_table_nameContext.class,0);
}
public With_clauseContext with_clause() {
return getRuleContext(With_clauseContext.class,0);
}
public TerminalNode K_WHERE() { return getToken(SQLiteParser.K_WHERE, 0); }
public ExprContext expr() {
return getRuleContext(ExprContext.class,0);
}
public Delete_stmtContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_delete_stmt; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterDelete_stmt(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitDelete_stmt(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitDelete_stmt(this);
else return visitor.visitChildren(this);
}
}
public final Delete_stmtContext delete_stmt() throws RecognitionException {
Delete_stmtContext _localctx = new Delete_stmtContext(_ctx, getState());
enterRule(_localctx, 28, RULE_delete_stmt);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(494);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_WITH) {
{
setState(493);
with_clause();
}
}
setState(496);
match(K_DELETE);
setState(497);
match(K_FROM);
setState(498);
qualified_table_name();
setState(501);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_WHERE) {
{
setState(499);
match(K_WHERE);
setState(500);
expr(0);
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Delete_stmt_limitedContext extends ParserRuleContext {
public TerminalNode K_DELETE() { return getToken(SQLiteParser.K_DELETE, 0); }
public TerminalNode K_FROM() { return getToken(SQLiteParser.K_FROM, 0); }
public Qualified_table_nameContext qualified_table_name() {
return getRuleContext(Qualified_table_nameContext.class,0);
}
public With_clauseContext with_clause() {
return getRuleContext(With_clauseContext.class,0);
}
public TerminalNode K_WHERE() { return getToken(SQLiteParser.K_WHERE, 0); }
public ExprContext expr() {
return getRuleContext(ExprContext.class,0);
}
public Limit_clauseContext limit_clause() {
return getRuleContext(Limit_clauseContext.class,0);
}
public Order_clauseContext order_clause() {
return getRuleContext(Order_clauseContext.class,0);
}
public Delete_stmt_limitedContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_delete_stmt_limited; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterDelete_stmt_limited(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitDelete_stmt_limited(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitDelete_stmt_limited(this);
else return visitor.visitChildren(this);
}
}
public final Delete_stmt_limitedContext delete_stmt_limited() throws RecognitionException {
Delete_stmt_limitedContext _localctx = new Delete_stmt_limitedContext(_ctx, getState());
enterRule(_localctx, 30, RULE_delete_stmt_limited);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(504);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_WITH) {
{
setState(503);
with_clause();
}
}
setState(506);
match(K_DELETE);
setState(507);
match(K_FROM);
setState(508);
qualified_table_name();
setState(511);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_WHERE) {
{
setState(509);
match(K_WHERE);
setState(510);
expr(0);
}
}
setState(517);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_LIMIT || _la==K_ORDER) {
{
setState(514);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_ORDER) {
{
setState(513);
order_clause();
}
}
setState(516);
limit_clause();
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Detach_stmtContext extends ParserRuleContext {
public TerminalNode K_DETACH() { return getToken(SQLiteParser.K_DETACH, 0); }
public Schema_nameContext schema_name() {
return getRuleContext(Schema_nameContext.class,0);
}
public TerminalNode K_DATABASE() { return getToken(SQLiteParser.K_DATABASE, 0); }
public Detach_stmtContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_detach_stmt; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterDetach_stmt(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitDetach_stmt(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitDetach_stmt(this);
else return visitor.visitChildren(this);
}
}
public final Detach_stmtContext detach_stmt() throws RecognitionException {
Detach_stmtContext _localctx = new Detach_stmtContext(_ctx, getState());
enterRule(_localctx, 32, RULE_detach_stmt);
try {
enterOuterAlt(_localctx, 1);
{
setState(519);
match(K_DETACH);
setState(521);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,58,_ctx) ) {
case 1:
{
setState(520);
match(K_DATABASE);
}
break;
}
setState(523);
schema_name();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Drop_index_stmtContext extends ParserRuleContext {
public TerminalNode K_DROP() { return getToken(SQLiteParser.K_DROP, 0); }
public TerminalNode K_INDEX() { return getToken(SQLiteParser.K_INDEX, 0); }
public Index_nameContext index_name() {
return getRuleContext(Index_nameContext.class,0);
}
public TerminalNode K_IF() { return getToken(SQLiteParser.K_IF, 0); }
public TerminalNode K_EXISTS() { return getToken(SQLiteParser.K_EXISTS, 0); }
public Schema_nameContext schema_name() {
return getRuleContext(Schema_nameContext.class,0);
}
public Drop_index_stmtContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_drop_index_stmt; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterDrop_index_stmt(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitDrop_index_stmt(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitDrop_index_stmt(this);
else return visitor.visitChildren(this);
}
}
public final Drop_index_stmtContext drop_index_stmt() throws RecognitionException {
Drop_index_stmtContext _localctx = new Drop_index_stmtContext(_ctx, getState());
enterRule(_localctx, 34, RULE_drop_index_stmt);
try {
enterOuterAlt(_localctx, 1);
{
setState(525);
match(K_DROP);
setState(526);
match(K_INDEX);
setState(529);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,59,_ctx) ) {
case 1:
{
setState(527);
match(K_IF);
setState(528);
match(K_EXISTS);
}
break;
}
setState(534);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,60,_ctx) ) {
case 1:
{
setState(531);
schema_name();
setState(532);
match(DOT);
}
break;
}
setState(536);
index_name();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Drop_table_stmtContext extends ParserRuleContext {
public TerminalNode K_DROP() { return getToken(SQLiteParser.K_DROP, 0); }
public TerminalNode K_TABLE() { return getToken(SQLiteParser.K_TABLE, 0); }
public Table_nameContext table_name() {
return getRuleContext(Table_nameContext.class,0);
}
public TerminalNode K_IF() { return getToken(SQLiteParser.K_IF, 0); }
public TerminalNode K_EXISTS() { return getToken(SQLiteParser.K_EXISTS, 0); }
public Schema_nameContext schema_name() {
return getRuleContext(Schema_nameContext.class,0);
}
public Drop_table_stmtContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_drop_table_stmt; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterDrop_table_stmt(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitDrop_table_stmt(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitDrop_table_stmt(this);
else return visitor.visitChildren(this);
}
}
public final Drop_table_stmtContext drop_table_stmt() throws RecognitionException {
Drop_table_stmtContext _localctx = new Drop_table_stmtContext(_ctx, getState());
enterRule(_localctx, 36, RULE_drop_table_stmt);
try {
enterOuterAlt(_localctx, 1);
{
setState(538);
match(K_DROP);
setState(539);
match(K_TABLE);
setState(542);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,61,_ctx) ) {
case 1:
{
setState(540);
match(K_IF);
setState(541);
match(K_EXISTS);
}
break;
}
setState(547);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,62,_ctx) ) {
case 1:
{
setState(544);
schema_name();
setState(545);
match(DOT);
}
break;
}
setState(549);
table_name();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Drop_trigger_stmtContext extends ParserRuleContext {
public TerminalNode K_DROP() { return getToken(SQLiteParser.K_DROP, 0); }
public TerminalNode K_TRIGGER() { return getToken(SQLiteParser.K_TRIGGER, 0); }
public Trigger_nameContext trigger_name() {
return getRuleContext(Trigger_nameContext.class,0);
}
public TerminalNode K_IF() { return getToken(SQLiteParser.K_IF, 0); }
public TerminalNode K_EXISTS() { return getToken(SQLiteParser.K_EXISTS, 0); }
public Schema_nameContext schema_name() {
return getRuleContext(Schema_nameContext.class,0);
}
public Drop_trigger_stmtContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_drop_trigger_stmt; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterDrop_trigger_stmt(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitDrop_trigger_stmt(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitDrop_trigger_stmt(this);
else return visitor.visitChildren(this);
}
}
public final Drop_trigger_stmtContext drop_trigger_stmt() throws RecognitionException {
Drop_trigger_stmtContext _localctx = new Drop_trigger_stmtContext(_ctx, getState());
enterRule(_localctx, 38, RULE_drop_trigger_stmt);
try {
enterOuterAlt(_localctx, 1);
{
setState(551);
match(K_DROP);
setState(552);
match(K_TRIGGER);
setState(555);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,63,_ctx) ) {
case 1:
{
setState(553);
match(K_IF);
setState(554);
match(K_EXISTS);
}
break;
}
setState(560);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,64,_ctx) ) {
case 1:
{
setState(557);
schema_name();
setState(558);
match(DOT);
}
break;
}
setState(562);
trigger_name();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Drop_view_stmtContext extends ParserRuleContext {
public TerminalNode K_DROP() { return getToken(SQLiteParser.K_DROP, 0); }
public TerminalNode K_VIEW() { return getToken(SQLiteParser.K_VIEW, 0); }
public View_nameContext view_name() {
return getRuleContext(View_nameContext.class,0);
}
public TerminalNode K_IF() { return getToken(SQLiteParser.K_IF, 0); }
public TerminalNode K_EXISTS() { return getToken(SQLiteParser.K_EXISTS, 0); }
public Schema_nameContext schema_name() {
return getRuleContext(Schema_nameContext.class,0);
}
public Drop_view_stmtContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_drop_view_stmt; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterDrop_view_stmt(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitDrop_view_stmt(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitDrop_view_stmt(this);
else return visitor.visitChildren(this);
}
}
public final Drop_view_stmtContext drop_view_stmt() throws RecognitionException {
Drop_view_stmtContext _localctx = new Drop_view_stmtContext(_ctx, getState());
enterRule(_localctx, 40, RULE_drop_view_stmt);
try {
enterOuterAlt(_localctx, 1);
{
setState(564);
match(K_DROP);
setState(565);
match(K_VIEW);
setState(568);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,65,_ctx) ) {
case 1:
{
setState(566);
match(K_IF);
setState(567);
match(K_EXISTS);
}
break;
}
setState(573);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,66,_ctx) ) {
case 1:
{
setState(570);
schema_name();
setState(571);
match(DOT);
}
break;
}
setState(575);
view_name();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Insert_stmtContext extends ParserRuleContext {
public TerminalNode K_INTO() { return getToken(SQLiteParser.K_INTO, 0); }
public Table_nameContext table_name() {
return getRuleContext(Table_nameContext.class,0);
}
public TerminalNode K_INSERT() { return getToken(SQLiteParser.K_INSERT, 0); }
public TerminalNode K_REPLACE() { return getToken(SQLiteParser.K_REPLACE, 0); }
public TerminalNode K_OR() { return getToken(SQLiteParser.K_OR, 0); }
public TerminalNode K_ROLLBACK() { return getToken(SQLiteParser.K_ROLLBACK, 0); }
public TerminalNode K_ABORT() { return getToken(SQLiteParser.K_ABORT, 0); }
public TerminalNode K_FAIL() { return getToken(SQLiteParser.K_FAIL, 0); }
public TerminalNode K_IGNORE() { return getToken(SQLiteParser.K_IGNORE, 0); }
public TerminalNode K_VALUES() { return getToken(SQLiteParser.K_VALUES, 0); }
public List comma_separated_expr() {
return getRuleContexts(Comma_separated_exprContext.class);
}
public Comma_separated_exprContext comma_separated_expr(int i) {
return getRuleContext(Comma_separated_exprContext.class,i);
}
public Select_stmtContext select_stmt() {
return getRuleContext(Select_stmtContext.class,0);
}
public TerminalNode K_DEFAULT() { return getToken(SQLiteParser.K_DEFAULT, 0); }
public With_clauseContext with_clause() {
return getRuleContext(With_clauseContext.class,0);
}
public Schema_nameContext schema_name() {
return getRuleContext(Schema_nameContext.class,0);
}
public TerminalNode K_AS() { return getToken(SQLiteParser.K_AS, 0); }
public Table_aliasContext table_alias() {
return getRuleContext(Table_aliasContext.class,0);
}
public List column_name() {
return getRuleContexts(Column_nameContext.class);
}
public Column_nameContext column_name(int i) {
return getRuleContext(Column_nameContext.class,i);
}
public Upsert_clauseContext upsert_clause() {
return getRuleContext(Upsert_clauseContext.class,0);
}
public Insert_stmtContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_insert_stmt; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterInsert_stmt(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitInsert_stmt(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitInsert_stmt(this);
else return visitor.visitChildren(this);
}
}
public final Insert_stmtContext insert_stmt() throws RecognitionException {
Insert_stmtContext _localctx = new Insert_stmtContext(_ctx, getState());
enterRule(_localctx, 42, RULE_insert_stmt);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(578);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_WITH) {
{
setState(577);
with_clause();
}
}
setState(597);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,68,_ctx) ) {
case 1:
{
setState(580);
match(K_INSERT);
}
break;
case 2:
{
setState(581);
match(K_REPLACE);
}
break;
case 3:
{
setState(582);
match(K_INSERT);
setState(583);
match(K_OR);
setState(584);
match(K_REPLACE);
}
break;
case 4:
{
setState(585);
match(K_INSERT);
setState(586);
match(K_OR);
setState(587);
match(K_ROLLBACK);
}
break;
case 5:
{
setState(588);
match(K_INSERT);
setState(589);
match(K_OR);
setState(590);
match(K_ABORT);
}
break;
case 6:
{
setState(591);
match(K_INSERT);
setState(592);
match(K_OR);
setState(593);
match(K_FAIL);
}
break;
case 7:
{
setState(594);
match(K_INSERT);
setState(595);
match(K_OR);
setState(596);
match(K_IGNORE);
}
break;
}
setState(599);
match(K_INTO);
setState(603);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,69,_ctx) ) {
case 1:
{
setState(600);
schema_name();
setState(601);
match(DOT);
}
break;
}
setState(605);
table_name();
setState(608);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_AS) {
{
setState(606);
match(K_AS);
setState(607);
table_alias();
}
}
setState(621);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==OPEN_PAR) {
{
setState(610);
match(OPEN_PAR);
setState(611);
column_name();
setState(616);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
setState(612);
match(COMMA);
setState(613);
column_name();
}
}
setState(618);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(619);
match(CLOSE_PAR);
}
}
setState(640);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,74,_ctx) ) {
case 1:
{
setState(623);
match(K_VALUES);
setState(624);
match(OPEN_PAR);
setState(625);
comma_separated_expr();
setState(626);
match(CLOSE_PAR);
setState(634);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
setState(627);
match(COMMA);
setState(628);
match(OPEN_PAR);
setState(629);
comma_separated_expr();
setState(630);
match(CLOSE_PAR);
}
}
setState(636);
_errHandler.sync(this);
_la = _input.LA(1);
}
}
break;
case 2:
{
setState(637);
select_stmt();
}
break;
case 3:
{
setState(638);
match(K_DEFAULT);
setState(639);
match(K_VALUES);
}
break;
}
setState(643);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_ON) {
{
setState(642);
upsert_clause();
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Upsert_clauseContext extends ParserRuleContext {
public TerminalNode K_ON() { return getToken(SQLiteParser.K_ON, 0); }
public TerminalNode K_CONFLICT() { return getToken(SQLiteParser.K_CONFLICT, 0); }
public TerminalNode DO_NOTHING() { return getToken(SQLiteParser.DO_NOTHING, 0); }
public TerminalNode DO_UPDATE() { return getToken(SQLiteParser.DO_UPDATE, 0); }
public TerminalNode K_SET() { return getToken(SQLiteParser.K_SET, 0); }
public List expr() {
return getRuleContexts(ExprContext.class);
}
public ExprContext expr(int i) {
return getRuleContext(ExprContext.class,i);
}
public List indexed_column() {
return getRuleContexts(Indexed_columnContext.class);
}
public Indexed_columnContext indexed_column(int i) {
return getRuleContext(Indexed_columnContext.class,i);
}
public List column_name() {
return getRuleContexts(Column_nameContext.class);
}
public Column_nameContext column_name(int i) {
return getRuleContext(Column_nameContext.class,i);
}
public List column_name_list() {
return getRuleContexts(Column_name_listContext.class);
}
public Column_name_listContext column_name_list(int i) {
return getRuleContext(Column_name_listContext.class,i);
}
public List K_WHERE() { return getTokens(SQLiteParser.K_WHERE); }
public TerminalNode K_WHERE(int i) {
return getToken(SQLiteParser.K_WHERE, i);
}
public Upsert_clauseContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_upsert_clause; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterUpsert_clause(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitUpsert_clause(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitUpsert_clause(this);
else return visitor.visitChildren(this);
}
}
public final Upsert_clauseContext upsert_clause() throws RecognitionException {
Upsert_clauseContext _localctx = new Upsert_clauseContext(_ctx, getState());
enterRule(_localctx, 44, RULE_upsert_clause);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(645);
match(K_ON);
setState(646);
match(K_CONFLICT);
setState(661);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==OPEN_PAR) {
{
setState(647);
match(OPEN_PAR);
setState(648);
indexed_column();
setState(653);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
setState(649);
match(COMMA);
setState(650);
indexed_column();
}
}
setState(655);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(656);
match(CLOSE_PAR);
setState(659);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_WHERE) {
{
setState(657);
match(K_WHERE);
setState(658);
expr(0);
}
}
}
}
setState(689);
_errHandler.sync(this);
switch (_input.LA(1)) {
case DO_NOTHING:
{
setState(663);
match(DO_NOTHING);
}
break;
case DO_UPDATE:
{
setState(664);
match(DO_UPDATE);
setState(665);
match(K_SET);
setState(668);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,79,_ctx) ) {
case 1:
{
setState(666);
column_name();
}
break;
case 2:
{
setState(667);
column_name_list();
}
break;
}
setState(670);
match(ASSIGN);
setState(671);
expr(0);
setState(682);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
setState(672);
match(COMMA);
setState(675);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,80,_ctx) ) {
case 1:
{
setState(673);
column_name();
}
break;
case 2:
{
setState(674);
column_name_list();
}
break;
}
setState(677);
match(ASSIGN);
setState(678);
expr(0);
}
}
setState(684);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(687);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_WHERE) {
{
setState(685);
match(K_WHERE);
setState(686);
expr(0);
}
}
}
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 Pragma_stmtContext extends ParserRuleContext {
public TerminalNode K_PRAGMA() { return getToken(SQLiteParser.K_PRAGMA, 0); }
public Pragma_nameContext pragma_name() {
return getRuleContext(Pragma_nameContext.class,0);
}
public Schema_nameContext schema_name() {
return getRuleContext(Schema_nameContext.class,0);
}
public Pragma_valueContext pragma_value() {
return getRuleContext(Pragma_valueContext.class,0);
}
public Pragma_stmtContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_pragma_stmt; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterPragma_stmt(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitPragma_stmt(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitPragma_stmt(this);
else return visitor.visitChildren(this);
}
}
public final Pragma_stmtContext pragma_stmt() throws RecognitionException {
Pragma_stmtContext _localctx = new Pragma_stmtContext(_ctx, getState());
enterRule(_localctx, 46, RULE_pragma_stmt);
try {
enterOuterAlt(_localctx, 1);
{
setState(691);
match(K_PRAGMA);
setState(695);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,84,_ctx) ) {
case 1:
{
setState(692);
schema_name();
setState(693);
match(DOT);
}
break;
}
setState(697);
pragma_name();
setState(704);
_errHandler.sync(this);
switch (_input.LA(1)) {
case ASSIGN:
{
setState(698);
match(ASSIGN);
setState(699);
pragma_value();
}
break;
case OPEN_PAR:
{
setState(700);
match(OPEN_PAR);
setState(701);
pragma_value();
setState(702);
match(CLOSE_PAR);
}
break;
case EOF:
case SCOL:
case K_ALTER:
case K_ANALYZE:
case K_ATTACH:
case K_BEGIN:
case K_COMMIT:
case K_CREATE:
case K_DELETE:
case K_DETACH:
case K_DROP:
case K_END:
case K_EXPLAIN:
case K_INSERT:
case K_PRAGMA:
case K_REINDEX:
case K_RELEASE:
case K_REPLACE:
case K_ROLLBACK:
case K_SAVEPOINT:
case K_SELECT:
case K_UPDATE:
case K_VACUUM:
case K_VALUES:
case K_WITH:
case UNEXPECTED_CHAR:
break;
default:
break;
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Reindex_stmtContext extends ParserRuleContext {
public TerminalNode K_REINDEX() { return getToken(SQLiteParser.K_REINDEX, 0); }
public Collation_nameContext collation_name() {
return getRuleContext(Collation_nameContext.class,0);
}
public Table_nameContext table_name() {
return getRuleContext(Table_nameContext.class,0);
}
public Index_nameContext index_name() {
return getRuleContext(Index_nameContext.class,0);
}
public Schema_nameContext schema_name() {
return getRuleContext(Schema_nameContext.class,0);
}
public Reindex_stmtContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_reindex_stmt; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterReindex_stmt(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitReindex_stmt(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitReindex_stmt(this);
else return visitor.visitChildren(this);
}
}
public final Reindex_stmtContext reindex_stmt() throws RecognitionException {
Reindex_stmtContext _localctx = new Reindex_stmtContext(_ctx, getState());
enterRule(_localctx, 48, RULE_reindex_stmt);
try {
enterOuterAlt(_localctx, 1);
{
setState(706);
match(K_REINDEX);
setState(717);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,88,_ctx) ) {
case 1:
{
setState(707);
collation_name();
}
break;
case 2:
{
setState(711);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,86,_ctx) ) {
case 1:
{
setState(708);
schema_name();
setState(709);
match(DOT);
}
break;
}
setState(715);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,87,_ctx) ) {
case 1:
{
setState(713);
table_name();
}
break;
case 2:
{
setState(714);
index_name();
}
break;
}
}
break;
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Release_stmtContext extends ParserRuleContext {
public TerminalNode K_RELEASE() { return getToken(SQLiteParser.K_RELEASE, 0); }
public Savepoint_nameContext savepoint_name() {
return getRuleContext(Savepoint_nameContext.class,0);
}
public TerminalNode K_SAVEPOINT() { return getToken(SQLiteParser.K_SAVEPOINT, 0); }
public Release_stmtContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_release_stmt; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterRelease_stmt(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitRelease_stmt(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitRelease_stmt(this);
else return visitor.visitChildren(this);
}
}
public final Release_stmtContext release_stmt() throws RecognitionException {
Release_stmtContext _localctx = new Release_stmtContext(_ctx, getState());
enterRule(_localctx, 50, RULE_release_stmt);
try {
enterOuterAlt(_localctx, 1);
{
setState(719);
match(K_RELEASE);
setState(721);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,89,_ctx) ) {
case 1:
{
setState(720);
match(K_SAVEPOINT);
}
break;
}
setState(723);
savepoint_name();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Rollback_stmtContext extends ParserRuleContext {
public TerminalNode K_ROLLBACK() { return getToken(SQLiteParser.K_ROLLBACK, 0); }
public TerminalNode K_TRANSACTION() { return getToken(SQLiteParser.K_TRANSACTION, 0); }
public TerminalNode K_TO() { return getToken(SQLiteParser.K_TO, 0); }
public Savepoint_nameContext savepoint_name() {
return getRuleContext(Savepoint_nameContext.class,0);
}
public Transaction_nameContext transaction_name() {
return getRuleContext(Transaction_nameContext.class,0);
}
public TerminalNode K_SAVEPOINT() { return getToken(SQLiteParser.K_SAVEPOINT, 0); }
public Rollback_stmtContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_rollback_stmt; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterRollback_stmt(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitRollback_stmt(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitRollback_stmt(this);
else return visitor.visitChildren(this);
}
}
public final Rollback_stmtContext rollback_stmt() throws RecognitionException {
Rollback_stmtContext _localctx = new Rollback_stmtContext(_ctx, getState());
enterRule(_localctx, 52, RULE_rollback_stmt);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(725);
match(K_ROLLBACK);
setState(730);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_TRANSACTION) {
{
setState(726);
match(K_TRANSACTION);
setState(728);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,90,_ctx) ) {
case 1:
{
setState(727);
transaction_name();
}
break;
}
}
}
setState(737);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_TO) {
{
setState(732);
match(K_TO);
setState(734);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,92,_ctx) ) {
case 1:
{
setState(733);
match(K_SAVEPOINT);
}
break;
}
setState(736);
savepoint_name();
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Savepoint_stmtContext extends ParserRuleContext {
public TerminalNode K_SAVEPOINT() { return getToken(SQLiteParser.K_SAVEPOINT, 0); }
public Savepoint_nameContext savepoint_name() {
return getRuleContext(Savepoint_nameContext.class,0);
}
public Savepoint_stmtContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_savepoint_stmt; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterSavepoint_stmt(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitSavepoint_stmt(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitSavepoint_stmt(this);
else return visitor.visitChildren(this);
}
}
public final Savepoint_stmtContext savepoint_stmt() throws RecognitionException {
Savepoint_stmtContext _localctx = new Savepoint_stmtContext(_ctx, getState());
enterRule(_localctx, 54, RULE_savepoint_stmt);
try {
enterOuterAlt(_localctx, 1);
{
setState(739);
match(K_SAVEPOINT);
setState(740);
savepoint_name();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Select_stmtContext extends ParserRuleContext {
public List select_or_values() {
return getRuleContexts(Select_or_valuesContext.class);
}
public Select_or_valuesContext select_or_values(int i) {
return getRuleContext(Select_or_valuesContext.class,i);
}
public With_clauseContext with_clause() {
return getRuleContext(With_clauseContext.class,0);
}
public List compound_operator() {
return getRuleContexts(Compound_operatorContext.class);
}
public Compound_operatorContext compound_operator(int i) {
return getRuleContext(Compound_operatorContext.class,i);
}
public Order_clauseContext order_clause() {
return getRuleContext(Order_clauseContext.class,0);
}
public Limit_clauseContext limit_clause() {
return getRuleContext(Limit_clauseContext.class,0);
}
public Select_stmtContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_select_stmt; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterSelect_stmt(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitSelect_stmt(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitSelect_stmt(this);
else return visitor.visitChildren(this);
}
}
public final Select_stmtContext select_stmt() throws RecognitionException {
Select_stmtContext _localctx = new Select_stmtContext(_ctx, getState());
enterRule(_localctx, 56, RULE_select_stmt);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(743);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_WITH) {
{
setState(742);
with_clause();
}
}
setState(745);
select_or_values();
setState(751);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==K_EXCEPT || _la==K_INTERSECT || _la==K_UNION) {
{
{
setState(746);
compound_operator();
setState(747);
select_or_values();
}
}
setState(753);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(755);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_ORDER) {
{
setState(754);
order_clause();
}
}
setState(758);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_LIMIT) {
{
setState(757);
limit_clause();
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Select_or_valuesContext extends ParserRuleContext {
public TerminalNode K_SELECT() { return getToken(SQLiteParser.K_SELECT, 0); }
public List result_column() {
return getRuleContexts(Result_columnContext.class);
}
public Result_columnContext result_column(int i) {
return getRuleContext(Result_columnContext.class,i);
}
public TerminalNode K_FROM() { return getToken(SQLiteParser.K_FROM, 0); }
public TerminalNode K_WHERE() { return getToken(SQLiteParser.K_WHERE, 0); }
public List expr() {
return getRuleContexts(ExprContext.class);
}
public ExprContext expr(int i) {
return getRuleContext(ExprContext.class,i);
}
public TerminalNode K_GROUP() { return getToken(SQLiteParser.K_GROUP, 0); }
public TerminalNode K_BY() { return getToken(SQLiteParser.K_BY, 0); }
public List comma_separated_expr() {
return getRuleContexts(Comma_separated_exprContext.class);
}
public Comma_separated_exprContext comma_separated_expr(int i) {
return getRuleContext(Comma_separated_exprContext.class,i);
}
public TerminalNode K_DISTINCT() { return getToken(SQLiteParser.K_DISTINCT, 0); }
public TerminalNode K_ALL() { return getToken(SQLiteParser.K_ALL, 0); }
public List table_or_subquery() {
return getRuleContexts(Table_or_subqueryContext.class);
}
public Table_or_subqueryContext table_or_subquery(int i) {
return getRuleContext(Table_or_subqueryContext.class,i);
}
public Join_clauseContext join_clause() {
return getRuleContext(Join_clauseContext.class,0);
}
public TerminalNode K_HAVING() { return getToken(SQLiteParser.K_HAVING, 0); }
public TerminalNode K_VALUES() { return getToken(SQLiteParser.K_VALUES, 0); }
public Select_or_valuesContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_select_or_values; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterSelect_or_values(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitSelect_or_values(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitSelect_or_values(this);
else return visitor.visitChildren(this);
}
}
public final Select_or_valuesContext select_or_values() throws RecognitionException {
Select_or_valuesContext _localctx = new Select_or_valuesContext(_ctx, getState());
enterRule(_localctx, 58, RULE_select_or_values);
int _la;
try {
setState(813);
_errHandler.sync(this);
switch (_input.LA(1)) {
case K_SELECT:
enterOuterAlt(_localctx, 1);
{
setState(760);
match(K_SELECT);
setState(762);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,98,_ctx) ) {
case 1:
{
setState(761);
_la = _input.LA(1);
if ( !(_la==K_ALL || _la==K_DISTINCT) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
}
break;
}
setState(764);
result_column();
setState(769);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
setState(765);
match(COMMA);
setState(766);
result_column();
}
}
setState(771);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(784);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_FROM) {
{
setState(772);
match(K_FROM);
setState(782);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,101,_ctx) ) {
case 1:
{
setState(773);
table_or_subquery();
setState(778);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
setState(774);
match(COMMA);
setState(775);
table_or_subquery();
}
}
setState(780);
_errHandler.sync(this);
_la = _input.LA(1);
}
}
break;
case 2:
{
setState(781);
join_clause();
}
break;
}
}
}
setState(788);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_WHERE) {
{
setState(786);
match(K_WHERE);
setState(787);
expr(0);
}
}
setState(797);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_GROUP) {
{
setState(790);
match(K_GROUP);
setState(791);
match(K_BY);
setState(792);
comma_separated_expr();
setState(795);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_HAVING) {
{
setState(793);
match(K_HAVING);
setState(794);
expr(0);
}
}
}
}
}
break;
case K_VALUES:
enterOuterAlt(_localctx, 2);
{
setState(799);
match(K_VALUES);
setState(800);
match(OPEN_PAR);
setState(801);
comma_separated_expr();
setState(802);
match(CLOSE_PAR);
setState(810);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
setState(803);
match(COMMA);
setState(804);
match(OPEN_PAR);
setState(805);
comma_separated_expr();
setState(806);
match(CLOSE_PAR);
}
}
setState(812);
_errHandler.sync(this);
_la = _input.LA(1);
}
}
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 Update_stmtContext extends ParserRuleContext {
public TerminalNode K_UPDATE() { return getToken(SQLiteParser.K_UPDATE, 0); }
public Qualified_table_nameContext qualified_table_name() {
return getRuleContext(Qualified_table_nameContext.class,0);
}
public TerminalNode K_SET() { return getToken(SQLiteParser.K_SET, 0); }
public List expr() {
return getRuleContexts(ExprContext.class);
}
public ExprContext expr(int i) {
return getRuleContext(ExprContext.class,i);
}
public List column_name() {
return getRuleContexts(Column_nameContext.class);
}
public Column_nameContext column_name(int i) {
return getRuleContext(Column_nameContext.class,i);
}
public List column_name_list() {
return getRuleContexts(Column_name_listContext.class);
}
public Column_name_listContext column_name_list(int i) {
return getRuleContext(Column_name_listContext.class,i);
}
public With_clauseContext with_clause() {
return getRuleContext(With_clauseContext.class,0);
}
public TerminalNode K_OR() { return getToken(SQLiteParser.K_OR, 0); }
public TerminalNode K_ROLLBACK() { return getToken(SQLiteParser.K_ROLLBACK, 0); }
public TerminalNode K_ABORT() { return getToken(SQLiteParser.K_ABORT, 0); }
public TerminalNode K_REPLACE() { return getToken(SQLiteParser.K_REPLACE, 0); }
public TerminalNode K_FAIL() { return getToken(SQLiteParser.K_FAIL, 0); }
public TerminalNode K_IGNORE() { return getToken(SQLiteParser.K_IGNORE, 0); }
public TerminalNode K_WHERE() { return getToken(SQLiteParser.K_WHERE, 0); }
public Update_stmtContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_update_stmt; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterUpdate_stmt(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitUpdate_stmt(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitUpdate_stmt(this);
else return visitor.visitChildren(this);
}
}
public final Update_stmtContext update_stmt() throws RecognitionException {
Update_stmtContext _localctx = new Update_stmtContext(_ctx, getState());
enterRule(_localctx, 60, RULE_update_stmt);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(816);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_WITH) {
{
setState(815);
with_clause();
}
}
setState(818);
match(K_UPDATE);
setState(829);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,109,_ctx) ) {
case 1:
{
setState(819);
match(K_OR);
setState(820);
match(K_ROLLBACK);
}
break;
case 2:
{
setState(821);
match(K_OR);
setState(822);
match(K_ABORT);
}
break;
case 3:
{
setState(823);
match(K_OR);
setState(824);
match(K_REPLACE);
}
break;
case 4:
{
setState(825);
match(K_OR);
setState(826);
match(K_FAIL);
}
break;
case 5:
{
setState(827);
match(K_OR);
setState(828);
match(K_IGNORE);
}
break;
}
setState(831);
qualified_table_name();
setState(832);
match(K_SET);
setState(835);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,110,_ctx) ) {
case 1:
{
setState(833);
column_name();
}
break;
case 2:
{
setState(834);
column_name_list();
}
break;
}
setState(837);
match(ASSIGN);
setState(838);
expr(0);
setState(849);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
setState(839);
match(COMMA);
setState(842);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,111,_ctx) ) {
case 1:
{
setState(840);
column_name();
}
break;
case 2:
{
setState(841);
column_name_list();
}
break;
}
setState(844);
match(ASSIGN);
setState(845);
expr(0);
}
}
setState(851);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(854);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_WHERE) {
{
setState(852);
match(K_WHERE);
setState(853);
expr(0);
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Update_stmt_limitedContext extends ParserRuleContext {
public TerminalNode K_UPDATE() { return getToken(SQLiteParser.K_UPDATE, 0); }
public Qualified_table_nameContext qualified_table_name() {
return getRuleContext(Qualified_table_nameContext.class,0);
}
public TerminalNode K_SET() { return getToken(SQLiteParser.K_SET, 0); }
public List expr() {
return getRuleContexts(ExprContext.class);
}
public ExprContext expr(int i) {
return getRuleContext(ExprContext.class,i);
}
public List column_name() {
return getRuleContexts(Column_nameContext.class);
}
public Column_nameContext column_name(int i) {
return getRuleContext(Column_nameContext.class,i);
}
public List column_name_list() {
return getRuleContexts(Column_name_listContext.class);
}
public Column_name_listContext column_name_list(int i) {
return getRuleContext(Column_name_listContext.class,i);
}
public With_clauseContext with_clause() {
return getRuleContext(With_clauseContext.class,0);
}
public TerminalNode K_OR() { return getToken(SQLiteParser.K_OR, 0); }
public TerminalNode K_ROLLBACK() { return getToken(SQLiteParser.K_ROLLBACK, 0); }
public TerminalNode K_ABORT() { return getToken(SQLiteParser.K_ABORT, 0); }
public TerminalNode K_REPLACE() { return getToken(SQLiteParser.K_REPLACE, 0); }
public TerminalNode K_FAIL() { return getToken(SQLiteParser.K_FAIL, 0); }
public TerminalNode K_IGNORE() { return getToken(SQLiteParser.K_IGNORE, 0); }
public TerminalNode K_WHERE() { return getToken(SQLiteParser.K_WHERE, 0); }
public Limit_clauseContext limit_clause() {
return getRuleContext(Limit_clauseContext.class,0);
}
public Order_clauseContext order_clause() {
return getRuleContext(Order_clauseContext.class,0);
}
public Update_stmt_limitedContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_update_stmt_limited; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterUpdate_stmt_limited(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitUpdate_stmt_limited(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitUpdate_stmt_limited(this);
else return visitor.visitChildren(this);
}
}
public final Update_stmt_limitedContext update_stmt_limited() throws RecognitionException {
Update_stmt_limitedContext _localctx = new Update_stmt_limitedContext(_ctx, getState());
enterRule(_localctx, 62, RULE_update_stmt_limited);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(857);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_WITH) {
{
setState(856);
with_clause();
}
}
setState(859);
match(K_UPDATE);
setState(870);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,115,_ctx) ) {
case 1:
{
setState(860);
match(K_OR);
setState(861);
match(K_ROLLBACK);
}
break;
case 2:
{
setState(862);
match(K_OR);
setState(863);
match(K_ABORT);
}
break;
case 3:
{
setState(864);
match(K_OR);
setState(865);
match(K_REPLACE);
}
break;
case 4:
{
setState(866);
match(K_OR);
setState(867);
match(K_FAIL);
}
break;
case 5:
{
setState(868);
match(K_OR);
setState(869);
match(K_IGNORE);
}
break;
}
setState(872);
qualified_table_name();
setState(873);
match(K_SET);
setState(876);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,116,_ctx) ) {
case 1:
{
setState(874);
column_name();
}
break;
case 2:
{
setState(875);
column_name_list();
}
break;
}
setState(878);
match(ASSIGN);
setState(879);
expr(0);
setState(890);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
setState(880);
match(COMMA);
setState(883);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,117,_ctx) ) {
case 1:
{
setState(881);
column_name();
}
break;
case 2:
{
setState(882);
column_name_list();
}
break;
}
setState(885);
match(ASSIGN);
setState(886);
expr(0);
}
}
setState(892);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(895);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_WHERE) {
{
setState(893);
match(K_WHERE);
setState(894);
expr(0);
}
}
setState(901);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_LIMIT || _la==K_ORDER) {
{
setState(898);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_ORDER) {
{
setState(897);
order_clause();
}
}
setState(900);
limit_clause();
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Vacuum_stmtContext extends ParserRuleContext {
public TerminalNode K_VACUUM() { return getToken(SQLiteParser.K_VACUUM, 0); }
public Schema_nameContext schema_name() {
return getRuleContext(Schema_nameContext.class,0);
}
public Vacuum_stmtContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_vacuum_stmt; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterVacuum_stmt(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitVacuum_stmt(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitVacuum_stmt(this);
else return visitor.visitChildren(this);
}
}
public final Vacuum_stmtContext vacuum_stmt() throws RecognitionException {
Vacuum_stmtContext _localctx = new Vacuum_stmtContext(_ctx, getState());
enterRule(_localctx, 64, RULE_vacuum_stmt);
try {
enterOuterAlt(_localctx, 1);
{
setState(903);
match(K_VACUUM);
setState(905);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,122,_ctx) ) {
case 1:
{
setState(904);
schema_name();
}
break;
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Column_defContext extends ParserRuleContext {
public Column_nameContext column_name() {
return getRuleContext(Column_nameContext.class,0);
}
public Type_nameContext type_name() {
return getRuleContext(Type_nameContext.class,0);
}
public List column_constraint() {
return getRuleContexts(Column_constraintContext.class);
}
public Column_constraintContext column_constraint(int i) {
return getRuleContext(Column_constraintContext.class,i);
}
public Column_defContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_column_def; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterColumn_def(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitColumn_def(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitColumn_def(this);
else return visitor.visitChildren(this);
}
}
public final Column_defContext column_def() throws RecognitionException {
Column_defContext _localctx = new Column_defContext(_ctx, getState());
enterRule(_localctx, 66, RULE_column_def);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(907);
column_name();
setState(909);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,123,_ctx) ) {
case 1:
{
setState(908);
type_name();
}
break;
}
setState(914);
_errHandler.sync(this);
_la = _input.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << K_CHECK) | (1L << K_COLLATE) | (1L << K_CONSTRAINT) | (1L << K_DEFAULT))) != 0) || ((((_la - 104)) & ~0x3f) == 0 && ((1L << (_la - 104)) & ((1L << (K_NOT - 104)) | (1L << (K_NULL - 104)) | (1L << (K_PRIMARY - 104)) | (1L << (K_REFERENCES - 104)) | (1L << (K_UNIQUE - 104)))) != 0)) {
{
{
setState(911);
column_constraint();
}
}
setState(916);
_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 Type_nameContext extends ParserRuleContext {
public List name() {
return getRuleContexts(NameContext.class);
}
public NameContext name(int i) {
return getRuleContext(NameContext.class,i);
}
public List signed_number() {
return getRuleContexts(Signed_numberContext.class);
}
public Signed_numberContext signed_number(int i) {
return getRuleContext(Signed_numberContext.class,i);
}
public Type_nameContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_type_name; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterType_name(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitType_name(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitType_name(this);
else return visitor.visitChildren(this);
}
}
public final Type_nameContext type_name() throws RecognitionException {
Type_nameContext _localctx = new Type_nameContext(_ctx, getState());
enterRule(_localctx, 68, RULE_type_name);
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
setState(918);
_errHandler.sync(this);
_alt = 1+1;
do {
switch (_alt) {
case 1+1:
{
{
setState(917);
name();
}
}
break;
default:
throw new NoViableAltException(this);
}
setState(920);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,125,_ctx);
} while ( _alt!=1 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER );
setState(932);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,126,_ctx) ) {
case 1:
{
setState(922);
match(OPEN_PAR);
setState(923);
signed_number();
setState(924);
match(CLOSE_PAR);
}
break;
case 2:
{
setState(926);
match(OPEN_PAR);
setState(927);
signed_number();
setState(928);
match(COMMA);
setState(929);
signed_number();
setState(930);
match(CLOSE_PAR);
}
break;
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Column_constraintContext extends ParserRuleContext {
public TerminalNode K_PRIMARY() { return getToken(SQLiteParser.K_PRIMARY, 0); }
public TerminalNode K_KEY() { return getToken(SQLiteParser.K_KEY, 0); }
public Conflict_clauseContext conflict_clause() {
return getRuleContext(Conflict_clauseContext.class,0);
}
public TerminalNode K_NULL() { return getToken(SQLiteParser.K_NULL, 0); }
public TerminalNode K_UNIQUE() { return getToken(SQLiteParser.K_UNIQUE, 0); }
public TerminalNode K_CHECK() { return getToken(SQLiteParser.K_CHECK, 0); }
public ExprContext expr() {
return getRuleContext(ExprContext.class,0);
}
public TerminalNode K_DEFAULT() { return getToken(SQLiteParser.K_DEFAULT, 0); }
public TerminalNode K_COLLATE() { return getToken(SQLiteParser.K_COLLATE, 0); }
public Collation_nameContext collation_name() {
return getRuleContext(Collation_nameContext.class,0);
}
public Foreign_key_clauseContext foreign_key_clause() {
return getRuleContext(Foreign_key_clauseContext.class,0);
}
public TerminalNode K_CONSTRAINT() { return getToken(SQLiteParser.K_CONSTRAINT, 0); }
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public Signed_numberContext signed_number() {
return getRuleContext(Signed_numberContext.class,0);
}
public Literal_valueContext literal_value() {
return getRuleContext(Literal_valueContext.class,0);
}
public TerminalNode K_AUTOINCREMENT() { return getToken(SQLiteParser.K_AUTOINCREMENT, 0); }
public TerminalNode K_NOT() { return getToken(SQLiteParser.K_NOT, 0); }
public TerminalNode K_ASC() { return getToken(SQLiteParser.K_ASC, 0); }
public TerminalNode K_DESC() { return getToken(SQLiteParser.K_DESC, 0); }
public Column_constraintContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_column_constraint; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterColumn_constraint(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitColumn_constraint(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitColumn_constraint(this);
else return visitor.visitChildren(this);
}
}
public final Column_constraintContext column_constraint() throws RecognitionException {
Column_constraintContext _localctx = new Column_constraintContext(_ctx, getState());
enterRule(_localctx, 70, RULE_column_constraint);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(936);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_CONSTRAINT) {
{
setState(934);
match(K_CONSTRAINT);
setState(935);
name();
}
}
setState(971);
_errHandler.sync(this);
switch (_input.LA(1)) {
case K_PRIMARY:
{
setState(938);
match(K_PRIMARY);
setState(939);
match(K_KEY);
setState(941);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_ASC || _la==K_DESC) {
{
setState(940);
_la = _input.LA(1);
if ( !(_la==K_ASC || _la==K_DESC) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
}
}
setState(943);
conflict_clause();
setState(945);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_AUTOINCREMENT) {
{
setState(944);
match(K_AUTOINCREMENT);
}
}
}
break;
case K_NOT:
case K_NULL:
{
setState(948);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_NOT) {
{
setState(947);
match(K_NOT);
}
}
setState(950);
match(K_NULL);
setState(951);
conflict_clause();
}
break;
case K_UNIQUE:
{
setState(952);
match(K_UNIQUE);
setState(953);
conflict_clause();
}
break;
case K_CHECK:
{
setState(954);
match(K_CHECK);
setState(955);
match(OPEN_PAR);
setState(956);
expr(0);
setState(957);
match(CLOSE_PAR);
}
break;
case K_DEFAULT:
{
setState(959);
match(K_DEFAULT);
setState(966);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,131,_ctx) ) {
case 1:
{
setState(960);
signed_number();
}
break;
case 2:
{
setState(961);
literal_value();
}
break;
case 3:
{
setState(962);
match(OPEN_PAR);
setState(963);
expr(0);
setState(964);
match(CLOSE_PAR);
}
break;
}
}
break;
case K_COLLATE:
{
setState(968);
match(K_COLLATE);
setState(969);
collation_name();
}
break;
case K_REFERENCES:
{
setState(970);
foreign_key_clause();
}
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 Conflict_clauseContext extends ParserRuleContext {
public TerminalNode K_ON() { return getToken(SQLiteParser.K_ON, 0); }
public TerminalNode K_CONFLICT() { return getToken(SQLiteParser.K_CONFLICT, 0); }
public TerminalNode K_ROLLBACK() { return getToken(SQLiteParser.K_ROLLBACK, 0); }
public TerminalNode K_ABORT() { return getToken(SQLiteParser.K_ABORT, 0); }
public TerminalNode K_FAIL() { return getToken(SQLiteParser.K_FAIL, 0); }
public TerminalNode K_IGNORE() { return getToken(SQLiteParser.K_IGNORE, 0); }
public TerminalNode K_REPLACE() { return getToken(SQLiteParser.K_REPLACE, 0); }
public Conflict_clauseContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_conflict_clause; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterConflict_clause(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitConflict_clause(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitConflict_clause(this);
else return visitor.visitChildren(this);
}
}
public final Conflict_clauseContext conflict_clause() throws RecognitionException {
Conflict_clauseContext _localctx = new Conflict_clauseContext(_ctx, getState());
enterRule(_localctx, 72, RULE_conflict_clause);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(976);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_ON) {
{
setState(973);
match(K_ON);
setState(974);
match(K_CONFLICT);
setState(975);
_la = _input.LA(1);
if ( !(_la==K_ABORT || ((((_la - 74)) & ~0x3f) == 0 && ((1L << (_la - 74)) & ((1L << (K_FAIL - 74)) | (1L << (K_IGNORE - 74)) | (1L << (K_REPLACE - 74)) | (1L << (K_ROLLBACK - 74)))) != 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 ExprContext extends ParserRuleContext {
public Literal_valueContext literal_value() {
return getRuleContext(Literal_valueContext.class,0);
}
public TerminalNode BIND_PARAMETER() { return getToken(SQLiteParser.BIND_PARAMETER, 0); }
public Column_nameContext column_name() {
return getRuleContext(Column_nameContext.class,0);
}
public Table_nameContext table_name() {
return getRuleContext(Table_nameContext.class,0);
}
public Schema_nameContext schema_name() {
return getRuleContext(Schema_nameContext.class,0);
}
public Unary_operatorContext unary_operator() {
return getRuleContext(Unary_operatorContext.class,0);
}
public List expr() {
return getRuleContexts(ExprContext.class);
}
public ExprContext expr(int i) {
return getRuleContext(ExprContext.class,i);
}
public Function_nameContext function_name() {
return getRuleContext(Function_nameContext.class,0);
}
public Comma_separated_exprContext comma_separated_expr() {
return getRuleContext(Comma_separated_exprContext.class,0);
}
public TerminalNode K_DISTINCT() { return getToken(SQLiteParser.K_DISTINCT, 0); }
public TerminalNode K_CAST() { return getToken(SQLiteParser.K_CAST, 0); }
public TerminalNode K_AS() { return getToken(SQLiteParser.K_AS, 0); }
public Type_nameContext type_name() {
return getRuleContext(Type_nameContext.class,0);
}
public Select_stmtContext select_stmt() {
return getRuleContext(Select_stmtContext.class,0);
}
public TerminalNode K_EXISTS() { return getToken(SQLiteParser.K_EXISTS, 0); }
public TerminalNode K_NOT() { return getToken(SQLiteParser.K_NOT, 0); }
public TerminalNode K_CASE() { return getToken(SQLiteParser.K_CASE, 0); }
public TerminalNode K_END() { return getToken(SQLiteParser.K_END, 0); }
public List K_WHEN() { return getTokens(SQLiteParser.K_WHEN); }
public TerminalNode K_WHEN(int i) {
return getToken(SQLiteParser.K_WHEN, i);
}
public List K_THEN() { return getTokens(SQLiteParser.K_THEN); }
public TerminalNode K_THEN(int i) {
return getToken(SQLiteParser.K_THEN, i);
}
public TerminalNode K_ELSE() { return getToken(SQLiteParser.K_ELSE, 0); }
public Raise_functionContext raise_function() {
return getRuleContext(Raise_functionContext.class,0);
}
public Binary_operatorContext binary_operator() {
return getRuleContext(Binary_operatorContext.class,0);
}
public TerminalNode K_IS() { return getToken(SQLiteParser.K_IS, 0); }
public TerminalNode K_BETWEEN() { return getToken(SQLiteParser.K_BETWEEN, 0); }
public TerminalNode K_AND() { return getToken(SQLiteParser.K_AND, 0); }
public TerminalNode K_COLLATE() { return getToken(SQLiteParser.K_COLLATE, 0); }
public Collation_nameContext collation_name() {
return getRuleContext(Collation_nameContext.class,0);
}
public TerminalNode K_LIKE() { return getToken(SQLiteParser.K_LIKE, 0); }
public TerminalNode K_GLOB() { return getToken(SQLiteParser.K_GLOB, 0); }
public TerminalNode K_REGEXP() { return getToken(SQLiteParser.K_REGEXP, 0); }
public TerminalNode K_MATCH() { return getToken(SQLiteParser.K_MATCH, 0); }
public TerminalNode K_ESCAPE() { return getToken(SQLiteParser.K_ESCAPE, 0); }
public TerminalNode K_ISNULL() { return getToken(SQLiteParser.K_ISNULL, 0); }
public TerminalNode K_NOTNULL() { return getToken(SQLiteParser.K_NOTNULL, 0); }
public TerminalNode K_NULL() { return getToken(SQLiteParser.K_NULL, 0); }
public TerminalNode K_IN() { return getToken(SQLiteParser.K_IN, 0); }
public Table_functionContext table_function() {
return getRuleContext(Table_functionContext.class,0);
}
public ExprContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_expr; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterExpr(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitExpr(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitExpr(this);
else return visitor.visitChildren(this);
}
}
public final ExprContext expr() throws RecognitionException {
return expr(0);
}
private ExprContext expr(int _p) throws RecognitionException {
ParserRuleContext _parentctx = _ctx;
int _parentState = getState();
ExprContext _localctx = new ExprContext(_ctx, _parentState);
ExprContext _prevctx = _localctx;
int _startState = 74;
enterRecursionRule(_localctx, 74, RULE_expr, _p);
int _la;
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
setState(1047);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,143,_ctx) ) {
case 1:
{
setState(979);
literal_value();
}
break;
case 2:
{
setState(980);
match(BIND_PARAMETER);
}
break;
case 3:
{
setState(989);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,135,_ctx) ) {
case 1:
{
setState(984);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,134,_ctx) ) {
case 1:
{
setState(981);
schema_name();
setState(982);
match(DOT);
}
break;
}
setState(986);
table_name();
setState(987);
match(DOT);
}
break;
}
setState(991);
column_name();
}
break;
case 4:
{
setState(992);
unary_operator();
setState(993);
expr(14);
}
break;
case 5:
{
setState(995);
function_name();
setState(996);
match(OPEN_PAR);
setState(1002);
_errHandler.sync(this);
switch (_input.LA(1)) {
case OPEN_PAR:
case PLUS:
case MINUS:
case TILDE:
case TRUE:
case FALSE:
case K_ABORT:
case K_ACTION:
case K_ADD:
case K_AFTER:
case K_ALL:
case K_ALTER:
case K_ANALYZE:
case K_AND:
case K_AS:
case K_ASC:
case K_ATTACH:
case K_AUTOINCREMENT:
case K_BEFORE:
case K_BEGIN:
case K_BETWEEN:
case K_BY:
case K_CASCADE:
case K_CASE:
case K_CAST:
case K_CHECK:
case K_COLLATE:
case K_COLUMN:
case K_COMMIT:
case K_CONFLICT:
case K_CONSTRAINT:
case K_CREATE:
case K_CROSS:
case K_CURRENT_DATE:
case K_CURRENT_TIME:
case K_CURRENT_TIMESTAMP:
case K_DATABASE:
case K_DEFAULT:
case K_DEFERRABLE:
case K_DEFERRED:
case K_DELETE:
case K_DESC:
case K_DETACH:
case K_DISTINCT:
case K_DROP:
case K_EACH:
case K_ELSE:
case K_END:
case K_ESCAPE:
case K_EXCEPT:
case K_EXCLUSIVE:
case K_EXISTS:
case K_EXPLAIN:
case K_FAIL:
case K_FOR:
case K_FOREIGN:
case K_FROM:
case K_FULL:
case K_GLOB:
case K_GROUP:
case K_HAVING:
case K_IF:
case K_IGNORE:
case K_IMMEDIATE:
case K_IN:
case K_INDEX:
case K_INDEXED:
case K_INITIALLY:
case K_INNER:
case K_INSERT:
case K_INSTEAD:
case K_INTERSECT:
case K_INTO:
case K_IS:
case K_ISNULL:
case K_JOIN:
case K_KEY:
case K_LEFT:
case K_LIKE:
case K_LIMIT:
case K_MATCH:
case K_NATURAL:
case K_NO:
case K_NOT:
case K_NOTNULL:
case K_NULL:
case K_OF:
case K_OFFSET:
case K_ON:
case K_OR:
case K_ORDER:
case K_OUTER:
case K_PLAN:
case K_PRAGMA:
case K_PRIMARY:
case K_QUERY:
case K_RAISE:
case K_RECURSIVE:
case K_REFERENCES:
case K_REGEXP:
case K_REINDEX:
case K_RELEASE:
case K_RENAME:
case K_REPLACE:
case K_RESTRICT:
case K_RIGHT:
case K_ROLLBACK:
case K_ROW:
case K_SAVEPOINT:
case K_SELECT:
case K_SET:
case K_TABLE:
case K_TEMP:
case K_TEMPORARY:
case K_THEN:
case K_TO:
case K_TRANSACTION:
case K_TRIGGER:
case K_UNION:
case K_UNIQUE:
case K_UPDATE:
case K_USING:
case K_VACUUM:
case K_VALUES:
case K_VIEW:
case K_VIRTUAL:
case K_WHEN:
case K_WHERE:
case K_WITH:
case K_WITHOUT:
case IDENTIFIER:
case NUMERIC_LITERAL:
case BIND_PARAMETER:
case STRING_LITERAL:
case BLOB_LITERAL:
{
setState(998);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,136,_ctx) ) {
case 1:
{
setState(997);
match(K_DISTINCT);
}
break;
}
setState(1000);
comma_separated_expr();
}
break;
case STAR:
{
setState(1001);
match(STAR);
}
break;
case CLOSE_PAR:
break;
default:
break;
}
setState(1004);
match(CLOSE_PAR);
}
break;
case 6:
{
setState(1006);
match(OPEN_PAR);
setState(1007);
comma_separated_expr();
setState(1008);
match(CLOSE_PAR);
}
break;
case 7:
{
setState(1010);
match(K_CAST);
setState(1011);
match(OPEN_PAR);
setState(1012);
expr(0);
setState(1013);
match(K_AS);
setState(1014);
type_name();
setState(1015);
match(CLOSE_PAR);
}
break;
case 8:
{
setState(1021);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_EXISTS || _la==K_NOT) {
{
setState(1018);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_NOT) {
{
setState(1017);
match(K_NOT);
}
}
setState(1020);
match(K_EXISTS);
}
}
setState(1023);
match(OPEN_PAR);
setState(1024);
select_stmt();
setState(1025);
match(CLOSE_PAR);
}
break;
case 9:
{
setState(1027);
match(K_CASE);
setState(1029);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,140,_ctx) ) {
case 1:
{
setState(1028);
expr(0);
}
break;
}
setState(1036);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(1031);
match(K_WHEN);
setState(1032);
expr(0);
setState(1033);
match(K_THEN);
setState(1034);
expr(0);
}
}
setState(1038);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( _la==K_WHEN );
setState(1042);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_ELSE) {
{
setState(1040);
match(K_ELSE);
setState(1041);
expr(0);
}
}
setState(1044);
match(K_END);
}
break;
case 10:
{
setState(1046);
raise_function();
}
break;
}
_ctx.stop = _input.LT(-1);
setState(1121);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,156,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
if ( _parseListeners!=null ) triggerExitRuleEvent();
_prevctx = _localctx;
{
setState(1119);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,155,_ctx) ) {
case 1:
{
_localctx = new ExprContext(_parentctx, _parentState);
pushNewRecursionContext(_localctx, _startState, RULE_expr);
setState(1049);
if (!(precpred(_ctx, 13))) throw new FailedPredicateException(this, "precpred(_ctx, 13)");
setState(1050);
binary_operator();
setState(1051);
expr(14);
}
break;
case 2:
{
_localctx = new ExprContext(_parentctx, _parentState);
pushNewRecursionContext(_localctx, _startState, RULE_expr);
setState(1053);
if (!(precpred(_ctx, 6))) throw new FailedPredicateException(this, "precpred(_ctx, 6)");
setState(1054);
match(K_IS);
setState(1056);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,144,_ctx) ) {
case 1:
{
setState(1055);
match(K_NOT);
}
break;
}
setState(1058);
expr(7);
}
break;
case 3:
{
_localctx = new ExprContext(_parentctx, _parentState);
pushNewRecursionContext(_localctx, _startState, RULE_expr);
setState(1059);
if (!(precpred(_ctx, 5))) throw new FailedPredicateException(this, "precpred(_ctx, 5)");
setState(1061);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_NOT) {
{
setState(1060);
match(K_NOT);
}
}
setState(1063);
match(K_BETWEEN);
setState(1064);
expr(0);
setState(1065);
match(K_AND);
setState(1066);
expr(6);
}
break;
case 4:
{
_localctx = new ExprContext(_parentctx, _parentState);
pushNewRecursionContext(_localctx, _startState, RULE_expr);
setState(1068);
if (!(precpred(_ctx, 9))) throw new FailedPredicateException(this, "precpred(_ctx, 9)");
setState(1069);
match(K_COLLATE);
setState(1070);
collation_name();
}
break;
case 5:
{
_localctx = new ExprContext(_parentctx, _parentState);
pushNewRecursionContext(_localctx, _startState, RULE_expr);
setState(1071);
if (!(precpred(_ctx, 8))) throw new FailedPredicateException(this, "precpred(_ctx, 8)");
setState(1073);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_NOT) {
{
setState(1072);
match(K_NOT);
}
}
setState(1075);
_la = _input.LA(1);
if ( !(((((_la - 79)) & ~0x3f) == 0 && ((1L << (_la - 79)) & ((1L << (K_GLOB - 79)) | (1L << (K_LIKE - 79)) | (1L << (K_MATCH - 79)) | (1L << (K_REGEXP - 79)))) != 0)) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
setState(1076);
expr(0);
setState(1079);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,147,_ctx) ) {
case 1:
{
setState(1077);
match(K_ESCAPE);
setState(1078);
expr(0);
}
break;
}
}
break;
case 6:
{
_localctx = new ExprContext(_parentctx, _parentState);
pushNewRecursionContext(_localctx, _startState, RULE_expr);
setState(1081);
if (!(precpred(_ctx, 7))) throw new FailedPredicateException(this, "precpred(_ctx, 7)");
setState(1086);
_errHandler.sync(this);
switch (_input.LA(1)) {
case K_ISNULL:
{
setState(1082);
match(K_ISNULL);
}
break;
case K_NOTNULL:
{
setState(1083);
match(K_NOTNULL);
}
break;
case K_NOT:
{
setState(1084);
match(K_NOT);
setState(1085);
match(K_NULL);
}
break;
default:
throw new NoViableAltException(this);
}
}
break;
case 7:
{
_localctx = new ExprContext(_parentctx, _parentState);
pushNewRecursionContext(_localctx, _startState, RULE_expr);
setState(1088);
if (!(precpred(_ctx, 4))) throw new FailedPredicateException(this, "precpred(_ctx, 4)");
setState(1090);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_NOT) {
{
setState(1089);
match(K_NOT);
}
}
setState(1092);
match(K_IN);
setState(1117);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,154,_ctx) ) {
case 1:
{
setState(1093);
match(OPEN_PAR);
setState(1096);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,150,_ctx) ) {
case 1:
{
setState(1094);
select_stmt();
}
break;
case 2:
{
setState(1095);
comma_separated_expr();
}
break;
}
setState(1098);
match(CLOSE_PAR);
}
break;
case 2:
{
setState(1102);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,151,_ctx) ) {
case 1:
{
setState(1099);
schema_name();
setState(1100);
match(DOT);
}
break;
}
setState(1104);
table_name();
}
break;
case 3:
{
setState(1108);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,152,_ctx) ) {
case 1:
{
setState(1105);
schema_name();
setState(1106);
match(DOT);
}
break;
}
setState(1110);
table_function();
setState(1111);
match(OPEN_PAR);
setState(1113);
_errHandler.sync(this);
_la = _input.LA(1);
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << OPEN_PAR) | (1L << PLUS) | (1L << MINUS) | (1L << TILDE) | (1L << TRUE) | (1L << FALSE) | (1L << K_ABORT) | (1L << K_ACTION) | (1L << K_ADD) | (1L << K_AFTER) | (1L << K_ALL) | (1L << K_ALTER) | (1L << K_ANALYZE) | (1L << K_AND) | (1L << K_AS) | (1L << K_ASC) | (1L << K_ATTACH) | (1L << K_AUTOINCREMENT) | (1L << K_BEFORE) | (1L << K_BEGIN) | (1L << K_BETWEEN) | (1L << K_BY) | (1L << K_CASCADE) | (1L << K_CASE) | (1L << K_CAST) | (1L << K_CHECK) | (1L << K_COLLATE) | (1L << K_COLUMN) | (1L << K_COMMIT) | (1L << K_CONFLICT) | (1L << K_CONSTRAINT) | (1L << K_CREATE) | (1L << K_CROSS) | (1L << K_CURRENT_DATE) | (1L << K_CURRENT_TIME) | (1L << K_CURRENT_TIMESTAMP) | (1L << K_DATABASE) | (1L << K_DEFAULT) | (1L << K_DEFERRABLE) | (1L << K_DEFERRED) | (1L << K_DELETE) | (1L << K_DESC) | (1L << K_DETACH))) != 0) || ((((_la - 64)) & ~0x3f) == 0 && ((1L << (_la - 64)) & ((1L << (K_DISTINCT - 64)) | (1L << (K_DROP - 64)) | (1L << (K_EACH - 64)) | (1L << (K_ELSE - 64)) | (1L << (K_END - 64)) | (1L << (K_ESCAPE - 64)) | (1L << (K_EXCEPT - 64)) | (1L << (K_EXCLUSIVE - 64)) | (1L << (K_EXISTS - 64)) | (1L << (K_EXPLAIN - 64)) | (1L << (K_FAIL - 64)) | (1L << (K_FOR - 64)) | (1L << (K_FOREIGN - 64)) | (1L << (K_FROM - 64)) | (1L << (K_FULL - 64)) | (1L << (K_GLOB - 64)) | (1L << (K_GROUP - 64)) | (1L << (K_HAVING - 64)) | (1L << (K_IF - 64)) | (1L << (K_IGNORE - 64)) | (1L << (K_IMMEDIATE - 64)) | (1L << (K_IN - 64)) | (1L << (K_INDEX - 64)) | (1L << (K_INDEXED - 64)) | (1L << (K_INITIALLY - 64)) | (1L << (K_INNER - 64)) | (1L << (K_INSERT - 64)) | (1L << (K_INSTEAD - 64)) | (1L << (K_INTERSECT - 64)) | (1L << (K_INTO - 64)) | (1L << (K_IS - 64)) | (1L << (K_ISNULL - 64)) | (1L << (K_JOIN - 64)) | (1L << (K_KEY - 64)) | (1L << (K_LEFT - 64)) | (1L << (K_LIKE - 64)) | (1L << (K_LIMIT - 64)) | (1L << (K_MATCH - 64)) | (1L << (K_NATURAL - 64)) | (1L << (K_NO - 64)) | (1L << (K_NOT - 64)) | (1L << (K_NOTNULL - 64)) | (1L << (K_NULL - 64)) | (1L << (K_OF - 64)) | (1L << (K_OFFSET - 64)) | (1L << (K_ON - 64)) | (1L << (K_OR - 64)) | (1L << (K_ORDER - 64)) | (1L << (K_OUTER - 64)) | (1L << (K_PLAN - 64)) | (1L << (K_PRAGMA - 64)) | (1L << (K_PRIMARY - 64)) | (1L << (K_QUERY - 64)) | (1L << (K_RAISE - 64)) | (1L << (K_RECURSIVE - 64)) | (1L << (K_REFERENCES - 64)) | (1L << (K_REGEXP - 64)) | (1L << (K_REINDEX - 64)) | (1L << (K_RELEASE - 64)) | (1L << (K_RENAME - 64)) | (1L << (K_REPLACE - 64)) | (1L << (K_RESTRICT - 64)) | (1L << (K_RIGHT - 64)) | (1L << (K_ROLLBACK - 64)))) != 0) || ((((_la - 128)) & ~0x3f) == 0 && ((1L << (_la - 128)) & ((1L << (K_ROW - 128)) | (1L << (K_SAVEPOINT - 128)) | (1L << (K_SELECT - 128)) | (1L << (K_SET - 128)) | (1L << (K_TABLE - 128)) | (1L << (K_TEMP - 128)) | (1L << (K_TEMPORARY - 128)) | (1L << (K_THEN - 128)) | (1L << (K_TO - 128)) | (1L << (K_TRANSACTION - 128)) | (1L << (K_TRIGGER - 128)) | (1L << (K_UNION - 128)) | (1L << (K_UNIQUE - 128)) | (1L << (K_UPDATE - 128)) | (1L << (K_USING - 128)) | (1L << (K_VACUUM - 128)) | (1L << (K_VALUES - 128)) | (1L << (K_VIEW - 128)) | (1L << (K_VIRTUAL - 128)) | (1L << (K_WHEN - 128)) | (1L << (K_WHERE - 128)) | (1L << (K_WITH - 128)) | (1L << (K_WITHOUT - 128)) | (1L << (IDENTIFIER - 128)) | (1L << (NUMERIC_LITERAL - 128)) | (1L << (BIND_PARAMETER - 128)) | (1L << (STRING_LITERAL - 128)) | (1L << (BLOB_LITERAL - 128)))) != 0)) {
{
setState(1112);
comma_separated_expr();
}
}
setState(1115);
match(CLOSE_PAR);
}
break;
}
}
break;
}
}
}
setState(1123);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,156,_ctx);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
unrollRecursionContexts(_parentctx);
}
return _localctx;
}
public static class Comma_separated_exprContext extends ParserRuleContext {
public List expr() {
return getRuleContexts(ExprContext.class);
}
public ExprContext expr(int i) {
return getRuleContext(ExprContext.class,i);
}
public Comma_separated_exprContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_comma_separated_expr; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterComma_separated_expr(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitComma_separated_expr(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitComma_separated_expr(this);
else return visitor.visitChildren(this);
}
}
public final Comma_separated_exprContext comma_separated_expr() throws RecognitionException {
Comma_separated_exprContext _localctx = new Comma_separated_exprContext(_ctx, getState());
enterRule(_localctx, 76, RULE_comma_separated_expr);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(1124);
expr(0);
setState(1129);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
setState(1125);
match(COMMA);
setState(1126);
expr(0);
}
}
setState(1131);
_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 Foreign_key_clauseContext extends ParserRuleContext {
public TerminalNode K_REFERENCES() { return getToken(SQLiteParser.K_REFERENCES, 0); }
public Foreign_tableContext foreign_table() {
return getRuleContext(Foreign_tableContext.class,0);
}
public List column_name() {
return getRuleContexts(Column_nameContext.class);
}
public Column_nameContext column_name(int i) {
return getRuleContext(Column_nameContext.class,i);
}
public TerminalNode K_DEFERRABLE() { return getToken(SQLiteParser.K_DEFERRABLE, 0); }
public List K_ON() { return getTokens(SQLiteParser.K_ON); }
public TerminalNode K_ON(int i) {
return getToken(SQLiteParser.K_ON, i);
}
public List K_MATCH() { return getTokens(SQLiteParser.K_MATCH); }
public TerminalNode K_MATCH(int i) {
return getToken(SQLiteParser.K_MATCH, i);
}
public List name() {
return getRuleContexts(NameContext.class);
}
public NameContext name(int i) {
return getRuleContext(NameContext.class,i);
}
public List K_DELETE() { return getTokens(SQLiteParser.K_DELETE); }
public TerminalNode K_DELETE(int i) {
return getToken(SQLiteParser.K_DELETE, i);
}
public List K_UPDATE() { return getTokens(SQLiteParser.K_UPDATE); }
public TerminalNode K_UPDATE(int i) {
return getToken(SQLiteParser.K_UPDATE, i);
}
public TerminalNode K_NOT() { return getToken(SQLiteParser.K_NOT, 0); }
public TerminalNode K_INITIALLY() { return getToken(SQLiteParser.K_INITIALLY, 0); }
public TerminalNode K_DEFERRED() { return getToken(SQLiteParser.K_DEFERRED, 0); }
public TerminalNode K_IMMEDIATE() { return getToken(SQLiteParser.K_IMMEDIATE, 0); }
public List K_SET() { return getTokens(SQLiteParser.K_SET); }
public TerminalNode K_SET(int i) {
return getToken(SQLiteParser.K_SET, i);
}
public List K_NULL() { return getTokens(SQLiteParser.K_NULL); }
public TerminalNode K_NULL(int i) {
return getToken(SQLiteParser.K_NULL, i);
}
public List K_DEFAULT() { return getTokens(SQLiteParser.K_DEFAULT); }
public TerminalNode K_DEFAULT(int i) {
return getToken(SQLiteParser.K_DEFAULT, i);
}
public List K_CASCADE() { return getTokens(SQLiteParser.K_CASCADE); }
public TerminalNode K_CASCADE(int i) {
return getToken(SQLiteParser.K_CASCADE, i);
}
public List K_RESTRICT() { return getTokens(SQLiteParser.K_RESTRICT); }
public TerminalNode K_RESTRICT(int i) {
return getToken(SQLiteParser.K_RESTRICT, i);
}
public List K_NO() { return getTokens(SQLiteParser.K_NO); }
public TerminalNode K_NO(int i) {
return getToken(SQLiteParser.K_NO, i);
}
public List K_ACTION() { return getTokens(SQLiteParser.K_ACTION); }
public TerminalNode K_ACTION(int i) {
return getToken(SQLiteParser.K_ACTION, i);
}
public Foreign_key_clauseContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_foreign_key_clause; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterForeign_key_clause(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitForeign_key_clause(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitForeign_key_clause(this);
else return visitor.visitChildren(this);
}
}
public final Foreign_key_clauseContext foreign_key_clause() throws RecognitionException {
Foreign_key_clauseContext _localctx = new Foreign_key_clauseContext(_ctx, getState());
enterRule(_localctx, 78, RULE_foreign_key_clause);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(1132);
match(K_REFERENCES);
setState(1133);
foreign_table();
setState(1145);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==OPEN_PAR) {
{
setState(1134);
match(OPEN_PAR);
setState(1135);
column_name();
setState(1140);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
setState(1136);
match(COMMA);
setState(1137);
column_name();
}
}
setState(1142);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(1143);
match(CLOSE_PAR);
}
}
setState(1165);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==K_MATCH || _la==K_ON) {
{
{
setState(1161);
_errHandler.sync(this);
switch (_input.LA(1)) {
case K_ON:
{
setState(1147);
match(K_ON);
setState(1148);
_la = _input.LA(1);
if ( !(_la==K_DELETE || _la==K_UPDATE) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
setState(1157);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,160,_ctx) ) {
case 1:
{
setState(1149);
match(K_SET);
setState(1150);
match(K_NULL);
}
break;
case 2:
{
setState(1151);
match(K_SET);
setState(1152);
match(K_DEFAULT);
}
break;
case 3:
{
setState(1153);
match(K_CASCADE);
}
break;
case 4:
{
setState(1154);
match(K_RESTRICT);
}
break;
case 5:
{
setState(1155);
match(K_NO);
setState(1156);
match(K_ACTION);
}
break;
}
}
break;
case K_MATCH:
{
setState(1159);
match(K_MATCH);
setState(1160);
name();
}
break;
default:
throw new NoViableAltException(this);
}
}
}
setState(1167);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(1178);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,165,_ctx) ) {
case 1:
{
setState(1169);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_NOT) {
{
setState(1168);
match(K_NOT);
}
}
setState(1171);
match(K_DEFERRABLE);
setState(1176);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,164,_ctx) ) {
case 1:
{
setState(1172);
match(K_INITIALLY);
setState(1173);
match(K_DEFERRED);
}
break;
case 2:
{
setState(1174);
match(K_INITIALLY);
setState(1175);
match(K_IMMEDIATE);
}
break;
}
}
break;
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Raise_functionContext extends ParserRuleContext {
public TerminalNode K_RAISE() { return getToken(SQLiteParser.K_RAISE, 0); }
public TerminalNode K_IGNORE() { return getToken(SQLiteParser.K_IGNORE, 0); }
public Error_messageContext error_message() {
return getRuleContext(Error_messageContext.class,0);
}
public TerminalNode K_ROLLBACK() { return getToken(SQLiteParser.K_ROLLBACK, 0); }
public TerminalNode K_ABORT() { return getToken(SQLiteParser.K_ABORT, 0); }
public TerminalNode K_FAIL() { return getToken(SQLiteParser.K_FAIL, 0); }
public Raise_functionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_raise_function; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterRaise_function(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitRaise_function(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitRaise_function(this);
else return visitor.visitChildren(this);
}
}
public final Raise_functionContext raise_function() throws RecognitionException {
Raise_functionContext _localctx = new Raise_functionContext(_ctx, getState());
enterRule(_localctx, 80, RULE_raise_function);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(1180);
match(K_RAISE);
setState(1181);
match(OPEN_PAR);
setState(1186);
_errHandler.sync(this);
switch (_input.LA(1)) {
case K_IGNORE:
{
setState(1182);
match(K_IGNORE);
}
break;
case K_ABORT:
case K_FAIL:
case K_ROLLBACK:
{
setState(1183);
_la = _input.LA(1);
if ( !(_la==K_ABORT || _la==K_FAIL || _la==K_ROLLBACK) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
setState(1184);
match(COMMA);
setState(1185);
error_message();
}
break;
default:
throw new NoViableAltException(this);
}
setState(1188);
match(CLOSE_PAR);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Indexed_columnContext extends ParserRuleContext {
public Column_nameContext column_name() {
return getRuleContext(Column_nameContext.class,0);
}
public ExprContext expr() {
return getRuleContext(ExprContext.class,0);
}
public TerminalNode K_COLLATE() { return getToken(SQLiteParser.K_COLLATE, 0); }
public Collation_nameContext collation_name() {
return getRuleContext(Collation_nameContext.class,0);
}
public TerminalNode K_ASC() { return getToken(SQLiteParser.K_ASC, 0); }
public TerminalNode K_DESC() { return getToken(SQLiteParser.K_DESC, 0); }
public Indexed_columnContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_indexed_column; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterIndexed_column(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitIndexed_column(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitIndexed_column(this);
else return visitor.visitChildren(this);
}
}
public final Indexed_columnContext indexed_column() throws RecognitionException {
Indexed_columnContext _localctx = new Indexed_columnContext(_ctx, getState());
enterRule(_localctx, 82, RULE_indexed_column);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(1192);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,167,_ctx) ) {
case 1:
{
setState(1190);
column_name();
}
break;
case 2:
{
setState(1191);
expr(0);
}
break;
}
setState(1196);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_COLLATE) {
{
setState(1194);
match(K_COLLATE);
setState(1195);
collation_name();
}
}
setState(1199);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_ASC || _la==K_DESC) {
{
setState(1198);
_la = _input.LA(1);
if ( !(_la==K_ASC || _la==K_DESC) ) {
_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 Table_constraintContext extends ParserRuleContext {
public List indexed_column() {
return getRuleContexts(Indexed_columnContext.class);
}
public Indexed_columnContext indexed_column(int i) {
return getRuleContext(Indexed_columnContext.class,i);
}
public Conflict_clauseContext conflict_clause() {
return getRuleContext(Conflict_clauseContext.class,0);
}
public TerminalNode K_CHECK() { return getToken(SQLiteParser.K_CHECK, 0); }
public ExprContext expr() {
return getRuleContext(ExprContext.class,0);
}
public TerminalNode K_FOREIGN() { return getToken(SQLiteParser.K_FOREIGN, 0); }
public TerminalNode K_KEY() { return getToken(SQLiteParser.K_KEY, 0); }
public List column_name() {
return getRuleContexts(Column_nameContext.class);
}
public Column_nameContext column_name(int i) {
return getRuleContext(Column_nameContext.class,i);
}
public Foreign_key_clauseContext foreign_key_clause() {
return getRuleContext(Foreign_key_clauseContext.class,0);
}
public TerminalNode K_CONSTRAINT() { return getToken(SQLiteParser.K_CONSTRAINT, 0); }
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public TerminalNode K_PRIMARY() { return getToken(SQLiteParser.K_PRIMARY, 0); }
public TerminalNode K_UNIQUE() { return getToken(SQLiteParser.K_UNIQUE, 0); }
public Table_constraintContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_table_constraint; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterTable_constraint(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitTable_constraint(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitTable_constraint(this);
else return visitor.visitChildren(this);
}
}
public final Table_constraintContext table_constraint() throws RecognitionException {
Table_constraintContext _localctx = new Table_constraintContext(_ctx, getState());
enterRule(_localctx, 84, RULE_table_constraint);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(1203);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_CONSTRAINT) {
{
setState(1201);
match(K_CONSTRAINT);
setState(1202);
name();
}
}
setState(1241);
_errHandler.sync(this);
switch (_input.LA(1)) {
case K_PRIMARY:
case K_UNIQUE:
{
setState(1208);
_errHandler.sync(this);
switch (_input.LA(1)) {
case K_PRIMARY:
{
setState(1205);
match(K_PRIMARY);
setState(1206);
match(K_KEY);
}
break;
case K_UNIQUE:
{
setState(1207);
match(K_UNIQUE);
}
break;
default:
throw new NoViableAltException(this);
}
setState(1210);
match(OPEN_PAR);
setState(1211);
indexed_column();
setState(1216);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
setState(1212);
match(COMMA);
setState(1213);
indexed_column();
}
}
setState(1218);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(1219);
match(CLOSE_PAR);
setState(1220);
conflict_clause();
}
break;
case K_CHECK:
{
setState(1222);
match(K_CHECK);
setState(1223);
match(OPEN_PAR);
setState(1224);
expr(0);
setState(1225);
match(CLOSE_PAR);
}
break;
case K_FOREIGN:
{
setState(1227);
match(K_FOREIGN);
setState(1228);
match(K_KEY);
setState(1229);
match(OPEN_PAR);
setState(1230);
column_name();
setState(1235);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
setState(1231);
match(COMMA);
setState(1232);
column_name();
}
}
setState(1237);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(1238);
match(CLOSE_PAR);
setState(1239);
foreign_key_clause();
}
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 With_clauseContext extends ParserRuleContext {
public TerminalNode K_WITH() { return getToken(SQLiteParser.K_WITH, 0); }
public List common_table_expression() {
return getRuleContexts(Common_table_expressionContext.class);
}
public Common_table_expressionContext common_table_expression(int i) {
return getRuleContext(Common_table_expressionContext.class,i);
}
public TerminalNode K_RECURSIVE() { return getToken(SQLiteParser.K_RECURSIVE, 0); }
public With_clauseContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_with_clause; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterWith_clause(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitWith_clause(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitWith_clause(this);
else return visitor.visitChildren(this);
}
}
public final With_clauseContext with_clause() throws RecognitionException {
With_clauseContext _localctx = new With_clauseContext(_ctx, getState());
enterRule(_localctx, 86, RULE_with_clause);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(1243);
match(K_WITH);
setState(1245);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,175,_ctx) ) {
case 1:
{
setState(1244);
match(K_RECURSIVE);
}
break;
}
setState(1247);
common_table_expression();
setState(1252);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
setState(1248);
match(COMMA);
setState(1249);
common_table_expression();
}
}
setState(1254);
_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 Common_table_expressionContext extends ParserRuleContext {
public Table_nameContext table_name() {
return getRuleContext(Table_nameContext.class,0);
}
public TerminalNode K_AS() { return getToken(SQLiteParser.K_AS, 0); }
public Select_stmtContext select_stmt() {
return getRuleContext(Select_stmtContext.class,0);
}
public List column_name() {
return getRuleContexts(Column_nameContext.class);
}
public Column_nameContext column_name(int i) {
return getRuleContext(Column_nameContext.class,i);
}
public Common_table_expressionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_common_table_expression; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterCommon_table_expression(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitCommon_table_expression(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitCommon_table_expression(this);
else return visitor.visitChildren(this);
}
}
public final Common_table_expressionContext common_table_expression() throws RecognitionException {
Common_table_expressionContext _localctx = new Common_table_expressionContext(_ctx, getState());
enterRule(_localctx, 88, RULE_common_table_expression);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(1255);
table_name();
setState(1267);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==OPEN_PAR) {
{
setState(1256);
match(OPEN_PAR);
setState(1257);
column_name();
setState(1262);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
setState(1258);
match(COMMA);
setState(1259);
column_name();
}
}
setState(1264);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(1265);
match(CLOSE_PAR);
}
}
setState(1269);
match(K_AS);
setState(1270);
match(OPEN_PAR);
setState(1271);
select_stmt();
setState(1272);
match(CLOSE_PAR);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Qualified_table_nameContext extends ParserRuleContext {
public Table_nameContext table_name() {
return getRuleContext(Table_nameContext.class,0);
}
public Schema_nameContext schema_name() {
return getRuleContext(Schema_nameContext.class,0);
}
public TerminalNode K_AS() { return getToken(SQLiteParser.K_AS, 0); }
public Table_aliasContext table_alias() {
return getRuleContext(Table_aliasContext.class,0);
}
public TerminalNode K_INDEXED() { return getToken(SQLiteParser.K_INDEXED, 0); }
public TerminalNode K_BY() { return getToken(SQLiteParser.K_BY, 0); }
public Index_nameContext index_name() {
return getRuleContext(Index_nameContext.class,0);
}
public TerminalNode K_NOT() { return getToken(SQLiteParser.K_NOT, 0); }
public Qualified_table_nameContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_qualified_table_name; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterQualified_table_name(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitQualified_table_name(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitQualified_table_name(this);
else return visitor.visitChildren(this);
}
}
public final Qualified_table_nameContext qualified_table_name() throws RecognitionException {
Qualified_table_nameContext _localctx = new Qualified_table_nameContext(_ctx, getState());
enterRule(_localctx, 90, RULE_qualified_table_name);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(1277);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,179,_ctx) ) {
case 1:
{
setState(1274);
schema_name();
setState(1275);
match(DOT);
}
break;
}
setState(1279);
table_name();
setState(1282);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_AS) {
{
setState(1280);
match(K_AS);
setState(1281);
table_alias();
}
}
setState(1289);
_errHandler.sync(this);
switch (_input.LA(1)) {
case K_INDEXED:
{
setState(1284);
match(K_INDEXED);
setState(1285);
match(K_BY);
setState(1286);
index_name();
}
break;
case K_NOT:
{
setState(1287);
match(K_NOT);
setState(1288);
match(K_INDEXED);
}
break;
case EOF:
case SCOL:
case K_ALTER:
case K_ANALYZE:
case K_ATTACH:
case K_BEGIN:
case K_COMMIT:
case K_CREATE:
case K_DELETE:
case K_DETACH:
case K_DROP:
case K_END:
case K_EXPLAIN:
case K_INSERT:
case K_LIMIT:
case K_ORDER:
case K_PRAGMA:
case K_REINDEX:
case K_RELEASE:
case K_REPLACE:
case K_ROLLBACK:
case K_SAVEPOINT:
case K_SELECT:
case K_SET:
case K_UPDATE:
case K_VACUUM:
case K_VALUES:
case K_WHERE:
case K_WITH:
case UNEXPECTED_CHAR:
break;
default:
break;
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Order_clauseContext extends ParserRuleContext {
public TerminalNode K_ORDER() { return getToken(SQLiteParser.K_ORDER, 0); }
public TerminalNode K_BY() { return getToken(SQLiteParser.K_BY, 0); }
public List ordering_term() {
return getRuleContexts(Ordering_termContext.class);
}
public Ordering_termContext ordering_term(int i) {
return getRuleContext(Ordering_termContext.class,i);
}
public Order_clauseContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_order_clause; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterOrder_clause(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitOrder_clause(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitOrder_clause(this);
else return visitor.visitChildren(this);
}
}
public final Order_clauseContext order_clause() throws RecognitionException {
Order_clauseContext _localctx = new Order_clauseContext(_ctx, getState());
enterRule(_localctx, 92, RULE_order_clause);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(1291);
match(K_ORDER);
setState(1292);
match(K_BY);
setState(1293);
ordering_term();
setState(1298);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
setState(1294);
match(COMMA);
setState(1295);
ordering_term();
}
}
setState(1300);
_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 Ordering_termContext extends ParserRuleContext {
public ExprContext expr() {
return getRuleContext(ExprContext.class,0);
}
public TerminalNode K_COLLATE() { return getToken(SQLiteParser.K_COLLATE, 0); }
public Collation_nameContext collation_name() {
return getRuleContext(Collation_nameContext.class,0);
}
public TerminalNode K_ASC() { return getToken(SQLiteParser.K_ASC, 0); }
public TerminalNode K_DESC() { return getToken(SQLiteParser.K_DESC, 0); }
public Ordering_termContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_ordering_term; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterOrdering_term(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitOrdering_term(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitOrdering_term(this);
else return visitor.visitChildren(this);
}
}
public final Ordering_termContext ordering_term() throws RecognitionException {
Ordering_termContext _localctx = new Ordering_termContext(_ctx, getState());
enterRule(_localctx, 94, RULE_ordering_term);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(1301);
expr(0);
setState(1304);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_COLLATE) {
{
setState(1302);
match(K_COLLATE);
setState(1303);
collation_name();
}
}
setState(1307);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_ASC || _la==K_DESC) {
{
setState(1306);
_la = _input.LA(1);
if ( !(_la==K_ASC || _la==K_DESC) ) {
_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 Limit_clauseContext extends ParserRuleContext {
public TerminalNode K_LIMIT() { return getToken(SQLiteParser.K_LIMIT, 0); }
public List expr() {
return getRuleContexts(ExprContext.class);
}
public ExprContext expr(int i) {
return getRuleContext(ExprContext.class,i);
}
public TerminalNode K_OFFSET() { return getToken(SQLiteParser.K_OFFSET, 0); }
public Limit_clauseContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_limit_clause; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterLimit_clause(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitLimit_clause(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitLimit_clause(this);
else return visitor.visitChildren(this);
}
}
public final Limit_clauseContext limit_clause() throws RecognitionException {
Limit_clauseContext _localctx = new Limit_clauseContext(_ctx, getState());
enterRule(_localctx, 96, RULE_limit_clause);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(1309);
match(K_LIMIT);
setState(1310);
expr(0);
setState(1313);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==COMMA || _la==K_OFFSET) {
{
setState(1311);
_la = _input.LA(1);
if ( !(_la==COMMA || _la==K_OFFSET) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
setState(1312);
expr(0);
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Pragma_valueContext extends ParserRuleContext {
public Signed_numberContext signed_number() {
return getRuleContext(Signed_numberContext.class,0);
}
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public TerminalNode STRING_LITERAL() { return getToken(SQLiteParser.STRING_LITERAL, 0); }
public Boolean_literalContext boolean_literal() {
return getRuleContext(Boolean_literalContext.class,0);
}
public Pragma_valueContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_pragma_value; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterPragma_value(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitPragma_value(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitPragma_value(this);
else return visitor.visitChildren(this);
}
}
public final Pragma_valueContext pragma_value() throws RecognitionException {
Pragma_valueContext _localctx = new Pragma_valueContext(_ctx, getState());
enterRule(_localctx, 98, RULE_pragma_value);
try {
setState(1319);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,186,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(1315);
signed_number();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(1316);
name();
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
setState(1317);
match(STRING_LITERAL);
}
break;
case 4:
enterOuterAlt(_localctx, 4);
{
setState(1318);
boolean_literal();
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Result_columnContext extends ParserRuleContext {
public Table_nameContext table_name() {
return getRuleContext(Table_nameContext.class,0);
}
public ExprContext expr() {
return getRuleContext(ExprContext.class,0);
}
public Column_aliasContext column_alias() {
return getRuleContext(Column_aliasContext.class,0);
}
public TerminalNode K_AS() { return getToken(SQLiteParser.K_AS, 0); }
public Result_columnContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_result_column; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterResult_column(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitResult_column(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitResult_column(this);
else return visitor.visitChildren(this);
}
}
public final Result_columnContext result_column() throws RecognitionException {
Result_columnContext _localctx = new Result_columnContext(_ctx, getState());
enterRule(_localctx, 100, RULE_result_column);
int _la;
try {
setState(1333);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,189,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(1321);
match(STAR);
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(1322);
table_name();
setState(1323);
match(DOT);
setState(1324);
match(STAR);
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
setState(1326);
expr(0);
setState(1331);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_AS || _la==IDENTIFIER || _la==STRING_LITERAL) {
{
setState(1328);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_AS) {
{
setState(1327);
match(K_AS);
}
}
setState(1330);
column_alias();
}
}
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Table_or_subqueryContext extends ParserRuleContext {
public Table_nameContext table_name() {
return getRuleContext(Table_nameContext.class,0);
}
public Schema_nameContext schema_name() {
return getRuleContext(Schema_nameContext.class,0);
}
public Table_aliasContext table_alias() {
return getRuleContext(Table_aliasContext.class,0);
}
public TerminalNode K_INDEXED() { return getToken(SQLiteParser.K_INDEXED, 0); }
public TerminalNode K_BY() { return getToken(SQLiteParser.K_BY, 0); }
public Index_nameContext index_name() {
return getRuleContext(Index_nameContext.class,0);
}
public TerminalNode K_NOT() { return getToken(SQLiteParser.K_NOT, 0); }
public TerminalNode K_AS() { return getToken(SQLiteParser.K_AS, 0); }
public Table_functionContext table_function() {
return getRuleContext(Table_functionContext.class,0);
}
public List expr() {
return getRuleContexts(ExprContext.class);
}
public ExprContext expr(int i) {
return getRuleContext(ExprContext.class,i);
}
public List table_or_subquery() {
return getRuleContexts(Table_or_subqueryContext.class);
}
public Table_or_subqueryContext table_or_subquery(int i) {
return getRuleContext(Table_or_subqueryContext.class,i);
}
public Join_clauseContext join_clause() {
return getRuleContext(Join_clauseContext.class,0);
}
public Select_stmtContext select_stmt() {
return getRuleContext(Select_stmtContext.class,0);
}
public Table_or_subqueryContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_table_or_subquery; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterTable_or_subquery(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitTable_or_subquery(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitTable_or_subquery(this);
else return visitor.visitChildren(this);
}
}
public final Table_or_subqueryContext table_or_subquery() throws RecognitionException {
Table_or_subqueryContext _localctx = new Table_or_subqueryContext(_ctx, getState());
enterRule(_localctx, 102, RULE_table_or_subquery);
int _la;
try {
setState(1401);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,203,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(1338);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,190,_ctx) ) {
case 1:
{
setState(1335);
schema_name();
setState(1336);
match(DOT);
}
break;
}
setState(1340);
table_name();
setState(1345);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==OPEN_PAR || _la==K_AS || _la==IDENTIFIER || _la==STRING_LITERAL) {
{
setState(1342);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_AS) {
{
setState(1341);
match(K_AS);
}
}
setState(1344);
table_alias();
}
}
setState(1352);
_errHandler.sync(this);
switch (_input.LA(1)) {
case K_INDEXED:
{
setState(1347);
match(K_INDEXED);
setState(1348);
match(K_BY);
setState(1349);
index_name();
}
break;
case K_NOT:
{
setState(1350);
match(K_NOT);
setState(1351);
match(K_INDEXED);
}
break;
case EOF:
case SCOL:
case CLOSE_PAR:
case COMMA:
case K_ALTER:
case K_ANALYZE:
case K_ATTACH:
case K_BEGIN:
case K_COMMIT:
case K_CREATE:
case K_CROSS:
case K_DELETE:
case K_DETACH:
case K_DROP:
case K_END:
case K_EXCEPT:
case K_EXPLAIN:
case K_GROUP:
case K_INNER:
case K_INSERT:
case K_INTERSECT:
case K_JOIN:
case K_LEFT:
case K_LIMIT:
case K_NATURAL:
case K_ON:
case K_ORDER:
case K_PRAGMA:
case K_REINDEX:
case K_RELEASE:
case K_REPLACE:
case K_ROLLBACK:
case K_SAVEPOINT:
case K_SELECT:
case K_UNION:
case K_UPDATE:
case K_USING:
case K_VACUUM:
case K_VALUES:
case K_WHERE:
case K_WITH:
case UNEXPECTED_CHAR:
break;
default:
break;
}
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(1357);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,194,_ctx) ) {
case 1:
{
setState(1354);
schema_name();
setState(1355);
match(DOT);
}
break;
}
setState(1359);
table_function();
setState(1360);
match(OPEN_PAR);
setState(1369);
_errHandler.sync(this);
_la = _input.LA(1);
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << OPEN_PAR) | (1L << PLUS) | (1L << MINUS) | (1L << TILDE) | (1L << TRUE) | (1L << FALSE) | (1L << K_ABORT) | (1L << K_ACTION) | (1L << K_ADD) | (1L << K_AFTER) | (1L << K_ALL) | (1L << K_ALTER) | (1L << K_ANALYZE) | (1L << K_AND) | (1L << K_AS) | (1L << K_ASC) | (1L << K_ATTACH) | (1L << K_AUTOINCREMENT) | (1L << K_BEFORE) | (1L << K_BEGIN) | (1L << K_BETWEEN) | (1L << K_BY) | (1L << K_CASCADE) | (1L << K_CASE) | (1L << K_CAST) | (1L << K_CHECK) | (1L << K_COLLATE) | (1L << K_COLUMN) | (1L << K_COMMIT) | (1L << K_CONFLICT) | (1L << K_CONSTRAINT) | (1L << K_CREATE) | (1L << K_CROSS) | (1L << K_CURRENT_DATE) | (1L << K_CURRENT_TIME) | (1L << K_CURRENT_TIMESTAMP) | (1L << K_DATABASE) | (1L << K_DEFAULT) | (1L << K_DEFERRABLE) | (1L << K_DEFERRED) | (1L << K_DELETE) | (1L << K_DESC) | (1L << K_DETACH))) != 0) || ((((_la - 64)) & ~0x3f) == 0 && ((1L << (_la - 64)) & ((1L << (K_DISTINCT - 64)) | (1L << (K_DROP - 64)) | (1L << (K_EACH - 64)) | (1L << (K_ELSE - 64)) | (1L << (K_END - 64)) | (1L << (K_ESCAPE - 64)) | (1L << (K_EXCEPT - 64)) | (1L << (K_EXCLUSIVE - 64)) | (1L << (K_EXISTS - 64)) | (1L << (K_EXPLAIN - 64)) | (1L << (K_FAIL - 64)) | (1L << (K_FOR - 64)) | (1L << (K_FOREIGN - 64)) | (1L << (K_FROM - 64)) | (1L << (K_FULL - 64)) | (1L << (K_GLOB - 64)) | (1L << (K_GROUP - 64)) | (1L << (K_HAVING - 64)) | (1L << (K_IF - 64)) | (1L << (K_IGNORE - 64)) | (1L << (K_IMMEDIATE - 64)) | (1L << (K_IN - 64)) | (1L << (K_INDEX - 64)) | (1L << (K_INDEXED - 64)) | (1L << (K_INITIALLY - 64)) | (1L << (K_INNER - 64)) | (1L << (K_INSERT - 64)) | (1L << (K_INSTEAD - 64)) | (1L << (K_INTERSECT - 64)) | (1L << (K_INTO - 64)) | (1L << (K_IS - 64)) | (1L << (K_ISNULL - 64)) | (1L << (K_JOIN - 64)) | (1L << (K_KEY - 64)) | (1L << (K_LEFT - 64)) | (1L << (K_LIKE - 64)) | (1L << (K_LIMIT - 64)) | (1L << (K_MATCH - 64)) | (1L << (K_NATURAL - 64)) | (1L << (K_NO - 64)) | (1L << (K_NOT - 64)) | (1L << (K_NOTNULL - 64)) | (1L << (K_NULL - 64)) | (1L << (K_OF - 64)) | (1L << (K_OFFSET - 64)) | (1L << (K_ON - 64)) | (1L << (K_OR - 64)) | (1L << (K_ORDER - 64)) | (1L << (K_OUTER - 64)) | (1L << (K_PLAN - 64)) | (1L << (K_PRAGMA - 64)) | (1L << (K_PRIMARY - 64)) | (1L << (K_QUERY - 64)) | (1L << (K_RAISE - 64)) | (1L << (K_RECURSIVE - 64)) | (1L << (K_REFERENCES - 64)) | (1L << (K_REGEXP - 64)) | (1L << (K_REINDEX - 64)) | (1L << (K_RELEASE - 64)) | (1L << (K_RENAME - 64)) | (1L << (K_REPLACE - 64)) | (1L << (K_RESTRICT - 64)) | (1L << (K_RIGHT - 64)) | (1L << (K_ROLLBACK - 64)))) != 0) || ((((_la - 128)) & ~0x3f) == 0 && ((1L << (_la - 128)) & ((1L << (K_ROW - 128)) | (1L << (K_SAVEPOINT - 128)) | (1L << (K_SELECT - 128)) | (1L << (K_SET - 128)) | (1L << (K_TABLE - 128)) | (1L << (K_TEMP - 128)) | (1L << (K_TEMPORARY - 128)) | (1L << (K_THEN - 128)) | (1L << (K_TO - 128)) | (1L << (K_TRANSACTION - 128)) | (1L << (K_TRIGGER - 128)) | (1L << (K_UNION - 128)) | (1L << (K_UNIQUE - 128)) | (1L << (K_UPDATE - 128)) | (1L << (K_USING - 128)) | (1L << (K_VACUUM - 128)) | (1L << (K_VALUES - 128)) | (1L << (K_VIEW - 128)) | (1L << (K_VIRTUAL - 128)) | (1L << (K_WHEN - 128)) | (1L << (K_WHERE - 128)) | (1L << (K_WITH - 128)) | (1L << (K_WITHOUT - 128)) | (1L << (IDENTIFIER - 128)) | (1L << (NUMERIC_LITERAL - 128)) | (1L << (BIND_PARAMETER - 128)) | (1L << (STRING_LITERAL - 128)) | (1L << (BLOB_LITERAL - 128)))) != 0)) {
{
setState(1361);
expr(0);
setState(1366);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
setState(1362);
match(COMMA);
setState(1363);
expr(0);
}
}
setState(1368);
_errHandler.sync(this);
_la = _input.LA(1);
}
}
}
setState(1371);
match(CLOSE_PAR);
setState(1376);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==OPEN_PAR || _la==K_AS || _la==IDENTIFIER || _la==STRING_LITERAL) {
{
setState(1373);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_AS) {
{
setState(1372);
match(K_AS);
}
}
setState(1375);
table_alias();
}
}
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
setState(1378);
match(OPEN_PAR);
setState(1388);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,200,_ctx) ) {
case 1:
{
setState(1379);
table_or_subquery();
setState(1384);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
setState(1380);
match(COMMA);
setState(1381);
table_or_subquery();
}
}
setState(1386);
_errHandler.sync(this);
_la = _input.LA(1);
}
}
break;
case 2:
{
setState(1387);
join_clause();
}
break;
}
setState(1390);
match(CLOSE_PAR);
}
break;
case 4:
enterOuterAlt(_localctx, 4);
{
setState(1392);
match(OPEN_PAR);
setState(1393);
select_stmt();
setState(1394);
match(CLOSE_PAR);
setState(1399);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==OPEN_PAR || _la==K_AS || _la==IDENTIFIER || _la==STRING_LITERAL) {
{
setState(1396);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_AS) {
{
setState(1395);
match(K_AS);
}
}
setState(1398);
table_alias();
}
}
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Join_clauseContext extends ParserRuleContext {
public List table_or_subquery() {
return getRuleContexts(Table_or_subqueryContext.class);
}
public Table_or_subqueryContext table_or_subquery(int i) {
return getRuleContext(Table_or_subqueryContext.class,i);
}
public List join_operator() {
return getRuleContexts(Join_operatorContext.class);
}
public Join_operatorContext join_operator(int i) {
return getRuleContext(Join_operatorContext.class,i);
}
public List join_constraint() {
return getRuleContexts(Join_constraintContext.class);
}
public Join_constraintContext join_constraint(int i) {
return getRuleContext(Join_constraintContext.class,i);
}
public Join_clauseContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_join_clause; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterJoin_clause(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitJoin_clause(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitJoin_clause(this);
else return visitor.visitChildren(this);
}
}
public final Join_clauseContext join_clause() throws RecognitionException {
Join_clauseContext _localctx = new Join_clauseContext(_ctx, getState());
enterRule(_localctx, 104, RULE_join_clause);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(1403);
table_or_subquery();
setState(1410);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA || _la==K_CROSS || ((((_la - 89)) & ~0x3f) == 0 && ((1L << (_la - 89)) & ((1L << (K_INNER - 89)) | (1L << (K_JOIN - 89)) | (1L << (K_LEFT - 89)) | (1L << (K_NATURAL - 89)))) != 0)) {
{
{
setState(1404);
join_operator();
setState(1405);
table_or_subquery();
setState(1406);
join_constraint();
}
}
setState(1412);
_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 Join_operatorContext extends ParserRuleContext {
public TerminalNode K_JOIN() { return getToken(SQLiteParser.K_JOIN, 0); }
public TerminalNode K_NATURAL() { return getToken(SQLiteParser.K_NATURAL, 0); }
public TerminalNode K_LEFT() { return getToken(SQLiteParser.K_LEFT, 0); }
public TerminalNode K_INNER() { return getToken(SQLiteParser.K_INNER, 0); }
public TerminalNode K_CROSS() { return getToken(SQLiteParser.K_CROSS, 0); }
public TerminalNode K_OUTER() { return getToken(SQLiteParser.K_OUTER, 0); }
public Join_operatorContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_join_operator; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterJoin_operator(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitJoin_operator(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitJoin_operator(this);
else return visitor.visitChildren(this);
}
}
public final Join_operatorContext join_operator() throws RecognitionException {
Join_operatorContext _localctx = new Join_operatorContext(_ctx, getState());
enterRule(_localctx, 106, RULE_join_operator);
int _la;
try {
setState(1426);
_errHandler.sync(this);
switch (_input.LA(1)) {
case COMMA:
enterOuterAlt(_localctx, 1);
{
setState(1413);
match(COMMA);
}
break;
case K_CROSS:
case K_INNER:
case K_JOIN:
case K_LEFT:
case K_NATURAL:
enterOuterAlt(_localctx, 2);
{
setState(1415);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_NATURAL) {
{
setState(1414);
match(K_NATURAL);
}
}
setState(1423);
_errHandler.sync(this);
switch (_input.LA(1)) {
case K_LEFT:
{
setState(1417);
match(K_LEFT);
setState(1419);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==K_OUTER) {
{
setState(1418);
match(K_OUTER);
}
}
}
break;
case K_INNER:
{
setState(1421);
match(K_INNER);
}
break;
case K_CROSS:
{
setState(1422);
match(K_CROSS);
}
break;
case K_JOIN:
break;
default:
break;
}
setState(1425);
match(K_JOIN);
}
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 Join_constraintContext extends ParserRuleContext {
public TerminalNode K_ON() { return getToken(SQLiteParser.K_ON, 0); }
public ExprContext expr() {
return getRuleContext(ExprContext.class,0);
}
public TerminalNode K_USING() { return getToken(SQLiteParser.K_USING, 0); }
public List column_name() {
return getRuleContexts(Column_nameContext.class);
}
public Column_nameContext column_name(int i) {
return getRuleContext(Column_nameContext.class,i);
}
public Join_constraintContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_join_constraint; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterJoin_constraint(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitJoin_constraint(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitJoin_constraint(this);
else return visitor.visitChildren(this);
}
}
public final Join_constraintContext join_constraint() throws RecognitionException {
Join_constraintContext _localctx = new Join_constraintContext(_ctx, getState());
enterRule(_localctx, 108, RULE_join_constraint);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(1442);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,210,_ctx) ) {
case 1:
{
setState(1428);
match(K_ON);
setState(1429);
expr(0);
}
break;
case 2:
{
setState(1430);
match(K_USING);
setState(1431);
match(OPEN_PAR);
setState(1432);
column_name();
setState(1437);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
setState(1433);
match(COMMA);
setState(1434);
column_name();
}
}
setState(1439);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(1440);
match(CLOSE_PAR);
}
break;
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Compound_operatorContext extends ParserRuleContext {
public TerminalNode K_UNION() { return getToken(SQLiteParser.K_UNION, 0); }
public TerminalNode K_ALL() { return getToken(SQLiteParser.K_ALL, 0); }
public TerminalNode K_INTERSECT() { return getToken(SQLiteParser.K_INTERSECT, 0); }
public TerminalNode K_EXCEPT() { return getToken(SQLiteParser.K_EXCEPT, 0); }
public Compound_operatorContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_compound_operator; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterCompound_operator(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitCompound_operator(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitCompound_operator(this);
else return visitor.visitChildren(this);
}
}
public final Compound_operatorContext compound_operator() throws RecognitionException {
Compound_operatorContext _localctx = new Compound_operatorContext(_ctx, getState());
enterRule(_localctx, 110, RULE_compound_operator);
try {
setState(1449);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,211,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(1444);
match(K_UNION);
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(1445);
match(K_UNION);
setState(1446);
match(K_ALL);
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
setState(1447);
match(K_INTERSECT);
}
break;
case 4:
enterOuterAlt(_localctx, 4);
{
setState(1448);
match(K_EXCEPT);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Signed_numberContext extends ParserRuleContext {
public TerminalNode NUMERIC_LITERAL() { return getToken(SQLiteParser.NUMERIC_LITERAL, 0); }
public Signed_numberContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_signed_number; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterSigned_number(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitSigned_number(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitSigned_number(this);
else return visitor.visitChildren(this);
}
}
public final Signed_numberContext signed_number() throws RecognitionException {
Signed_numberContext _localctx = new Signed_numberContext(_ctx, getState());
enterRule(_localctx, 112, RULE_signed_number);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(1452);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==PLUS || _la==MINUS) {
{
setState(1451);
_la = _input.LA(1);
if ( !(_la==PLUS || _la==MINUS) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
}
}
setState(1454);
match(NUMERIC_LITERAL);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Literal_valueContext extends ParserRuleContext {
public TerminalNode NUMERIC_LITERAL() { return getToken(SQLiteParser.NUMERIC_LITERAL, 0); }
public TerminalNode STRING_LITERAL() { return getToken(SQLiteParser.STRING_LITERAL, 0); }
public TerminalNode BLOB_LITERAL() { return getToken(SQLiteParser.BLOB_LITERAL, 0); }
public TerminalNode K_NULL() { return getToken(SQLiteParser.K_NULL, 0); }
public TerminalNode K_CURRENT_TIME() { return getToken(SQLiteParser.K_CURRENT_TIME, 0); }
public TerminalNode K_CURRENT_DATE() { return getToken(SQLiteParser.K_CURRENT_DATE, 0); }
public TerminalNode K_CURRENT_TIMESTAMP() { return getToken(SQLiteParser.K_CURRENT_TIMESTAMP, 0); }
public Boolean_literalContext boolean_literal() {
return getRuleContext(Boolean_literalContext.class,0);
}
public Literal_valueContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_literal_value; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterLiteral_value(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitLiteral_value(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitLiteral_value(this);
else return visitor.visitChildren(this);
}
}
public final Literal_valueContext literal_value() throws RecognitionException {
Literal_valueContext _localctx = new Literal_valueContext(_ctx, getState());
enterRule(_localctx, 114, RULE_literal_value);
try {
setState(1464);
_errHandler.sync(this);
switch (_input.LA(1)) {
case NUMERIC_LITERAL:
enterOuterAlt(_localctx, 1);
{
setState(1456);
match(NUMERIC_LITERAL);
}
break;
case STRING_LITERAL:
enterOuterAlt(_localctx, 2);
{
setState(1457);
match(STRING_LITERAL);
}
break;
case BLOB_LITERAL:
enterOuterAlt(_localctx, 3);
{
setState(1458);
match(BLOB_LITERAL);
}
break;
case K_NULL:
enterOuterAlt(_localctx, 4);
{
setState(1459);
match(K_NULL);
}
break;
case K_CURRENT_TIME:
enterOuterAlt(_localctx, 5);
{
setState(1460);
match(K_CURRENT_TIME);
}
break;
case K_CURRENT_DATE:
enterOuterAlt(_localctx, 6);
{
setState(1461);
match(K_CURRENT_DATE);
}
break;
case K_CURRENT_TIMESTAMP:
enterOuterAlt(_localctx, 7);
{
setState(1462);
match(K_CURRENT_TIMESTAMP);
}
break;
case TRUE:
case FALSE:
enterOuterAlt(_localctx, 8);
{
setState(1463);
boolean_literal();
}
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 Boolean_literalContext extends ParserRuleContext {
public TerminalNode TRUE() { return getToken(SQLiteParser.TRUE, 0); }
public TerminalNode FALSE() { return getToken(SQLiteParser.FALSE, 0); }
public Boolean_literalContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_boolean_literal; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterBoolean_literal(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitBoolean_literal(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitBoolean_literal(this);
else return visitor.visitChildren(this);
}
}
public final Boolean_literalContext boolean_literal() throws RecognitionException {
Boolean_literalContext _localctx = new Boolean_literalContext(_ctx, getState());
enterRule(_localctx, 116, RULE_boolean_literal);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(1466);
_la = _input.LA(1);
if ( !(_la==TRUE || _la==FALSE) ) {
_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 Unary_operatorContext extends ParserRuleContext {
public TerminalNode K_NOT() { return getToken(SQLiteParser.K_NOT, 0); }
public Unary_operatorContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_unary_operator; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterUnary_operator(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitUnary_operator(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitUnary_operator(this);
else return visitor.visitChildren(this);
}
}
public final Unary_operatorContext unary_operator() throws RecognitionException {
Unary_operatorContext _localctx = new Unary_operatorContext(_ctx, getState());
enterRule(_localctx, 118, RULE_unary_operator);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(1468);
_la = _input.LA(1);
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << PLUS) | (1L << MINUS) | (1L << TILDE))) != 0) || _la==K_NOT) ) {
_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 Binary_operatorContext extends ParserRuleContext {
public TerminalNode K_AND() { return getToken(SQLiteParser.K_AND, 0); }
public TerminalNode K_OR() { return getToken(SQLiteParser.K_OR, 0); }
public Binary_operatorContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_binary_operator; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterBinary_operator(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitBinary_operator(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitBinary_operator(this);
else return visitor.visitChildren(this);
}
}
public final Binary_operatorContext binary_operator() throws RecognitionException {
Binary_operatorContext _localctx = new Binary_operatorContext(_ctx, getState());
enterRule(_localctx, 120, RULE_binary_operator);
int _la;
try {
setState(1478);
_errHandler.sync(this);
switch (_input.LA(1)) {
case PIPE2:
enterOuterAlt(_localctx, 1);
{
setState(1470);
match(PIPE2);
}
break;
case STAR:
case DIV:
case MOD:
enterOuterAlt(_localctx, 2);
{
setState(1471);
_la = _input.LA(1);
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << STAR) | (1L << DIV) | (1L << MOD))) != 0)) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
}
break;
case PLUS:
case MINUS:
enterOuterAlt(_localctx, 3);
{
setState(1472);
_la = _input.LA(1);
if ( !(_la==PLUS || _la==MINUS) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
}
break;
case LT2:
case GT2:
case AMP:
case PIPE:
enterOuterAlt(_localctx, 4);
{
setState(1473);
_la = _input.LA(1);
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << LT2) | (1L << GT2) | (1L << AMP) | (1L << PIPE))) != 0)) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
}
break;
case LT:
case LT_EQ:
case GT:
case GT_EQ:
enterOuterAlt(_localctx, 5);
{
setState(1474);
_la = _input.LA(1);
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << LT) | (1L << LT_EQ) | (1L << GT) | (1L << GT_EQ))) != 0)) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
}
break;
case ASSIGN:
case EQ:
case NOT_EQ1:
case NOT_EQ2:
enterOuterAlt(_localctx, 6);
{
setState(1475);
_la = _input.LA(1);
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << ASSIGN) | (1L << EQ) | (1L << NOT_EQ1) | (1L << NOT_EQ2))) != 0)) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
}
break;
case K_AND:
enterOuterAlt(_localctx, 7);
{
setState(1476);
match(K_AND);
}
break;
case K_OR:
enterOuterAlt(_localctx, 8);
{
setState(1477);
match(K_OR);
}
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 Error_messageContext extends ParserRuleContext {
public TerminalNode STRING_LITERAL() { return getToken(SQLiteParser.STRING_LITERAL, 0); }
public Error_messageContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_error_message; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterError_message(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitError_message(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitError_message(this);
else return visitor.visitChildren(this);
}
}
public final Error_messageContext error_message() throws RecognitionException {
Error_messageContext _localctx = new Error_messageContext(_ctx, getState());
enterRule(_localctx, 122, RULE_error_message);
try {
enterOuterAlt(_localctx, 1);
{
setState(1480);
match(STRING_LITERAL);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Module_argumentContext extends ParserRuleContext {
public ExprContext expr() {
return getRuleContext(ExprContext.class,0);
}
public Column_defContext column_def() {
return getRuleContext(Column_defContext.class,0);
}
public Module_argumentContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_module_argument; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterModule_argument(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitModule_argument(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitModule_argument(this);
else return visitor.visitChildren(this);
}
}
public final Module_argumentContext module_argument() throws RecognitionException {
Module_argumentContext _localctx = new Module_argumentContext(_ctx, getState());
enterRule(_localctx, 124, RULE_module_argument);
try {
setState(1484);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,215,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(1482);
expr(0);
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(1483);
column_def();
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Column_aliasContext extends ParserRuleContext {
public TerminalNode IDENTIFIER() { return getToken(SQLiteParser.IDENTIFIER, 0); }
public TerminalNode STRING_LITERAL() { return getToken(SQLiteParser.STRING_LITERAL, 0); }
public Column_aliasContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_column_alias; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterColumn_alias(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitColumn_alias(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitColumn_alias(this);
else return visitor.visitChildren(this);
}
}
public final Column_aliasContext column_alias() throws RecognitionException {
Column_aliasContext _localctx = new Column_aliasContext(_ctx, getState());
enterRule(_localctx, 126, RULE_column_alias);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(1486);
_la = _input.LA(1);
if ( !(_la==IDENTIFIER || _la==STRING_LITERAL) ) {
_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 Column_name_listContext extends ParserRuleContext {
public List column_name() {
return getRuleContexts(Column_nameContext.class);
}
public Column_nameContext column_name(int i) {
return getRuleContext(Column_nameContext.class,i);
}
public Column_name_listContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_column_name_list; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterColumn_name_list(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitColumn_name_list(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitColumn_name_list(this);
else return visitor.visitChildren(this);
}
}
public final Column_name_listContext column_name_list() throws RecognitionException {
Column_name_listContext _localctx = new Column_name_listContext(_ctx, getState());
enterRule(_localctx, 128, RULE_column_name_list);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(1488);
match(OPEN_PAR);
setState(1489);
column_name();
setState(1494);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==COMMA) {
{
{
setState(1490);
match(COMMA);
setState(1491);
column_name();
}
}
setState(1496);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(1497);
match(CLOSE_PAR);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class KeywordContext extends ParserRuleContext {
public TerminalNode K_ABORT() { return getToken(SQLiteParser.K_ABORT, 0); }
public TerminalNode K_ACTION() { return getToken(SQLiteParser.K_ACTION, 0); }
public TerminalNode K_ADD() { return getToken(SQLiteParser.K_ADD, 0); }
public TerminalNode K_AFTER() { return getToken(SQLiteParser.K_AFTER, 0); }
public TerminalNode K_ALL() { return getToken(SQLiteParser.K_ALL, 0); }
public TerminalNode K_ALTER() { return getToken(SQLiteParser.K_ALTER, 0); }
public TerminalNode K_ANALYZE() { return getToken(SQLiteParser.K_ANALYZE, 0); }
public TerminalNode K_AND() { return getToken(SQLiteParser.K_AND, 0); }
public TerminalNode K_AS() { return getToken(SQLiteParser.K_AS, 0); }
public TerminalNode K_ASC() { return getToken(SQLiteParser.K_ASC, 0); }
public TerminalNode K_ATTACH() { return getToken(SQLiteParser.K_ATTACH, 0); }
public TerminalNode K_AUTOINCREMENT() { return getToken(SQLiteParser.K_AUTOINCREMENT, 0); }
public TerminalNode K_BEFORE() { return getToken(SQLiteParser.K_BEFORE, 0); }
public TerminalNode K_BEGIN() { return getToken(SQLiteParser.K_BEGIN, 0); }
public TerminalNode K_BETWEEN() { return getToken(SQLiteParser.K_BETWEEN, 0); }
public TerminalNode K_BY() { return getToken(SQLiteParser.K_BY, 0); }
public TerminalNode K_CASCADE() { return getToken(SQLiteParser.K_CASCADE, 0); }
public TerminalNode K_CASE() { return getToken(SQLiteParser.K_CASE, 0); }
public TerminalNode K_CAST() { return getToken(SQLiteParser.K_CAST, 0); }
public TerminalNode K_CHECK() { return getToken(SQLiteParser.K_CHECK, 0); }
public TerminalNode K_COLLATE() { return getToken(SQLiteParser.K_COLLATE, 0); }
public TerminalNode K_COLUMN() { return getToken(SQLiteParser.K_COLUMN, 0); }
public TerminalNode K_COMMIT() { return getToken(SQLiteParser.K_COMMIT, 0); }
public TerminalNode K_CONFLICT() { return getToken(SQLiteParser.K_CONFLICT, 0); }
public TerminalNode K_CONSTRAINT() { return getToken(SQLiteParser.K_CONSTRAINT, 0); }
public TerminalNode K_CREATE() { return getToken(SQLiteParser.K_CREATE, 0); }
public TerminalNode K_CROSS() { return getToken(SQLiteParser.K_CROSS, 0); }
public TerminalNode K_CURRENT_DATE() { return getToken(SQLiteParser.K_CURRENT_DATE, 0); }
public TerminalNode K_CURRENT_TIME() { return getToken(SQLiteParser.K_CURRENT_TIME, 0); }
public TerminalNode K_CURRENT_TIMESTAMP() { return getToken(SQLiteParser.K_CURRENT_TIMESTAMP, 0); }
public TerminalNode K_DATABASE() { return getToken(SQLiteParser.K_DATABASE, 0); }
public TerminalNode K_DEFAULT() { return getToken(SQLiteParser.K_DEFAULT, 0); }
public TerminalNode K_DEFERRABLE() { return getToken(SQLiteParser.K_DEFERRABLE, 0); }
public TerminalNode K_DEFERRED() { return getToken(SQLiteParser.K_DEFERRED, 0); }
public TerminalNode K_DELETE() { return getToken(SQLiteParser.K_DELETE, 0); }
public TerminalNode K_DESC() { return getToken(SQLiteParser.K_DESC, 0); }
public TerminalNode K_DETACH() { return getToken(SQLiteParser.K_DETACH, 0); }
public TerminalNode K_DISTINCT() { return getToken(SQLiteParser.K_DISTINCT, 0); }
public TerminalNode K_DROP() { return getToken(SQLiteParser.K_DROP, 0); }
public TerminalNode K_EACH() { return getToken(SQLiteParser.K_EACH, 0); }
public TerminalNode K_ELSE() { return getToken(SQLiteParser.K_ELSE, 0); }
public TerminalNode K_END() { return getToken(SQLiteParser.K_END, 0); }
public TerminalNode K_ESCAPE() { return getToken(SQLiteParser.K_ESCAPE, 0); }
public TerminalNode K_EXCEPT() { return getToken(SQLiteParser.K_EXCEPT, 0); }
public TerminalNode K_EXCLUSIVE() { return getToken(SQLiteParser.K_EXCLUSIVE, 0); }
public TerminalNode K_EXISTS() { return getToken(SQLiteParser.K_EXISTS, 0); }
public TerminalNode K_EXPLAIN() { return getToken(SQLiteParser.K_EXPLAIN, 0); }
public TerminalNode K_FAIL() { return getToken(SQLiteParser.K_FAIL, 0); }
public TerminalNode K_FOR() { return getToken(SQLiteParser.K_FOR, 0); }
public TerminalNode K_FOREIGN() { return getToken(SQLiteParser.K_FOREIGN, 0); }
public TerminalNode K_FROM() { return getToken(SQLiteParser.K_FROM, 0); }
public TerminalNode K_FULL() { return getToken(SQLiteParser.K_FULL, 0); }
public TerminalNode K_GLOB() { return getToken(SQLiteParser.K_GLOB, 0); }
public TerminalNode K_GROUP() { return getToken(SQLiteParser.K_GROUP, 0); }
public TerminalNode K_HAVING() { return getToken(SQLiteParser.K_HAVING, 0); }
public TerminalNode K_IF() { return getToken(SQLiteParser.K_IF, 0); }
public TerminalNode K_IGNORE() { return getToken(SQLiteParser.K_IGNORE, 0); }
public TerminalNode K_IMMEDIATE() { return getToken(SQLiteParser.K_IMMEDIATE, 0); }
public TerminalNode K_IN() { return getToken(SQLiteParser.K_IN, 0); }
public TerminalNode K_INDEX() { return getToken(SQLiteParser.K_INDEX, 0); }
public TerminalNode K_INDEXED() { return getToken(SQLiteParser.K_INDEXED, 0); }
public TerminalNode K_INITIALLY() { return getToken(SQLiteParser.K_INITIALLY, 0); }
public TerminalNode K_INNER() { return getToken(SQLiteParser.K_INNER, 0); }
public TerminalNode K_INSERT() { return getToken(SQLiteParser.K_INSERT, 0); }
public TerminalNode K_INSTEAD() { return getToken(SQLiteParser.K_INSTEAD, 0); }
public TerminalNode K_INTERSECT() { return getToken(SQLiteParser.K_INTERSECT, 0); }
public TerminalNode K_INTO() { return getToken(SQLiteParser.K_INTO, 0); }
public TerminalNode K_IS() { return getToken(SQLiteParser.K_IS, 0); }
public TerminalNode K_ISNULL() { return getToken(SQLiteParser.K_ISNULL, 0); }
public TerminalNode K_JOIN() { return getToken(SQLiteParser.K_JOIN, 0); }
public TerminalNode K_KEY() { return getToken(SQLiteParser.K_KEY, 0); }
public TerminalNode K_LEFT() { return getToken(SQLiteParser.K_LEFT, 0); }
public TerminalNode K_LIKE() { return getToken(SQLiteParser.K_LIKE, 0); }
public TerminalNode K_LIMIT() { return getToken(SQLiteParser.K_LIMIT, 0); }
public TerminalNode K_MATCH() { return getToken(SQLiteParser.K_MATCH, 0); }
public TerminalNode K_NATURAL() { return getToken(SQLiteParser.K_NATURAL, 0); }
public TerminalNode K_NO() { return getToken(SQLiteParser.K_NO, 0); }
public TerminalNode K_NOT() { return getToken(SQLiteParser.K_NOT, 0); }
public TerminalNode K_NOTNULL() { return getToken(SQLiteParser.K_NOTNULL, 0); }
public TerminalNode K_NULL() { return getToken(SQLiteParser.K_NULL, 0); }
public TerminalNode K_OF() { return getToken(SQLiteParser.K_OF, 0); }
public TerminalNode K_OFFSET() { return getToken(SQLiteParser.K_OFFSET, 0); }
public TerminalNode K_ON() { return getToken(SQLiteParser.K_ON, 0); }
public TerminalNode K_OR() { return getToken(SQLiteParser.K_OR, 0); }
public TerminalNode K_ORDER() { return getToken(SQLiteParser.K_ORDER, 0); }
public TerminalNode K_OUTER() { return getToken(SQLiteParser.K_OUTER, 0); }
public TerminalNode K_PLAN() { return getToken(SQLiteParser.K_PLAN, 0); }
public TerminalNode K_PRAGMA() { return getToken(SQLiteParser.K_PRAGMA, 0); }
public TerminalNode K_PRIMARY() { return getToken(SQLiteParser.K_PRIMARY, 0); }
public TerminalNode K_QUERY() { return getToken(SQLiteParser.K_QUERY, 0); }
public TerminalNode K_RAISE() { return getToken(SQLiteParser.K_RAISE, 0); }
public TerminalNode K_RECURSIVE() { return getToken(SQLiteParser.K_RECURSIVE, 0); }
public TerminalNode K_REFERENCES() { return getToken(SQLiteParser.K_REFERENCES, 0); }
public TerminalNode K_REGEXP() { return getToken(SQLiteParser.K_REGEXP, 0); }
public TerminalNode K_REINDEX() { return getToken(SQLiteParser.K_REINDEX, 0); }
public TerminalNode K_RELEASE() { return getToken(SQLiteParser.K_RELEASE, 0); }
public TerminalNode K_RENAME() { return getToken(SQLiteParser.K_RENAME, 0); }
public TerminalNode K_REPLACE() { return getToken(SQLiteParser.K_REPLACE, 0); }
public TerminalNode K_RESTRICT() { return getToken(SQLiteParser.K_RESTRICT, 0); }
public TerminalNode K_RIGHT() { return getToken(SQLiteParser.K_RIGHT, 0); }
public TerminalNode K_ROLLBACK() { return getToken(SQLiteParser.K_ROLLBACK, 0); }
public TerminalNode K_ROW() { return getToken(SQLiteParser.K_ROW, 0); }
public TerminalNode K_SAVEPOINT() { return getToken(SQLiteParser.K_SAVEPOINT, 0); }
public TerminalNode K_SELECT() { return getToken(SQLiteParser.K_SELECT, 0); }
public TerminalNode K_SET() { return getToken(SQLiteParser.K_SET, 0); }
public TerminalNode K_TABLE() { return getToken(SQLiteParser.K_TABLE, 0); }
public TerminalNode K_TEMP() { return getToken(SQLiteParser.K_TEMP, 0); }
public TerminalNode K_TEMPORARY() { return getToken(SQLiteParser.K_TEMPORARY, 0); }
public TerminalNode K_THEN() { return getToken(SQLiteParser.K_THEN, 0); }
public TerminalNode K_TO() { return getToken(SQLiteParser.K_TO, 0); }
public TerminalNode K_TRANSACTION() { return getToken(SQLiteParser.K_TRANSACTION, 0); }
public TerminalNode K_TRIGGER() { return getToken(SQLiteParser.K_TRIGGER, 0); }
public TerminalNode K_UNION() { return getToken(SQLiteParser.K_UNION, 0); }
public TerminalNode K_UNIQUE() { return getToken(SQLiteParser.K_UNIQUE, 0); }
public TerminalNode K_UPDATE() { return getToken(SQLiteParser.K_UPDATE, 0); }
public TerminalNode K_USING() { return getToken(SQLiteParser.K_USING, 0); }
public TerminalNode K_VACUUM() { return getToken(SQLiteParser.K_VACUUM, 0); }
public TerminalNode K_VALUES() { return getToken(SQLiteParser.K_VALUES, 0); }
public TerminalNode K_VIEW() { return getToken(SQLiteParser.K_VIEW, 0); }
public TerminalNode K_VIRTUAL() { return getToken(SQLiteParser.K_VIRTUAL, 0); }
public TerminalNode K_WHEN() { return getToken(SQLiteParser.K_WHEN, 0); }
public TerminalNode K_WHERE() { return getToken(SQLiteParser.K_WHERE, 0); }
public TerminalNode K_WITH() { return getToken(SQLiteParser.K_WITH, 0); }
public TerminalNode K_WITHOUT() { return getToken(SQLiteParser.K_WITHOUT, 0); }
public KeywordContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_keyword; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterKeyword(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitKeyword(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitKeyword(this);
else return visitor.visitChildren(this);
}
}
public final KeywordContext keyword() throws RecognitionException {
KeywordContext _localctx = new KeywordContext(_ctx, getState());
enterRule(_localctx, 130, RULE_keyword);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(1499);
_la = _input.LA(1);
if ( !(((((_la - 27)) & ~0x3f) == 0 && ((1L << (_la - 27)) & ((1L << (K_ABORT - 27)) | (1L << (K_ACTION - 27)) | (1L << (K_ADD - 27)) | (1L << (K_AFTER - 27)) | (1L << (K_ALL - 27)) | (1L << (K_ALTER - 27)) | (1L << (K_ANALYZE - 27)) | (1L << (K_AND - 27)) | (1L << (K_AS - 27)) | (1L << (K_ASC - 27)) | (1L << (K_ATTACH - 27)) | (1L << (K_AUTOINCREMENT - 27)) | (1L << (K_BEFORE - 27)) | (1L << (K_BEGIN - 27)) | (1L << (K_BETWEEN - 27)) | (1L << (K_BY - 27)) | (1L << (K_CASCADE - 27)) | (1L << (K_CASE - 27)) | (1L << (K_CAST - 27)) | (1L << (K_CHECK - 27)) | (1L << (K_COLLATE - 27)) | (1L << (K_COLUMN - 27)) | (1L << (K_COMMIT - 27)) | (1L << (K_CONFLICT - 27)) | (1L << (K_CONSTRAINT - 27)) | (1L << (K_CREATE - 27)) | (1L << (K_CROSS - 27)) | (1L << (K_CURRENT_DATE - 27)) | (1L << (K_CURRENT_TIME - 27)) | (1L << (K_CURRENT_TIMESTAMP - 27)) | (1L << (K_DATABASE - 27)) | (1L << (K_DEFAULT - 27)) | (1L << (K_DEFERRABLE - 27)) | (1L << (K_DEFERRED - 27)) | (1L << (K_DELETE - 27)) | (1L << (K_DESC - 27)) | (1L << (K_DETACH - 27)) | (1L << (K_DISTINCT - 27)) | (1L << (K_DROP - 27)) | (1L << (K_EACH - 27)) | (1L << (K_ELSE - 27)) | (1L << (K_END - 27)) | (1L << (K_ESCAPE - 27)) | (1L << (K_EXCEPT - 27)) | (1L << (K_EXCLUSIVE - 27)) | (1L << (K_EXISTS - 27)) | (1L << (K_EXPLAIN - 27)) | (1L << (K_FAIL - 27)) | (1L << (K_FOR - 27)) | (1L << (K_FOREIGN - 27)) | (1L << (K_FROM - 27)) | (1L << (K_FULL - 27)) | (1L << (K_GLOB - 27)) | (1L << (K_GROUP - 27)) | (1L << (K_HAVING - 27)) | (1L << (K_IF - 27)) | (1L << (K_IGNORE - 27)) | (1L << (K_IMMEDIATE - 27)) | (1L << (K_IN - 27)) | (1L << (K_INDEX - 27)) | (1L << (K_INDEXED - 27)) | (1L << (K_INITIALLY - 27)) | (1L << (K_INNER - 27)) | (1L << (K_INSERT - 27)))) != 0) || ((((_la - 91)) & ~0x3f) == 0 && ((1L << (_la - 91)) & ((1L << (K_INSTEAD - 91)) | (1L << (K_INTERSECT - 91)) | (1L << (K_INTO - 91)) | (1L << (K_IS - 91)) | (1L << (K_ISNULL - 91)) | (1L << (K_JOIN - 91)) | (1L << (K_KEY - 91)) | (1L << (K_LEFT - 91)) | (1L << (K_LIKE - 91)) | (1L << (K_LIMIT - 91)) | (1L << (K_MATCH - 91)) | (1L << (K_NATURAL - 91)) | (1L << (K_NO - 91)) | (1L << (K_NOT - 91)) | (1L << (K_NOTNULL - 91)) | (1L << (K_NULL - 91)) | (1L << (K_OF - 91)) | (1L << (K_OFFSET - 91)) | (1L << (K_ON - 91)) | (1L << (K_OR - 91)) | (1L << (K_ORDER - 91)) | (1L << (K_OUTER - 91)) | (1L << (K_PLAN - 91)) | (1L << (K_PRAGMA - 91)) | (1L << (K_PRIMARY - 91)) | (1L << (K_QUERY - 91)) | (1L << (K_RAISE - 91)) | (1L << (K_RECURSIVE - 91)) | (1L << (K_REFERENCES - 91)) | (1L << (K_REGEXP - 91)) | (1L << (K_REINDEX - 91)) | (1L << (K_RELEASE - 91)) | (1L << (K_RENAME - 91)) | (1L << (K_REPLACE - 91)) | (1L << (K_RESTRICT - 91)) | (1L << (K_RIGHT - 91)) | (1L << (K_ROLLBACK - 91)) | (1L << (K_ROW - 91)) | (1L << (K_SAVEPOINT - 91)) | (1L << (K_SELECT - 91)) | (1L << (K_SET - 91)) | (1L << (K_TABLE - 91)) | (1L << (K_TEMP - 91)) | (1L << (K_TEMPORARY - 91)) | (1L << (K_THEN - 91)) | (1L << (K_TO - 91)) | (1L << (K_TRANSACTION - 91)) | (1L << (K_TRIGGER - 91)) | (1L << (K_UNION - 91)) | (1L << (K_UNIQUE - 91)) | (1L << (K_UPDATE - 91)) | (1L << (K_USING - 91)) | (1L << (K_VACUUM - 91)) | (1L << (K_VALUES - 91)) | (1L << (K_VIEW - 91)) | (1L << (K_VIRTUAL - 91)) | (1L << (K_WHEN - 91)) | (1L << (K_WHERE - 91)) | (1L << (K_WITH - 91)) | (1L << (K_WITHOUT - 91)))) != 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 NameContext extends ParserRuleContext {
public Any_nameContext any_name() {
return getRuleContext(Any_nameContext.class,0);
}
public NameContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_name; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterName(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitName(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitName(this);
else return visitor.visitChildren(this);
}
}
public final NameContext name() throws RecognitionException {
NameContext _localctx = new NameContext(_ctx, getState());
enterRule(_localctx, 132, RULE_name);
try {
enterOuterAlt(_localctx, 1);
{
setState(1501);
any_name();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Function_nameContext extends ParserRuleContext {
public Any_nameContext any_name() {
return getRuleContext(Any_nameContext.class,0);
}
public Function_nameContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_function_name; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterFunction_name(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitFunction_name(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitFunction_name(this);
else return visitor.visitChildren(this);
}
}
public final Function_nameContext function_name() throws RecognitionException {
Function_nameContext _localctx = new Function_nameContext(_ctx, getState());
enterRule(_localctx, 134, RULE_function_name);
try {
enterOuterAlt(_localctx, 1);
{
setState(1503);
any_name();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Schema_nameContext extends ParserRuleContext {
public Any_nameContext any_name() {
return getRuleContext(Any_nameContext.class,0);
}
public Schema_nameContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_schema_name; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterSchema_name(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitSchema_name(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitSchema_name(this);
else return visitor.visitChildren(this);
}
}
public final Schema_nameContext schema_name() throws RecognitionException {
Schema_nameContext _localctx = new Schema_nameContext(_ctx, getState());
enterRule(_localctx, 136, RULE_schema_name);
try {
enterOuterAlt(_localctx, 1);
{
setState(1505);
any_name();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Table_functionContext extends ParserRuleContext {
public Any_nameContext any_name() {
return getRuleContext(Any_nameContext.class,0);
}
public Table_functionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_table_function; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterTable_function(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitTable_function(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitTable_function(this);
else return visitor.visitChildren(this);
}
}
public final Table_functionContext table_function() throws RecognitionException {
Table_functionContext _localctx = new Table_functionContext(_ctx, getState());
enterRule(_localctx, 138, RULE_table_function);
try {
enterOuterAlt(_localctx, 1);
{
setState(1507);
any_name();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Table_nameContext extends ParserRuleContext {
public Any_nameContext any_name() {
return getRuleContext(Any_nameContext.class,0);
}
public Table_nameContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_table_name; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterTable_name(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitTable_name(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitTable_name(this);
else return visitor.visitChildren(this);
}
}
public final Table_nameContext table_name() throws RecognitionException {
Table_nameContext _localctx = new Table_nameContext(_ctx, getState());
enterRule(_localctx, 140, RULE_table_name);
try {
enterOuterAlt(_localctx, 1);
{
setState(1509);
any_name();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Table_or_index_nameContext extends ParserRuleContext {
public Any_nameContext any_name() {
return getRuleContext(Any_nameContext.class,0);
}
public Table_or_index_nameContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_table_or_index_name; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterTable_or_index_name(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitTable_or_index_name(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitTable_or_index_name(this);
else return visitor.visitChildren(this);
}
}
public final Table_or_index_nameContext table_or_index_name() throws RecognitionException {
Table_or_index_nameContext _localctx = new Table_or_index_nameContext(_ctx, getState());
enterRule(_localctx, 142, RULE_table_or_index_name);
try {
enterOuterAlt(_localctx, 1);
{
setState(1511);
any_name();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class New_table_nameContext extends ParserRuleContext {
public Any_nameContext any_name() {
return getRuleContext(Any_nameContext.class,0);
}
public New_table_nameContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_new_table_name; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterNew_table_name(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitNew_table_name(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitNew_table_name(this);
else return visitor.visitChildren(this);
}
}
public final New_table_nameContext new_table_name() throws RecognitionException {
New_table_nameContext _localctx = new New_table_nameContext(_ctx, getState());
enterRule(_localctx, 144, RULE_new_table_name);
try {
enterOuterAlt(_localctx, 1);
{
setState(1513);
any_name();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Column_nameContext extends ParserRuleContext {
public Any_nameContext any_name() {
return getRuleContext(Any_nameContext.class,0);
}
public Column_nameContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_column_name; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterColumn_name(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitColumn_name(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitColumn_name(this);
else return visitor.visitChildren(this);
}
}
public final Column_nameContext column_name() throws RecognitionException {
Column_nameContext _localctx = new Column_nameContext(_ctx, getState());
enterRule(_localctx, 146, RULE_column_name);
try {
enterOuterAlt(_localctx, 1);
{
setState(1515);
any_name();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Collation_nameContext extends ParserRuleContext {
public Any_nameContext any_name() {
return getRuleContext(Any_nameContext.class,0);
}
public Collation_nameContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_collation_name; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterCollation_name(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitCollation_name(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitCollation_name(this);
else return visitor.visitChildren(this);
}
}
public final Collation_nameContext collation_name() throws RecognitionException {
Collation_nameContext _localctx = new Collation_nameContext(_ctx, getState());
enterRule(_localctx, 148, RULE_collation_name);
try {
enterOuterAlt(_localctx, 1);
{
setState(1517);
any_name();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Foreign_tableContext extends ParserRuleContext {
public Any_nameContext any_name() {
return getRuleContext(Any_nameContext.class,0);
}
public Foreign_tableContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_foreign_table; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterForeign_table(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitForeign_table(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitForeign_table(this);
else return visitor.visitChildren(this);
}
}
public final Foreign_tableContext foreign_table() throws RecognitionException {
Foreign_tableContext _localctx = new Foreign_tableContext(_ctx, getState());
enterRule(_localctx, 150, RULE_foreign_table);
try {
enterOuterAlt(_localctx, 1);
{
setState(1519);
any_name();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Index_nameContext extends ParserRuleContext {
public Any_nameContext any_name() {
return getRuleContext(Any_nameContext.class,0);
}
public Index_nameContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_index_name; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterIndex_name(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitIndex_name(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitIndex_name(this);
else return visitor.visitChildren(this);
}
}
public final Index_nameContext index_name() throws RecognitionException {
Index_nameContext _localctx = new Index_nameContext(_ctx, getState());
enterRule(_localctx, 152, RULE_index_name);
try {
enterOuterAlt(_localctx, 1);
{
setState(1521);
any_name();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Trigger_nameContext extends ParserRuleContext {
public Any_nameContext any_name() {
return getRuleContext(Any_nameContext.class,0);
}
public Trigger_nameContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_trigger_name; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterTrigger_name(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitTrigger_name(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitTrigger_name(this);
else return visitor.visitChildren(this);
}
}
public final Trigger_nameContext trigger_name() throws RecognitionException {
Trigger_nameContext _localctx = new Trigger_nameContext(_ctx, getState());
enterRule(_localctx, 154, RULE_trigger_name);
try {
enterOuterAlt(_localctx, 1);
{
setState(1523);
any_name();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class View_nameContext extends ParserRuleContext {
public Any_nameContext any_name() {
return getRuleContext(Any_nameContext.class,0);
}
public View_nameContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_view_name; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterView_name(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitView_name(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitView_name(this);
else return visitor.visitChildren(this);
}
}
public final View_nameContext view_name() throws RecognitionException {
View_nameContext _localctx = new View_nameContext(_ctx, getState());
enterRule(_localctx, 156, RULE_view_name);
try {
enterOuterAlt(_localctx, 1);
{
setState(1525);
any_name();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Module_nameContext extends ParserRuleContext {
public Any_nameContext any_name() {
return getRuleContext(Any_nameContext.class,0);
}
public Module_nameContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_module_name; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterModule_name(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitModule_name(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitModule_name(this);
else return visitor.visitChildren(this);
}
}
public final Module_nameContext module_name() throws RecognitionException {
Module_nameContext _localctx = new Module_nameContext(_ctx, getState());
enterRule(_localctx, 158, RULE_module_name);
try {
enterOuterAlt(_localctx, 1);
{
setState(1527);
any_name();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Pragma_nameContext extends ParserRuleContext {
public Any_nameContext any_name() {
return getRuleContext(Any_nameContext.class,0);
}
public Pragma_nameContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_pragma_name; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterPragma_name(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitPragma_name(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitPragma_name(this);
else return visitor.visitChildren(this);
}
}
public final Pragma_nameContext pragma_name() throws RecognitionException {
Pragma_nameContext _localctx = new Pragma_nameContext(_ctx, getState());
enterRule(_localctx, 160, RULE_pragma_name);
try {
enterOuterAlt(_localctx, 1);
{
setState(1529);
any_name();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Savepoint_nameContext extends ParserRuleContext {
public Any_nameContext any_name() {
return getRuleContext(Any_nameContext.class,0);
}
public Savepoint_nameContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_savepoint_name; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterSavepoint_name(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitSavepoint_name(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitSavepoint_name(this);
else return visitor.visitChildren(this);
}
}
public final Savepoint_nameContext savepoint_name() throws RecognitionException {
Savepoint_nameContext _localctx = new Savepoint_nameContext(_ctx, getState());
enterRule(_localctx, 162, RULE_savepoint_name);
try {
enterOuterAlt(_localctx, 1);
{
setState(1531);
any_name();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Table_aliasContext extends ParserRuleContext {
public TerminalNode IDENTIFIER() { return getToken(SQLiteParser.IDENTIFIER, 0); }
public TerminalNode STRING_LITERAL() { return getToken(SQLiteParser.STRING_LITERAL, 0); }
public Table_aliasContext table_alias() {
return getRuleContext(Table_aliasContext.class,0);
}
public Table_aliasContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_table_alias; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterTable_alias(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitTable_alias(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitTable_alias(this);
else return visitor.visitChildren(this);
}
}
public final Table_aliasContext table_alias() throws RecognitionException {
Table_aliasContext _localctx = new Table_aliasContext(_ctx, getState());
enterRule(_localctx, 164, RULE_table_alias);
try {
setState(1539);
_errHandler.sync(this);
switch (_input.LA(1)) {
case IDENTIFIER:
enterOuterAlt(_localctx, 1);
{
setState(1533);
match(IDENTIFIER);
}
break;
case STRING_LITERAL:
enterOuterAlt(_localctx, 2);
{
setState(1534);
match(STRING_LITERAL);
}
break;
case OPEN_PAR:
enterOuterAlt(_localctx, 3);
{
setState(1535);
match(OPEN_PAR);
setState(1536);
table_alias();
setState(1537);
match(CLOSE_PAR);
}
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 Transaction_nameContext extends ParserRuleContext {
public Any_nameContext any_name() {
return getRuleContext(Any_nameContext.class,0);
}
public Transaction_nameContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_transaction_name; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterTransaction_name(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitTransaction_name(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitTransaction_name(this);
else return visitor.visitChildren(this);
}
}
public final Transaction_nameContext transaction_name() throws RecognitionException {
Transaction_nameContext _localctx = new Transaction_nameContext(_ctx, getState());
enterRule(_localctx, 166, RULE_transaction_name);
try {
enterOuterAlt(_localctx, 1);
{
setState(1541);
any_name();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Any_nameContext extends ParserRuleContext {
public TerminalNode IDENTIFIER() { return getToken(SQLiteParser.IDENTIFIER, 0); }
public KeywordContext keyword() {
return getRuleContext(KeywordContext.class,0);
}
public TerminalNode STRING_LITERAL() { return getToken(SQLiteParser.STRING_LITERAL, 0); }
public Any_nameContext any_name() {
return getRuleContext(Any_nameContext.class,0);
}
public Any_nameContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_any_name; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).enterAny_name(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SQLiteListener ) ((SQLiteListener)listener).exitAny_name(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof SQLiteVisitor ) return ((SQLiteVisitor extends T>)visitor).visitAny_name(this);
else return visitor.visitChildren(this);
}
}
public final Any_nameContext any_name() throws RecognitionException {
Any_nameContext _localctx = new Any_nameContext(_ctx, getState());
enterRule(_localctx, 168, RULE_any_name);
try {
setState(1550);
_errHandler.sync(this);
switch (_input.LA(1)) {
case IDENTIFIER:
enterOuterAlt(_localctx, 1);
{
setState(1543);
match(IDENTIFIER);
}
break;
case K_ABORT:
case K_ACTION:
case K_ADD:
case K_AFTER:
case K_ALL:
case K_ALTER:
case K_ANALYZE:
case K_AND:
case K_AS:
case K_ASC:
case K_ATTACH:
case K_AUTOINCREMENT:
case K_BEFORE:
case K_BEGIN:
case K_BETWEEN:
case K_BY:
case K_CASCADE:
case K_CASE:
case K_CAST:
case K_CHECK:
case K_COLLATE:
case K_COLUMN:
case K_COMMIT:
case K_CONFLICT:
case K_CONSTRAINT:
case K_CREATE:
case K_CROSS:
case K_CURRENT_DATE:
case K_CURRENT_TIME:
case K_CURRENT_TIMESTAMP:
case K_DATABASE:
case K_DEFAULT:
case K_DEFERRABLE:
case K_DEFERRED:
case K_DELETE:
case K_DESC:
case K_DETACH:
case K_DISTINCT:
case K_DROP:
case K_EACH:
case K_ELSE:
case K_END:
case K_ESCAPE:
case K_EXCEPT:
case K_EXCLUSIVE:
case K_EXISTS:
case K_EXPLAIN:
case K_FAIL:
case K_FOR:
case K_FOREIGN:
case K_FROM:
case K_FULL:
case K_GLOB:
case K_GROUP:
case K_HAVING:
case K_IF:
case K_IGNORE:
case K_IMMEDIATE:
case K_IN:
case K_INDEX:
case K_INDEXED:
case K_INITIALLY:
case K_INNER:
case K_INSERT:
case K_INSTEAD:
case K_INTERSECT:
case K_INTO:
case K_IS:
case K_ISNULL:
case K_JOIN:
case K_KEY:
case K_LEFT:
case K_LIKE:
case K_LIMIT:
case K_MATCH:
case K_NATURAL:
case K_NO:
case K_NOT:
case K_NOTNULL:
case K_NULL:
case K_OF:
case K_OFFSET:
case K_ON:
case K_OR:
case K_ORDER:
case K_OUTER:
case K_PLAN:
case K_PRAGMA:
case K_PRIMARY:
case K_QUERY:
case K_RAISE:
case K_RECURSIVE:
case K_REFERENCES:
case K_REGEXP:
case K_REINDEX:
case K_RELEASE:
case K_RENAME:
case K_REPLACE:
case K_RESTRICT:
case K_RIGHT:
case K_ROLLBACK:
case K_ROW:
case K_SAVEPOINT:
case K_SELECT:
case K_SET:
case K_TABLE:
case K_TEMP:
case K_TEMPORARY:
case K_THEN:
case K_TO:
case K_TRANSACTION:
case K_TRIGGER:
case K_UNION:
case K_UNIQUE:
case K_UPDATE:
case K_USING:
case K_VACUUM:
case K_VALUES:
case K_VIEW:
case K_VIRTUAL:
case K_WHEN:
case K_WHERE:
case K_WITH:
case K_WITHOUT:
enterOuterAlt(_localctx, 2);
{
setState(1544);
keyword();
}
break;
case STRING_LITERAL:
enterOuterAlt(_localctx, 3);
{
setState(1545);
match(STRING_LITERAL);
}
break;
case OPEN_PAR:
enterOuterAlt(_localctx, 4);
{
setState(1546);
match(OPEN_PAR);
setState(1547);
any_name();
setState(1548);
match(CLOSE_PAR);
}
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 boolean sempred(RuleContext _localctx, int ruleIndex, int predIndex) {
switch (ruleIndex) {
case 37:
return expr_sempred((ExprContext)_localctx, predIndex);
}
return true;
}
private boolean expr_sempred(ExprContext _localctx, int predIndex) {
switch (predIndex) {
case 0:
return precpred(_ctx, 13);
case 1:
return precpred(_ctx, 6);
case 2:
return precpred(_ctx, 5);
case 3:
return precpred(_ctx, 9);
case 4:
return precpred(_ctx, 8);
case 5:
return precpred(_ctx, 7);
case 6:
return precpred(_ctx, 4);
}
return true;
}
public static final String _serializedATN =
"\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3\u00a4\u0613\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\4V\tV\3\2\3\2\7\2\u00af\n\2\f\2\16\2\u00b2\13\2\3\2\3\2\3\3\3\3"+
"\3\3\3\4\7\4\u00ba\n\4\f\4\16\4\u00bd\13\4\3\4\3\4\6\4\u00c1\n\4\r\4\16"+
"\4\u00c2\3\4\7\4\u00c6\n\4\f\4\16\4\u00c9\13\4\3\4\7\4\u00cc\n\4\f\4\16"+
"\4\u00cf\13\4\3\5\3\5\3\5\5\5\u00d4\n\5\5\5\u00d6\n\5\3\5\3\5\3\5\3\5"+
"\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3"+
"\5\3\5\3\5\3\5\3\5\3\5\5\5\u00f3\n\5\3\6\3\6\3\6\3\6\3\6\5\6\u00fa\n\6"+
"\3\6\3\6\3\6\3\6\3\6\3\6\5\6\u0102\n\6\3\6\5\6\u0105\n\6\3\7\3\7\3\7\3"+
"\7\3\7\3\7\3\7\5\7\u010e\n\7\3\b\3\b\5\b\u0112\n\b\3\b\3\b\3\b\3\b\3\t"+
"\3\t\5\t\u011a\n\t\3\t\3\t\5\t\u011e\n\t\5\t\u0120\n\t\3\n\3\n\3\n\5\n"+
"\u0125\n\n\5\n\u0127\n\n\3\13\3\13\5\13\u012b\n\13\3\13\3\13\3\13\3\13"+
"\5\13\u0131\n\13\3\13\3\13\3\13\5\13\u0136\n\13\3\13\3\13\3\13\3\13\3"+
"\13\3\13\3\13\7\13\u013f\n\13\f\13\16\13\u0142\13\13\3\13\3\13\3\13\5"+
"\13\u0147\n\13\3\f\3\f\5\f\u014b\n\f\3\f\3\f\3\f\3\f\5\f\u0151\n\f\3\f"+
"\3\f\3\f\5\f\u0156\n\f\3\f\3\f\3\f\3\f\3\f\7\f\u015d\n\f\f\f\16\f\u0160"+
"\13\f\3\f\3\f\7\f\u0164\n\f\f\f\16\f\u0167\13\f\3\f\3\f\5\f\u016b\n\f"+
"\3\f\3\f\5\f\u016f\n\f\3\r\3\r\5\r\u0173\n\r\3\r\3\r\3\r\3\r\5\r\u0179"+
"\n\r\3\r\3\r\3\r\5\r\u017e\n\r\3\r\3\r\3\r\3\r\3\r\5\r\u0185\n\r\3\r\3"+
"\r\3\r\3\r\3\r\3\r\3\r\7\r\u018e\n\r\f\r\16\r\u0191\13\r\5\r\u0193\n\r"+
"\5\r\u0195\n\r\3\r\3\r\3\r\3\r\5\r\u019b\n\r\3\r\3\r\3\r\3\r\5\r\u01a1"+
"\n\r\3\r\3\r\5\r\u01a5\n\r\3\r\3\r\3\r\3\r\3\r\5\r\u01ac\n\r\3\r\3\r\6"+
"\r\u01b0\n\r\r\r\16\r\u01b1\3\r\3\r\3\16\3\16\5\16\u01b8\n\16\3\16\3\16"+
"\3\16\3\16\5\16\u01be\n\16\3\16\3\16\3\16\5\16\u01c3\n\16\3\16\3\16\3"+
"\16\3\16\7\16\u01c9\n\16\f\16\16\16\u01cc\13\16\5\16\u01ce\n\16\3\16\3"+
"\16\3\16\3\17\3\17\3\17\3\17\3\17\3\17\5\17\u01d9\n\17\3\17\3\17\3\17"+
"\5\17\u01de\n\17\3\17\3\17\3\17\3\17\3\17\3\17\3\17\7\17\u01e7\n\17\f"+
"\17\16\17\u01ea\13\17\3\17\3\17\5\17\u01ee\n\17\3\20\5\20\u01f1\n\20\3"+
"\20\3\20\3\20\3\20\3\20\5\20\u01f8\n\20\3\21\5\21\u01fb\n\21\3\21\3\21"+
"\3\21\3\21\3\21\5\21\u0202\n\21\3\21\5\21\u0205\n\21\3\21\5\21\u0208\n"+
"\21\3\22\3\22\5\22\u020c\n\22\3\22\3\22\3\23\3\23\3\23\3\23\5\23\u0214"+
"\n\23\3\23\3\23\3\23\5\23\u0219\n\23\3\23\3\23\3\24\3\24\3\24\3\24\5\24"+
"\u0221\n\24\3\24\3\24\3\24\5\24\u0226\n\24\3\24\3\24\3\25\3\25\3\25\3"+
"\25\5\25\u022e\n\25\3\25\3\25\3\25\5\25\u0233\n\25\3\25\3\25\3\26\3\26"+
"\3\26\3\26\5\26\u023b\n\26\3\26\3\26\3\26\5\26\u0240\n\26\3\26\3\26\3"+
"\27\5\27\u0245\n\27\3\27\3\27\3\27\3\27\3\27\3\27\3\27\3\27\3\27\3\27"+
"\3\27\3\27\3\27\3\27\3\27\3\27\3\27\5\27\u0258\n\27\3\27\3\27\3\27\3\27"+
"\5\27\u025e\n\27\3\27\3\27\3\27\5\27\u0263\n\27\3\27\3\27\3\27\3\27\7"+
"\27\u0269\n\27\f\27\16\27\u026c\13\27\3\27\3\27\5\27\u0270\n\27\3\27\3"+
"\27\3\27\3\27\3\27\3\27\3\27\3\27\3\27\7\27\u027b\n\27\f\27\16\27\u027e"+
"\13\27\3\27\3\27\3\27\5\27\u0283\n\27\3\27\5\27\u0286\n\27\3\30\3\30\3"+
"\30\3\30\3\30\3\30\7\30\u028e\n\30\f\30\16\30\u0291\13\30\3\30\3\30\3"+
"\30\5\30\u0296\n\30\5\30\u0298\n\30\3\30\3\30\3\30\3\30\3\30\5\30\u029f"+
"\n\30\3\30\3\30\3\30\3\30\3\30\5\30\u02a6\n\30\3\30\3\30\3\30\7\30\u02ab"+
"\n\30\f\30\16\30\u02ae\13\30\3\30\3\30\5\30\u02b2\n\30\5\30\u02b4\n\30"+
"\3\31\3\31\3\31\3\31\5\31\u02ba\n\31\3\31\3\31\3\31\3\31\3\31\3\31\3\31"+
"\5\31\u02c3\n\31\3\32\3\32\3\32\3\32\3\32\5\32\u02ca\n\32\3\32\3\32\5"+
"\32\u02ce\n\32\5\32\u02d0\n\32\3\33\3\33\5\33\u02d4\n\33\3\33\3\33\3\34"+
"\3\34\3\34\5\34\u02db\n\34\5\34\u02dd\n\34\3\34\3\34\5\34\u02e1\n\34\3"+
"\34\5\34\u02e4\n\34\3\35\3\35\3\35\3\36\5\36\u02ea\n\36\3\36\3\36\3\36"+
"\3\36\7\36\u02f0\n\36\f\36\16\36\u02f3\13\36\3\36\5\36\u02f6\n\36\3\36"+
"\5\36\u02f9\n\36\3\37\3\37\5\37\u02fd\n\37\3\37\3\37\3\37\7\37\u0302\n"+
"\37\f\37\16\37\u0305\13\37\3\37\3\37\3\37\3\37\7\37\u030b\n\37\f\37\16"+
"\37\u030e\13\37\3\37\5\37\u0311\n\37\5\37\u0313\n\37\3\37\3\37\5\37\u0317"+
"\n\37\3\37\3\37\3\37\3\37\3\37\5\37\u031e\n\37\5\37\u0320\n\37\3\37\3"+
"\37\3\37\3\37\3\37\3\37\3\37\3\37\3\37\7\37\u032b\n\37\f\37\16\37\u032e"+
"\13\37\5\37\u0330\n\37\3 \5 \u0333\n \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3"+
" \5 \u0340\n \3 \3 \3 \3 \5 \u0346\n \3 \3 \3 \3 \3 \5 \u034d\n \3 \3"+
" \3 \7 \u0352\n \f \16 \u0355\13 \3 \3 \5 \u0359\n \3!\5!\u035c\n!\3!"+
"\3!\3!\3!\3!\3!\3!\3!\3!\3!\3!\5!\u0369\n!\3!\3!\3!\3!\5!\u036f\n!\3!"+
"\3!\3!\3!\3!\5!\u0376\n!\3!\3!\3!\7!\u037b\n!\f!\16!\u037e\13!\3!\3!\5"+
"!\u0382\n!\3!\5!\u0385\n!\3!\5!\u0388\n!\3\"\3\"\5\"\u038c\n\"\3#\3#\5"+
"#\u0390\n#\3#\7#\u0393\n#\f#\16#\u0396\13#\3$\6$\u0399\n$\r$\16$\u039a"+
"\3$\3$\3$\3$\3$\3$\3$\3$\3$\3$\5$\u03a7\n$\3%\3%\5%\u03ab\n%\3%\3%\3%"+
"\5%\u03b0\n%\3%\3%\5%\u03b4\n%\3%\5%\u03b7\n%\3%\3%\3%\3%\3%\3%\3%\3%"+
"\3%\3%\3%\3%\3%\3%\3%\3%\5%\u03c9\n%\3%\3%\3%\5%\u03ce\n%\3&\3&\3&\5&"+
"\u03d3\n&\3\'\3\'\3\'\3\'\3\'\3\'\5\'\u03db\n\'\3\'\3\'\3\'\5\'\u03e0"+
"\n\'\3\'\3\'\3\'\3\'\3\'\3\'\3\'\5\'\u03e9\n\'\3\'\3\'\5\'\u03ed\n\'\3"+
"\'\3\'\3\'\3\'\3\'\3\'\3\'\3\'\3\'\3\'\3\'\3\'\3\'\3\'\5\'\u03fd\n\'\3"+
"\'\5\'\u0400\n\'\3\'\3\'\3\'\3\'\3\'\3\'\5\'\u0408\n\'\3\'\3\'\3\'\3\'"+
"\3\'\6\'\u040f\n\'\r\'\16\'\u0410\3\'\3\'\5\'\u0415\n\'\3\'\3\'\3\'\5"+
"\'\u041a\n\'\3\'\3\'\3\'\3\'\3\'\3\'\3\'\5\'\u0423\n\'\3\'\3\'\3\'\5\'"+
"\u0428\n\'\3\'\3\'\3\'\3\'\3\'\3\'\3\'\3\'\3\'\3\'\5\'\u0434\n\'\3\'\3"+
"\'\3\'\3\'\5\'\u043a\n\'\3\'\3\'\3\'\3\'\3\'\5\'\u0441\n\'\3\'\3\'\5\'"+
"\u0445\n\'\3\'\3\'\3\'\3\'\5\'\u044b\n\'\3\'\3\'\3\'\3\'\5\'\u0451\n\'"+
"\3\'\3\'\3\'\3\'\5\'\u0457\n\'\3\'\3\'\3\'\5\'\u045c\n\'\3\'\3\'\5\'\u0460"+
"\n\'\7\'\u0462\n\'\f\'\16\'\u0465\13\'\3(\3(\3(\7(\u046a\n(\f(\16(\u046d"+
"\13(\3)\3)\3)\3)\3)\3)\7)\u0475\n)\f)\16)\u0478\13)\3)\3)\5)\u047c\n)"+
"\3)\3)\3)\3)\3)\3)\3)\3)\3)\3)\5)\u0488\n)\3)\3)\5)\u048c\n)\7)\u048e"+
"\n)\f)\16)\u0491\13)\3)\5)\u0494\n)\3)\3)\3)\3)\3)\5)\u049b\n)\5)\u049d"+
"\n)\3*\3*\3*\3*\3*\3*\5*\u04a5\n*\3*\3*\3+\3+\5+\u04ab\n+\3+\3+\5+\u04af"+
"\n+\3+\5+\u04b2\n+\3,\3,\5,\u04b6\n,\3,\3,\3,\5,\u04bb\n,\3,\3,\3,\3,"+
"\7,\u04c1\n,\f,\16,\u04c4\13,\3,\3,\3,\3,\3,\3,\3,\3,\3,\3,\3,\3,\3,\3"+
",\7,\u04d4\n,\f,\16,\u04d7\13,\3,\3,\3,\5,\u04dc\n,\3-\3-\5-\u04e0\n-"+
"\3-\3-\3-\7-\u04e5\n-\f-\16-\u04e8\13-\3.\3.\3.\3.\3.\7.\u04ef\n.\f.\16"+
".\u04f2\13.\3.\3.\5.\u04f6\n.\3.\3.\3.\3.\3.\3/\3/\3/\5/\u0500\n/\3/\3"+
"/\3/\5/\u0505\n/\3/\3/\3/\3/\3/\5/\u050c\n/\3\60\3\60\3\60\3\60\3\60\7"+
"\60\u0513\n\60\f\60\16\60\u0516\13\60\3\61\3\61\3\61\5\61\u051b\n\61\3"+
"\61\5\61\u051e\n\61\3\62\3\62\3\62\3\62\5\62\u0524\n\62\3\63\3\63\3\63"+
"\3\63\5\63\u052a\n\63\3\64\3\64\3\64\3\64\3\64\3\64\3\64\5\64\u0533\n"+
"\64\3\64\5\64\u0536\n\64\5\64\u0538\n\64\3\65\3\65\3\65\5\65\u053d\n\65"+
"\3\65\3\65\5\65\u0541\n\65\3\65\5\65\u0544\n\65\3\65\3\65\3\65\3\65\3"+
"\65\5\65\u054b\n\65\3\65\3\65\3\65\5\65\u0550\n\65\3\65\3\65\3\65\3\65"+
"\3\65\7\65\u0557\n\65\f\65\16\65\u055a\13\65\5\65\u055c\n\65\3\65\3\65"+
"\5\65\u0560\n\65\3\65\5\65\u0563\n\65\3\65\3\65\3\65\3\65\7\65\u0569\n"+
"\65\f\65\16\65\u056c\13\65\3\65\5\65\u056f\n\65\3\65\3\65\3\65\3\65\3"+
"\65\3\65\5\65\u0577\n\65\3\65\5\65\u057a\n\65\5\65\u057c\n\65\3\66\3\66"+
"\3\66\3\66\3\66\7\66\u0583\n\66\f\66\16\66\u0586\13\66\3\67\3\67\5\67"+
"\u058a\n\67\3\67\3\67\5\67\u058e\n\67\3\67\3\67\5\67\u0592\n\67\3\67\5"+
"\67\u0595\n\67\38\38\38\38\38\38\38\78\u059e\n8\f8\168\u05a1\138\38\3"+
"8\58\u05a5\n8\39\39\39\39\39\59\u05ac\n9\3:\5:\u05af\n:\3:\3:\3;\3;\3"+
";\3;\3;\3;\3;\3;\5;\u05bb\n;\3<\3<\3=\3=\3>\3>\3>\3>\3>\3>\3>\3>\5>\u05c9"+
"\n>\3?\3?\3@\3@\5@\u05cf\n@\3A\3A\3B\3B\3B\3B\7B\u05d7\nB\fB\16B\u05da"+
"\13B\3B\3B\3C\3C\3D\3D\3E\3E\3F\3F\3G\3G\3H\3H\3I\3I\3J\3J\3K\3K\3L\3"+
"L\3M\3M\3N\3N\3O\3O\3P\3P\3Q\3Q\3R\3R\3S\3S\3T\3T\3T\3T\3T\3T\5T\u0606"+
"\nT\3U\3U\3V\3V\3V\3V\3V\3V\3V\5V\u0611\nV\3V\4\u015e\u039a\3LW\2\4\6"+
"\b\n\f\16\20\22\24\26\30\32\34\36 \"$&(*,.\60\62\64\668:<>@BDFHJLNPRT"+
"VXZ\\^`bdfhjlnprtvxz|~\u0080\u0082\u0084\u0086\u0088\u008a\u008c\u008e"+
"\u0090\u0092\u0094\u0096\u0098\u009a\u009c\u009e\u00a0\u00a2\u00a4\u00a6"+
"\u00a8\u00aa\2\25\5\2>>IIVV\4\2\63\63FF\3\2\u0087\u0088\4\2!!BB\4\2&&"+
"@@\7\2\35\35LLUU~~\u0081\u0081\6\2QQeeggzz\4\2??\u008f\u008f\5\2\35\35"+
"LL\u0081\u0081\4\2\7\7nn\3\2\n\13\3\2\33\34\4\2\n\fjj\4\2\t\t\16\17\3"+
"\2\20\23\3\2\24\27\4\2\b\b\30\32\4\2\u009c\u009c\u009f\u009f\3\2\35\u0098"+
"\2\u0700\2\u00b0\3\2\2\2\4\u00b5\3\2\2\2\6\u00bb\3\2\2\2\b\u00d5\3\2\2"+
"\2\n\u00f4\3\2\2\2\f\u0106\3\2\2\2\16\u010f\3\2\2\2\20\u0117\3\2\2\2\22"+
"\u0121\3\2\2\2\24\u0128\3\2\2\2\26\u0148\3\2\2\2\30\u0170\3\2\2\2\32\u01b5"+
"\3\2\2\2\34\u01d2\3\2\2\2\36\u01f0\3\2\2\2 \u01fa\3\2\2\2\"\u0209\3\2"+
"\2\2$\u020f\3\2\2\2&\u021c\3\2\2\2(\u0229\3\2\2\2*\u0236\3\2\2\2,\u0244"+
"\3\2\2\2.\u0287\3\2\2\2\60\u02b5\3\2\2\2\62\u02c4\3\2\2\2\64\u02d1\3\2"+
"\2\2\66\u02d7\3\2\2\28\u02e5\3\2\2\2:\u02e9\3\2\2\2<\u032f\3\2\2\2>\u0332"+
"\3\2\2\2@\u035b\3\2\2\2B\u0389\3\2\2\2D\u038d\3\2\2\2F\u0398\3\2\2\2H"+
"\u03aa\3\2\2\2J\u03d2\3\2\2\2L\u0419\3\2\2\2N\u0466\3\2\2\2P\u046e\3\2"+
"\2\2R\u049e\3\2\2\2T\u04aa\3\2\2\2V\u04b5\3\2\2\2X\u04dd\3\2\2\2Z\u04e9"+
"\3\2\2\2\\\u04ff\3\2\2\2^\u050d\3\2\2\2`\u0517\3\2\2\2b\u051f\3\2\2\2"+
"d\u0529\3\2\2\2f\u0537\3\2\2\2h\u057b\3\2\2\2j\u057d\3\2\2\2l\u0594\3"+
"\2\2\2n\u05a4\3\2\2\2p\u05ab\3\2\2\2r\u05ae\3\2\2\2t\u05ba\3\2\2\2v\u05bc"+
"\3\2\2\2x\u05be\3\2\2\2z\u05c8\3\2\2\2|\u05ca\3\2\2\2~\u05ce\3\2\2\2\u0080"+
"\u05d0\3\2\2\2\u0082\u05d2\3\2\2\2\u0084\u05dd\3\2\2\2\u0086\u05df\3\2"+
"\2\2\u0088\u05e1\3\2\2\2\u008a\u05e3\3\2\2\2\u008c\u05e5\3\2\2\2\u008e"+
"\u05e7\3\2\2\2\u0090\u05e9\3\2\2\2\u0092\u05eb\3\2\2\2\u0094\u05ed\3\2"+
"\2\2\u0096\u05ef\3\2\2\2\u0098\u05f1\3\2\2\2\u009a\u05f3\3\2\2\2\u009c"+
"\u05f5\3\2\2\2\u009e\u05f7\3\2\2\2\u00a0\u05f9\3\2\2\2\u00a2\u05fb\3\2"+
"\2\2\u00a4\u05fd\3\2\2\2\u00a6\u0605\3\2\2\2\u00a8\u0607\3\2\2\2\u00aa"+
"\u0610\3\2\2\2\u00ac\u00af\5\6\4\2\u00ad\u00af\5\4\3\2\u00ae\u00ac\3\2"+
"\2\2\u00ae\u00ad\3\2\2\2\u00af\u00b2\3\2\2\2\u00b0\u00ae\3\2\2\2\u00b0"+
"\u00b1\3\2\2\2\u00b1\u00b3\3\2\2\2\u00b2\u00b0\3\2\2\2\u00b3\u00b4\7\2"+
"\2\3\u00b4\3\3\2\2\2\u00b5\u00b6\7\u00a4\2\2\u00b6\u00b7\b\3\1\2\u00b7"+
"\5\3\2\2\2\u00b8\u00ba\7\3\2\2\u00b9\u00b8\3\2\2\2\u00ba\u00bd\3\2\2\2"+
"\u00bb\u00b9\3\2\2\2\u00bb\u00bc\3\2\2\2\u00bc\u00be\3\2\2\2\u00bd\u00bb"+
"\3\2\2\2\u00be\u00c7\5\b\5\2\u00bf\u00c1\7\3\2\2\u00c0\u00bf\3\2\2\2\u00c1"+
"\u00c2\3\2\2\2\u00c2\u00c0\3\2\2\2\u00c2\u00c3\3\2\2\2\u00c3\u00c4\3\2"+
"\2\2\u00c4\u00c6\5\b\5\2\u00c5\u00c0\3\2\2\2\u00c6\u00c9\3\2\2\2\u00c7"+
"\u00c5\3\2\2\2\u00c7\u00c8\3\2\2\2\u00c8\u00cd\3\2\2\2\u00c9\u00c7\3\2"+
"\2\2\u00ca\u00cc\7\3\2\2\u00cb\u00ca\3\2\2\2\u00cc\u00cf\3\2\2\2\u00cd"+
"\u00cb\3\2\2\2\u00cd\u00ce\3\2\2\2\u00ce\7\3\2\2\2\u00cf\u00cd\3\2\2\2"+
"\u00d0\u00d3\7K\2\2\u00d1\u00d2\7v\2\2\u00d2\u00d4\7s\2\2\u00d3\u00d1"+
"\3\2\2\2\u00d3\u00d4\3\2\2\2\u00d4\u00d6\3\2\2\2\u00d5\u00d0\3\2\2\2\u00d5"+
"\u00d6\3\2\2\2\u00d6\u00f2\3\2\2\2\u00d7\u00f3\5\n\6\2\u00d8\u00f3\5\f"+
"\7\2\u00d9\u00f3\5\16\b\2\u00da\u00f3\5\20\t\2\u00db\u00f3\5\22\n\2\u00dc"+
"\u00f3\5\24\13\2\u00dd\u00f3\5\26\f\2\u00de\u00f3\5\30\r\2\u00df\u00f3"+
"\5\32\16\2\u00e0\u00f3\5\34\17\2\u00e1\u00f3\5\36\20\2\u00e2\u00f3\5 "+
"\21\2\u00e3\u00f3\5\"\22\2\u00e4\u00f3\5$\23\2\u00e5\u00f3\5&\24\2\u00e6"+
"\u00f3\5(\25\2\u00e7\u00f3\5*\26\2\u00e8\u00f3\5,\27\2\u00e9\u00f3\5\60"+
"\31\2\u00ea\u00f3\5\62\32\2\u00eb\u00f3\5\64\33\2\u00ec\u00f3\5\66\34"+
"\2\u00ed\u00f3\58\35\2\u00ee\u00f3\5:\36\2\u00ef\u00f3\5> \2\u00f0\u00f3"+
"\5@!\2\u00f1\u00f3\5B\"\2\u00f2\u00d7\3\2\2\2\u00f2\u00d8\3\2\2\2\u00f2"+
"\u00d9\3\2\2\2\u00f2\u00da\3\2\2\2\u00f2\u00db\3\2\2\2\u00f2\u00dc\3\2"+
"\2\2\u00f2\u00dd\3\2\2\2\u00f2\u00de\3\2\2\2\u00f2\u00df\3\2\2\2\u00f2"+
"\u00e0\3\2\2\2\u00f2\u00e1\3\2\2\2\u00f2\u00e2\3\2\2\2\u00f2\u00e3\3\2"+
"\2\2\u00f2\u00e4\3\2\2\2\u00f2\u00e5\3\2\2\2\u00f2\u00e6\3\2\2\2\u00f2"+
"\u00e7\3\2\2\2\u00f2\u00e8\3\2\2\2\u00f2\u00e9\3\2\2\2\u00f2\u00ea\3\2"+
"\2\2\u00f2\u00eb\3\2\2\2\u00f2\u00ec\3\2\2\2\u00f2\u00ed\3\2\2\2\u00f2"+
"\u00ee\3\2\2\2\u00f2\u00ef\3\2\2\2\u00f2\u00f0\3\2\2\2\u00f2\u00f1\3\2"+
"\2\2\u00f3\t\3\2\2\2\u00f4\u00f5\7\"\2\2\u00f5\u00f9\7\u0086\2\2\u00f6"+
"\u00f7\5\u008aF\2\u00f7\u00f8\7\4\2\2\u00f8\u00fa\3\2\2\2\u00f9\u00f6"+
"\3\2\2\2\u00f9\u00fa\3\2\2\2\u00fa\u00fb\3\2\2\2\u00fb\u0104\5\u008eH"+
"\2\u00fc\u00fd\7}\2\2\u00fd\u00fe\7\u008a\2\2\u00fe\u0105\5\u0092J\2\u00ff"+
"\u0101\7\37\2\2\u0100\u0102\7\62\2\2\u0101\u0100\3\2\2\2\u0101\u0102\3"+
"\2\2\2\u0102\u0103\3\2\2\2\u0103\u0105\5D#\2\u0104\u00fc\3\2\2\2\u0104"+
"\u00ff\3\2\2\2\u0105\13\3\2\2\2\u0106\u010d\7#\2\2\u0107\u010e\5\u008a"+
"F\2\u0108\u010e\5\u0090I\2\u0109\u010a\5\u008aF\2\u010a\u010b\7\4\2\2"+
"\u010b\u010c\5\u0090I\2\u010c\u010e\3\2\2\2\u010d\u0107\3\2\2\2\u010d"+
"\u0108\3\2\2\2\u010d\u0109\3\2\2\2\u010d\u010e\3\2\2\2\u010e\r\3\2\2\2"+
"\u010f\u0111\7\'\2\2\u0110\u0112\7;\2\2\u0111\u0110\3\2\2\2\u0111\u0112"+
"\3\2\2\2\u0112\u0113\3\2\2\2\u0113\u0114\5L\'\2\u0114\u0115\7%\2\2\u0115"+
"\u0116\5\u008aF\2\u0116\17\3\2\2\2\u0117\u0119\7*\2\2\u0118\u011a\t\2"+
"\2\2\u0119\u0118\3\2\2\2\u0119\u011a\3\2\2\2\u011a\u011f\3\2\2\2\u011b"+
"\u011d\7\u008b\2\2\u011c\u011e\5\u00a8U\2\u011d\u011c\3\2\2\2\u011d\u011e"+
"\3\2\2\2\u011e\u0120\3\2\2\2\u011f\u011b\3\2\2\2\u011f\u0120\3\2\2\2\u0120"+
"\21\3\2\2\2\u0121\u0126\t\3\2\2\u0122\u0124\7\u008b\2\2\u0123\u0125\5"+
"\u00a8U\2\u0124\u0123\3\2\2\2\u0124\u0125\3\2\2\2\u0125\u0127\3\2\2\2"+
"\u0126\u0122\3\2\2\2\u0126\u0127\3\2\2\2\u0127\23\3\2\2\2\u0128\u012a"+
"\7\66\2\2\u0129\u012b\7\u008e\2\2\u012a\u0129\3\2\2\2\u012a\u012b\3\2"+
"\2\2\u012b\u012c\3\2\2\2\u012c\u0130\7X\2\2\u012d\u012e\7T\2\2\u012e\u012f"+
"\7j\2\2\u012f\u0131\7J\2\2\u0130\u012d\3\2\2\2\u0130\u0131\3\2\2\2\u0131"+
"\u0135\3\2\2\2\u0132\u0133\5\u008aF\2\u0133\u0134\7\4\2\2\u0134\u0136"+
"\3\2\2\2\u0135\u0132\3\2\2\2\u0135\u0136\3\2\2\2\u0136\u0137\3\2\2\2\u0137"+
"\u0138\5\u009aN\2\u0138\u0139\7o\2\2\u0139\u013a\5\u008eH\2\u013a\u013b"+
"\7\5\2\2\u013b\u0140\5T+\2\u013c\u013d\7\7\2\2\u013d\u013f\5T+\2\u013e"+
"\u013c\3\2\2\2\u013f\u0142\3\2\2\2\u0140\u013e\3\2\2\2\u0140\u0141\3\2"+
"\2\2\u0141\u0143\3\2\2\2\u0142\u0140\3\2\2\2\u0143\u0146\7\6\2\2\u0144"+
"\u0145\7\u0096\2\2\u0145\u0147\5L\'\2\u0146\u0144\3\2\2\2\u0146\u0147"+
"\3\2\2\2\u0147\25\3\2\2\2\u0148\u014a\7\66\2\2\u0149\u014b\t\4\2\2\u014a"+
"\u0149\3\2\2\2\u014a\u014b\3\2\2\2\u014b\u014c\3\2\2\2\u014c\u0150\7\u0086"+
"\2\2\u014d\u014e\7T\2\2\u014e\u014f\7j\2\2\u014f\u0151\7J\2\2\u0150\u014d"+
"\3\2\2\2\u0150\u0151\3\2\2\2\u0151\u0155\3\2\2\2\u0152\u0153\5\u008aF"+
"\2\u0153\u0154\7\4\2\2\u0154\u0156\3\2\2\2\u0155\u0152\3\2\2\2\u0155\u0156"+
"\3\2\2\2\u0156\u0157\3\2\2\2\u0157\u016e\5\u008eH\2\u0158\u0159\7\5\2"+
"\2\u0159\u015e\5D#\2\u015a\u015b\7\7\2\2\u015b\u015d\5D#\2\u015c\u015a"+
"\3\2\2\2\u015d\u0160\3\2\2\2\u015e\u015f\3\2\2\2\u015e\u015c\3\2\2\2\u015f"+
"\u0165\3\2\2\2\u0160\u015e\3\2\2\2\u0161\u0162\7\7\2\2\u0162\u0164\5V"+
",\2\u0163\u0161\3\2\2\2\u0164\u0167\3\2\2\2\u0165\u0163\3\2\2\2\u0165"+
"\u0166\3\2\2\2\u0166\u0168\3\2\2\2\u0167\u0165\3\2\2\2\u0168\u016a\7\6"+
"\2\2\u0169\u016b\7\u0099\2\2\u016a\u0169\3\2\2\2\u016a\u016b\3\2\2\2\u016b"+
"\u016f\3\2\2\2\u016c\u016d\7%\2\2\u016d\u016f\5:\36\2\u016e\u0158\3\2"+
"\2\2\u016e\u016c\3\2\2\2\u016f\27\3\2\2\2\u0170\u0172\7\66\2\2\u0171\u0173"+
"\t\4\2\2\u0172\u0171\3\2\2\2\u0172\u0173\3\2\2\2\u0173\u0174\3\2\2\2\u0174"+
"\u0178\7\u008c\2\2\u0175\u0176\7T\2\2\u0176\u0177\7j\2\2\u0177\u0179\7"+
"J\2\2\u0178\u0175\3\2\2\2\u0178\u0179\3\2\2\2\u0179\u017d\3\2\2\2\u017a"+
"\u017b\5\u008aF\2\u017b\u017c\7\4\2\2\u017c\u017e\3\2\2\2\u017d\u017a"+
"\3\2\2\2\u017d\u017e\3\2\2\2\u017e\u017f\3\2\2\2\u017f\u0184\5\u009cO"+
"\2\u0180\u0185\7)\2\2\u0181\u0185\7 \2\2\u0182\u0183\7]\2\2\u0183\u0185"+
"\7m\2\2\u0184\u0180\3\2\2\2\u0184\u0181\3\2\2\2\u0184\u0182\3\2\2\2\u0184"+
"\u0185\3\2\2\2\u0185\u0194\3\2\2\2\u0186\u0195\7?\2\2\u0187\u0195\7\\"+
"\2\2\u0188\u0192\7\u008f\2\2\u0189\u018a\7m\2\2\u018a\u018f\5\u0094K\2"+
"\u018b\u018c\7\7\2\2\u018c\u018e\5\u0094K\2\u018d\u018b\3\2\2\2\u018e"+
"\u0191\3\2\2\2\u018f\u018d\3\2\2\2\u018f\u0190\3\2\2\2\u0190\u0193\3\2"+
"\2\2\u0191\u018f\3\2\2\2\u0192\u0189\3\2\2\2\u0192\u0193\3\2\2\2\u0193"+
"\u0195\3\2\2\2\u0194\u0186\3\2\2\2\u0194\u0187\3\2\2\2\u0194\u0188\3\2"+
"\2\2\u0195\u0196\3\2\2\2\u0196\u019a\7o\2\2\u0197\u0198\5\u008aF\2\u0198"+
"\u0199\7\4\2\2\u0199\u019b\3\2\2\2\u019a\u0197\3\2\2\2\u019a\u019b\3\2"+
"\2\2\u019b\u019c\3\2\2\2\u019c\u01a0\5\u008eH\2\u019d\u019e\7M\2\2\u019e"+
"\u019f\7D\2\2\u019f\u01a1\7\u0082\2\2\u01a0\u019d\3\2\2\2\u01a0\u01a1"+
"\3\2\2\2\u01a1\u01a4\3\2\2\2\u01a2\u01a3\7\u0095\2\2\u01a3\u01a5\5L\'"+
"\2\u01a4\u01a2\3\2\2\2\u01a4\u01a5\3\2\2\2\u01a5\u01a6\3\2\2\2\u01a6\u01af"+
"\7*\2\2\u01a7\u01ac\5> \2\u01a8\u01ac\5,\27\2\u01a9\u01ac\5\36\20\2\u01aa"+
"\u01ac\5:\36\2\u01ab\u01a7\3\2\2\2\u01ab\u01a8\3\2\2\2\u01ab\u01a9\3\2"+
"\2\2\u01ab\u01aa\3\2\2\2\u01ac\u01ad\3\2\2\2\u01ad\u01ae\7\3\2\2\u01ae"+
"\u01b0\3\2\2\2\u01af\u01ab\3\2\2\2\u01b0\u01b1\3\2\2\2\u01b1\u01af\3\2"+
"\2\2\u01b1\u01b2\3\2\2\2\u01b2\u01b3\3\2\2\2\u01b3\u01b4\7F\2\2\u01b4"+
"\31\3\2\2\2\u01b5\u01b7\7\66\2\2\u01b6\u01b8\t\4\2\2\u01b7\u01b6\3\2\2"+
"\2\u01b7\u01b8\3\2\2\2\u01b8\u01b9\3\2\2\2\u01b9\u01bd\7\u0093\2\2\u01ba"+
"\u01bb\7T\2\2\u01bb\u01bc\7j\2\2\u01bc\u01be\7J\2\2\u01bd\u01ba\3\2\2"+
"\2\u01bd\u01be\3\2\2\2\u01be\u01c2\3\2\2\2\u01bf\u01c0\5\u008aF\2\u01c0"+
"\u01c1\7\4\2\2\u01c1\u01c3\3\2\2\2\u01c2\u01bf\3\2\2\2\u01c2\u01c3\3\2"+
"\2\2\u01c3\u01c4\3\2\2\2\u01c4\u01cd\5\u009eP\2\u01c5\u01ca\5\u0094K\2"+
"\u01c6\u01c7\7\7\2\2\u01c7\u01c9\5\u0094K\2\u01c8\u01c6\3\2\2\2\u01c9"+
"\u01cc\3\2\2\2\u01ca\u01c8\3\2\2\2\u01ca\u01cb\3\2\2\2\u01cb\u01ce\3\2"+
"\2\2\u01cc\u01ca\3\2\2\2\u01cd\u01c5\3\2\2\2\u01cd\u01ce\3\2\2\2\u01ce"+
"\u01cf\3\2\2\2\u01cf\u01d0\7%\2\2\u01d0\u01d1\5:\36\2\u01d1\33\3\2\2\2"+
"\u01d2\u01d3\7\66\2\2\u01d3\u01d4\7\u0094\2\2\u01d4\u01d8\7\u0086\2\2"+
"\u01d5\u01d6\7T\2\2\u01d6\u01d7\7j\2\2\u01d7\u01d9\7J\2\2\u01d8\u01d5"+
"\3\2\2\2\u01d8\u01d9\3\2\2\2\u01d9\u01dd\3\2\2\2\u01da\u01db\5\u008aF"+
"\2\u01db\u01dc\7\4\2\2\u01dc\u01de\3\2\2\2\u01dd\u01da\3\2\2\2\u01dd\u01de"+
"\3\2\2\2\u01de\u01df\3\2\2\2\u01df\u01e0\5\u008eH\2\u01e0\u01e1\7\u0090"+
"\2\2\u01e1\u01ed\5\u00a0Q\2\u01e2\u01e3\7\5\2\2\u01e3\u01e8\5~@\2\u01e4"+
"\u01e5\7\7\2\2\u01e5\u01e7\5~@\2\u01e6\u01e4\3\2\2\2\u01e7\u01ea\3\2\2"+
"\2\u01e8\u01e6\3\2\2\2\u01e8\u01e9\3\2\2\2\u01e9\u01eb\3\2\2\2\u01ea\u01e8"+
"\3\2\2\2\u01eb\u01ec\7\6\2\2\u01ec\u01ee\3\2\2\2\u01ed\u01e2\3\2\2\2\u01ed"+
"\u01ee\3\2\2\2\u01ee\35\3\2\2\2\u01ef\u01f1\5X-\2\u01f0\u01ef\3\2\2\2"+
"\u01f0\u01f1\3\2\2\2\u01f1\u01f2\3\2\2\2\u01f2\u01f3\7?\2\2\u01f3\u01f4"+
"\7O\2\2\u01f4\u01f7\5\\/\2\u01f5\u01f6\7\u0096\2\2\u01f6\u01f8\5L\'\2"+
"\u01f7\u01f5\3\2\2\2\u01f7\u01f8\3\2\2\2\u01f8\37\3\2\2\2\u01f9\u01fb"+
"\5X-\2\u01fa\u01f9\3\2\2\2\u01fa\u01fb\3\2\2\2\u01fb\u01fc\3\2\2\2\u01fc"+
"\u01fd\7?\2\2\u01fd\u01fe\7O\2\2\u01fe\u0201\5\\/\2\u01ff\u0200\7\u0096"+
"\2\2\u0200\u0202\5L\'\2\u0201\u01ff\3\2\2\2\u0201\u0202\3\2\2\2\u0202"+
"\u0207\3\2\2\2\u0203\u0205\5^\60\2\u0204\u0203\3\2\2\2\u0204\u0205\3\2"+
"\2\2\u0205\u0206\3\2\2\2\u0206\u0208\5b\62\2\u0207\u0204\3\2\2\2\u0207"+
"\u0208\3\2\2\2\u0208!\3\2\2\2\u0209\u020b\7A\2\2\u020a\u020c\7;\2\2\u020b"+
"\u020a\3\2\2\2\u020b\u020c\3\2\2\2\u020c\u020d\3\2\2\2\u020d\u020e\5\u008a"+
"F\2\u020e#\3\2\2\2\u020f\u0210\7C\2\2\u0210\u0213\7X\2\2\u0211\u0212\7"+
"T\2\2\u0212\u0214\7J\2\2\u0213\u0211\3\2\2\2\u0213\u0214\3\2\2\2\u0214"+
"\u0218\3\2\2\2\u0215\u0216\5\u008aF\2\u0216\u0217\7\4\2\2\u0217\u0219"+
"\3\2\2\2\u0218\u0215\3\2\2\2\u0218\u0219\3\2\2\2\u0219\u021a\3\2\2\2\u021a"+
"\u021b\5\u009aN\2\u021b%\3\2\2\2\u021c\u021d\7C\2\2\u021d\u0220\7\u0086"+
"\2\2\u021e\u021f\7T\2\2\u021f\u0221\7J\2\2\u0220\u021e\3\2\2\2\u0220\u0221"+
"\3\2\2\2\u0221\u0225\3\2\2\2\u0222\u0223\5\u008aF\2\u0223\u0224\7\4\2"+
"\2\u0224\u0226\3\2\2\2\u0225\u0222\3\2\2\2\u0225\u0226\3\2\2\2\u0226\u0227"+
"\3\2\2\2\u0227\u0228\5\u008eH\2\u0228\'\3\2\2\2\u0229\u022a\7C\2\2\u022a"+
"\u022d\7\u008c\2\2\u022b\u022c\7T\2\2\u022c\u022e\7J\2\2\u022d\u022b\3"+
"\2\2\2\u022d\u022e\3\2\2\2\u022e\u0232\3\2\2\2\u022f\u0230\5\u008aF\2"+
"\u0230\u0231\7\4\2\2\u0231\u0233\3\2\2\2\u0232\u022f\3\2\2\2\u0232\u0233"+
"\3\2\2\2\u0233\u0234\3\2\2\2\u0234\u0235\5\u009cO\2\u0235)\3\2\2\2\u0236"+
"\u0237\7C\2\2\u0237\u023a\7\u0093\2\2\u0238\u0239\7T\2\2\u0239\u023b\7"+
"J\2\2\u023a\u0238\3\2\2\2\u023a\u023b\3\2\2\2\u023b\u023f\3\2\2\2\u023c"+
"\u023d\5\u008aF\2\u023d\u023e\7\4\2\2\u023e\u0240\3\2\2\2\u023f\u023c"+
"\3\2\2\2\u023f\u0240\3\2\2\2\u0240\u0241\3\2\2\2\u0241\u0242\5\u009eP"+
"\2\u0242+\3\2\2\2\u0243\u0245\5X-\2\u0244\u0243\3\2\2\2\u0244\u0245\3"+
"\2\2\2\u0245\u0257\3\2\2\2\u0246\u0258\7\\\2\2\u0247\u0258\7~\2\2\u0248"+
"\u0249\7\\\2\2\u0249\u024a\7p\2\2\u024a\u0258\7~\2\2\u024b\u024c\7\\\2"+
"\2\u024c\u024d\7p\2\2\u024d\u0258\7\u0081\2\2\u024e\u024f\7\\\2\2\u024f"+
"\u0250\7p\2\2\u0250\u0258\7\35\2\2\u0251\u0252\7\\\2\2\u0252\u0253\7p"+
"\2\2\u0253\u0258\7L\2\2\u0254\u0255\7\\\2\2\u0255\u0256\7p\2\2\u0256\u0258"+
"\7U\2\2\u0257\u0246\3\2\2\2\u0257\u0247\3\2\2\2\u0257\u0248\3\2\2\2\u0257"+
"\u024b\3\2\2\2\u0257\u024e\3\2\2\2\u0257\u0251\3\2\2\2\u0257\u0254\3\2"+
"\2\2\u0258\u0259\3\2\2\2\u0259\u025d\7_\2\2\u025a\u025b\5\u008aF\2\u025b"+
"\u025c\7\4\2\2\u025c\u025e\3\2\2\2\u025d\u025a\3\2\2\2\u025d\u025e\3\2"+
"\2\2\u025e\u025f\3\2\2\2\u025f\u0262\5\u008eH\2\u0260\u0261\7%\2\2\u0261"+
"\u0263\5\u00a6T\2\u0262\u0260\3\2\2\2\u0262\u0263\3\2\2\2\u0263\u026f"+
"\3\2\2\2\u0264\u0265\7\5\2\2\u0265\u026a\5\u0094K\2\u0266\u0267\7\7\2"+
"\2\u0267\u0269\5\u0094K\2\u0268\u0266\3\2\2\2\u0269\u026c\3\2\2\2\u026a"+
"\u0268\3\2\2\2\u026a\u026b\3\2\2\2\u026b\u026d\3\2\2\2\u026c\u026a\3\2"+
"\2\2\u026d\u026e\7\6\2\2\u026e\u0270\3\2\2\2\u026f\u0264\3\2\2\2\u026f"+
"\u0270\3\2\2\2\u0270\u0282\3\2\2\2\u0271\u0272\7\u0092\2\2\u0272\u0273"+
"\7\5\2\2\u0273\u0274\5N(\2\u0274\u027c\7\6\2\2\u0275\u0276\7\7\2\2\u0276"+
"\u0277\7\5\2\2\u0277\u0278\5N(\2\u0278\u0279\7\6\2\2\u0279\u027b\3\2\2"+
"\2\u027a\u0275\3\2\2\2\u027b\u027e\3\2\2\2\u027c\u027a\3\2\2\2\u027c\u027d"+
"\3\2\2\2\u027d\u0283\3\2\2\2\u027e\u027c\3\2\2\2\u027f\u0283\5:\36\2\u0280"+
"\u0281\7<\2\2\u0281\u0283\7\u0092\2\2\u0282\u0271\3\2\2\2\u0282\u027f"+
"\3\2\2\2\u0282\u0280\3\2\2\2\u0283\u0285\3\2\2\2\u0284\u0286\5.\30\2\u0285"+
"\u0284\3\2\2\2\u0285\u0286\3\2\2\2\u0286-\3\2\2\2\u0287\u0288\7o\2\2\u0288"+
"\u0297\7\64\2\2\u0289\u028a\7\5\2\2\u028a\u028f\5T+\2\u028b\u028c\7\7"+
"\2\2\u028c\u028e\5T+\2\u028d\u028b\3\2\2\2\u028e\u0291\3\2\2\2\u028f\u028d"+
"\3\2\2\2\u028f\u0290\3\2\2\2\u0290\u0292\3\2\2\2\u0291\u028f\3\2\2\2\u0292"+
"\u0295\7\6\2\2\u0293\u0294\7\u0096\2\2\u0294\u0296\5L\'\2\u0295\u0293"+
"\3\2\2\2\u0295\u0296\3\2\2\2\u0296\u0298\3\2\2\2\u0297\u0289\3\2\2\2\u0297"+
"\u0298\3\2\2\2\u0298\u02b3\3\2\2\2\u0299\u02b4\7\u009a\2\2\u029a\u029b"+
"\7\u009b\2\2\u029b\u029e\7\u0085\2\2\u029c\u029f\5\u0094K\2\u029d\u029f"+
"\5\u0082B\2\u029e\u029c\3\2\2\2\u029e\u029d\3\2\2\2\u029f\u02a0\3\2\2"+
"\2\u02a0\u02a1\7\b\2\2\u02a1\u02ac\5L\'\2\u02a2\u02a5\7\7\2\2\u02a3\u02a6"+
"\5\u0094K\2\u02a4\u02a6\5\u0082B\2\u02a5\u02a3\3\2\2\2\u02a5\u02a4\3\2"+
"\2\2\u02a6\u02a7\3\2\2\2\u02a7\u02a8\7\b\2\2\u02a8\u02a9\5L\'\2\u02a9"+
"\u02ab\3\2\2\2\u02aa\u02a2\3\2\2\2\u02ab\u02ae\3\2\2\2\u02ac\u02aa\3\2"+
"\2\2\u02ac\u02ad\3\2\2\2\u02ad\u02b1\3\2\2\2\u02ae\u02ac\3\2\2\2\u02af"+
"\u02b0\7\u0096\2\2\u02b0\u02b2\5L\'\2\u02b1\u02af\3\2\2\2\u02b1\u02b2"+
"\3\2\2\2\u02b2\u02b4\3\2\2\2\u02b3\u0299\3\2\2\2\u02b3\u029a\3\2\2\2\u02b4"+
"/\3\2\2\2\u02b5\u02b9\7t\2\2\u02b6\u02b7\5\u008aF\2\u02b7\u02b8\7\4\2"+
"\2\u02b8\u02ba\3\2\2\2\u02b9\u02b6\3\2\2\2\u02b9\u02ba\3\2\2\2\u02ba\u02bb"+
"\3\2\2\2\u02bb\u02c2\5\u00a2R\2\u02bc\u02bd\7\b\2\2\u02bd\u02c3\5d\63"+
"\2\u02be\u02bf\7\5\2\2\u02bf\u02c0\5d\63\2\u02c0\u02c1\7\6\2\2\u02c1\u02c3"+
"\3\2\2\2\u02c2\u02bc\3\2\2\2\u02c2\u02be\3\2\2\2\u02c2\u02c3\3\2\2\2\u02c3"+
"\61\3\2\2\2\u02c4\u02cf\7{\2\2\u02c5\u02d0\5\u0096L\2\u02c6\u02c7\5\u008a"+
"F\2\u02c7\u02c8\7\4\2\2\u02c8\u02ca\3\2\2\2\u02c9\u02c6\3\2\2\2\u02c9"+
"\u02ca\3\2\2\2\u02ca\u02cd\3\2\2\2\u02cb\u02ce\5\u008eH\2\u02cc\u02ce"+
"\5\u009aN\2\u02cd\u02cb\3\2\2\2\u02cd\u02cc\3\2\2\2\u02ce\u02d0\3\2\2"+
"\2\u02cf\u02c5\3\2\2\2\u02cf\u02c9\3\2\2\2\u02cf\u02d0\3\2\2\2\u02d0\63"+
"\3\2\2\2\u02d1\u02d3\7|\2\2\u02d2\u02d4\7\u0083\2\2\u02d3\u02d2\3\2\2"+
"\2\u02d3\u02d4\3\2\2\2\u02d4\u02d5\3\2\2\2\u02d5\u02d6\5\u00a4S\2\u02d6"+
"\65\3\2\2\2\u02d7\u02dc\7\u0081\2\2\u02d8\u02da\7\u008b\2\2\u02d9\u02db"+
"\5\u00a8U\2\u02da\u02d9\3\2\2\2\u02da\u02db\3\2\2\2\u02db\u02dd\3\2\2"+
"\2\u02dc\u02d8\3\2\2\2\u02dc\u02dd\3\2\2\2\u02dd\u02e3\3\2\2\2\u02de\u02e0"+
"\7\u008a\2\2\u02df\u02e1\7\u0083\2\2\u02e0\u02df\3\2\2\2\u02e0\u02e1\3"+
"\2\2\2\u02e1\u02e2\3\2\2\2\u02e2\u02e4\5\u00a4S\2\u02e3\u02de\3\2\2\2"+
"\u02e3\u02e4\3\2\2\2\u02e4\67\3\2\2\2\u02e5\u02e6\7\u0083\2\2\u02e6\u02e7"+
"\5\u00a4S\2\u02e79\3\2\2\2\u02e8\u02ea\5X-\2\u02e9\u02e8\3\2\2\2\u02e9"+
"\u02ea\3\2\2\2\u02ea\u02eb\3\2\2\2\u02eb\u02f1\5<\37\2\u02ec\u02ed\5p"+
"9\2\u02ed\u02ee\5<\37\2\u02ee\u02f0\3\2\2\2\u02ef\u02ec\3\2\2\2\u02f0"+
"\u02f3\3\2\2\2\u02f1\u02ef\3\2\2\2\u02f1\u02f2\3\2\2\2\u02f2\u02f5\3\2"+
"\2\2\u02f3\u02f1\3\2\2\2\u02f4\u02f6\5^\60\2\u02f5\u02f4\3\2\2\2\u02f5"+
"\u02f6\3\2\2\2\u02f6\u02f8\3\2\2\2\u02f7\u02f9\5b\62\2\u02f8\u02f7\3\2"+
"\2\2\u02f8\u02f9\3\2\2\2\u02f9;\3\2\2\2\u02fa\u02fc\7\u0084\2\2\u02fb"+
"\u02fd\t\5\2\2\u02fc\u02fb\3\2\2\2\u02fc\u02fd\3\2\2\2\u02fd\u02fe\3\2"+
"\2\2\u02fe\u0303\5f\64\2\u02ff\u0300\7\7\2\2\u0300\u0302\5f\64\2\u0301"+
"\u02ff\3\2\2\2\u0302\u0305\3\2\2\2\u0303\u0301\3\2\2\2\u0303\u0304\3\2"+
"\2\2\u0304\u0312\3\2\2\2\u0305\u0303\3\2\2\2\u0306\u0310\7O\2\2\u0307"+
"\u030c\5h\65\2\u0308\u0309\7\7\2\2\u0309\u030b\5h\65\2\u030a\u0308\3\2"+
"\2\2\u030b\u030e\3\2\2\2\u030c\u030a\3\2\2\2\u030c\u030d\3\2\2\2\u030d"+
"\u0311\3\2\2\2\u030e\u030c\3\2\2\2\u030f\u0311\5j\66\2\u0310\u0307\3\2"+
"\2\2\u0310\u030f\3\2\2\2\u0311\u0313\3\2\2\2\u0312\u0306\3\2\2\2\u0312"+
"\u0313\3\2\2\2\u0313\u0316\3\2\2\2\u0314\u0315\7\u0096\2\2\u0315\u0317"+
"\5L\'\2\u0316\u0314\3\2\2\2\u0316\u0317\3\2\2\2\u0317\u031f\3\2\2\2\u0318"+
"\u0319\7R\2\2\u0319\u031a\7,\2\2\u031a\u031d\5N(\2\u031b\u031c\7S\2\2"+
"\u031c\u031e\5L\'\2\u031d\u031b\3\2\2\2\u031d\u031e\3\2\2\2\u031e\u0320"+
"\3\2\2\2\u031f\u0318\3\2\2\2\u031f\u0320\3\2\2\2\u0320\u0330\3\2\2\2\u0321"+
"\u0322\7\u0092\2\2\u0322\u0323\7\5\2\2\u0323\u0324\5N(\2\u0324\u032c\7"+
"\6\2\2\u0325\u0326\7\7\2\2\u0326\u0327\7\5\2\2\u0327\u0328\5N(\2\u0328"+
"\u0329\7\6\2\2\u0329\u032b\3\2\2\2\u032a\u0325\3\2\2\2\u032b\u032e\3\2"+
"\2\2\u032c\u032a\3\2\2\2\u032c\u032d\3\2\2\2\u032d\u0330\3\2\2\2\u032e"+
"\u032c\3\2\2\2\u032f\u02fa\3\2\2\2\u032f\u0321\3\2\2\2\u0330=\3\2\2\2"+
"\u0331\u0333\5X-\2\u0332\u0331\3\2\2\2\u0332\u0333\3\2\2\2\u0333\u0334"+
"\3\2\2\2\u0334\u033f\7\u008f\2\2\u0335\u0336\7p\2\2\u0336\u0340\7\u0081"+
"\2\2\u0337\u0338\7p\2\2\u0338\u0340\7\35\2\2\u0339\u033a\7p\2\2\u033a"+
"\u0340\7~\2\2\u033b\u033c\7p\2\2\u033c\u0340\7L\2\2\u033d\u033e\7p\2\2"+
"\u033e\u0340\7U\2\2\u033f\u0335\3\2\2\2\u033f\u0337\3\2\2\2\u033f\u0339"+
"\3\2\2\2\u033f\u033b\3\2\2\2\u033f\u033d\3\2\2\2\u033f\u0340\3\2\2\2\u0340"+
"\u0341\3\2\2\2\u0341\u0342\5\\/\2\u0342\u0345\7\u0085\2\2\u0343\u0346"+
"\5\u0094K\2\u0344\u0346\5\u0082B\2\u0345\u0343\3\2\2\2\u0345\u0344\3\2"+
"\2\2\u0346\u0347\3\2\2\2\u0347\u0348\7\b\2\2\u0348\u0353\5L\'\2\u0349"+
"\u034c\7\7\2\2\u034a\u034d\5\u0094K\2\u034b\u034d\5\u0082B\2\u034c\u034a"+
"\3\2\2\2\u034c\u034b\3\2\2\2\u034d\u034e\3\2\2\2\u034e\u034f\7\b\2\2\u034f"+
"\u0350\5L\'\2\u0350\u0352\3\2\2\2\u0351\u0349\3\2\2\2\u0352\u0355\3\2"+
"\2\2\u0353\u0351\3\2\2\2\u0353\u0354\3\2\2\2\u0354\u0358\3\2\2\2\u0355"+
"\u0353\3\2\2\2\u0356\u0357\7\u0096\2\2\u0357\u0359\5L\'\2\u0358\u0356"+
"\3\2\2\2\u0358\u0359\3\2\2\2\u0359?\3\2\2\2\u035a\u035c\5X-\2\u035b\u035a"+
"\3\2\2\2\u035b\u035c\3\2\2\2\u035c\u035d\3\2\2\2\u035d\u0368\7\u008f\2"+
"\2\u035e\u035f\7p\2\2\u035f\u0369\7\u0081\2\2\u0360\u0361\7p\2\2\u0361"+
"\u0369\7\35\2\2\u0362\u0363\7p\2\2\u0363\u0369\7~\2\2\u0364\u0365\7p\2"+
"\2\u0365\u0369\7L\2\2\u0366\u0367\7p\2\2\u0367\u0369\7U\2\2\u0368\u035e"+
"\3\2\2\2\u0368\u0360\3\2\2\2\u0368\u0362\3\2\2\2\u0368\u0364\3\2\2\2\u0368"+
"\u0366\3\2\2\2\u0368\u0369\3\2\2\2\u0369\u036a\3\2\2\2\u036a\u036b\5\\"+
"/\2\u036b\u036e\7\u0085\2\2\u036c\u036f\5\u0094K\2\u036d\u036f\5\u0082"+
"B\2\u036e\u036c\3\2\2\2\u036e\u036d\3\2\2\2\u036f\u0370\3\2\2\2\u0370"+
"\u0371\7\b\2\2\u0371\u037c\5L\'\2\u0372\u0375\7\7\2\2\u0373\u0376\5\u0094"+
"K\2\u0374\u0376\5\u0082B\2\u0375\u0373\3\2\2\2\u0375\u0374\3\2\2\2\u0376"+
"\u0377\3\2\2\2\u0377\u0378\7\b\2\2\u0378\u0379\5L\'\2\u0379\u037b\3\2"+
"\2\2\u037a\u0372\3\2\2\2\u037b\u037e\3\2\2\2\u037c\u037a\3\2\2\2\u037c"+
"\u037d\3\2\2\2\u037d\u0381\3\2\2\2\u037e\u037c\3\2\2\2\u037f\u0380\7\u0096"+
"\2\2\u0380\u0382\5L\'\2\u0381\u037f\3\2\2\2\u0381\u0382\3\2\2\2\u0382"+
"\u0387\3\2\2\2\u0383\u0385\5^\60\2\u0384\u0383\3\2\2\2\u0384\u0385\3\2"+
"\2\2\u0385\u0386\3\2\2\2\u0386\u0388\5b\62\2\u0387\u0384\3\2\2\2\u0387"+
"\u0388\3\2\2\2\u0388A\3\2\2\2\u0389\u038b\7\u0091\2\2\u038a\u038c\5\u008a"+
"F\2\u038b\u038a\3\2\2\2\u038b\u038c\3\2\2\2\u038cC\3\2\2\2\u038d\u038f"+
"\5\u0094K\2\u038e\u0390\5F$\2\u038f\u038e\3\2\2\2\u038f\u0390\3\2\2\2"+
"\u0390\u0394\3\2\2\2\u0391\u0393\5H%\2\u0392\u0391\3\2\2\2\u0393\u0396"+
"\3\2\2\2\u0394\u0392\3\2\2\2\u0394\u0395\3\2\2\2\u0395E\3\2\2\2\u0396"+
"\u0394\3\2\2\2\u0397\u0399\5\u0086D\2\u0398\u0397\3\2\2\2\u0399\u039a"+
"\3\2\2\2\u039a\u039b\3\2\2\2\u039a\u0398\3\2\2\2\u039b\u03a6\3\2\2\2\u039c"+
"\u039d\7\5\2\2\u039d\u039e\5r:\2\u039e\u039f\7\6\2\2\u039f\u03a7\3\2\2"+
"\2\u03a0\u03a1\7\5\2\2\u03a1\u03a2\5r:\2\u03a2\u03a3\7\7\2\2\u03a3\u03a4"+
"\5r:\2\u03a4\u03a5\7\6\2\2\u03a5\u03a7\3\2\2\2\u03a6\u039c\3\2\2\2\u03a6"+
"\u03a0\3\2\2\2\u03a6\u03a7\3\2\2\2\u03a7G\3\2\2\2\u03a8\u03a9\7\65\2\2"+
"\u03a9\u03ab\5\u0086D\2\u03aa\u03a8\3\2\2\2\u03aa\u03ab\3\2\2\2\u03ab"+
"\u03cd\3\2\2\2\u03ac\u03ad\7u\2\2\u03ad\u03af\7c\2\2\u03ae\u03b0\t\6\2"+
"\2\u03af\u03ae\3\2\2\2\u03af\u03b0\3\2\2\2\u03b0\u03b1\3\2\2\2\u03b1\u03b3"+
"\5J&\2\u03b2\u03b4\7(\2\2\u03b3\u03b2\3\2\2\2\u03b3\u03b4\3\2\2\2\u03b4"+
"\u03ce\3\2\2\2\u03b5\u03b7\7j\2\2\u03b6\u03b5\3\2\2\2\u03b6\u03b7\3\2"+
"\2\2\u03b7\u03b8\3\2\2\2\u03b8\u03b9\7l\2\2\u03b9\u03ce\5J&\2\u03ba\u03bb"+
"\7\u008e\2\2\u03bb\u03ce\5J&\2\u03bc\u03bd\7\60\2\2\u03bd\u03be\7\5\2"+
"\2\u03be\u03bf\5L\'\2\u03bf\u03c0\7\6\2\2\u03c0\u03ce\3\2\2\2\u03c1\u03c8"+
"\7<\2\2\u03c2\u03c9\5r:\2\u03c3\u03c9\5t;\2\u03c4\u03c5\7\5\2\2\u03c5"+
"\u03c6\5L\'\2\u03c6\u03c7\7\6\2\2\u03c7\u03c9\3\2\2\2\u03c8\u03c2\3\2"+
"\2\2\u03c8\u03c3\3\2\2\2\u03c8\u03c4\3\2\2\2\u03c9\u03ce\3\2\2\2\u03ca"+
"\u03cb\7\61\2\2\u03cb\u03ce\5\u0096L\2\u03cc\u03ce\5P)\2\u03cd\u03ac\3"+
"\2\2\2\u03cd\u03b6\3\2\2\2\u03cd\u03ba\3\2\2\2\u03cd\u03bc\3\2\2\2\u03cd"+
"\u03c1\3\2\2\2\u03cd\u03ca\3\2\2\2\u03cd\u03cc\3\2\2\2\u03ceI\3\2\2\2"+
"\u03cf\u03d0\7o\2\2\u03d0\u03d1\7\64\2\2\u03d1\u03d3\t\7\2\2\u03d2\u03cf"+
"\3\2\2\2\u03d2\u03d3\3\2\2\2\u03d3K\3\2\2\2\u03d4\u03d5\b\'\1\2\u03d5"+
"\u041a\5t;\2\u03d6\u041a\7\u009e\2\2\u03d7\u03d8\5\u008aF\2\u03d8\u03d9"+
"\7\4\2\2\u03d9\u03db\3\2\2\2\u03da\u03d7\3\2\2\2\u03da\u03db\3\2\2\2\u03db"+
"\u03dc\3\2\2\2\u03dc\u03dd\5\u008eH\2\u03dd\u03de\7\4\2\2\u03de\u03e0"+
"\3\2\2\2\u03df\u03da\3\2\2\2\u03df\u03e0\3\2\2\2\u03e0\u03e1\3\2\2\2\u03e1"+
"\u041a\5\u0094K\2\u03e2\u03e3\5x=\2\u03e3\u03e4\5L\'\20\u03e4\u041a\3"+
"\2\2\2\u03e5\u03e6\5\u0088E\2\u03e6\u03ec\7\5\2\2\u03e7\u03e9\7B\2\2\u03e8"+
"\u03e7\3\2\2\2\u03e8\u03e9\3\2\2\2\u03e9\u03ea\3\2\2\2\u03ea\u03ed\5N"+
"(\2\u03eb\u03ed\7\t\2\2\u03ec\u03e8\3\2\2\2\u03ec\u03eb\3\2\2\2\u03ec"+
"\u03ed\3\2\2\2\u03ed\u03ee\3\2\2\2\u03ee\u03ef\7\6\2\2\u03ef\u041a\3\2"+
"\2\2\u03f0\u03f1\7\5\2\2\u03f1\u03f2\5N(\2\u03f2\u03f3\7\6\2\2\u03f3\u041a"+
"\3\2\2\2\u03f4\u03f5\7/\2\2\u03f5\u03f6\7\5\2\2\u03f6\u03f7\5L\'\2\u03f7"+
"\u03f8\7%\2\2\u03f8\u03f9\5F$\2\u03f9\u03fa\7\6\2\2\u03fa\u041a\3\2\2"+
"\2\u03fb\u03fd\7j\2\2\u03fc\u03fb\3\2\2\2\u03fc\u03fd\3\2\2\2\u03fd\u03fe"+
"\3\2\2\2\u03fe\u0400\7J\2\2\u03ff\u03fc\3\2\2\2\u03ff\u0400\3\2\2\2\u0400"+
"\u0401\3\2\2\2\u0401\u0402\7\5\2\2\u0402\u0403\5:\36\2\u0403\u0404\7\6"+
"\2\2\u0404\u041a\3\2\2\2\u0405\u0407\7.\2\2\u0406\u0408\5L\'\2\u0407\u0406"+
"\3\2\2\2\u0407\u0408\3\2\2\2\u0408\u040e\3\2\2\2\u0409\u040a\7\u0095\2"+
"\2\u040a\u040b\5L\'\2\u040b\u040c\7\u0089\2\2\u040c\u040d\5L\'\2\u040d"+
"\u040f\3\2\2\2\u040e\u0409\3\2\2\2\u040f\u0410\3\2\2\2\u0410\u040e\3\2"+
"\2\2\u0410\u0411\3\2\2\2\u0411\u0414\3\2\2\2\u0412\u0413\7E\2\2\u0413"+
"\u0415\5L\'\2\u0414\u0412\3\2\2\2\u0414\u0415\3\2\2\2\u0415\u0416\3\2"+
"\2\2\u0416\u0417\7F\2\2\u0417\u041a\3\2\2\2\u0418\u041a\5R*\2\u0419\u03d4"+
"\3\2\2\2\u0419\u03d6\3\2\2\2\u0419\u03df\3\2\2\2\u0419\u03e2\3\2\2\2\u0419"+
"\u03e5\3\2\2\2\u0419\u03f0\3\2\2\2\u0419\u03f4\3\2\2\2\u0419\u03ff\3\2"+
"\2\2\u0419\u0405\3\2\2\2\u0419\u0418\3\2\2\2\u041a\u0463\3\2\2\2\u041b"+
"\u041c\f\17\2\2\u041c\u041d\5z>\2\u041d\u041e\5L\'\20\u041e\u0462\3\2"+
"\2\2\u041f\u0420\f\b\2\2\u0420\u0422\7`\2\2\u0421\u0423\7j\2\2\u0422\u0421"+
"\3\2\2\2\u0422\u0423\3\2\2\2\u0423\u0424\3\2\2\2\u0424\u0462\5L\'\t\u0425"+
"\u0427\f\7\2\2\u0426\u0428\7j\2\2\u0427\u0426\3\2\2\2\u0427\u0428\3\2"+
"\2\2\u0428\u0429\3\2\2\2\u0429\u042a\7+\2\2\u042a\u042b\5L\'\2\u042b\u042c"+
"\7$\2\2\u042c\u042d\5L\'\b\u042d\u0462\3\2\2\2\u042e\u042f\f\13\2\2\u042f"+
"\u0430\7\61\2\2\u0430\u0462\5\u0096L\2\u0431\u0433\f\n\2\2\u0432\u0434"+
"\7j\2\2\u0433\u0432\3\2\2\2\u0433\u0434\3\2\2\2\u0434\u0435\3\2\2\2\u0435"+
"\u0436\t\b\2\2\u0436\u0439\5L\'\2\u0437\u0438\7G\2\2\u0438\u043a\5L\'"+
"\2\u0439\u0437\3\2\2\2\u0439\u043a\3\2\2\2\u043a\u0462\3\2\2\2\u043b\u0440"+
"\f\t\2\2\u043c\u0441\7a\2\2\u043d\u0441\7k\2\2\u043e\u043f\7j\2\2\u043f"+
"\u0441\7l\2\2\u0440\u043c\3\2\2\2\u0440\u043d\3\2\2\2\u0440\u043e\3\2"+
"\2\2\u0441\u0462\3\2\2\2\u0442\u0444\f\6\2\2\u0443\u0445\7j\2\2\u0444"+
"\u0443\3\2\2\2\u0444\u0445\3\2\2\2\u0445\u0446\3\2\2\2\u0446\u045f\7W"+
"\2\2\u0447\u044a\7\5\2\2\u0448\u044b\5:\36\2\u0449\u044b\5N(\2\u044a\u0448"+
"\3\2\2\2\u044a\u0449\3\2\2\2\u044a\u044b\3\2\2\2\u044b\u044c\3\2\2\2\u044c"+
"\u0460\7\6\2\2\u044d\u044e\5\u008aF\2\u044e\u044f\7\4\2\2\u044f\u0451"+
"\3\2\2\2\u0450\u044d\3\2\2\2\u0450\u0451\3\2\2\2\u0451\u0452\3\2\2\2\u0452"+
"\u0460\5\u008eH\2\u0453\u0454\5\u008aF\2\u0454\u0455\7\4\2\2\u0455\u0457"+
"\3\2\2\2\u0456\u0453\3\2\2\2\u0456\u0457\3\2\2\2\u0457\u0458\3\2\2\2\u0458"+
"\u0459\5\u008cG\2\u0459\u045b\7\5\2\2\u045a\u045c\5N(\2\u045b\u045a\3"+
"\2\2\2\u045b\u045c\3\2\2\2\u045c\u045d\3\2\2\2\u045d\u045e\7\6\2\2\u045e"+
"\u0460\3\2\2\2\u045f\u0447\3\2\2\2\u045f\u0450\3\2\2\2\u045f\u0456\3\2"+
"\2\2\u0460\u0462\3\2\2\2\u0461\u041b\3\2\2\2\u0461\u041f\3\2\2\2\u0461"+
"\u0425\3\2\2\2\u0461\u042e\3\2\2\2\u0461\u0431\3\2\2\2\u0461\u043b\3\2"+
"\2\2\u0461\u0442\3\2\2\2\u0462\u0465\3\2\2\2\u0463\u0461\3\2\2\2\u0463"+
"\u0464\3\2\2\2\u0464M\3\2\2\2\u0465\u0463\3\2\2\2\u0466\u046b\5L\'\2\u0467"+
"\u0468\7\7\2\2\u0468\u046a\5L\'\2\u0469\u0467\3\2\2\2\u046a\u046d\3\2"+
"\2\2\u046b\u0469\3\2\2\2\u046b\u046c\3\2\2\2\u046cO\3\2\2\2\u046d\u046b"+
"\3\2\2\2\u046e\u046f\7y\2\2\u046f\u047b\5\u0098M\2\u0470\u0471\7\5\2\2"+
"\u0471\u0476\5\u0094K\2\u0472\u0473\7\7\2\2\u0473\u0475\5\u0094K\2\u0474"+
"\u0472\3\2\2\2\u0475\u0478\3\2\2\2\u0476\u0474\3\2\2\2\u0476\u0477\3\2"+
"\2\2\u0477\u0479\3\2\2\2\u0478\u0476\3\2\2\2\u0479\u047a\7\6\2\2\u047a"+
"\u047c\3\2\2\2\u047b\u0470\3\2\2\2\u047b\u047c\3\2\2\2\u047c\u048f\3\2"+
"\2\2\u047d\u047e\7o\2\2\u047e\u0487\t\t\2\2\u047f\u0480\7\u0085\2\2\u0480"+
"\u0488\7l\2\2\u0481\u0482\7\u0085\2\2\u0482\u0488\7<\2\2\u0483\u0488\7"+
"-\2\2\u0484\u0488\7\177\2\2\u0485\u0486\7i\2\2\u0486\u0488\7\36\2\2\u0487"+
"\u047f\3\2\2\2\u0487\u0481\3\2\2\2\u0487\u0483\3\2\2\2\u0487\u0484\3\2"+
"\2\2\u0487\u0485\3\2\2\2\u0488\u048c\3\2\2\2\u0489\u048a\7g\2\2\u048a"+
"\u048c\5\u0086D\2\u048b\u047d\3\2\2\2\u048b\u0489\3\2\2\2\u048c\u048e"+
"\3\2\2\2\u048d\u048b\3\2\2\2\u048e\u0491\3\2\2\2\u048f\u048d\3\2\2\2\u048f"+
"\u0490\3\2\2\2\u0490\u049c\3\2\2\2\u0491\u048f\3\2\2\2\u0492\u0494\7j"+
"\2\2\u0493\u0492\3\2\2\2\u0493\u0494\3\2\2\2\u0494\u0495\3\2\2\2\u0495"+
"\u049a\7=\2\2\u0496\u0497\7Z\2\2\u0497\u049b\7>\2\2\u0498\u0499\7Z\2\2"+
"\u0499\u049b\7V\2\2\u049a\u0496\3\2\2\2\u049a\u0498\3\2\2\2\u049a\u049b"+
"\3\2\2\2\u049b\u049d\3\2\2\2\u049c\u0493\3\2\2\2\u049c\u049d\3\2\2\2\u049d"+
"Q\3\2\2\2\u049e\u049f\7w\2\2\u049f\u04a4\7\5\2\2\u04a0\u04a5\7U\2\2\u04a1"+
"\u04a2\t\n\2\2\u04a2\u04a3\7\7\2\2\u04a3\u04a5\5|?\2\u04a4\u04a0\3\2\2"+
"\2\u04a4\u04a1\3\2\2\2\u04a5\u04a6\3\2\2\2\u04a6\u04a7\7\6\2\2\u04a7S"+
"\3\2\2\2\u04a8\u04ab\5\u0094K\2\u04a9\u04ab\5L\'\2\u04aa\u04a8\3\2\2\2"+
"\u04aa\u04a9\3\2\2\2\u04ab\u04ae\3\2\2\2\u04ac\u04ad\7\61\2\2\u04ad\u04af"+
"\5\u0096L\2\u04ae\u04ac\3\2\2\2\u04ae\u04af\3\2\2\2\u04af\u04b1\3\2\2"+
"\2\u04b0\u04b2\t\6\2\2\u04b1\u04b0\3\2\2\2\u04b1\u04b2\3\2\2\2\u04b2U"+
"\3\2\2\2\u04b3\u04b4\7\65\2\2\u04b4\u04b6\5\u0086D\2\u04b5\u04b3\3\2\2"+
"\2\u04b5\u04b6\3\2\2\2\u04b6\u04db\3\2\2\2\u04b7\u04b8\7u\2\2\u04b8\u04bb"+
"\7c\2\2\u04b9\u04bb\7\u008e\2\2\u04ba\u04b7\3\2\2\2\u04ba\u04b9\3\2\2"+
"\2\u04bb\u04bc\3\2\2\2\u04bc\u04bd\7\5\2\2\u04bd\u04c2\5T+\2\u04be\u04bf"+
"\7\7\2\2\u04bf\u04c1\5T+\2\u04c0\u04be\3\2\2\2\u04c1\u04c4\3\2\2\2\u04c2"+
"\u04c0\3\2\2\2\u04c2\u04c3\3\2\2\2\u04c3\u04c5\3\2\2\2\u04c4\u04c2\3\2"+
"\2\2\u04c5\u04c6\7\6\2\2\u04c6\u04c7\5J&\2\u04c7\u04dc\3\2\2\2\u04c8\u04c9"+
"\7\60\2\2\u04c9\u04ca\7\5\2\2\u04ca\u04cb\5L\'\2\u04cb\u04cc\7\6\2\2\u04cc"+
"\u04dc\3\2\2\2\u04cd\u04ce\7N\2\2\u04ce\u04cf\7c\2\2\u04cf\u04d0\7\5\2"+
"\2\u04d0\u04d5\5\u0094K\2\u04d1\u04d2\7\7\2\2\u04d2\u04d4\5\u0094K\2\u04d3"+
"\u04d1\3\2\2\2\u04d4\u04d7\3\2\2\2\u04d5\u04d3\3\2\2\2\u04d5\u04d6\3\2"+
"\2\2\u04d6\u04d8\3\2\2\2\u04d7\u04d5\3\2\2\2\u04d8\u04d9\7\6\2\2\u04d9"+
"\u04da\5P)\2\u04da\u04dc\3\2\2\2\u04db\u04ba\3\2\2\2\u04db\u04c8\3\2\2"+
"\2\u04db\u04cd\3\2\2\2\u04dcW\3\2\2\2\u04dd\u04df\7\u0097\2\2\u04de\u04e0"+
"\7x\2\2\u04df\u04de\3\2\2\2\u04df\u04e0\3\2\2\2\u04e0\u04e1\3\2\2\2\u04e1"+
"\u04e6\5Z.\2\u04e2\u04e3\7\7\2\2\u04e3\u04e5\5Z.\2\u04e4\u04e2\3\2\2\2"+
"\u04e5\u04e8\3\2\2\2\u04e6\u04e4\3\2\2\2\u04e6\u04e7\3\2\2\2\u04e7Y\3"+
"\2\2\2\u04e8\u04e6\3\2\2\2\u04e9\u04f5\5\u008eH\2\u04ea\u04eb\7\5\2\2"+
"\u04eb\u04f0\5\u0094K\2\u04ec\u04ed\7\7\2\2\u04ed\u04ef\5\u0094K\2\u04ee"+
"\u04ec\3\2\2\2\u04ef\u04f2\3\2\2\2\u04f0\u04ee\3\2\2\2\u04f0\u04f1\3\2"+
"\2\2\u04f1\u04f3\3\2\2\2\u04f2\u04f0\3\2\2\2\u04f3\u04f4\7\6\2\2\u04f4"+
"\u04f6\3\2\2\2\u04f5\u04ea\3\2\2\2\u04f5\u04f6\3\2\2\2\u04f6\u04f7\3\2"+
"\2\2\u04f7\u04f8\7%\2\2\u04f8\u04f9\7\5\2\2\u04f9\u04fa\5:\36\2\u04fa"+
"\u04fb\7\6\2\2\u04fb[\3\2\2\2\u04fc\u04fd\5\u008aF\2\u04fd\u04fe\7\4\2"+
"\2\u04fe\u0500\3\2\2\2\u04ff\u04fc\3\2\2\2\u04ff\u0500\3\2\2\2\u0500\u0501"+
"\3\2\2\2\u0501\u0504\5\u008eH\2\u0502\u0503\7%\2\2\u0503\u0505\5\u00a6"+
"T\2\u0504\u0502\3\2\2\2\u0504\u0505\3\2\2\2\u0505\u050b\3\2\2\2\u0506"+
"\u0507\7Y\2\2\u0507\u0508\7,\2\2\u0508\u050c\5\u009aN\2\u0509\u050a\7"+
"j\2\2\u050a\u050c\7Y\2\2\u050b\u0506\3\2\2\2\u050b\u0509\3\2\2\2\u050b"+
"\u050c\3\2\2\2\u050c]\3\2\2\2\u050d\u050e\7q\2\2\u050e\u050f\7,\2\2\u050f"+
"\u0514\5`\61\2\u0510\u0511\7\7\2\2\u0511\u0513\5`\61\2\u0512\u0510\3\2"+
"\2\2\u0513\u0516\3\2\2\2\u0514\u0512\3\2\2\2\u0514\u0515\3\2\2\2\u0515"+
"_\3\2\2\2\u0516\u0514\3\2\2\2\u0517\u051a\5L\'\2\u0518\u0519\7\61\2\2"+
"\u0519\u051b\5\u0096L\2\u051a\u0518\3\2\2\2\u051a\u051b\3\2\2\2\u051b"+
"\u051d\3\2\2\2\u051c\u051e\t\6\2\2\u051d\u051c\3\2\2\2\u051d\u051e\3\2"+
"\2\2\u051ea\3\2\2\2\u051f\u0520\7f\2\2\u0520\u0523\5L\'\2\u0521\u0522"+
"\t\13\2\2\u0522\u0524\5L\'\2\u0523\u0521\3\2\2\2\u0523\u0524\3\2\2\2\u0524"+
"c\3\2\2\2\u0525\u052a\5r:\2\u0526\u052a\5\u0086D\2\u0527\u052a\7\u009f"+
"\2\2\u0528\u052a\5v<\2\u0529\u0525\3\2\2\2\u0529\u0526\3\2\2\2\u0529\u0527"+
"\3\2\2\2\u0529\u0528\3\2\2\2\u052ae\3\2\2\2\u052b\u0538\7\t\2\2\u052c"+
"\u052d\5\u008eH\2\u052d\u052e\7\4\2\2\u052e\u052f\7\t\2\2\u052f\u0538"+
"\3\2\2\2\u0530\u0535\5L\'\2\u0531\u0533\7%\2\2\u0532\u0531\3\2\2\2\u0532"+
"\u0533\3\2\2\2\u0533\u0534\3\2\2\2\u0534\u0536\5\u0080A\2\u0535\u0532"+
"\3\2\2\2\u0535\u0536\3\2\2\2\u0536\u0538\3\2\2\2\u0537\u052b\3\2\2\2\u0537"+
"\u052c\3\2\2\2\u0537\u0530\3\2\2\2\u0538g\3\2\2\2\u0539\u053a\5\u008a"+
"F\2\u053a\u053b\7\4\2\2\u053b\u053d\3\2\2\2\u053c\u0539\3\2\2\2\u053c"+
"\u053d\3\2\2\2\u053d\u053e\3\2\2\2\u053e\u0543\5\u008eH\2\u053f\u0541"+
"\7%\2\2\u0540\u053f\3\2\2\2\u0540\u0541\3\2\2\2\u0541\u0542\3\2\2\2\u0542"+
"\u0544\5\u00a6T\2\u0543\u0540\3\2\2\2\u0543\u0544\3\2\2\2\u0544\u054a"+
"\3\2\2\2\u0545\u0546\7Y\2\2\u0546\u0547\7,\2\2\u0547\u054b\5\u009aN\2"+
"\u0548\u0549\7j\2\2\u0549\u054b\7Y\2\2\u054a\u0545\3\2\2\2\u054a\u0548"+
"\3\2\2\2\u054a\u054b\3\2\2\2\u054b\u057c\3\2\2\2\u054c\u054d\5\u008aF"+
"\2\u054d\u054e\7\4\2\2\u054e\u0550\3\2\2\2\u054f\u054c\3\2\2\2\u054f\u0550"+
"\3\2\2\2\u0550\u0551\3\2\2\2\u0551\u0552\5\u008cG\2\u0552\u055b\7\5\2"+
"\2\u0553\u0558\5L\'\2\u0554\u0555\7\7\2\2\u0555\u0557\5L\'\2\u0556\u0554"+
"\3\2\2\2\u0557\u055a\3\2\2\2\u0558\u0556\3\2\2\2\u0558\u0559\3\2\2\2\u0559"+
"\u055c\3\2\2\2\u055a\u0558\3\2\2\2\u055b\u0553\3\2\2\2\u055b\u055c\3\2"+
"\2\2\u055c\u055d\3\2\2\2\u055d\u0562\7\6\2\2\u055e\u0560\7%\2\2\u055f"+
"\u055e\3\2\2\2\u055f\u0560\3\2\2\2\u0560\u0561\3\2\2\2\u0561\u0563\5\u00a6"+
"T\2\u0562\u055f\3\2\2\2\u0562\u0563\3\2\2\2\u0563\u057c\3\2\2\2\u0564"+
"\u056e\7\5\2\2\u0565\u056a\5h\65\2\u0566\u0567\7\7\2\2\u0567\u0569\5h"+
"\65\2\u0568\u0566\3\2\2\2\u0569\u056c\3\2\2\2\u056a\u0568\3\2\2\2\u056a"+
"\u056b\3\2\2\2\u056b\u056f\3\2\2\2\u056c\u056a\3\2\2\2\u056d\u056f\5j"+
"\66\2\u056e\u0565\3\2\2\2\u056e\u056d\3\2\2\2\u056f\u0570\3\2\2\2\u0570"+
"\u0571\7\6\2\2\u0571\u057c\3\2\2\2\u0572\u0573\7\5\2\2\u0573\u0574\5:"+
"\36\2\u0574\u0579\7\6\2\2\u0575\u0577\7%\2\2\u0576\u0575\3\2\2\2\u0576"+
"\u0577\3\2\2\2\u0577\u0578\3\2\2\2\u0578\u057a\5\u00a6T\2\u0579\u0576"+
"\3\2\2\2\u0579\u057a\3\2\2\2\u057a\u057c\3\2\2\2\u057b\u053c\3\2\2\2\u057b"+
"\u054f\3\2\2\2\u057b\u0564\3\2\2\2\u057b\u0572\3\2\2\2\u057ci\3\2\2\2"+
"\u057d\u0584\5h\65\2\u057e\u057f\5l\67\2\u057f\u0580\5h\65\2\u0580\u0581"+
"\5n8\2\u0581\u0583\3\2\2\2\u0582\u057e\3\2\2\2\u0583\u0586\3\2\2\2\u0584"+
"\u0582\3\2\2\2\u0584\u0585\3\2\2\2\u0585k\3\2\2\2\u0586\u0584\3\2\2\2"+
"\u0587\u0595\7\7\2\2\u0588\u058a\7h\2\2\u0589\u0588\3\2\2\2\u0589\u058a"+
"\3\2\2\2\u058a\u0591\3\2\2\2\u058b\u058d\7d\2\2\u058c\u058e\7r\2\2\u058d"+
"\u058c\3\2\2\2\u058d\u058e\3\2\2\2\u058e\u0592\3\2\2\2\u058f\u0592\7["+
"\2\2\u0590\u0592\7\67\2\2\u0591\u058b\3\2\2\2\u0591\u058f\3\2\2\2\u0591"+
"\u0590\3\2\2\2\u0591\u0592\3\2\2\2\u0592\u0593\3\2\2\2\u0593\u0595\7b"+
"\2\2\u0594\u0587\3\2\2\2\u0594\u0589\3\2\2\2\u0595m\3\2\2\2\u0596\u0597"+
"\7o\2\2\u0597\u05a5\5L\'\2\u0598\u0599\7\u0090\2\2\u0599\u059a\7\5\2\2"+
"\u059a\u059f\5\u0094K\2\u059b\u059c\7\7\2\2\u059c\u059e\5\u0094K\2\u059d"+
"\u059b\3\2\2\2\u059e\u05a1\3\2\2\2\u059f\u059d\3\2\2\2\u059f\u05a0\3\2"+
"\2\2\u05a0\u05a2\3\2\2\2\u05a1\u059f\3\2\2\2\u05a2\u05a3\7\6\2\2\u05a3"+
"\u05a5\3\2\2\2\u05a4\u0596\3\2\2\2\u05a4\u0598\3\2\2\2\u05a4\u05a5\3\2"+
"\2\2\u05a5o\3\2\2\2\u05a6\u05ac\7\u008d\2\2\u05a7\u05a8\7\u008d\2\2\u05a8"+
"\u05ac\7!\2\2\u05a9\u05ac\7^\2\2\u05aa\u05ac\7H\2\2\u05ab\u05a6\3\2\2"+
"\2\u05ab\u05a7\3\2\2\2\u05ab\u05a9\3\2\2\2\u05ab\u05aa\3\2\2\2\u05acq"+
"\3\2\2\2\u05ad\u05af\t\f\2\2\u05ae\u05ad\3\2\2\2\u05ae\u05af\3\2\2\2\u05af"+
"\u05b0\3\2\2\2\u05b0\u05b1\7\u009d\2\2\u05b1s\3\2\2\2\u05b2\u05bb\7\u009d"+
"\2\2\u05b3\u05bb\7\u009f\2\2\u05b4\u05bb\7\u00a0\2\2\u05b5\u05bb\7l\2"+
"\2\u05b6\u05bb\79\2\2\u05b7\u05bb\78\2\2\u05b8\u05bb\7:\2\2\u05b9\u05bb"+
"\5v<\2\u05ba\u05b2\3\2\2\2\u05ba\u05b3\3\2\2\2\u05ba\u05b4\3\2\2\2\u05ba"+
"\u05b5\3\2\2\2\u05ba\u05b6\3\2\2\2\u05ba\u05b7\3\2\2\2\u05ba\u05b8\3\2"+
"\2\2\u05ba\u05b9\3\2\2\2\u05bbu\3\2\2\2\u05bc\u05bd\t\r\2\2\u05bdw\3\2"+
"\2\2\u05be\u05bf\t\16\2\2\u05bfy\3\2\2\2\u05c0\u05c9\7\r\2\2\u05c1\u05c9"+
"\t\17\2\2\u05c2\u05c9\t\f\2\2\u05c3\u05c9\t\20\2\2\u05c4\u05c9\t\21\2"+
"\2\u05c5\u05c9\t\22\2\2\u05c6\u05c9\7$\2\2\u05c7\u05c9\7p\2\2\u05c8\u05c0"+
"\3\2\2\2\u05c8\u05c1\3\2\2\2\u05c8\u05c2\3\2\2\2\u05c8\u05c3\3\2\2\2\u05c8"+
"\u05c4\3\2\2\2\u05c8\u05c5\3\2\2\2\u05c8\u05c6\3\2\2\2\u05c8\u05c7\3\2"+
"\2\2\u05c9{\3\2\2\2\u05ca\u05cb\7\u009f\2\2\u05cb}\3\2\2\2\u05cc\u05cf"+
"\5L\'\2\u05cd\u05cf\5D#\2\u05ce\u05cc\3\2\2\2\u05ce\u05cd\3\2\2\2\u05cf"+
"\177\3\2\2\2\u05d0\u05d1\t\23\2\2\u05d1\u0081\3\2\2\2\u05d2\u05d3\7\5"+
"\2\2\u05d3\u05d8\5\u0094K\2\u05d4\u05d5\7\7\2\2\u05d5\u05d7\5\u0094K\2"+
"\u05d6\u05d4\3\2\2\2\u05d7\u05da\3\2\2\2\u05d8\u05d6\3\2\2\2\u05d8\u05d9"+
"\3\2\2\2\u05d9\u05db\3\2\2\2\u05da\u05d8\3\2\2\2\u05db\u05dc\7\6\2\2\u05dc"+
"\u0083\3\2\2\2\u05dd\u05de\t\24\2\2\u05de\u0085\3\2\2\2\u05df\u05e0\5"+
"\u00aaV\2\u05e0\u0087\3\2\2\2\u05e1\u05e2\5\u00aaV\2\u05e2\u0089\3\2\2"+
"\2\u05e3\u05e4\5\u00aaV\2\u05e4\u008b\3\2\2\2\u05e5\u05e6\5\u00aaV\2\u05e6"+
"\u008d\3\2\2\2\u05e7\u05e8\5\u00aaV\2\u05e8\u008f\3\2\2\2\u05e9\u05ea"+
"\5\u00aaV\2\u05ea\u0091\3\2\2\2\u05eb\u05ec\5\u00aaV\2\u05ec\u0093\3\2"+
"\2\2\u05ed\u05ee\5\u00aaV\2\u05ee\u0095\3\2\2\2\u05ef\u05f0\5\u00aaV\2"+
"\u05f0\u0097\3\2\2\2\u05f1\u05f2\5\u00aaV\2\u05f2\u0099\3\2\2\2\u05f3"+
"\u05f4\5\u00aaV\2\u05f4\u009b\3\2\2\2\u05f5\u05f6\5\u00aaV\2\u05f6\u009d"+
"\3\2\2\2\u05f7\u05f8\5\u00aaV\2\u05f8\u009f\3\2\2\2\u05f9\u05fa\5\u00aa"+
"V\2\u05fa\u00a1\3\2\2\2\u05fb\u05fc\5\u00aaV\2\u05fc\u00a3\3\2\2\2\u05fd"+
"\u05fe\5\u00aaV\2\u05fe\u00a5\3\2\2\2\u05ff\u0606\7\u009c\2\2\u0600\u0606"+
"\7\u009f\2\2\u0601\u0602\7\5\2\2\u0602\u0603\5\u00a6T\2\u0603\u0604\7"+
"\6\2\2\u0604\u0606\3\2\2\2\u0605\u05ff\3\2\2\2\u0605\u0600\3\2\2\2\u0605"+
"\u0601\3\2\2\2\u0606\u00a7\3\2\2\2\u0607\u0608\5\u00aaV\2\u0608\u00a9"+
"\3\2\2\2\u0609\u0611\7\u009c\2\2\u060a\u0611\5\u0084C\2\u060b\u0611\7"+
"\u009f\2\2\u060c\u060d\7\5\2\2\u060d\u060e\5\u00aaV\2\u060e\u060f\7\6"+
"\2\2\u060f\u0611\3\2\2\2\u0610\u0609\3\2\2\2\u0610\u060a\3\2\2\2\u0610"+
"\u060b\3\2\2\2\u0610\u060c\3\2\2\2\u0611\u00ab\3\2\2\2\u00dd\u00ae\u00b0"+
"\u00bb\u00c2\u00c7\u00cd\u00d3\u00d5\u00f2\u00f9\u0101\u0104\u010d\u0111"+
"\u0119\u011d\u011f\u0124\u0126\u012a\u0130\u0135\u0140\u0146\u014a\u0150"+
"\u0155\u015e\u0165\u016a\u016e\u0172\u0178\u017d\u0184\u018f\u0192\u0194"+
"\u019a\u01a0\u01a4\u01ab\u01b1\u01b7\u01bd\u01c2\u01ca\u01cd\u01d8\u01dd"+
"\u01e8\u01ed\u01f0\u01f7\u01fa\u0201\u0204\u0207\u020b\u0213\u0218\u0220"+
"\u0225\u022d\u0232\u023a\u023f\u0244\u0257\u025d\u0262\u026a\u026f\u027c"+
"\u0282\u0285\u028f\u0295\u0297\u029e\u02a5\u02ac\u02b1\u02b3\u02b9\u02c2"+
"\u02c9\u02cd\u02cf\u02d3\u02da\u02dc\u02e0\u02e3\u02e9\u02f1\u02f5\u02f8"+
"\u02fc\u0303\u030c\u0310\u0312\u0316\u031d\u031f\u032c\u032f\u0332\u033f"+
"\u0345\u034c\u0353\u0358\u035b\u0368\u036e\u0375\u037c\u0381\u0384\u0387"+
"\u038b\u038f\u0394\u039a\u03a6\u03aa\u03af\u03b3\u03b6\u03c8\u03cd\u03d2"+
"\u03da\u03df\u03e8\u03ec\u03fc\u03ff\u0407\u0410\u0414\u0419\u0422\u0427"+
"\u0433\u0439\u0440\u0444\u044a\u0450\u0456\u045b\u045f\u0461\u0463\u046b"+
"\u0476\u047b\u0487\u048b\u048f\u0493\u049a\u049c\u04a4\u04aa\u04ae\u04b1"+
"\u04b5\u04ba\u04c2\u04d5\u04db\u04df\u04e6\u04f0\u04f5\u04ff\u0504\u050b"+
"\u0514\u051a\u051d\u0523\u0529\u0532\u0535\u0537\u053c\u0540\u0543\u054a"+
"\u054f\u0558\u055b\u055f\u0562\u056a\u056e\u0576\u0579\u057b\u0584\u0589"+
"\u058d\u0591\u0594\u059f\u05a4\u05ab\u05ae\u05ba\u05c8\u05ce\u05d8\u0605"+
"\u0610";
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);
}
}
}