/* This file is automatically generated by Lemon from input grammar
** source file "src/trace_processor/perfetto_sql/grammar/perfettosql_grammar.y".
*/
/*
** 2000-05-29
**
** The author disclaims copyright to this source code.  In place of
** a legal notice, here is a blessing:
**
**    May you do good and not evil.
**    May you find forgiveness for yourself and forgive others.
**    May you share freely, never taking more than you give.
**
*************************************************************************
** Driver template for the LEMON parser generator.
**
** The "lemon" program processes an LALR(1) input grammar file, then uses
** this template to construct a parser.  The "lemon" program inserts text
** at each "%%" line.  Also, any "P-a-r-s-e" identifer prefix (without the
** interstitial "-" characters) contained in this template is changed into
** the value of the %name directive from the grammar.  Otherwise, the content
** of this template is copied straight through into the generate parser
** source file.
**
** The following is the concatenation of all %include directives from the
** input grammar file:
*/
/************ Begin %include sections from the grammar ************************/
#include <stddef.h>

#define YYNOERRORRECOVERY 1
/**************** End of %include directives **********************************/
/* These constants specify the various numeric values for terminal symbols.
***************** Begin token definitions *************************************/
#ifndef TK_CREATE
#define TK_CREATE                          1
#define TK_REPLACE                         2
#define TK_PERFETTO                        3
#define TK_MACRO                           4
#define TK_INCLUDE                         5
#define TK_MODULE                          6
#define TK_RETURNS                         7
#define TK_FUNCTION                        8
#define TK_OR                              9
#define TK_AND                            10
#define TK_NOT                            11
#define TK_IS                             12
#define TK_MATCH                          13
#define TK_LIKE_KW                        14
#define TK_BETWEEN                        15
#define TK_IN                             16
#define TK_ISNULL                         17
#define TK_NOTNULL                        18
#define TK_NE                             19
#define TK_EQ                             20
#define TK_GT                             21
#define TK_LE                             22
#define TK_LT                             23
#define TK_GE                             24
#define TK_ESCAPE                         25
#define TK_BITAND                         26
#define TK_BITOR                          27
#define TK_LSHIFT                         28
#define TK_RSHIFT                         29
#define TK_PLUS                           30
#define TK_MINUS                          31
#define TK_STAR                           32
#define TK_SLASH                          33
#define TK_REM                            34
#define TK_CONCAT                         35
#define TK_PTR                            36
#define TK_COLLATE                        37
#define TK_BITNOT                         38
#define TK_ON                             39
#define TK_ID                             40
#define TK_ABORT                          41
#define TK_ACTION                         42
#define TK_AFTER                          43
#define TK_ANALYZE                        44
#define TK_ASC                            45
#define TK_ATTACH                         46
#define TK_BEFORE                         47
#define TK_BEGIN                          48
#define TK_BY                             49
#define TK_CASCADE                        50
#define TK_CAST                           51
#define TK_COLUMNKW                       52
#define TK_CONFLICT                       53
#define TK_DATABASE                       54
#define TK_DEFERRED                       55
#define TK_DESC                           56
#define TK_DETACH                         57
#define TK_DO                             58
#define TK_EACH                           59
#define TK_END                            60
#define TK_EXCLUSIVE                      61
#define TK_EXPLAIN                        62
#define TK_FAIL                           63
#define TK_FOR                            64
#define TK_IGNORE                         65
#define TK_IMMEDIATE                      66
#define TK_INITIALLY                      67
#define TK_INSTEAD                        68
#define TK_NO                             69
#define TK_PLAN                           70
#define TK_QUERY                          71
#define TK_KEY                            72
#define TK_OF                             73
#define TK_OFFSET                         74
#define TK_PRAGMA                         75
#define TK_RAISE                          76
#define TK_RECURSIVE                      77
#define TK_RELEASE                        78
#define TK_RESTRICT                       79
#define TK_ROW                            80
#define TK_ROWS                           81
#define TK_ROLLBACK                       82
#define TK_SAVEPOINT                      83
#define TK_TEMP                           84
#define TK_TRIGGER                        85
#define TK_VACUUM                         86
#define TK_VIEW                           87
#define TK_VIRTUAL                        88
#define TK_WITH                           89
#define TK_WITHOUT                        90
#define TK_NULLS                          91
#define TK_FIRST                          92
#define TK_LAST                           93
#define TK_EXCEPT                         94
#define TK_INTERSECT                      95
#define TK_UNION                          96
#define TK_CURRENT                        97
#define TK_FOLLOWING                      98
#define TK_PARTITION                      99
#define TK_PRECEDING                      100
#define TK_RANGE                          101
#define TK_UNBOUNDED                      102
#define TK_EXCLUDE                        103
#define TK_GROUPS                         104
#define TK_OTHERS                         105
#define TK_TIES                           106
#define TK_WITHIN                         107
#define TK_GENERATED                      108
#define TK_ALWAYS                         109
#define TK_MATERIALIZED                   110
#define TK_REINDEX                        111
#define TK_RENAME                         112
#define TK_CTIME_KW                       113
#define TK_IF                             114
#define TK_ANY                            115
#define TK_COMMIT                         116
#define TK_TO                             117
#define TK_TABLE                          118
#define TK_EXISTS                         119
#define TK_LP                             120
#define TK_RP                             121
#define TK_AS                             122
#define TK_COMMA                          123
#define TK_STRING                         124
#define TK_CONSTRAINT                     125
#define TK_DEFAULT                        126
#define TK_INDEXED                        127
#define TK_NULL                           128
#define TK_PRIMARY                        129
#define TK_UNIQUE                         130
#define TK_CHECK                          131
#define TK_REFERENCES                     132
#define TK_AUTOINCR                       133
#define TK_INSERT                         134
#define TK_DELETE                         135
#define TK_UPDATE                         136
#define TK_SET                            137
#define TK_DEFERRABLE                     138
#define TK_FOREIGN                        139
#define TK_DROP                           140
#define TK_ALL                            141
#define TK_SELECT                         142
#define TK_VALUES                         143
#define TK_DISTINCT                       144
#define TK_DOT                            145
#define TK_FROM                           146
#define TK_JOIN                           147
#define TK_JOIN_KW                        148
#define TK_USING                          149
#define TK_ORDER                          150
#define TK_GROUP                          151
#define TK_HAVING                         152
#define TK_LIMIT                          153
#define TK_WHERE                          154
#define TK_RETURNING                      155
#define TK_INTO                           156
#define TK_NOTHING                        157
#define TK_FLOAT                          158
#define TK_BLOB                           159
#define TK_INTEGER                        160
#define TK_VARIABLE                       161
#define TK_CASE                           162
#define TK_WHEN                           163
#define TK_THEN                           164
#define TK_ELSE                           165
#define TK_INDEX                          166
#define TK_SEMI                           167
#define TK_ALTER                          168
#define TK_ADD                            169
#define TK_WINDOW                         170
#define TK_OVER                           171
#define TK_FILTER                         172
#define TK_TRANSACTION                    173
#define TK_SPACE                          174
#define TK_ILLEGAL                        175
#endif
/**************** End token definitions ***************************************/

/* The next sections is a series of control #defines.
** various aspects of the generated parser.
**    YYCODETYPE         is the data type used to store the integer codes
**                       that represent terminal and non-terminal symbols.
**                       "unsigned char" is used if there are fewer than
**                       256 symbols.  Larger types otherwise.
**    YYNOCODE           is a number of type YYCODETYPE that is not used for
**                       any terminal or nonterminal symbol.
**    YYFALLBACK         If defined, this indicates that one or more tokens
**                       (also known as: "terminal symbols") have fall-back
**                       values which should be used if the original symbol
**                       would not parse.  This permits keywords to sometimes
**                       be used as identifiers, for example.
**    YYACTIONTYPE       is the data type used for "action codes" - numbers
**                       that indicate what to do in response to the next
**                       token.
**    PerfettoSqlParserTOKENTYPE     is the data type used for minor type for terminal
**                       symbols.  Background: A "minor type" is a semantic
**                       value associated with a terminal or non-terminal
**                       symbols.  For example, for an "ID" terminal symbol,
**                       the minor type might be the name of the identifier.
**                       Each non-terminal can have a different minor type.
**                       Terminal symbols all have the same minor type, though.
**                       This macros defines the minor type for terminal 
**                       symbols.
**    YYMINORTYPE        is the data type used for all minor types.
**                       This is typically a union of many types, one of
**                       which is PerfettoSqlParserTOKENTYPE.  The entry in the union
**                       for terminal symbols is called "yy0".
**    YYSTACKDEPTH       is the maximum depth of the parser's stack.  If
**                       zero the stack is dynamically sized using realloc()
**    PerfettoSqlParserARG_SDECL     A static variable declaration for the %extra_argument
**    PerfettoSqlParserARG_PDECL     A parameter declaration for the %extra_argument
**    PerfettoSqlParserARG_PARAM     Code to pass %extra_argument as a subroutine parameter
**    PerfettoSqlParserARG_STORE     Code to store %extra_argument into yypParser
**    PerfettoSqlParserARG_FETCH     Code to extract %extra_argument from yypParser
**    PerfettoSqlParserCTX_*         As PerfettoSqlParserARG_ except for %extra_context
**    YYERRORSYMBOL      is the code number of the error symbol.  If not
**                       defined, then do no error processing.
**    YYNSTATE           the combined number of states.
**    YYNRULE            the number of rules in the grammar
**    YYNTOKEN           Number of terminal symbols
**    YY_MAX_SHIFT       Maximum value for shift actions
**    YY_MIN_SHIFTREDUCE Minimum value for shift-reduce actions
**    YY_MAX_SHIFTREDUCE Maximum value for shift-reduce actions
**    YY_ERROR_ACTION    The yy_action[] code for syntax error
**    YY_ACCEPT_ACTION   The yy_action[] code for accept
**    YY_NO_ACTION       The yy_action[] code for no-op
**    YY_MIN_REDUCE      Minimum value for reduce actions
**    YY_MAX_REDUCE      Maximum value for reduce actions
*/
#ifndef INTERFACE
# define INTERFACE 1
#endif
/************* Begin control #defines *****************************************/
#define YYCODETYPE unsigned short int
#define YYNOCODE 309
#define YYACTIONTYPE unsigned short int
#define YYWILDCARD 115
#define PerfettoSqlParserTOKENTYPE void*
typedef union {
  int yyinit;
  PerfettoSqlParserTOKENTYPE yy0;
} YYMINORTYPE;
#ifndef YYSTACKDEPTH
#define YYSTACKDEPTH 100
#endif
#define PerfettoSqlParserARG_SDECL
#define PerfettoSqlParserARG_PDECL
#define PerfettoSqlParserARG_PARAM
#define PerfettoSqlParserARG_FETCH
#define PerfettoSqlParserARG_STORE
#define PerfettoSqlParserCTX_SDECL
#define PerfettoSqlParserCTX_PDECL
#define PerfettoSqlParserCTX_PARAM
#define PerfettoSqlParserCTX_FETCH
#define PerfettoSqlParserCTX_STORE
#define YYFALLBACK 1
#define YYNSTATE             579
#define YYNRULE              405
#define YYNRULE_WITH_ACTION  0
#define YYNTOKEN             176
#define YY_MAX_SHIFT         578
#define YY_MIN_SHIFTREDUCE   838
#define YY_MAX_SHIFTREDUCE   1242
#define YY_ERROR_ACTION      1243
#define YY_ACCEPT_ACTION     1244
#define YY_NO_ACTION         1245
#define YY_MIN_REDUCE        1246
#define YY_MAX_REDUCE        1650
/************* End control #defines *******************************************/
#define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0])))

/* Define the yytestcase() macro to be a no-op if is not already defined
** otherwise.
**
** Applications can choose to define yytestcase() in the %include section
** to a macro that can assist in verifying code coverage.  For production
** code the yytestcase() macro should be turned off.  But it is useful
** for testing.
*/
#ifndef yytestcase
# define yytestcase(X)
#endif


/* Next are the tables used to determine what action to take based on the
** current state and lookahead token.  These tables are used to implement
** functions that take a state number and lookahead value and return an
** action integer.  
**
** Suppose the action integer is N.  Then the action is determined as
** follows
**
**   0 <= N <= YY_MAX_SHIFT             Shift N.  That is, push the lookahead
**                                      token onto the stack and goto state N.
**
**   N between YY_MIN_SHIFTREDUCE       Shift to an arbitrary state then
**     and YY_MAX_SHIFTREDUCE           reduce by rule N-YY_MIN_SHIFTREDUCE.
**
**   N == YY_ERROR_ACTION               A syntax error has occurred.
**
**   N == YY_ACCEPT_ACTION              The parser accepts its input.
**
**   N == YY_NO_ACTION                  No such action.  Denotes unused
**                                      slots in the yy_action[] table.
**
**   N between YY_MIN_REDUCE            Reduce by rule N-YY_MIN_REDUCE
**     and YY_MAX_REDUCE
**
** The action table is constructed as a single large table named yy_action[].
** Given state S and lookahead X, the action is computed as either:
**
**    (A)   N = yy_action[ yy_shift_ofst[S] + X ]
**    (B)   N = yy_default[S]
**
** The (A) formula is preferred.  The B formula is used instead if
** yy_lookahead[yy_shift_ofst[S]+X] is not equal to X.
**
** The formulas above are for computing the action when the lookahead is
** a terminal symbol.  If the lookahead is a non-terminal (as occurs after
** a reduce action) then the yy_reduce_ofst[] array is used in place of
** the yy_shift_ofst[] array.
**
** The following are the tables generated in this section:
**
**  yy_action[]        A single table containing all actions.
**  yy_lookahead[]     A table containing the lookahead for each entry in
**                     yy_action.  Used to detect hash collisions.
**  yy_shift_ofst[]    For each state, the offset into yy_action for
**                     shifting terminals.
**  yy_reduce_ofst[]   For each state, the offset into yy_action for
**                     shifting non-terminals after a reduce.
**  yy_default[]       Default action for each state.
**
*********** Begin parsing tables **********************************************/
#define YY_ACTTAB_COUNT (2098)
static const YYACTIONTYPE yy_action[] = {
 /*     0 */  1607,  119,  116,  231,  282,  119,  116,  231, 1607,  126,
 /*    10 */   128,  411,   81, 1217, 1217, 1054, 1057, 1044, 1044,  124,
 /*    20 */   124,  125,  125,  125,  125, 1529,  123,  123,  123,  123,
 /*    30 */   122,  122,  121,  121,  121,  120,  117,  449,  120,  117,
 /*    40 */   449, 1041, 1041, 1055, 1058,  974,  122,  122,  121,  121,
 /*    50 */   121,  120,  117,  449,  449,  342,  975,  121,  121,  121,
 /*    60 */   120,  117,  449,  119,  116,  231,  126,  128,  411,   81,
 /*    70 */  1217, 1217, 1054, 1057, 1044, 1044,  124,  124,  125,  125,
 /*    80 */   125,  125,  564,  123,  123,  123,  123,  122,  122,  121,
 /*    90 */   121,  121,  120,  117,  449,  126,  128,  411,   81, 1217,
 /*   100 */  1217, 1054, 1057, 1044, 1044,  124,  124,  125,  125,  125,
 /*   110 */   125, 1279,  123,  123,  123,  123,  122,  122,  121,  121,
 /*   120 */   121,  120,  117,  449,  126,  128,  411,   81, 1217, 1217,
 /*   130 */  1054, 1057, 1044, 1044,  124,  124,  125,  125,  125,  125,
 /*   140 */  1493,  123,  123,  123,  123,  122,  122,  121,  121,  121,
 /*   150 */   120,  117,  449,  564,  564, 1164, 1045, 1164,  376, 1282,
 /*   160 */   129,  125,  125,  125,  125,  118,  123,  123,  123,  123,
 /*   170 */   122,  122,  121,  121,  121,  120,  117,  449, 1010,  450,
 /*   180 */   529,  238,  368,  125,  125,  125,  125,   87,  123,  123,
 /*   190 */   123,  123,  122,  122,  121,  121,  121,  120,  117,  449,
 /*   200 */   233,  529,  487,  359,  458,  455,  454,  415,  127,  100,
 /*   210 */  1138,  119,  116,  231,  453, 1140, 1642,  418, 1642,  126,
 /*   220 */   128,  411,   81, 1217, 1217, 1054, 1057, 1044, 1044,  124,
 /*   230 */   124,  125,  125,  125,  125,  548,  123,  123,  123,  123,
 /*   240 */   122,  122,  121,  121,  121,  120,  117,  449,  126,  128,
 /*   250 */   411,   81, 1217, 1217, 1054, 1057, 1044, 1044,  124,  124,
 /*   260 */   125,  125,  125,  125, 1281,  123,  123,  123,  123,  122,
 /*   270 */   122,  121,  121,  121,  120,  117,  449,  126,  128,  411,
 /*   280 */    81, 1217, 1217, 1054, 1057, 1044, 1044,  124,  124,  125,
 /*   290 */   125,  125,  125, 1557,  123,  123,  123,  123,  122,  122,
 /*   300 */   121,  121,  121,  120,  117,  449,  328, 1101, 1101,  510,
 /*   310 */   357,  482,  345,  530,  530,  126,  128,  411,   81, 1217,
 /*   320 */  1217, 1054, 1057, 1044, 1044,  124,  124,  125,  125,  125,
 /*   330 */   125,  321,  123,  123,  123,  123,  122,  122,  121,  121,
 /*   340 */   121,  120,  117,  449,  126,  128,  411,   81, 1217, 1217,
 /*   350 */  1054, 1057, 1044, 1044,  124,  124,  125,  125,  125,  125,
 /*   360 */   464,  123,  123,  123,  123,  122,  122,  121,  121,  121,
 /*   370 */   120,  117,  449,  126,  128,  411,   81, 1217, 1217, 1054,
 /*   380 */  1057, 1044, 1044,  124,  124,  125,  125,  125,  125,  879,
 /*   390 */   123,  123,  123,  123,  122,  122,  121,  121,  121,  120,
 /*   400 */   117,  449, 1138,  929,  929,  572,  521, 1140, 1643,  225,
 /*   410 */  1643,  126,  128,  411,   81, 1217, 1217, 1054, 1057, 1044,
 /*   420 */  1044,  124,  124,  125,  125,  125,  125,  872,  123,  123,
 /*   430 */   123,  123,  122,  122,  121,  121,  121,  120,  117,  449,
 /*   440 */    98,  126,  128,  411,   81, 1217, 1217, 1054, 1057, 1044,
 /*   450 */  1044,  124,  124,  125,  125,  125,  125,   88,  123,  123,
 /*   460 */   123,  123,  122,  122,  121,  121,  121,  120,  117,  449,
 /*   470 */   126,  128,  411,   81, 1217, 1217, 1054, 1057, 1044, 1044,
 /*   480 */   124,  124,  125,  125,  125,  125,  513,  123,  123,  123,
 /*   490 */   123,  122,  122,  121,  121,  121,  120,  117,  449,  123,
 /*   500 */   123,  123,  123,  122,  122,  121,  121,  121,  120,  117,
 /*   510 */   449, 1613,  144,  570,  974,  519,  144,  570,  445,  216,
 /*   520 */   570,  407,  522, 1032,  554,  975,  425, 1317,  531, 1296,
 /*   530 */   518,  377, 1031,   74,   74, 1098, 1317,   51,   51, 1098,
 /*   540 */    74,   74,  498, 1020,  230,  536,  288, 1019,  288,  476,
 /*   550 */    16,   16,  288, 1015,  288,  288,  368,  288,  567,  288,
 /*   560 */   508,  288,  261,  227,  567,  319,  571,  567,  553,  319,
 /*   570 */   571,  567,  532, 1563,    6,  553,  555, 1019, 1019, 1021,
 /*   580 */   569,  494, 1177,  520,  119,  116,  231,  471,  371,  445,
 /*   590 */   445,  438,  126,  128,  411,   81, 1217, 1217, 1054, 1057,
 /*   600 */  1044, 1044,  124,  124,  125,  125,  125,  125, 1010,  123,
 /*   610 */   123,  123,  123,  122,  122,  121,  121,  121,  120,  117,
 /*   620 */   449,  126,  128,  411,   81, 1217, 1217, 1054, 1057, 1044,
 /*   630 */  1044,  124,  124,  125,  125,  125,  125,  524,  123,  123,
 /*   640 */   123,  123,  122,  122,  121,  121,  121,  120,  117,  449,
 /*   650 */   126,  128,  411,   81, 1217, 1217, 1054, 1057, 1044, 1044,
 /*   660 */   124,  124,  125,  125,  125,  125, 1193,  123,  123,  123,
 /*   670 */   123,  122,  122,  121,  121,  121,  120,  117,  449,  126,
 /*   680 */   128,  411,   81, 1217, 1217, 1054, 1057, 1044, 1044,  124,
 /*   690 */   124,  125,  125,  125,  125,  144,  123,  123,  123,  123,
 /*   700 */   122,  122,  121,  121,  121,  120,  117,  449,  126,  115,
 /*   710 */   411,   81, 1217, 1217, 1054, 1057, 1044, 1044,  124,  124,
 /*   720 */   125,  125,  125,  125,  228,  123,  123,  123,  123,  122,
 /*   730 */   122,  121,  121,  121,  120,  117,  449, 1239, 1584,  297,
 /*   740 */   357,  570,  399, 1238, 1159, 1644,  400,  106,  319,  571,
 /*   750 */  1194,  233,  366, 1193,  388,  458,  455,  454,  444,  443,
 /*   760 */   570,   13,   13,  211, 1159,  453, 1268, 1159,  380,  346,
 /*   770 */   288,  348,  288,  320, 1193,  419,  109, 1193, 1268,  475,
 /*   780 */    42,   42,  567,  427, 1498,  390,  103,  128,  411,   81,
 /*   790 */  1217, 1217, 1054, 1057, 1044, 1044,  124,  124,  125,  125,
 /*   800 */   125,  125,  349,  123,  123,  123,  123,  122,  122,  121,
 /*   810 */   121,  121,  120,  117,  449,  411,   81, 1217, 1217, 1054,
 /*   820 */  1057, 1044, 1044,  124,  124,  125,  125,  125,  125,  113,
 /*   830 */   123,  123,  123,  123,  122,  122,  121,  121,  121,  120,
 /*   840 */   117,  449,  570,  178,    2,  462,  462,  344,  111,  111,
 /*   850 */   347,  293,  153,  570,  404,  403,  112,  193,  447,  916,
 /*   860 */   462, 1194,   74,   74, 1193,  475,  474,  475,  875,  565,
 /*   870 */  1498, 1500, 1498,   74,   74, 1313,    2,  462,  462,  374,
 /*   880 */   374, 1438,  370,  293,  153, 1193, 1225,  284, 1225,  960,
 /*   890 */   427,  288,  462,  288,  559,  424, 1269,  553, 1118,  546,
 /*   900 */   444,  443,  478,  567,   12,  552,  478,  144,  553, 1222,
 /*   910 */  1193, 1193,  570,  960,  229, 1193,  442,  251, 1355,  314,
 /*   920 */  1119,  421,  915,  288,  382,  288,  373,  545,  378, 1438,
 /*   930 */   570, 1031,   74,   74,  533,  567, 1170,  562,    4, 1117,
 /*   940 */   502, 1031,  568,  113,   85,  447, 1019,    8, 1159,  251,
 /*   950 */    13,   13, 1020,  463,  209,  875, 1019,  527,  527,    6,
 /*   960 */   319,  571,  111,  111,  292,  234,  447,  525, 1159,  570,
 /*   970 */   112, 1159,  447, 1244,    1,    1, 1019, 1019, 1021, 1022,
 /*   980 */    28, 1170,  503,  565, 1213,  463, 1019, 1019, 1021,   42,
 /*   990 */    42,  178,  466, 1556, 1194, 1194, 1224, 1193, 1193, 1194,
 /*  1000 */   570, 1193, 1193,  867,  208, 1223,  325, 1587,  559,  240,
 /*  1010 */   278, 1300,  327,  469,  330,  468,  239,  405, 1193, 1193,
 /*  1020 */    42,   42,  328, 1193, 1193,  459,  461,  461, 1225,  542,
 /*  1030 */  1225,  208,  293,  153,  541,  459,  301,  459,  148,  324,
 /*  1040 */  1612,  461,  904,  935,  396, 1031,  934, 1159,  237,  236,
 /*  1050 */   235,  562,    4, 1586,  852,  370,  568,  199,  570,  447,
 /*  1060 */  1019,  149, 1193, 1193,    9,  540,  264, 1159, 1213, 1299,
 /*  1070 */  1159, 1193,  288, 1193,  288, 1193,  319,  571,   72,   72,
 /*  1080 */   447, 1297,  570,  152,  567, 1194,  375,  867, 1193,  375,
 /*  1090 */  1019, 1019, 1021, 1022,   28,  417,  155,  245,  251,  340,
 /*  1100 */  1320,  290,   74,   74, 1159,  537,  537,    6, 1194, 1193,
 /*  1110 */   339, 1193,  843,  394,  895,  578,  539,  544,  845,  496,
 /*  1120 */   544,  496,  549,  844, 1159,  113,  855, 1159,  247,  496,
 /*  1130 */   485,  391, 1193,  467,  463,  393,  275,  315,  381,  172,
 /*  1140 */   427,  852,  143,  896,  111,  111, 1194, 1194,  940, 1193,
 /*  1150 */  1193,  194,  112,    5,  447, 1194, 1193, 1194, 1193, 1194,
 /*  1160 */  1193, 1320, 1193, 1322,  246,  565,  155,  513, 1196,  394,
 /*  1170 */  1193, 1193, 1076,  538,  507,  281, 1298,  281,   90, 1193,
 /*  1180 */   504, 1193,  962, 1193,  245, 1096,  340,  567,  290,  299,
 /*  1190 */   559,  302,  570,  412, 1193,  319,  571,  339, 1437,  305,
 /*  1200 */   394,  422,  578,  901,  210, 1193, 1266, 1528, 1485,  225,
 /*  1210 */   570,  542,  134,  134,  902,  247,  543,  370,  391, 1193,
 /*  1220 */  1181,  473,  393,  275, 1322, 1334,  172, 1031,  113,  143,
 /*  1230 */    13,   13,  219,  562,    4,  567,  502,  288,  568,  288,
 /*  1240 */  1194,  447, 1019, 1193,  430,  378, 1437,  111,  111,  567,
 /*  1250 */   113,  246, 1196,  496,  513,  112,  394,  447,  158,  432,
 /*  1260 */   487,  359,  447,  329, 1193,   12,  570,  521,  565,  111,
 /*  1270 */   111,  939, 1019, 1019, 1021, 1022,   28,  112, 1194,  447,
 /*  1280 */   412, 1193,  319,  571,  570,   35,   13,   13,  479, 1194,
 /*  1290 */   565,  570, 1193,  559, 1492,   97,  570,  960,  410,    3,
 /*  1300 */   435,  961, 1193, 1194,   13,   13, 1193, 1181,  473, 1118,
 /*  1310 */   502,   13,   13, 1193,  542,  559,  136,  136,  547,  541,
 /*  1320 */   113,  960,  229,  307,  432,  440,  548, 1193,  158,  882,
 /*  1330 */  1031, 1119,  356,  558,  570,  477,  562,    4,  205,  111,
 /*  1340 */   111,  568,   80,  486,  447, 1019,  150,  112, 1436,  447,
 /*  1350 */  1117,  208, 1031,  570,   13,   13, 1561,    6,  562,    4,
 /*  1360 */   565,  111,  111,  568,  397,  447,  447, 1019,  203,  112,
 /*  1370 */   570,  447,  570,   74,   74, 1019, 1019, 1021, 1022,   28,
 /*  1380 */   513,  513,  565,  522,  291,  559,  513,  447, 1271,  416,
 /*  1390 */    13,   13,   74,   74,  570,  378, 1436, 1019, 1019, 1021,
 /*  1400 */  1022,   28, 1562,    6,  204,  523,  308,  559,  316, 1560,
 /*  1410 */     6, 1239,  113,  882,   44,   44,  399, 1139, 1559,    6,
 /*  1420 */  1329, 1325, 1031,  306,  480,  570,  364,  446,  562,    4,
 /*  1430 */   515,  111,  111,  568,  410,  433,  447, 1019,  300,  112,
 /*  1440 */  1278,  447,  300,  561, 1031,   74,   74,  146, 1213,   37,
 /*  1450 */   562,    4,  565,  551,  288,  568,  288,  447,  447, 1019,
 /*  1460 */   852,  288,  570,  288,  570, 1328,  567, 1019, 1019, 1021,
 /*  1470 */  1022,   28,   97,  567,  288,  550,  288,  559,  291,  447,
 /*  1480 */   448,  570,   45,   45,   46,   46,  567,  563,  416, 1019,
 /*  1490 */  1019, 1021, 1022,   28,  420,  180,  288,  570,  288,  370,
 /*  1500 */   433,   47,   47,  245, 1212,  340,  434,  290,  567,  370,
 /*  1510 */   289,  110,  289,  108, 1031,  570,  339,   56,   56,  394,
 /*  1520 */   562,    4,  567,  570,  492,  568,  570,  219,  447, 1019,
 /*  1530 */   264,  570, 1213,  570,  247,   57,   57,  391,  319,  571,
 /*  1540 */   154,  393,  275,   15,   15,  172,   48,   48,  143,  447,
 /*  1550 */   156,   58,   58,   49,   49,  287,  570,  509,  570, 1019,
 /*  1560 */  1019, 1021, 1022,   28,  570,  238,  570,   91,  215,  570,
 /*  1570 */   246,  434,  570, 1539,  570,  394,   59,   59,   60,   60,
 /*  1580 */  1601,  439,  523,  570,   61,   61,   62,   62,  489,   63,
 /*  1590 */    63,  415,   64,   64,   65,   65,  570,  493,  410,  412,
 /*  1600 */  1541,  319,  571,   66,   66,  570,  472,  410,  500,  570,
 /*  1610 */   154,  570, 1233,  570,  318,  570,   67,   67,  570, 1537,
 /*  1620 */   156,  570,  509,  570,  410,   50,   50,  473,  570,   52,
 /*  1630 */    52,   14,   14,  132,  132,  133,  133,  570,   69,   69,
 /*  1640 */   218,   53,   53,   70,   70,  570,  439,  570,   71,   71,
 /*  1650 */   570,   32,  570,  935,  103,  570,  934,   54,   54,  570,
 /*  1660 */   451,  570,  260,  570,  886,  165,  165,  166,  166,  296,
 /*  1670 */    78,   78,   55,   55,  570,  135,  135,  244,  570,   73,
 /*  1680 */    73,  163,  163,  137,  137,  570,  322,  570,  103,  570,
 /*  1690 */   286,  227,  428,  517,  131,  131,  570,  336,  164,  164,
 /*  1700 */   570, 1135,  570,  401,  248,  157,  157,  141,  141,  140,
 /*  1710 */   140,  570,  894,  570,  893,  570,  138,  138,  570,  334,
 /*  1720 */   139,  139,   76,   76,  501,  488,  490,  250, 1083,  333,
 /*  1730 */  1023,   68,   68,   77,   77,   75,   75,  162,   43,   43,
 /*  1740 */   355, 1353,  103, 1012,  337,  263,  354,  303,  495,  338,
 /*  1750 */   263,   31,  341,  497,   19,  263,  360, 1079,  103,  260,
 /*  1760 */   965,  161,  263,  103,  977,  978,  534, 1095, 1094, 1095,
 /*  1770 */  1094,  865,  933,  151,  127,  932, 1367,  127,  201, 1366,
 /*  1780 */   481, 1544,  350, 1517, 1516,  505,  361, 1363,  365,  369,
 /*  1790 */  1575,  221, 1144, 1376, 1421, 1349,  556,  557, 1426,  387,
 /*  1800 */   514, 1361,  389,  213, 1257, 1256, 1258, 1594,  279,   11,
 /*  1810 */  1346,  311, 1083,  312, 1023,  313,  395, 1597,  243, 1403,
 /*  1820 */  1408,  298,  352,  353,  224,  304, 1396,  499, 1413, 1358,
 /*  1830 */  1359,  198, 1412,  456,  470,  408,   33,  332,   83,  423,
 /*  1840 */  1296,  886,  460, 1233,  182, 1489, 1488,  560,  272,   90,
 /*  1850 */   241, 1230,  217, 1536, 1534,  398, 1316,  191, 1315, 1314,
 /*  1860 */  1609,  426,  177,  483, 1286,  331,  358, 1611, 1610,  402,
 /*  1870 */  1285, 1284, 1307,  484,  220,  385, 1306,  206,  207,  575,
 /*  1880 */   253,   98,   96,  506,  257, 1357, 1356,  512,  436,  280,
 /*  1890 */   259,  437,  130,  548,  184,  266,  265,  186,  187,  188,
 /*  1900 */   189,  441,  230,   10,  107,   99,  526, 1187, 1417,  379,
 /*  1910 */   406,  195,  333,  367,  491,  277,  576,  386,  271,  273,
 /*  1920 */   409, 1259,  274,  179, 1483, 1254,  276, 1249, 1409,   36,
 /*  1930 */   232,  452,   82,   17,   18,  573,  323, 1494, 1415, 1414,
 /*  1940 */    38,  457,  170, 1339,  372, 1183,  142, 1182,  214,   86,
 /*  1950 */    89,  884,  326,  145, 1521,  384,  212, 1338,  383,  222,
 /*  1960 */   223,  294, 1522,  897, 1381, 1380, 1520, 1519,   79,  465,
 /*  1970 */   309,  310,   84,  295, 1505,  363,  171,  335,  242, 1093,
 /*  1980 */   147, 1470,  343,  183, 1091,  317,  173, 1212,  249,  185,
 /*  1990 */   918,  516,  351,  252,  190,  429, 1107,  431,  192,   92,
 /*  2000 */    93,   94,  174,   95,  175,  176, 1110,  254, 1106,  159,
 /*  2010 */    20,  256,  362, 1566, 1565,  255, 1099,  263,  196,  167,
 /*  2020 */  1227,  511,  168,  258, 1580,  197, 1146,   39, 1145,  226,
 /*  2030 */   283,  285,  200,  969,  262,  169,  963,  127,  413,  181,
 /*  2040 */   414,   21,  528, 1150,   34,   22,  102, 1060,  202,  160,
 /*  2050 */   101,  535,   23, 1175,   24,   25, 1161, 1165, 1163,    7,
 /*  2060 */  1168,  103, 1169,   26,   27,  104,  574, 1074, 1061, 1059,
 /*  2070 */  1116, 1064, 1115,  267,  268,  105,  566,  839, 1063,   40,
 /*  2080 */  1602,  269,  928,  577, 1024,  866,  114,   29,   30,  854,
 /*  2090 */   392,   41, 1245, 1245, 1245, 1245, 1245,  270,
};
static const YYCODETYPE yy_lookahead[] = {
 /*     0 */   200,  257,  258,  259,  198,  257,  258,  259,  208,    9,
 /*    10 */    10,   11,   12,   13,   14,   15,   16,   17,   18,   19,
 /*    20 */    20,   21,   22,   23,   24,  281,   26,   27,   28,   29,
 /*    30 */    30,   31,   32,   33,   34,   35,   36,   37,   35,   36,
 /*    40 */    37,   13,   14,   15,   16,   45,   30,   31,   32,   33,
 /*    50 */    34,   35,   36,   37,   37,  181,   56,   32,   33,   34,
 /*    60 */    35,   36,   37,  257,  258,  259,    9,   10,   11,   12,
 /*    70 */    13,   14,   15,   16,   17,   18,   19,   20,   21,   22,
 /*    80 */    23,   24,  197,   26,   27,   28,   29,   30,   31,   32,
 /*    90 */    33,   34,   35,   36,   37,    9,   10,   11,   12,   13,
 /*   100 */    14,   15,   16,   17,   18,   19,   20,   21,   22,   23,
 /*   110 */    24,  201,   26,   27,   28,   29,   30,   31,   32,   33,
 /*   120 */    34,   35,   36,   37,    9,   10,   11,   12,   13,   14,
 /*   130 */    15,   16,   17,   18,   19,   20,   21,   22,   23,   24,
 /*   140 */   266,   26,   27,   28,   29,   30,   31,   32,   33,   34,
 /*   150 */    35,   36,   37,  268,  269,   98,  128,  100,  204,  201,
 /*   160 */    74,   21,   22,   23,   24,   25,   26,   27,   28,   29,
 /*   170 */    30,   31,   32,   33,   34,   35,   36,   37,    2,   11,
 /*   180 */   181,   13,  181,   21,   22,   23,   24,   72,   26,   27,
 /*   190 */    28,   29,   30,   31,   32,   33,   34,   35,   36,   37,
 /*   200 */   125,  181,  135,  136,  129,  130,  131,   39,  123,  123,
 /*   210 */   115,  257,  258,  259,  139,  120,  121,  216,  123,    9,
 /*   220 */    10,   11,   12,   13,   14,   15,   16,   17,   18,   19,
 /*   230 */    20,   21,   22,   23,   24,  150,   26,   27,   28,   29,
 /*   240 */    30,   31,   32,   33,   34,   35,   36,   37,    9,   10,
 /*   250 */    11,   12,   13,   14,   15,   16,   17,   18,   19,   20,
 /*   260 */    21,   22,   23,   24,  201,   26,   27,   28,   29,   30,
 /*   270 */    31,   32,   33,   34,   35,   36,   37,    9,   10,   11,
 /*   280 */    12,   13,   14,   15,   16,   17,   18,   19,   20,   21,
 /*   290 */    22,   23,   24,  294,   26,   27,   28,   29,   30,   31,
 /*   300 */    32,   33,   34,   35,   36,   37,  138,  134,  135,  136,
 /*   310 */   134,  135,  136,  293,  294,    9,   10,   11,   12,   13,
 /*   320 */    14,   15,   16,   17,   18,   19,   20,   21,   22,   23,
 /*   330 */    24,  121,   26,   27,   28,   29,   30,   31,   32,   33,
 /*   340 */    34,   35,   36,   37,    9,   10,   11,   12,   13,   14,
 /*   350 */    15,   16,   17,   18,   19,   20,   21,   22,   23,   24,
 /*   360 */   121,   26,   27,   28,   29,   30,   31,   32,   33,   34,
 /*   370 */    35,   36,   37,    9,   10,   11,   12,   13,   14,   15,
 /*   380 */    16,   17,   18,   19,   20,   21,   22,   23,   24,  121,
 /*   390 */    26,   27,   28,   29,   30,   31,   32,   33,   34,   35,
 /*   400 */    36,   37,  115,   94,   95,   96,   11,  120,  121,  123,
 /*   410 */   123,    9,   10,   11,   12,   13,   14,   15,   16,   17,
 /*   420 */    18,   19,   20,   21,   22,   23,   24,  121,   26,   27,
 /*   430 */    28,   29,   30,   31,   32,   33,   34,   35,   36,   37,
 /*   440 */   154,    9,   10,   11,   12,   13,   14,   15,   16,   17,
 /*   450 */    18,   19,   20,   21,   22,   23,   24,  122,   26,   27,
 /*   460 */    28,   29,   30,   31,   32,   33,   34,   35,   36,   37,
 /*   470 */     9,   10,   11,   12,   13,   14,   15,   16,   17,   18,
 /*   480 */    19,   20,   21,   22,   23,   24,  181,   26,   27,   28,
 /*   490 */    29,   30,   31,   32,   33,   34,   35,   36,   37,   26,
 /*   500 */    27,   28,   29,   30,   31,   32,   33,   34,   35,   36,
 /*   510 */    37,  214,   89,  181,   45,  192,   89,  181,  197,  155,
 /*   520 */   181,  192,  127,  121,  192,   56,  221,  208,  192,  210,
 /*   530 */   181,  204,  113,  201,  202,   43,  217,  201,  202,   47,
 /*   540 */   201,  202,  181,  124,  171,  172,  223,  128,  225,  126,
 /*   550 */   201,  202,  223,  121,  225,  223,  181,  225,  235,  223,
 /*   560 */    68,  225,  239,  240,  235,  142,  143,  235,  236,  142,
 /*   570 */   143,  235,  236,  296,  297,  236,  244,  158,  159,  160,
 /*   580 */   181,  252,  121,  244,  257,  258,  259,  282,  181,  268,
 /*   590 */   269,  216,    9,   10,   11,   12,   13,   14,   15,   16,
 /*   600 */    17,   18,   19,   20,   21,   22,   23,   24,    2,   26,
 /*   610 */    27,   28,   29,   30,   31,   32,   33,   34,   35,   36,
 /*   620 */    37,    9,   10,   11,   12,   13,   14,   15,   16,   17,
 /*   630 */    18,   19,   20,   21,   22,   23,   24,  181,   26,   27,
 /*   640 */    28,   29,   30,   31,   32,   33,   34,   35,   36,   37,
 /*   650 */     9,   10,   11,   12,   13,   14,   15,   16,   17,   18,
 /*   660 */    19,   20,   21,   22,   23,   24,   40,   26,   27,   28,
 /*   670 */    29,   30,   31,   32,   33,   34,   35,   36,   37,    9,
 /*   680 */    10,   11,   12,   13,   14,   15,   16,   17,   18,   19,
 /*   690 */    20,   21,   22,   23,   24,   89,   26,   27,   28,   29,
 /*   700 */    30,   31,   32,   33,   34,   35,   36,   37,    9,   10,
 /*   710 */    11,   12,   13,   14,   15,   16,   17,   18,   19,   20,
 /*   720 */    21,   22,   23,   24,  181,   26,   27,   28,   29,   30,
 /*   730 */    31,   32,   33,   34,   35,   36,   37,  115,  181,  192,
 /*   740 */   134,  181,  120,  121,   81,  288,  289,  164,  142,  143,
 /*   750 */   124,  125,   85,  127,   87,  129,  130,  131,   30,   31,
 /*   760 */   181,  201,  202,  122,  101,  139,  181,  104,  181,   85,
 /*   770 */   223,   87,  225,  181,  148,  215,  164,   40,  193,  181,
 /*   780 */   201,  202,  235,  181,  181,  118,  123,   10,   11,   12,
 /*   790 */    13,   14,   15,   16,   17,   18,   19,   20,   21,   22,
 /*   800 */    23,   24,  118,   26,   27,   28,   29,   30,   31,   32,
 /*   810 */    33,   34,   35,   36,   37,   11,   12,   13,   14,   15,
 /*   820 */    16,   17,   18,   19,   20,   21,   22,   23,   24,   11,
 /*   830 */    26,   27,   28,   29,   30,   31,   32,   33,   34,   35,
 /*   840 */    36,   37,  181,  181,  176,  177,  178,  245,   30,   31,
 /*   850 */   166,  183,  184,  181,   30,   31,   38,  120,   40,    2,
 /*   860 */   192,  124,  201,  202,  127,  267,  268,  269,   40,   51,
 /*   870 */   267,  268,  269,  201,  202,  181,  176,  177,  178,  300,
 /*   880 */   301,  256,  181,  183,  184,  148,  158,  121,  160,  123,
 /*   890 */   181,  223,  192,  225,   76,   11,  181,  236,   41,   69,
 /*   900 */    30,   31,  243,  235,  198,  244,  247,   89,  236,   39,
 /*   910 */    40,   40,  181,  147,  148,   40,  244,  249,  242,  243,
 /*   920 */    63,   37,   65,  223,  232,  225,  234,   97,  303,  304,
 /*   930 */   181,  113,  201,  202,   32,  235,  106,  119,  120,   82,
 /*   940 */   181,  113,  124,   11,  120,  127,  128,   15,   81,  249,
 /*   950 */   201,  202,  124,  285,  245,  127,  128,  295,  296,  297,
 /*   960 */   142,  143,   30,   31,  215,   90,  148,  236,  101,  181,
 /*   970 */    38,  104,   40,  305,  306,  307,  158,  159,  160,  161,
 /*   980 */   162,  151,  276,   51,   40,  285,  158,  159,  160,  201,
 /*   990 */   202,  181,  108,  292,  124,  124,  126,  127,  127,  124,
 /*  1000 */   181,   40,  127,   40,  181,  135,  122,  307,   76,  125,
 /*  1010 */   126,  211,  128,  129,  130,  131,  132,  194,  148,  148,
 /*  1020 */   201,  202,  138,  148,   40,  181,  177,  178,  158,   97,
 /*  1030 */   160,  181,  183,  184,  102,  191,  277,  193,   77,  189,
 /*  1040 */   121,  192,  123,  141,  194,  113,  144,   81,  134,  135,
 /*  1050 */   136,  119,  120,    0,    1,  181,  124,  123,  181,  127,
 /*  1060 */   128,   77,   40,   40,  120,   99,  122,  101,  124,  211,
 /*  1070 */   104,   40,  223,   40,  225,   40,  142,  143,  201,  202,
 /*  1080 */   148,  181,  181,  120,  235,  124,  298,  124,  127,  301,
 /*  1090 */   158,  159,  160,  161,  162,  185,  222,   44,  249,   46,
 /*  1100 */   218,   48,  201,  202,   81,  295,  296,  297,  124,  148,
 /*  1110 */    57,  127,   55,   60,   50,   62,  150,  298,   61,  181,
 /*  1120 */   301,  181,   99,   66,  101,   11,   84,  104,   75,  181,
 /*  1130 */    88,   78,  148,   69,  285,   82,   83,  236,  261,   86,
 /*  1140 */   181,    1,   89,   79,   30,   31,  124,  124,   32,  127,
 /*  1150 */   127,  120,   38,  120,   40,  124,   40,  124,  127,  124,
 /*  1160 */   127,  279,  127,  218,  111,   51,  292,  181,   40,  116,
 /*  1170 */   148,  148,  130,  150,  264,  223,  211,  225,  156,  148,
 /*  1180 */   270,  148,  147,  148,   44,   60,   46,  235,   48,  251,
 /*  1190 */    76,  251,  181,  140,   40,  142,  143,   57,  256,  251,
 /*  1200 */    60,  137,   62,   55,  245,   40,  192,  221,  166,  123,
 /*  1210 */   181,   97,  201,  202,   66,   75,  102,  181,   78,   40,
 /*  1220 */   167,  168,   82,   83,  279,  225,   86,  113,   11,   89,
 /*  1230 */   201,  202,  146,  119,  120,  235,  181,  223,  124,  225,
 /*  1240 */   124,  127,  128,  127,  215,  303,  304,   30,   31,  235,
 /*  1250 */    11,  111,  124,  181,  181,   38,  116,   40,  222,  181,
 /*  1260 */   135,  136,  148,  181,  148,  198,  181,   11,   51,   30,
 /*  1270 */    31,   32,  158,  159,  160,  161,  162,   38,  124,   40,
 /*  1280 */   140,  127,  142,  143,  181,  120,  201,  202,  227,  124,
 /*  1290 */    51,  181,  127,   76,  221,   39,  181,  123,  237,  120,
 /*  1300 */   215,  147,  148,  124,  201,  202,  127,  167,  168,   41,
 /*  1310 */   181,  201,  202,  148,   97,   76,  201,  202,  215,  102,
 /*  1320 */    11,  147,  148,  251,  246,  215,  150,  148,  292,   40,
 /*  1330 */   113,   63,  277,   65,  181,  252,  119,  120,  271,   30,
 /*  1340 */    31,  124,   11,  276,  127,  128,  170,   38,  256,   40,
 /*  1350 */    82,  181,  113,  181,  201,  202,  296,  297,  119,  120,
 /*  1360 */    51,   30,   31,  124,  194,  148,  127,  128,  215,   38,
 /*  1370 */   181,   40,  181,  201,  202,  158,  159,  160,  161,  162,
 /*  1380 */   181,  181,   51,  127,  214,   76,  181,  148,  195,  196,
 /*  1390 */   201,  202,  201,  202,  181,  303,  304,  158,  159,  160,
 /*  1400 */   161,  162,  296,  297,  215,  149,  277,   76,  236,  296,
 /*  1410 */   297,  115,   11,  124,  201,  202,  120,  121,  296,  297,
 /*  1420 */   221,  221,  113,  192,  227,  181,  221,  236,  119,  120,
 /*  1430 */   192,   30,   31,  124,  237,  181,  127,  128,  243,   38,
 /*  1440 */   181,   40,  247,  192,  113,  201,  202,  120,   40,  122,
 /*  1450 */   119,  120,   51,  144,  223,  124,  225,  148,  127,  128,
 /*  1460 */     1,  223,  181,  225,  181,  192,  235,  158,  159,  160,
 /*  1470 */   161,  162,   39,  235,  223,  144,  225,   76,  308,  148,
 /*  1480 */   236,  181,  201,  202,  201,  202,  235,  195,  196,  158,
 /*  1490 */   159,  160,  161,  162,  286,  287,  223,  181,  225,  181,
 /*  1500 */   246,  201,  202,   44,  123,   46,  181,   48,  235,  181,
 /*  1510 */   223,  163,  225,  165,  113,  181,   57,  201,  202,   60,
 /*  1520 */   119,  120,  235,  181,   39,  124,  181,  146,  127,  128,
 /*  1530 */   122,  181,  124,  181,   75,  201,  202,   78,  142,  143,
 /*  1540 */   222,   82,   83,  201,  202,   86,  201,  202,   89,  148,
 /*  1550 */   222,  201,  202,  201,  202,  120,  181,  181,  181,  158,
 /*  1560 */   159,  160,  161,  162,  181,   13,  181,  154,  155,  181,
 /*  1570 */   111,  246,  181,  181,  181,  116,  201,  202,  201,  202,
 /*  1580 */   145,  181,  149,  181,  201,  202,  201,  202,  227,  201,
 /*  1590 */   202,   39,  201,  202,  201,  202,  181,  227,  237,  140,
 /*  1600 */   181,  142,  143,  201,  202,  181,  181,  237,   11,  181,
 /*  1610 */   292,  181,   52,  181,  227,  181,  201,  202,  181,  181,
 /*  1620 */   292,  181,  246,  181,  237,  201,  202,  168,  181,  201,
 /*  1630 */   202,  201,  202,  201,  202,  201,  202,  181,  201,  202,
 /*  1640 */   155,  201,  202,  201,  202,  181,  246,  181,  201,  202,
 /*  1650 */   181,   20,  181,  141,  123,  181,  144,  201,  202,  181,
 /*  1660 */   121,  181,  123,  181,  133,  201,  202,  201,  202,  112,
 /*  1670 */   201,  202,  201,  202,  181,  201,  202,  117,  181,  201,
 /*  1680 */   202,  201,  202,  201,  202,  181,  121,  181,  123,  181,
 /*  1690 */   239,  240,   58,   11,  201,  202,  181,  140,  201,  202,
 /*  1700 */   181,  121,  181,  123,  122,  201,  202,  201,  202,  201,
 /*  1710 */   202,  181,  126,  181,  128,  181,  201,  202,  181,  128,
 /*  1720 */   201,  202,  201,  202,  127,  136,  136,  145,   40,  138,
 /*  1730 */    40,  201,  202,  201,  202,  201,  202,  121,  201,  202,
 /*  1740 */   121,  241,  123,  121,  181,  123,  157,  157,  121,  181,
 /*  1750 */   123,  120,  181,  121,  120,  123,  121,  121,  123,  123,
 /*  1760 */   121,  121,  123,  123,   92,   93,  150,  158,  158,  160,
 /*  1770 */   160,  121,  121,  123,  123,  121,  181,  123,  238,  181,
 /*  1780 */   181,  181,  181,  181,  181,  181,  181,  181,  181,  181,
 /*  1790 */   302,  199,  110,  181,  181,  181,  181,  279,  181,  181,
 /*  1800 */   273,  181,  181,  224,  181,  181,  181,  181,  272,  226,
 /*  1810 */   238,  238,  124,  238,  124,  238,  179,  188,  283,  250,
 /*  1820 */   254,  228,  278,  229,  213,  229,  250,  278,  254,  242,
 /*  1830 */   242,  120,  254,  205,   39,  254,  123,  204,  120,   67,
 /*  1840 */   210,  133,  190,   52,  283,  204,  204,  263,  145,  156,
 /*  1850 */   283,   54,  155,  187,  187,  206,  203,  120,  203,  203,
 /*  1860 */   203,  187,    9,  114,  203,  203,  228,  209,  209,  206,
 /*  1870 */   205,  203,  212,  187,  226,  228,  212,  232,  232,  114,
 /*  1880 */   186,  154,  163,  187,  186,  242,  242,   64,  122,  187,
 /*  1890 */   186,   37,  153,  150,  219,  103,  187,  220,  220,  220,
 /*  1900 */   220,   91,  171,  120,  163,  152,  151,   83,  219,  187,
 /*  1910 */   229,  219,  138,  206,  229,  173,  180,  187,  186,  186,
 /*  1920 */   229,  187,  182,  120,  229,  180,  182,  180,  255,  253,
 /*  1930 */   132,   72,  120,  120,  120,  206,  121,  266,  255,  255,
 /*  1940 */   253,   72,  123,  233,  232,  167,  121,  167,  120,  280,
 /*  1950 */   280,   40,  122,  207,  198,  229,  231,  233,  230,  199,
 /*  1960 */   199,  207,  198,   42,  248,  248,  198,  198,  198,  109,
 /*  1970 */   265,  265,  120,   72,  275,  274,   53,  169,  117,  121,
 /*  1980 */   118,  260,  143,  156,  121,  262,  137,  123,  122,  146,
 /*  1990 */   119,  291,  118,  149,  146,   58,  167,   53,  156,   20,
 /*  2000 */    20,   20,  137,   20,  137,  137,  127,   49,  167,   48,
 /*  2010 */   120,   39,  166,  299,  299,  145,   73,  123,   73,  284,
 /*  2020 */    80,   59,  284,  145,  304,   39,  121,  120,  110,  145,
 /*  2030 */   121,  121,  120,  127,   49,  284,  147,  123,  290,  287,
 /*  2040 */   290,   49,  122,  121,  120,   49,  154,  121,  123,  121,
 /*  2050 */   123,  120,   49,  121,   49,   49,  100,   80,   98,   10,
 /*  2060 */   105,  123,   80,   49,   49,  146,   11,  121,  121,  121,
 /*  2070 */   121,   60,  121,  123,  120,  146,  123,   70,  121,  120,
 /*  2080 */   145,  145,  141,   71,  121,  121,  120,  120,  120,  119,
 /*  2090 */   117,  122,  309,  309,  309,  309,  309,  145,  309,  309,
 /*  2100 */   309,  309,  309,  309,  309,  309,  309,  309,  309,  309,
 /*  2110 */   309,  309,  309,  309,  309,  309,  309,  309,  309,  309,
 /*  2120 */   309,  309,  309,  309,  309,  309,  309,  309,  309,  309,
 /*  2130 */   309,  309,  309,  309,  309,  309,  309,  309,  309,  309,
 /*  2140 */   309,  309,  309,  309,  309,  309,  309,  309,  309,  309,
 /*  2150 */   309,  309,  309,  309,  309,  309,  309,  309,  309,  309,
 /*  2160 */   309,  309,  309,  309,  309,  309,  309,  309,  309,  309,
 /*  2170 */   309,  309,  309,  309,  309,  309,  309,  309,  309,  309,
 /*  2180 */   309,  309,  309,  309,  309,  309,  309,  309,  309,  309,
 /*  2190 */   309,  309,  309,  309,  309,  309,  309,  309,  309,  309,
 /*  2200 */   309,  309,  309,  309,  309,  309,  309,  309,  309,  309,
 /*  2210 */   309,  309,  309,  309,  309,  309,  309,  309,  309,  309,
 /*  2220 */   309,  309,  309,  309,  309,  309,  309,  309,  309,  309,
 /*  2230 */   309,  309,  309,  309,  309,  309,  309,  309,  309,  309,
 /*  2240 */   309,  309,  309,  309,  309,  309,  309,  309,  309,  309,
 /*  2250 */   309,  309,  309,  309,  309,  309,  309,  309,  309,  309,
 /*  2260 */   309,  309,  309,  309,  309,  309,  309,  309,  309,  309,
 /*  2270 */   309,  309,  309,  309,
};
#define YY_SHIFT_COUNT    (578)
#define YY_SHIFT_MIN      (0)
#define YY_SHIFT_MAX      (2055)
static const unsigned short int yy_shift_ofst[] = {
 /*     0 */  1140, 1053, 1459,  818,  818,  427,  932, 1114, 1217, 1401,
 /*    10 */  1401, 1401,  606,    0,    0,  115,  670, 1401, 1401, 1401,
 /*    20 */  1401, 1401, 1401, 1401, 1401, 1401, 1401, 1401, 1401, 1401,
 /*    30 */  1401,  870,  870,  626, 1023, 1023,  423,  427,  427,  427,
 /*    40 */   427,  427,   57,   86,  210,  239,  268,  306,  335,  364,
 /*    50 */   402,  432,  461,  583,  612,  641,  670,  670,  670,  670,
 /*    60 */   670,  670,  670,  670,  670,  670,  670,  670,  670,  670,
 /*    70 */   670,  670,  670,  699,  670,  670,  777,  804,  804, 1239,
 /*    80 */  1309, 1331, 1401, 1401, 1401, 1401, 1401, 1401, 1401, 1401,
 /*    90 */  1401, 1401, 1401, 1401, 1401, 1401, 1401, 1401, 1401, 1401,
 /*   100 */  1401, 1401, 1401, 1401, 1401, 1401, 1401, 1401, 1401, 1401,
 /*   110 */  1401, 1401, 1401, 1401, 1401, 1401, 1401, 1401, 1401, 1401,
 /*   120 */  1401, 1401, 1401, 1401, 1401, 1401, 1401, 1401, 1401, 1401,
 /*   130 */  1401,  140,  162,  162,  162,  162,  162,  162,  162,  473,
 /*   140 */    16,   25,  875,  961,  984,  168,  871,  871,  871,  871,
 /*   150 */   871,  728,  728, 1042,  934,  934,  934,    3,  934,   67,
 /*   160 */   373,  373,  373,   17,   17, 2098, 2098,  884,  884,  884,
 /*   170 */   875,  857, 1022,  737,  737,  737,  737,  857,  966,  871,
 /*   180 */    95,  287,  871,  871,  871,  871,  871,  871,  871,  871,
 /*   190 */   871,  871,  871,  871,  871,  871,  871,  871,  871,  871,
 /*   200 */   871, 1256,  871,  663,  663, 1125,  867,  867, 1128,  395,
 /*   210 */   395, 1128, 1176, 1396, 2098, 2098, 2098, 2098, 2098, 2098,
 /*   220 */  2098,  828,  419,  419,   75, 1031, 1116, 1033, 1035, 1154,
 /*   230 */  1165, 1179,  871,  871,  871, 1064, 1064, 1064,  871,  871,
 /*   240 */   871,  871,  871,  871,  871,  871,  871,  871,  871,  871,
 /*   250 */   871,  176,  871,  871,  871,  871,  871,  871,  871,  871,
 /*   260 */   871,  766,  871,  871,  871,  944,  830,  871, 1268,  871,
 /*   270 */   871,  871,  871,  871,  871,  871,  871,  871,  824,  173,
 /*   280 */   492,  309, 1408, 1408, 1408, 1408, 1174,  902,  309,  309,
 /*   290 */  1057,  919, 1531, 1327, 1552,  469, 1560, 1485, 1413, 1086,
 /*   300 */  1413, 1597,  286, 1485, 1485,  286, 1485, 1086, 1597,  469,
 /*   310 */   469, 1433, 1433, 1433, 1433,   85,   85, 1348, 1381, 1512,
 /*   320 */  1711, 1795, 1795, 1795, 1713, 1718, 1718, 1795, 1772, 1711,
 /*   330 */  1795, 1708, 1795, 1772, 1795, 1791, 1791, 1703, 1703, 1797,
 /*   340 */  1797, 1703, 1693, 1697, 1737, 1853, 1749, 1749, 1749, 1749,
 /*   350 */  1703, 1765, 1727, 1697, 1697, 1727, 1737, 1853, 1727, 1853,
 /*   360 */  1727, 1703, 1765, 1719, 1823, 1703, 1765, 1766, 1854, 1854,
 /*   370 */  1711, 1703, 1739, 1743, 1792, 1792, 1810, 1810, 1731, 1783,
 /*   380 */  1703, 1741, 1739, 1753, 1755, 1727, 1711, 1703, 1765, 1703,
 /*   390 */  1765, 1824, 1824, 1742, 1742, 1742, 2098, 2098, 2098, 2098,
 /*   400 */  2098, 2098, 2098, 2098, 2098, 2098, 2098, 2098, 2098, 2098,
 /*   410 */  2098,   28,  684,  622, 1296,  914,  963,  667, 1539, 1565,
 /*   420 */  1580, 1289, 1586, 1148, 1591, 1557, 1631, 1582, 1589, 1590,
 /*   430 */  1619, 1634, 1622, 1627, 1632, 1635, 1682, 1688, 1636, 1639,
 /*   440 */  1640, 1672, 1616, 1609, 1610, 1650, 1651, 1435, 1654, 1690,
 /*   450 */  1774, 1798, 1803, 1859, 1812, 1813, 1815, 1814, 1869, 1819,
 /*   460 */  1825, 1778, 1780, 1828, 1911, 1830, 1860, 1921, 1852, 1901,
 /*   470 */  1923, 1808, 1861, 1862, 1858, 1863, 1839, 1827, 1849, 1864,
 /*   480 */  1864, 1866, 1843, 1871, 1844, 1874, 1829, 1848, 1865, 1864,
 /*   490 */  1867, 1937, 1944, 1864, 1842, 1979, 1980, 1981, 1983, 1868,
 /*   500 */  1879, 1958, 1870, 1841, 1961, 1890, 1972, 1846, 1943, 1894,
 /*   510 */  1945, 1940, 1962, 1878, 1986, 1905, 1907, 1918, 1884, 1909,
 /*   520 */  1910, 1906, 1985, 1912, 1889, 1914, 1992, 1922, 1924, 1920,
 /*   530 */  1925, 1926, 1927, 1928, 1996, 1892, 1931, 1932, 2003, 2005,
 /*   540 */  2006, 1956, 1977, 1960, 2049, 1982, 1955, 1938, 2014, 2015,
 /*   550 */  1919, 1929, 1946, 1914, 1947, 1948, 1949, 1950, 1951, 1954,
 /*   560 */  2011, 1957, 1959, 1963, 1964, 1966, 1967, 1953, 1935, 1936,
 /*   570 */  1952, 1968, 1941, 1969, 1970, 2055, 1973, 2007, 2012,
};
#define YY_REDUCE_COUNT (410)
#define YY_REDUCE_MIN   (-256)
#define YY_REDUCE_MAX   (1770)
static const short yy_reduce_ofst[] = {
 /*     0 */   668,  700,  849,  332,  336,  323,  788,  579,  819,  339,
 /*    10 */   661,  672,  329,  -46,  327, -256, -194,  560,  749, 1029,
 /*    20 */  1085,  731, 1110, 1153, 1189,  901, 1103, 1172,  877, 1191,
 /*    30 */  1244,  598,  603, 1170,  662,  810,  547, 1014, 1231, 1238,
 /*    40 */  1251, 1273, -252, -252, -252, -252, -252, -252, -252, -252,
 /*    50 */  -252, -252, -252, -252, -252, -252, -252, -252, -252, -252,
 /*    60 */  -252, -252, -252, -252, -252, -252, -252, -252, -252, -252,
 /*    70 */  -252, -252, -252, -252, -252, -252, -252, -252, -252,  349,
 /*    80 */  1011, 1115, 1213, 1281, 1283, 1300, 1316, 1334, 1342, 1345,
 /*    90 */  1350, 1352, 1375, 1377, 1383, 1385, 1388, 1391, 1393, 1402,
 /*   100 */  1415, 1424, 1428, 1430, 1432, 1434, 1437, 1440, 1442, 1447,
 /*   110 */  1456, 1464, 1466, 1469, 1471, 1474, 1478, 1480, 1482, 1493,
 /*   120 */  1497, 1504, 1506, 1508, 1515, 1519, 1521, 1530, 1532, 1534,
 /*   130 */  1537, -252, -252, -252, -252, -252, -252, -252, -252, -252,
 /*   140 */  -252, -252,  844,  874, 1036,  319,  850,  305, 1318, 1328,
 /*   150 */    20, -115,  321,  910,  952, 1287,  952, -252, 1287, 1067,
 /*   160 */   625,  942, 1092, -252, -252, -252, -252, -200, -200, -200,
 /*   170 */   585,  882, -126,  938,  940,  948, 1072,  945,  277,    1,
 /*   180 */   457,  457,  823,  602,  709,  959,  986, 1073, 1199, 1200,
 /*   190 */   759, 1078, 1055, 1254, 1325, 1129, 1376, 1205,  375,  701,
 /*   200 */  1400,  676,   -1, 1060, 1106,  706, 1113, 1122, 1193,  659,
 /*   210 */  1195, 1292,  692, 1000, 1208, 1061, 1197, 1361, 1370, 1451,
 /*   220 */  1387,  -90,  -42,   63,  297,  361,  399,  407,  456,  543,
 /*   230 */   557,  587,  592,  694,  715,  800,  858,  965,  900, 1082,
 /*   240 */  1259, 1392, 1419, 1425, 1438, 1563, 1568, 1571, 1595, 1598,
 /*   250 */  1599, 1083, 1600, 1601, 1602, 1603, 1604, 1605, 1606, 1607,
 /*   260 */  1608, 1500, 1612, 1613, 1614, 1540, 1488, 1615, 1518, 1617,
 /*   270 */   399, 1618, 1620, 1621, 1623, 1624, 1625, 1626, 1592, 1527,
 /*   280 */  1536, 1579, 1572, 1573, 1575, 1577, 1500, 1583, 1579, 1579,
 /*   290 */  1637, 1611, 1628, 1629, 1630, 1633, 1535, 1566, 1569, 1593,
 /*   300 */  1576, 1544, 1594, 1574, 1578, 1596, 1581, 1638, 1549, 1641,
 /*   310 */  1642, 1587, 1588, 1643, 1644, 1645, 1646, 1584, 1647, 1648,
 /*   320 */  1649, 1653, 1655, 1656, 1652, 1658, 1659, 1657, 1660, 1663,
 /*   330 */  1661, 1665, 1662, 1664, 1668, 1561, 1567, 1666, 1667, 1669,
 /*   340 */  1670, 1674, 1671, 1673, 1676, 1675, 1677, 1678, 1679, 1680,
 /*   350 */  1686, 1694, 1681, 1683, 1684, 1685, 1687, 1689, 1691, 1692,
 /*   360 */  1695, 1696, 1698, 1699, 1701, 1702, 1704, 1700, 1705, 1706,
 /*   370 */  1707, 1709, 1710, 1712, 1714, 1715, 1716, 1717, 1720, 1721,
 /*   380 */  1722, 1723, 1724, 1725, 1728, 1726, 1729, 1730, 1732, 1734,
 /*   390 */  1733, 1740, 1744, 1736, 1745, 1747, 1735, 1738, 1746, 1748,
 /*   400 */  1750, 1752, 1754, 1760, 1761, 1751, 1756, 1764, 1768, 1769,
 /*   410 */  1770,
};
static const YYACTIONTYPE yy_default[] = {
 /*     0 */  1648, 1648, 1648, 1478, 1243, 1354, 1243, 1243, 1243, 1478,
 /*    10 */  1478, 1478, 1243, 1384, 1384, 1531, 1276, 1243, 1243, 1243,
 /*    20 */  1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243, 1477, 1243,
 /*    30 */  1243, 1243, 1243, 1243, 1564, 1564, 1243, 1243, 1243, 1243,
 /*    40 */  1243, 1243, 1243, 1393, 1243, 1243, 1243, 1243, 1243, 1400,
 /*    50 */  1479, 1480, 1243, 1243, 1243, 1243, 1530, 1532, 1495, 1407,
 /*    60 */  1406, 1405, 1404, 1513, 1372, 1398, 1391, 1395, 1479, 1474,
 /*    70 */  1475, 1473, 1626, 1243, 1480, 1394, 1442, 1441, 1458, 1243,
 /*    80 */  1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243,
 /*    90 */  1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243,
 /*   100 */  1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243,
 /*   110 */  1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243,
 /*   120 */  1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243,
 /*   130 */  1243, 1450, 1457, 1456, 1455, 1464, 1454, 1451, 1444, 1443,
 /*   140 */  1445, 1446, 1267, 1243, 1243, 1318, 1243, 1243, 1243, 1243,
 /*   150 */  1243, 1243, 1243, 1264, 1550, 1549, 1243, 1447, 1243, 1276,
 /*   160 */  1435, 1434, 1433, 1461, 1448, 1460, 1459, 1600, 1599, 1538,
 /*   170 */  1243, 1243, 1496, 1243, 1243, 1243, 1243, 1243, 1564, 1243,
 /*   180 */  1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243,
 /*   190 */  1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243,
 /*   200 */  1243, 1374, 1243, 1564, 1564, 1276, 1564, 1564, 1272, 1375,
 /*   210 */  1375, 1272, 1378, 1243, 1545, 1345, 1345, 1345, 1345, 1354,
 /*   220 */  1345, 1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243,
 /*   230 */  1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243,
 /*   240 */  1243, 1243, 1243, 1243, 1243, 1535, 1533, 1243, 1243, 1243,
 /*   250 */  1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243,
 /*   260 */  1243, 1243, 1243, 1243, 1243, 1350, 1243, 1243, 1243, 1243,
 /*   270 */  1243, 1243, 1243, 1243, 1243, 1243, 1243, 1593, 1277, 1243,
 /*   280 */  1508, 1332, 1350, 1350, 1350, 1350, 1352, 1344, 1333, 1331,
 /*   290 */  1250, 1615, 1293, 1243, 1288, 1384, 1640, 1410, 1399, 1351,
 /*   300 */  1399, 1637, 1397, 1410, 1410, 1397, 1410, 1351, 1637, 1384,
 /*   310 */  1384, 1374, 1374, 1374, 1374, 1378, 1378, 1476, 1351, 1344,
 /*   320 */  1486, 1319, 1319, 1319, 1311, 1243, 1243, 1319, 1308, 1486,
 /*   330 */  1319, 1293, 1319, 1308, 1319, 1640, 1640, 1360, 1360, 1639,
 /*   340 */  1639, 1360, 1496, 1623, 1419, 1321, 1327, 1327, 1327, 1327,
 /*   350 */  1360, 1261, 1397, 1623, 1623, 1397, 1419, 1321, 1397, 1321,
 /*   360 */  1397, 1360, 1261, 1512, 1634, 1360, 1261, 1243, 1490, 1490,
 /*   370 */  1486, 1360, 1392, 1378, 1574, 1574, 1387, 1387, 1582, 1481,
 /*   380 */  1360, 1243, 1392, 1390, 1388, 1397, 1486, 1360, 1261, 1360,
 /*   390 */  1261, 1596, 1596, 1592, 1592, 1592, 1608, 1608, 1295, 1645,
 /*   400 */  1645, 1545, 1295, 1277, 1277, 1608, 1276, 1276, 1276, 1276,
 /*   410 */  1276, 1243, 1243, 1243, 1243, 1243, 1603, 1243, 1243, 1243,
 /*   420 */  1243, 1243, 1243, 1243, 1243, 1540, 1497, 1364, 1243, 1243,
 /*   430 */  1243, 1243, 1243, 1243, 1243, 1243, 1551, 1243, 1243, 1243,
 /*   440 */  1243, 1243, 1243, 1243, 1243, 1243, 1243, 1424, 1243, 1243,
 /*   450 */  1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243, 1265,
 /*   460 */  1243, 1243, 1243, 1542, 1291, 1243, 1243, 1243, 1243, 1243,
 /*   470 */  1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243, 1401,
 /*   480 */  1402, 1365, 1243, 1243, 1243, 1243, 1243, 1243, 1243, 1416,
 /*   490 */  1243, 1243, 1243, 1411, 1243, 1243, 1243, 1243, 1243, 1243,
 /*   500 */  1243, 1243, 1636, 1243, 1243, 1243, 1243, 1243, 1243, 1511,
 /*   510 */  1510, 1243, 1243, 1362, 1243, 1243, 1243, 1243, 1243, 1243,
 /*   520 */  1243, 1243, 1243, 1243, 1243, 1389, 1243, 1243, 1243, 1243,
 /*   530 */  1579, 1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243, 1243,
 /*   540 */  1243, 1243, 1243, 1243, 1243, 1243, 1243, 1379, 1243, 1243,
 /*   550 */  1243, 1243, 1243, 1627, 1243, 1243, 1243, 1243, 1243, 1243,
 /*   560 */  1243, 1243, 1243, 1243, 1243, 1243, 1243, 1619, 1428, 1425,
 /*   570 */  1243, 1243, 1335, 1243, 1243, 1243, 1255, 1243, 1246,
};
/********** End of lemon-generated parsing tables *****************************/

/* The next table maps tokens (terminal symbols) into fallback tokens.  
** If a construct like the following:
** 
**      %fallback ID X Y Z.
**
** appears in the grammar, then ID becomes a fallback token for X, Y,
** and Z.  Whenever one of the tokens X, Y, or Z is input to the parser
** but it does not parse, the type of the token is changed to ID and
** the parse is retried before an error is thrown.
**
** This feature can be used, for example, to cause some keywords in a language
** to revert to identifiers if they keyword does not apply in the context where
** it appears.
*/
#ifdef YYFALLBACK
static const YYCODETYPE yyFallback[] = {
    0,  /*          $ => nothing */
    0,  /*     CREATE => nothing */
   40,  /*    REPLACE => ID */
    0,  /*   PERFETTO => nothing */
    0,  /*      MACRO => nothing */
    0,  /*    INCLUDE => nothing */
    0,  /*     MODULE => nothing */
    0,  /*    RETURNS => nothing */
    0,  /*   FUNCTION => nothing */
    0,  /*         OR => nothing */
    0,  /*        AND => nothing */
    0,  /*        NOT => nothing */
    0,  /*         IS => nothing */
   40,  /*      MATCH => ID */
   40,  /*    LIKE_KW => ID */
    0,  /*    BETWEEN => nothing */
    0,  /*         IN => nothing */
    0,  /*     ISNULL => nothing */
    0,  /*    NOTNULL => nothing */
    0,  /*         NE => nothing */
    0,  /*         EQ => nothing */
    0,  /*         GT => nothing */
    0,  /*         LE => nothing */
    0,  /*         LT => nothing */
    0,  /*         GE => nothing */
    0,  /*     ESCAPE => nothing */
    0,  /*     BITAND => nothing */
    0,  /*      BITOR => nothing */
    0,  /*     LSHIFT => nothing */
    0,  /*     RSHIFT => nothing */
    0,  /*       PLUS => nothing */
    0,  /*      MINUS => nothing */
    0,  /*       STAR => nothing */
    0,  /*      SLASH => nothing */
    0,  /*        REM => nothing */
    0,  /*     CONCAT => nothing */
    0,  /*        PTR => nothing */
    0,  /*    COLLATE => nothing */
    0,  /*     BITNOT => nothing */
    0,  /*         ON => nothing */
    0,  /*         ID => nothing */
   40,  /*      ABORT => ID */
   40,  /*     ACTION => ID */
   40,  /*      AFTER => ID */
   40,  /*    ANALYZE => ID */
   40,  /*        ASC => ID */
   40,  /*     ATTACH => ID */
   40,  /*     BEFORE => ID */
   40,  /*      BEGIN => ID */
   40,  /*         BY => ID */
   40,  /*    CASCADE => ID */
   40,  /*       CAST => ID */
   40,  /*   COLUMNKW => ID */
   40,  /*   CONFLICT => ID */
   40,  /*   DATABASE => ID */
   40,  /*   DEFERRED => ID */
   40,  /*       DESC => ID */
   40,  /*     DETACH => ID */
   40,  /*         DO => ID */
   40,  /*       EACH => ID */
   40,  /*        END => ID */
   40,  /*  EXCLUSIVE => ID */
   40,  /*    EXPLAIN => ID */
   40,  /*       FAIL => ID */
   40,  /*        FOR => ID */
   40,  /*     IGNORE => ID */
   40,  /*  IMMEDIATE => ID */
   40,  /*  INITIALLY => ID */
   40,  /*    INSTEAD => ID */
   40,  /*         NO => ID */
   40,  /*       PLAN => ID */
   40,  /*      QUERY => ID */
   40,  /*        KEY => ID */
   40,  /*         OF => ID */
   40,  /*     OFFSET => ID */
   40,  /*     PRAGMA => ID */
   40,  /*      RAISE => ID */
   40,  /*  RECURSIVE => ID */
   40,  /*    RELEASE => ID */
   40,  /*   RESTRICT => ID */
   40,  /*        ROW => ID */
   40,  /*       ROWS => ID */
   40,  /*   ROLLBACK => ID */
   40,  /*  SAVEPOINT => ID */
   40,  /*       TEMP => ID */
   40,  /*    TRIGGER => ID */
   40,  /*     VACUUM => ID */
   40,  /*       VIEW => ID */
   40,  /*    VIRTUAL => ID */
   40,  /*       WITH => ID */
   40,  /*    WITHOUT => ID */
   40,  /*      NULLS => ID */
   40,  /*      FIRST => ID */
   40,  /*       LAST => ID */
   40,  /*     EXCEPT => ID */
   40,  /*  INTERSECT => ID */
   40,  /*      UNION => ID */
   40,  /*    CURRENT => ID */
   40,  /*  FOLLOWING => ID */
   40,  /*  PARTITION => ID */
   40,  /*  PRECEDING => ID */
   40,  /*      RANGE => ID */
   40,  /*  UNBOUNDED => ID */
   40,  /*    EXCLUDE => ID */
   40,  /*     GROUPS => ID */
   40,  /*     OTHERS => ID */
   40,  /*       TIES => ID */
   40,  /*     WITHIN => ID */
   40,  /*  GENERATED => ID */
   40,  /*     ALWAYS => ID */
   40,  /* MATERIALIZED => ID */
   40,  /*    REINDEX => ID */
   40,  /*     RENAME => ID */
   40,  /*   CTIME_KW => ID */
   40,  /*         IF => ID */
    0,  /*        ANY => nothing */
    0,  /*     COMMIT => nothing */
    0,  /*         TO => nothing */
    0,  /*      TABLE => nothing */
    0,  /*     EXISTS => nothing */
    0,  /*         LP => nothing */
    0,  /*         RP => nothing */
    0,  /*         AS => nothing */
    0,  /*      COMMA => nothing */
    0,  /*     STRING => nothing */
    0,  /* CONSTRAINT => nothing */
    0,  /*    DEFAULT => nothing */
    0,  /*    INDEXED => nothing */
    0,  /*       NULL => nothing */
    0,  /*    PRIMARY => nothing */
    0,  /*     UNIQUE => nothing */
    0,  /*      CHECK => nothing */
    0,  /* REFERENCES => nothing */
    0,  /*   AUTOINCR => nothing */
    0,  /*     INSERT => nothing */
    0,  /*     DELETE => nothing */
    0,  /*     UPDATE => nothing */
    0,  /*        SET => nothing */
    0,  /* DEFERRABLE => nothing */
    0,  /*    FOREIGN => nothing */
    0,  /*       DROP => nothing */
    0,  /*        ALL => nothing */
    0,  /*     SELECT => nothing */
    0,  /*     VALUES => nothing */
    0,  /*   DISTINCT => nothing */
    0,  /*        DOT => nothing */
    0,  /*       FROM => nothing */
    0,  /*       JOIN => nothing */
    0,  /*    JOIN_KW => nothing */
    0,  /*      USING => nothing */
    0,  /*      ORDER => nothing */
    0,  /*      GROUP => nothing */
    0,  /*     HAVING => nothing */
    0,  /*      LIMIT => nothing */
    0,  /*      WHERE => nothing */
    0,  /*  RETURNING => nothing */
    0,  /*       INTO => nothing */
    0,  /*    NOTHING => nothing */
    0,  /*      FLOAT => nothing */
    0,  /*       BLOB => nothing */
    0,  /*    INTEGER => nothing */
    0,  /*   VARIABLE => nothing */
    0,  /*       CASE => nothing */
    0,  /*       WHEN => nothing */
    0,  /*       THEN => nothing */
    0,  /*       ELSE => nothing */
    0,  /*      INDEX => nothing */
    0,  /*       SEMI => nothing */
    0,  /*      ALTER => nothing */
    0,  /*        ADD => nothing */
    0,  /*     WINDOW => nothing */
    0,  /*       OVER => nothing */
    0,  /*     FILTER => nothing */
    0,  /* TRANSACTION => nothing */
    0,  /*      SPACE => nothing */
    0,  /*    ILLEGAL => nothing */
};
#endif /* YYFALLBACK */

/* The following structure represents a single element of the
** parser's stack.  Information stored includes:
**
**   +  The state number for the parser at this level of the stack.
**
**   +  The value of the token stored at this level of the stack.
**      (In other words, the "major" token.)
**
**   +  The semantic value stored at this level of the stack.  This is
**      the information used by the action routines in the grammar.
**      It is sometimes called the "minor" token.
**
** After the "shift" half of a SHIFTREDUCE action, the stateno field
** actually contains the reduce action for the second half of the
** SHIFTREDUCE.
*/
struct yyStackEntry {
  YYACTIONTYPE stateno;  /* The state-number, or reduce action in SHIFTREDUCE */
  YYCODETYPE major;      /* The major token value.  This is the code
                         ** number for the token at this stack level */
  YYMINORTYPE minor;     /* The user-supplied minor token value.  This
                         ** is the value of the token  */
};
typedef struct yyStackEntry yyStackEntry;

/* The state of the parser is completely contained in an instance of
** the following structure */
struct yyParser {
  yyStackEntry *yytos;          /* Pointer to top element of the stack */
#ifdef YYTRACKMAXSTACKDEPTH
  int yyhwm;                    /* High-water mark of the stack */
#endif
#ifndef YYNOERRORRECOVERY
  int yyerrcnt;                 /* Shifts left before out of the error */
#endif
  PerfettoSqlParserARG_SDECL                /* A place to hold %extra_argument */
  PerfettoSqlParserCTX_SDECL                /* A place to hold %extra_context */
#if YYSTACKDEPTH<=0
  int yystksz;                  /* Current side of the stack */
  yyStackEntry *yystack;        /* The parser's stack */
  yyStackEntry yystk0;          /* First stack entry */
#else
  yyStackEntry yystack[YYSTACKDEPTH];  /* The parser's stack */
  yyStackEntry *yystackEnd;            /* Last entry in the stack */
#endif
};
typedef struct yyParser yyParser;

#include <assert.h>
#ifndef NDEBUG
#include <stdio.h>
static FILE *yyTraceFILE = 0;
static char *yyTracePrompt = 0;
#endif /* NDEBUG */

#ifndef NDEBUG
/* 
** Turn parser tracing on by giving a stream to which to write the trace
** and a prompt to preface each trace message.  Tracing is turned off
** by making either argument NULL 
**
** Inputs:
** <ul>
** <li> A FILE* to which trace output should be written.
**      If NULL, then tracing is turned off.
** <li> A prefix string written at the beginning of every
**      line of trace output.  If NULL, then tracing is
**      turned off.
** </ul>
**
** Outputs:
** None.
*/
void PerfettoSqlParserTrace(FILE *TraceFILE, char *zTracePrompt){
  yyTraceFILE = TraceFILE;
  yyTracePrompt = zTracePrompt;
  if( yyTraceFILE==0 ) yyTracePrompt = 0;
  else if( yyTracePrompt==0 ) yyTraceFILE = 0;
}
#endif /* NDEBUG */

#if defined(YYCOVERAGE) || !defined(NDEBUG)
/* For tracing shifts, the names of all terminals and nonterminals
** are required.  The following table supplies these names */
static const char *const yyTokenName[] = { 
  /*    0 */ "$",
  /*    1 */ "CREATE",
  /*    2 */ "REPLACE",
  /*    3 */ "PERFETTO",
  /*    4 */ "MACRO",
  /*    5 */ "INCLUDE",
  /*    6 */ "MODULE",
  /*    7 */ "RETURNS",
  /*    8 */ "FUNCTION",
  /*    9 */ "OR",
  /*   10 */ "AND",
  /*   11 */ "NOT",
  /*   12 */ "IS",
  /*   13 */ "MATCH",
  /*   14 */ "LIKE_KW",
  /*   15 */ "BETWEEN",
  /*   16 */ "IN",
  /*   17 */ "ISNULL",
  /*   18 */ "NOTNULL",
  /*   19 */ "NE",
  /*   20 */ "EQ",
  /*   21 */ "GT",
  /*   22 */ "LE",
  /*   23 */ "LT",
  /*   24 */ "GE",
  /*   25 */ "ESCAPE",
  /*   26 */ "BITAND",
  /*   27 */ "BITOR",
  /*   28 */ "LSHIFT",
  /*   29 */ "RSHIFT",
  /*   30 */ "PLUS",
  /*   31 */ "MINUS",
  /*   32 */ "STAR",
  /*   33 */ "SLASH",
  /*   34 */ "REM",
  /*   35 */ "CONCAT",
  /*   36 */ "PTR",
  /*   37 */ "COLLATE",
  /*   38 */ "BITNOT",
  /*   39 */ "ON",
  /*   40 */ "ID",
  /*   41 */ "ABORT",
  /*   42 */ "ACTION",
  /*   43 */ "AFTER",
  /*   44 */ "ANALYZE",
  /*   45 */ "ASC",
  /*   46 */ "ATTACH",
  /*   47 */ "BEFORE",
  /*   48 */ "BEGIN",
  /*   49 */ "BY",
  /*   50 */ "CASCADE",
  /*   51 */ "CAST",
  /*   52 */ "COLUMNKW",
  /*   53 */ "CONFLICT",
  /*   54 */ "DATABASE",
  /*   55 */ "DEFERRED",
  /*   56 */ "DESC",
  /*   57 */ "DETACH",
  /*   58 */ "DO",
  /*   59 */ "EACH",
  /*   60 */ "END",
  /*   61 */ "EXCLUSIVE",
  /*   62 */ "EXPLAIN",
  /*   63 */ "FAIL",
  /*   64 */ "FOR",
  /*   65 */ "IGNORE",
  /*   66 */ "IMMEDIATE",
  /*   67 */ "INITIALLY",
  /*   68 */ "INSTEAD",
  /*   69 */ "NO",
  /*   70 */ "PLAN",
  /*   71 */ "QUERY",
  /*   72 */ "KEY",
  /*   73 */ "OF",
  /*   74 */ "OFFSET",
  /*   75 */ "PRAGMA",
  /*   76 */ "RAISE",
  /*   77 */ "RECURSIVE",
  /*   78 */ "RELEASE",
  /*   79 */ "RESTRICT",
  /*   80 */ "ROW",
  /*   81 */ "ROWS",
  /*   82 */ "ROLLBACK",
  /*   83 */ "SAVEPOINT",
  /*   84 */ "TEMP",
  /*   85 */ "TRIGGER",
  /*   86 */ "VACUUM",
  /*   87 */ "VIEW",
  /*   88 */ "VIRTUAL",
  /*   89 */ "WITH",
  /*   90 */ "WITHOUT",
  /*   91 */ "NULLS",
  /*   92 */ "FIRST",
  /*   93 */ "LAST",
  /*   94 */ "EXCEPT",
  /*   95 */ "INTERSECT",
  /*   96 */ "UNION",
  /*   97 */ "CURRENT",
  /*   98 */ "FOLLOWING",
  /*   99 */ "PARTITION",
  /*  100 */ "PRECEDING",
  /*  101 */ "RANGE",
  /*  102 */ "UNBOUNDED",
  /*  103 */ "EXCLUDE",
  /*  104 */ "GROUPS",
  /*  105 */ "OTHERS",
  /*  106 */ "TIES",
  /*  107 */ "WITHIN",
  /*  108 */ "GENERATED",
  /*  109 */ "ALWAYS",
  /*  110 */ "MATERIALIZED",
  /*  111 */ "REINDEX",
  /*  112 */ "RENAME",
  /*  113 */ "CTIME_KW",
  /*  114 */ "IF",
  /*  115 */ "ANY",
  /*  116 */ "COMMIT",
  /*  117 */ "TO",
  /*  118 */ "TABLE",
  /*  119 */ "EXISTS",
  /*  120 */ "LP",
  /*  121 */ "RP",
  /*  122 */ "AS",
  /*  123 */ "COMMA",
  /*  124 */ "STRING",
  /*  125 */ "CONSTRAINT",
  /*  126 */ "DEFAULT",
  /*  127 */ "INDEXED",
  /*  128 */ "NULL",
  /*  129 */ "PRIMARY",
  /*  130 */ "UNIQUE",
  /*  131 */ "CHECK",
  /*  132 */ "REFERENCES",
  /*  133 */ "AUTOINCR",
  /*  134 */ "INSERT",
  /*  135 */ "DELETE",
  /*  136 */ "UPDATE",
  /*  137 */ "SET",
  /*  138 */ "DEFERRABLE",
  /*  139 */ "FOREIGN",
  /*  140 */ "DROP",
  /*  141 */ "ALL",
  /*  142 */ "SELECT",
  /*  143 */ "VALUES",
  /*  144 */ "DISTINCT",
  /*  145 */ "DOT",
  /*  146 */ "FROM",
  /*  147 */ "JOIN",
  /*  148 */ "JOIN_KW",
  /*  149 */ "USING",
  /*  150 */ "ORDER",
  /*  151 */ "GROUP",
  /*  152 */ "HAVING",
  /*  153 */ "LIMIT",
  /*  154 */ "WHERE",
  /*  155 */ "RETURNING",
  /*  156 */ "INTO",
  /*  157 */ "NOTHING",
  /*  158 */ "FLOAT",
  /*  159 */ "BLOB",
  /*  160 */ "INTEGER",
  /*  161 */ "VARIABLE",
  /*  162 */ "CASE",
  /*  163 */ "WHEN",
  /*  164 */ "THEN",
  /*  165 */ "ELSE",
  /*  166 */ "INDEX",
  /*  167 */ "SEMI",
  /*  168 */ "ALTER",
  /*  169 */ "ADD",
  /*  170 */ "WINDOW",
  /*  171 */ "OVER",
  /*  172 */ "FILTER",
  /*  173 */ "TRANSACTION",
  /*  174 */ "SPACE",
  /*  175 */ "ILLEGAL",
  /*  176 */ "explain",
  /*  177 */ "cmdx",
  /*  178 */ "cmd",
  /*  179 */ "transtype",
  /*  180 */ "trans_opt",
  /*  181 */ "nm",
  /*  182 */ "savepoint_opt",
  /*  183 */ "create_table",
  /*  184 */ "createkw",
  /*  185 */ "temp",
  /*  186 */ "ifnotexists",
  /*  187 */ "dbnm",
  /*  188 */ "create_table_args",
  /*  189 */ "columnlist",
  /*  190 */ "conslist_opt",
  /*  191 */ "table_option_set",
  /*  192 */ "select",
  /*  193 */ "table_option",
  /*  194 */ "columnname",
  /*  195 */ "typetoken",
  /*  196 */ "typename",
  /*  197 */ "signed",
  /*  198 */ "scanpt",
  /*  199 */ "scantok",
  /*  200 */ "ccons",
  /*  201 */ "term",
  /*  202 */ "expr",
  /*  203 */ "onconf",
  /*  204 */ "sortorder",
  /*  205 */ "autoinc",
  /*  206 */ "eidlist_opt",
  /*  207 */ "refargs",
  /*  208 */ "defer_subclause",
  /*  209 */ "generated",
  /*  210 */ "refarg",
  /*  211 */ "refact",
  /*  212 */ "init_deferred_pred_opt",
  /*  213 */ "tconscomma",
  /*  214 */ "tcons",
  /*  215 */ "sortlist",
  /*  216 */ "eidlist",
  /*  217 */ "defer_subclause_opt",
  /*  218 */ "resolvetype",
  /*  219 */ "orconf",
  /*  220 */ "ifexists",
  /*  221 */ "fullname",
  /*  222 */ "wqlist",
  /*  223 */ "selectnowith",
  /*  224 */ "multiselect_op",
  /*  225 */ "oneselect",
  /*  226 */ "distinct",
  /*  227 */ "selcollist",
  /*  228 */ "from",
  /*  229 */ "where_opt",
  /*  230 */ "groupby_opt",
  /*  231 */ "having_opt",
  /*  232 */ "orderby_opt",
  /*  233 */ "limit_opt",
  /*  234 */ "window_clause",
  /*  235 */ "values",
  /*  236 */ "nexprlist",
  /*  237 */ "sclp",
  /*  238 */ "as",
  /*  239 */ "seltablist",
  /*  240 */ "stl_prefix",
  /*  241 */ "joinop",
  /*  242 */ "on_using",
  /*  243 */ "indexed_by",
  /*  244 */ "exprlist",
  /*  245 */ "xfullname",
  /*  246 */ "idlist",
  /*  247 */ "indexed_opt",
  /*  248 */ "nulls",
  /*  249 */ "with",
  /*  250 */ "where_opt_ret",
  /*  251 */ "setlist",
  /*  252 */ "insert_cmd",
  /*  253 */ "idlist_opt",
  /*  254 */ "upsert",
  /*  255 */ "returning",
  /*  256 */ "filter_over",
  /*  257 */ "likeop",
  /*  258 */ "between_op",
  /*  259 */ "in_op",
  /*  260 */ "paren_exprlist",
  /*  261 */ "case_operand",
  /*  262 */ "case_exprlist",
  /*  263 */ "case_else",
  /*  264 */ "uniqueflag",
  /*  265 */ "collate",
  /*  266 */ "vinto",
  /*  267 */ "nmnum",
  /*  268 */ "minus_num",
  /*  269 */ "plus_num",
  /*  270 */ "trigger_decl",
  /*  271 */ "trigger_cmd_list",
  /*  272 */ "trigger_time",
  /*  273 */ "trigger_event",
  /*  274 */ "foreach_clause",
  /*  275 */ "when_clause",
  /*  276 */ "trigger_cmd",
  /*  277 */ "trnm",
  /*  278 */ "tridxby",
  /*  279 */ "raisetype",
  /*  280 */ "database_kw_opt",
  /*  281 */ "key_opt",
  /*  282 */ "add_column_fullname",
  /*  283 */ "kwcolumn_opt",
  /*  284 */ "carglist",
  /*  285 */ "create_vtab",
  /*  286 */ "vtabarglist",
  /*  287 */ "vtabarg",
  /*  288 */ "vtabargtoken",
  /*  289 */ "lp",
  /*  290 */ "anylist",
  /*  291 */ "wqas",
  /*  292 */ "wqitem",
  /*  293 */ "windowdefn_list",
  /*  294 */ "windowdefn",
  /*  295 */ "window",
  /*  296 */ "frame_opt",
  /*  297 */ "range_or_rows",
  /*  298 */ "frame_bound_s",
  /*  299 */ "frame_exclude_opt",
  /*  300 */ "frame_bound_e",
  /*  301 */ "frame_bound",
  /*  302 */ "frame_exclude",
  /*  303 */ "filter_clause",
  /*  304 */ "over_clause",
  /*  305 */ "input",
  /*  306 */ "cmdlist",
  /*  307 */ "ecmd",
  /*  308 */ "conslist",
};
#endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */

#ifndef NDEBUG
/* For tracing reduce actions, the names of all rules are required.
*/
static const char *const yyRuleName[] = {
 /*   0 */ "explain ::= EXPLAIN",
 /*   1 */ "explain ::= EXPLAIN QUERY PLAN",
 /*   2 */ "cmdx ::= cmd",
 /*   3 */ "cmd ::= BEGIN transtype trans_opt",
 /*   4 */ "transtype ::=",
 /*   5 */ "transtype ::= DEFERRED",
 /*   6 */ "transtype ::= IMMEDIATE",
 /*   7 */ "transtype ::= EXCLUSIVE",
 /*   8 */ "cmd ::= COMMIT|END trans_opt",
 /*   9 */ "cmd ::= ROLLBACK trans_opt",
 /*  10 */ "cmd ::= SAVEPOINT nm",
 /*  11 */ "cmd ::= RELEASE savepoint_opt nm",
 /*  12 */ "cmd ::= ROLLBACK trans_opt TO savepoint_opt nm",
 /*  13 */ "create_table ::= createkw temp TABLE ifnotexists nm dbnm",
 /*  14 */ "createkw ::= CREATE",
 /*  15 */ "ifnotexists ::=",
 /*  16 */ "ifnotexists ::= IF NOT EXISTS",
 /*  17 */ "temp ::= TEMP",
 /*  18 */ "temp ::=",
 /*  19 */ "create_table_args ::= LP columnlist conslist_opt RP table_option_set",
 /*  20 */ "create_table_args ::= AS select",
 /*  21 */ "table_option_set ::=",
 /*  22 */ "table_option_set ::= table_option_set COMMA table_option",
 /*  23 */ "table_option ::= WITHOUT nm",
 /*  24 */ "table_option ::= nm",
 /*  25 */ "columnname ::= nm typetoken",
 /*  26 */ "typetoken ::=",
 /*  27 */ "typetoken ::= typename LP signed RP",
 /*  28 */ "typetoken ::= typename LP signed COMMA signed RP",
 /*  29 */ "typename ::= typename ID|STRING",
 /*  30 */ "scanpt ::=",
 /*  31 */ "scantok ::=",
 /*  32 */ "ccons ::= CONSTRAINT nm",
 /*  33 */ "ccons ::= DEFAULT scantok term",
 /*  34 */ "ccons ::= DEFAULT LP expr RP",
 /*  35 */ "ccons ::= DEFAULT PLUS scantok term",
 /*  36 */ "ccons ::= DEFAULT MINUS scantok term",
 /*  37 */ "ccons ::= DEFAULT scantok ID|INDEXED",
 /*  38 */ "ccons ::= NOT NULL onconf",
 /*  39 */ "ccons ::= PRIMARY KEY sortorder onconf autoinc",
 /*  40 */ "ccons ::= UNIQUE onconf",
 /*  41 */ "ccons ::= CHECK LP expr RP",
 /*  42 */ "ccons ::= REFERENCES nm eidlist_opt refargs",
 /*  43 */ "ccons ::= defer_subclause",
 /*  44 */ "ccons ::= COLLATE ID|STRING",
 /*  45 */ "generated ::= LP expr RP",
 /*  46 */ "generated ::= LP expr RP ID",
 /*  47 */ "autoinc ::=",
 /*  48 */ "autoinc ::= AUTOINCR",
 /*  49 */ "refargs ::=",
 /*  50 */ "refargs ::= refargs refarg",
 /*  51 */ "refarg ::= MATCH nm",
 /*  52 */ "refarg ::= ON INSERT refact",
 /*  53 */ "refarg ::= ON DELETE refact",
 /*  54 */ "refarg ::= ON UPDATE refact",
 /*  55 */ "refact ::= SET NULL",
 /*  56 */ "refact ::= SET DEFAULT",
 /*  57 */ "refact ::= CASCADE",
 /*  58 */ "refact ::= RESTRICT",
 /*  59 */ "refact ::= NO ACTION",
 /*  60 */ "defer_subclause ::= NOT DEFERRABLE init_deferred_pred_opt",
 /*  61 */ "defer_subclause ::= DEFERRABLE init_deferred_pred_opt",
 /*  62 */ "init_deferred_pred_opt ::=",
 /*  63 */ "init_deferred_pred_opt ::= INITIALLY DEFERRED",
 /*  64 */ "init_deferred_pred_opt ::= INITIALLY IMMEDIATE",
 /*  65 */ "conslist_opt ::=",
 /*  66 */ "tconscomma ::= COMMA",
 /*  67 */ "tcons ::= CONSTRAINT nm",
 /*  68 */ "tcons ::= PRIMARY KEY LP sortlist autoinc RP onconf",
 /*  69 */ "tcons ::= UNIQUE LP sortlist RP onconf",
 /*  70 */ "tcons ::= CHECK LP expr RP onconf",
 /*  71 */ "tcons ::= FOREIGN KEY LP eidlist RP REFERENCES nm eidlist_opt refargs defer_subclause_opt",
 /*  72 */ "defer_subclause_opt ::=",
 /*  73 */ "onconf ::=",
 /*  74 */ "onconf ::= ON CONFLICT resolvetype",
 /*  75 */ "orconf ::=",
 /*  76 */ "orconf ::= OR resolvetype",
 /*  77 */ "resolvetype ::= IGNORE",
 /*  78 */ "resolvetype ::= REPLACE",
 /*  79 */ "cmd ::= DROP TABLE ifexists fullname",
 /*  80 */ "ifexists ::= IF EXISTS",
 /*  81 */ "ifexists ::=",
 /*  82 */ "cmd ::= createkw temp VIEW ifnotexists nm dbnm eidlist_opt AS select",
 /*  83 */ "cmd ::= DROP VIEW ifexists fullname",
 /*  84 */ "cmd ::= select",
 /*  85 */ "select ::= WITH wqlist selectnowith",
 /*  86 */ "select ::= WITH RECURSIVE wqlist selectnowith",
 /*  87 */ "select ::= selectnowith",
 /*  88 */ "selectnowith ::= selectnowith multiselect_op oneselect",
 /*  89 */ "multiselect_op ::= UNION",
 /*  90 */ "multiselect_op ::= UNION ALL",
 /*  91 */ "multiselect_op ::= EXCEPT|INTERSECT",
 /*  92 */ "oneselect ::= SELECT distinct selcollist from where_opt groupby_opt having_opt orderby_opt limit_opt",
 /*  93 */ "oneselect ::= SELECT distinct selcollist from where_opt groupby_opt having_opt window_clause orderby_opt limit_opt",
 /*  94 */ "values ::= VALUES LP nexprlist RP",
 /*  95 */ "values ::= values COMMA LP nexprlist RP",
 /*  96 */ "distinct ::= DISTINCT",
 /*  97 */ "distinct ::= ALL",
 /*  98 */ "distinct ::=",
 /*  99 */ "sclp ::=",
 /* 100 */ "selcollist ::= sclp scanpt expr scanpt as",
 /* 101 */ "selcollist ::= sclp scanpt STAR",
 /* 102 */ "selcollist ::= sclp scanpt nm DOT STAR",
 /* 103 */ "as ::= AS nm",
 /* 104 */ "as ::=",
 /* 105 */ "from ::=",
 /* 106 */ "from ::= FROM seltablist",
 /* 107 */ "stl_prefix ::= seltablist joinop",
 /* 108 */ "stl_prefix ::=",
 /* 109 */ "seltablist ::= stl_prefix nm dbnm as on_using",
 /* 110 */ "seltablist ::= stl_prefix nm dbnm as indexed_by on_using",
 /* 111 */ "seltablist ::= stl_prefix nm dbnm LP exprlist RP as on_using",
 /* 112 */ "seltablist ::= stl_prefix LP select RP as on_using",
 /* 113 */ "seltablist ::= stl_prefix LP seltablist RP as on_using",
 /* 114 */ "dbnm ::=",
 /* 115 */ "dbnm ::= DOT nm",
 /* 116 */ "fullname ::= nm",
 /* 117 */ "fullname ::= nm DOT nm",
 /* 118 */ "xfullname ::= nm",
 /* 119 */ "xfullname ::= nm DOT nm",
 /* 120 */ "xfullname ::= nm DOT nm AS nm",
 /* 121 */ "xfullname ::= nm AS nm",
 /* 122 */ "joinop ::= COMMA|JOIN",
 /* 123 */ "joinop ::= JOIN_KW JOIN",
 /* 124 */ "joinop ::= JOIN_KW nm JOIN",
 /* 125 */ "joinop ::= JOIN_KW nm nm JOIN",
 /* 126 */ "on_using ::= ON expr",
 /* 127 */ "on_using ::= USING LP idlist RP",
 /* 128 */ "on_using ::=",
 /* 129 */ "indexed_opt ::=",
 /* 130 */ "indexed_by ::= INDEXED BY nm",
 /* 131 */ "indexed_by ::= NOT INDEXED",
 /* 132 */ "orderby_opt ::=",
 /* 133 */ "orderby_opt ::= ORDER BY sortlist",
 /* 134 */ "sortlist ::= sortlist COMMA expr sortorder nulls",
 /* 135 */ "sortlist ::= expr sortorder nulls",
 /* 136 */ "sortorder ::= ASC",
 /* 137 */ "sortorder ::= DESC",
 /* 138 */ "sortorder ::=",
 /* 139 */ "nulls ::= NULLS FIRST",
 /* 140 */ "nulls ::= NULLS LAST",
 /* 141 */ "nulls ::=",
 /* 142 */ "groupby_opt ::=",
 /* 143 */ "groupby_opt ::= GROUP BY nexprlist",
 /* 144 */ "having_opt ::=",
 /* 145 */ "having_opt ::= HAVING expr",
 /* 146 */ "limit_opt ::=",
 /* 147 */ "limit_opt ::= LIMIT expr",
 /* 148 */ "limit_opt ::= LIMIT expr OFFSET expr",
 /* 149 */ "limit_opt ::= LIMIT expr COMMA expr",
 /* 150 */ "cmd ::= with DELETE FROM xfullname indexed_opt where_opt_ret",
 /* 151 */ "where_opt ::=",
 /* 152 */ "where_opt ::= WHERE expr",
 /* 153 */ "where_opt_ret ::=",
 /* 154 */ "where_opt_ret ::= WHERE expr",
 /* 155 */ "where_opt_ret ::= RETURNING selcollist",
 /* 156 */ "where_opt_ret ::= WHERE expr RETURNING selcollist",
 /* 157 */ "cmd ::= with UPDATE orconf xfullname indexed_opt SET setlist from where_opt_ret",
 /* 158 */ "setlist ::= setlist COMMA nm EQ expr",
 /* 159 */ "setlist ::= setlist COMMA LP idlist RP EQ expr",
 /* 160 */ "setlist ::= nm EQ expr",
 /* 161 */ "setlist ::= LP idlist RP EQ expr",
 /* 162 */ "cmd ::= with insert_cmd INTO xfullname idlist_opt select upsert",
 /* 163 */ "cmd ::= with insert_cmd INTO xfullname idlist_opt DEFAULT VALUES returning",
 /* 164 */ "upsert ::=",
 /* 165 */ "upsert ::= RETURNING selcollist",
 /* 166 */ "upsert ::= ON CONFLICT LP sortlist RP where_opt DO UPDATE SET setlist where_opt upsert",
 /* 167 */ "upsert ::= ON CONFLICT LP sortlist RP where_opt DO NOTHING upsert",
 /* 168 */ "upsert ::= ON CONFLICT DO NOTHING returning",
 /* 169 */ "upsert ::= ON CONFLICT DO UPDATE SET setlist where_opt returning",
 /* 170 */ "returning ::= RETURNING selcollist",
 /* 171 */ "insert_cmd ::= INSERT orconf",
 /* 172 */ "insert_cmd ::= REPLACE",
 /* 173 */ "idlist_opt ::=",
 /* 174 */ "idlist_opt ::= LP idlist RP",
 /* 175 */ "idlist ::= idlist COMMA nm",
 /* 176 */ "idlist ::= nm",
 /* 177 */ "expr ::= LP expr RP",
 /* 178 */ "expr ::= ID|INDEXED|JOIN_KW",
 /* 179 */ "expr ::= nm DOT nm",
 /* 180 */ "expr ::= nm DOT nm DOT nm",
 /* 181 */ "term ::= NULL|FLOAT|BLOB",
 /* 182 */ "term ::= STRING",
 /* 183 */ "term ::= INTEGER",
 /* 184 */ "expr ::= VARIABLE",
 /* 185 */ "expr ::= expr COLLATE ID|STRING",
 /* 186 */ "expr ::= CAST LP expr AS typetoken RP",
 /* 187 */ "expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist RP",
 /* 188 */ "expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist ORDER BY sortlist RP",
 /* 189 */ "expr ::= ID|INDEXED|JOIN_KW LP STAR RP",
 /* 190 */ "expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist RP filter_over",
 /* 191 */ "expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist ORDER BY sortlist RP filter_over",
 /* 192 */ "expr ::= ID|INDEXED|JOIN_KW LP STAR RP filter_over",
 /* 193 */ "term ::= CTIME_KW",
 /* 194 */ "expr ::= LP nexprlist COMMA expr RP",
 /* 195 */ "expr ::= expr AND expr",
 /* 196 */ "expr ::= expr OR expr",
 /* 197 */ "expr ::= expr LT|GT|GE|LE expr",
 /* 198 */ "expr ::= expr EQ|NE expr",
 /* 199 */ "expr ::= expr BITAND|BITOR|LSHIFT|RSHIFT expr",
 /* 200 */ "expr ::= expr PLUS|MINUS expr",
 /* 201 */ "expr ::= expr STAR|SLASH|REM expr",
 /* 202 */ "expr ::= expr CONCAT expr",
 /* 203 */ "likeop ::= NOT LIKE_KW|MATCH",
 /* 204 */ "expr ::= expr likeop expr",
 /* 205 */ "expr ::= expr likeop expr ESCAPE expr",
 /* 206 */ "expr ::= expr ISNULL|NOTNULL",
 /* 207 */ "expr ::= expr NOT NULL",
 /* 208 */ "expr ::= expr IS expr",
 /* 209 */ "expr ::= expr IS NOT expr",
 /* 210 */ "expr ::= expr IS NOT DISTINCT FROM expr",
 /* 211 */ "expr ::= expr IS DISTINCT FROM expr",
 /* 212 */ "expr ::= NOT expr",
 /* 213 */ "expr ::= BITNOT expr",
 /* 214 */ "expr ::= PLUS|MINUS expr",
 /* 215 */ "expr ::= expr PTR expr",
 /* 216 */ "between_op ::= BETWEEN",
 /* 217 */ "between_op ::= NOT BETWEEN",
 /* 218 */ "expr ::= expr between_op expr AND expr",
 /* 219 */ "in_op ::= IN",
 /* 220 */ "in_op ::= NOT IN",
 /* 221 */ "expr ::= expr in_op LP exprlist RP",
 /* 222 */ "expr ::= LP select RP",
 /* 223 */ "expr ::= expr in_op LP select RP",
 /* 224 */ "expr ::= expr in_op nm dbnm paren_exprlist",
 /* 225 */ "expr ::= EXISTS LP select RP",
 /* 226 */ "expr ::= CASE case_operand case_exprlist case_else END",
 /* 227 */ "case_exprlist ::= case_exprlist WHEN expr THEN expr",
 /* 228 */ "case_exprlist ::= WHEN expr THEN expr",
 /* 229 */ "case_else ::= ELSE expr",
 /* 230 */ "case_else ::=",
 /* 231 */ "case_operand ::=",
 /* 232 */ "exprlist ::=",
 /* 233 */ "nexprlist ::= nexprlist COMMA expr",
 /* 234 */ "nexprlist ::= expr",
 /* 235 */ "paren_exprlist ::=",
 /* 236 */ "paren_exprlist ::= LP exprlist RP",
 /* 237 */ "cmd ::= createkw uniqueflag INDEX ifnotexists nm dbnm ON nm LP sortlist RP where_opt",
 /* 238 */ "uniqueflag ::= UNIQUE",
 /* 239 */ "uniqueflag ::=",
 /* 240 */ "eidlist_opt ::=",
 /* 241 */ "eidlist_opt ::= LP eidlist RP",
 /* 242 */ "eidlist ::= eidlist COMMA nm collate sortorder",
 /* 243 */ "eidlist ::= nm collate sortorder",
 /* 244 */ "collate ::=",
 /* 245 */ "collate ::= COLLATE ID|STRING",
 /* 246 */ "cmd ::= DROP INDEX ifexists fullname",
 /* 247 */ "cmd ::= VACUUM vinto",
 /* 248 */ "cmd ::= VACUUM nm vinto",
 /* 249 */ "vinto ::= INTO expr",
 /* 250 */ "vinto ::=",
 /* 251 */ "cmd ::= PRAGMA nm dbnm",
 /* 252 */ "cmd ::= PRAGMA nm dbnm EQ nmnum",
 /* 253 */ "cmd ::= PRAGMA nm dbnm LP nmnum RP",
 /* 254 */ "cmd ::= PRAGMA nm dbnm EQ minus_num",
 /* 255 */ "cmd ::= PRAGMA nm dbnm LP minus_num RP",
 /* 256 */ "plus_num ::= PLUS INTEGER|FLOAT",
 /* 257 */ "minus_num ::= MINUS INTEGER|FLOAT",
 /* 258 */ "cmd ::= createkw trigger_decl BEGIN trigger_cmd_list END",
 /* 259 */ "trigger_decl ::= temp TRIGGER ifnotexists nm dbnm trigger_time trigger_event ON fullname foreach_clause when_clause",
 /* 260 */ "trigger_time ::= BEFORE|AFTER",
 /* 261 */ "trigger_time ::= INSTEAD OF",
 /* 262 */ "trigger_time ::=",
 /* 263 */ "trigger_event ::= DELETE|INSERT",
 /* 264 */ "trigger_event ::= UPDATE",
 /* 265 */ "trigger_event ::= UPDATE OF idlist",
 /* 266 */ "when_clause ::=",
 /* 267 */ "when_clause ::= WHEN expr",
 /* 268 */ "trigger_cmd_list ::= trigger_cmd_list trigger_cmd SEMI",
 /* 269 */ "trigger_cmd_list ::= trigger_cmd SEMI",
 /* 270 */ "trnm ::= nm DOT nm",
 /* 271 */ "tridxby ::= INDEXED BY nm",
 /* 272 */ "tridxby ::= NOT INDEXED",
 /* 273 */ "trigger_cmd ::= UPDATE orconf trnm tridxby SET setlist from where_opt scanpt",
 /* 274 */ "trigger_cmd ::= scanpt insert_cmd INTO trnm idlist_opt select upsert scanpt",
 /* 275 */ "trigger_cmd ::= DELETE FROM trnm tridxby where_opt scanpt",
 /* 276 */ "trigger_cmd ::= scanpt select scanpt",
 /* 277 */ "expr ::= RAISE LP IGNORE RP",
 /* 278 */ "expr ::= RAISE LP raisetype COMMA nm RP",
 /* 279 */ "raisetype ::= ROLLBACK",
 /* 280 */ "raisetype ::= ABORT",
 /* 281 */ "raisetype ::= FAIL",
 /* 282 */ "cmd ::= DROP TRIGGER ifexists fullname",
 /* 283 */ "cmd ::= ATTACH database_kw_opt expr AS expr key_opt",
 /* 284 */ "cmd ::= DETACH database_kw_opt expr",
 /* 285 */ "key_opt ::=",
 /* 286 */ "key_opt ::= KEY expr",
 /* 287 */ "cmd ::= REINDEX",
 /* 288 */ "cmd ::= REINDEX nm dbnm",
 /* 289 */ "cmd ::= ANALYZE",
 /* 290 */ "cmd ::= ANALYZE nm dbnm",
 /* 291 */ "cmd ::= ALTER TABLE fullname RENAME TO nm",
 /* 292 */ "cmd ::= ALTER TABLE add_column_fullname ADD kwcolumn_opt columnname carglist",
 /* 293 */ "cmd ::= ALTER TABLE fullname DROP kwcolumn_opt nm",
 /* 294 */ "add_column_fullname ::= fullname",
 /* 295 */ "cmd ::= ALTER TABLE fullname RENAME kwcolumn_opt nm TO nm",
 /* 296 */ "cmd ::= create_vtab",
 /* 297 */ "cmd ::= create_vtab LP vtabarglist RP",
 /* 298 */ "create_vtab ::= createkw VIRTUAL TABLE ifnotexists nm dbnm USING nm",
 /* 299 */ "vtabarg ::=",
 /* 300 */ "vtabargtoken ::= ANY",
 /* 301 */ "vtabargtoken ::= lp anylist RP",
 /* 302 */ "lp ::= LP",
 /* 303 */ "with ::= WITH wqlist",
 /* 304 */ "with ::= WITH RECURSIVE wqlist",
 /* 305 */ "wqas ::= AS",
 /* 306 */ "wqas ::= AS MATERIALIZED",
 /* 307 */ "wqas ::= AS NOT MATERIALIZED",
 /* 308 */ "wqitem ::= nm eidlist_opt wqas LP select RP",
 /* 309 */ "wqlist ::= wqitem",
 /* 310 */ "wqlist ::= wqlist COMMA wqitem",
 /* 311 */ "windowdefn_list ::= windowdefn_list COMMA windowdefn",
 /* 312 */ "windowdefn ::= nm AS LP window RP",
 /* 313 */ "window ::= PARTITION BY nexprlist orderby_opt frame_opt",
 /* 314 */ "window ::= nm PARTITION BY nexprlist orderby_opt frame_opt",
 /* 315 */ "window ::= ORDER BY sortlist frame_opt",
 /* 316 */ "window ::= nm ORDER BY sortlist frame_opt",
 /* 317 */ "window ::= nm frame_opt",
 /* 318 */ "frame_opt ::=",
 /* 319 */ "frame_opt ::= range_or_rows frame_bound_s frame_exclude_opt",
 /* 320 */ "frame_opt ::= range_or_rows BETWEEN frame_bound_s AND frame_bound_e frame_exclude_opt",
 /* 321 */ "range_or_rows ::= RANGE|ROWS|GROUPS",
 /* 322 */ "frame_bound_s ::= frame_bound",
 /* 323 */ "frame_bound_s ::= UNBOUNDED PRECEDING",
 /* 324 */ "frame_bound_e ::= frame_bound",
 /* 325 */ "frame_bound_e ::= UNBOUNDED FOLLOWING",
 /* 326 */ "frame_bound ::= expr PRECEDING|FOLLOWING",
 /* 327 */ "frame_bound ::= CURRENT ROW",
 /* 328 */ "frame_exclude_opt ::=",
 /* 329 */ "frame_exclude_opt ::= EXCLUDE frame_exclude",
 /* 330 */ "frame_exclude ::= NO OTHERS",
 /* 331 */ "frame_exclude ::= CURRENT ROW",
 /* 332 */ "frame_exclude ::= GROUP|TIES",
 /* 333 */ "window_clause ::= WINDOW windowdefn_list",
 /* 334 */ "filter_over ::= filter_clause over_clause",
 /* 335 */ "filter_over ::= over_clause",
 /* 336 */ "filter_over ::= filter_clause",
 /* 337 */ "over_clause ::= OVER LP window RP",
 /* 338 */ "over_clause ::= OVER nm",
 /* 339 */ "filter_clause ::= FILTER LP WHERE expr RP",
 /* 340 */ "input ::= cmdlist",
 /* 341 */ "cmdlist ::= cmdlist ecmd",
 /* 342 */ "cmdlist ::= ecmd",
 /* 343 */ "ecmd ::= SEMI",
 /* 344 */ "ecmd ::= cmdx SEMI",
 /* 345 */ "ecmd ::= explain cmdx SEMI",
 /* 346 */ "trans_opt ::=",
 /* 347 */ "trans_opt ::= TRANSACTION",
 /* 348 */ "trans_opt ::= TRANSACTION nm",
 /* 349 */ "savepoint_opt ::= SAVEPOINT",
 /* 350 */ "savepoint_opt ::=",
 /* 351 */ "cmd ::= create_table create_table_args",
 /* 352 */ "table_option_set ::= table_option",
 /* 353 */ "columnlist ::= columnlist COMMA columnname carglist",
 /* 354 */ "columnlist ::= columnname carglist",
 /* 355 */ "nm ::= ID|INDEXED|JOIN_KW",
 /* 356 */ "nm ::= STRING",
 /* 357 */ "typetoken ::= typename",
 /* 358 */ "typename ::= ID|STRING",
 /* 359 */ "signed ::= plus_num",
 /* 360 */ "signed ::= minus_num",
 /* 361 */ "carglist ::= carglist ccons",
 /* 362 */ "carglist ::=",
 /* 363 */ "ccons ::= NULL onconf",
 /* 364 */ "ccons ::= GENERATED ALWAYS AS generated",
 /* 365 */ "ccons ::= AS generated",
 /* 366 */ "conslist_opt ::= COMMA conslist",
 /* 367 */ "conslist ::= conslist tconscomma tcons",
 /* 368 */ "conslist ::= tcons",
 /* 369 */ "tconscomma ::=",
 /* 370 */ "defer_subclause_opt ::= defer_subclause",
 /* 371 */ "resolvetype ::= raisetype",
 /* 372 */ "selectnowith ::= oneselect",
 /* 373 */ "oneselect ::= values",
 /* 374 */ "sclp ::= selcollist COMMA",
 /* 375 */ "as ::= ID|STRING",
 /* 376 */ "indexed_opt ::= indexed_by",
 /* 377 */ "returning ::=",
 /* 378 */ "expr ::= term",
 /* 379 */ "likeop ::= LIKE_KW|MATCH",
 /* 380 */ "case_operand ::= expr",
 /* 381 */ "exprlist ::= nexprlist",
 /* 382 */ "nmnum ::= plus_num",
 /* 383 */ "nmnum ::= nm",
 /* 384 */ "nmnum ::= ON",
 /* 385 */ "nmnum ::= DELETE",
 /* 386 */ "nmnum ::= DEFAULT",
 /* 387 */ "plus_num ::= INTEGER|FLOAT",
 /* 388 */ "foreach_clause ::=",
 /* 389 */ "foreach_clause ::= FOR EACH ROW",
 /* 390 */ "trnm ::= nm",
 /* 391 */ "tridxby ::=",
 /* 392 */ "database_kw_opt ::= DATABASE",
 /* 393 */ "database_kw_opt ::=",
 /* 394 */ "kwcolumn_opt ::=",
 /* 395 */ "kwcolumn_opt ::= COLUMNKW",
 /* 396 */ "vtabarglist ::= vtabarg",
 /* 397 */ "vtabarglist ::= vtabarglist COMMA vtabarg",
 /* 398 */ "vtabarg ::= vtabarg vtabargtoken",
 /* 399 */ "anylist ::=",
 /* 400 */ "anylist ::= anylist LP anylist RP",
 /* 401 */ "anylist ::= anylist ANY",
 /* 402 */ "with ::=",
 /* 403 */ "windowdefn_list ::= windowdefn",
 /* 404 */ "window ::= frame_opt",
};
#endif /* NDEBUG */


#if YYSTACKDEPTH<=0
/*
** Try to increase the size of the parser stack.  Return the number
** of errors.  Return 0 on success.
*/
static int yyGrowStack(yyParser *p){
  int newSize;
  int idx;
  yyStackEntry *pNew;

  newSize = p->yystksz*2 + 100;
  idx = p->yytos ? (int)(p->yytos - p->yystack) : 0;
  if( p->yystack==&p->yystk0 ){
    pNew = malloc(newSize*sizeof(pNew[0]));
    if( pNew ) pNew[0] = p->yystk0;
  }else{
    pNew = realloc(p->yystack, newSize*sizeof(pNew[0]));
  }
  if( pNew ){
    p->yystack = pNew;
    p->yytos = &p->yystack[idx];
#ifndef NDEBUG
    if( yyTraceFILE ){
      fprintf(yyTraceFILE,"%sStack grows from %d to %d entries.\n",
              yyTracePrompt, p->yystksz, newSize);
    }
#endif
    p->yystksz = newSize;
  }
  return pNew==0; 
}
#endif

/* Datatype of the argument to the memory allocated passed as the
** second argument to PerfettoSqlParserAlloc() below.  This can be changed by
** putting an appropriate #define in the %include section of the input
** grammar.
*/
#ifndef YYMALLOCARGTYPE
# define YYMALLOCARGTYPE size_t
#endif

/* Initialize a new parser that has already been allocated.
*/
void PerfettoSqlParserInit(void *yypRawParser PerfettoSqlParserCTX_PDECL){
  yyParser *yypParser = (yyParser*)yypRawParser;
  PerfettoSqlParserCTX_STORE
#ifdef YYTRACKMAXSTACKDEPTH
  yypParser->yyhwm = 0;
#endif
#if YYSTACKDEPTH<=0
  yypParser->yytos = NULL;
  yypParser->yystack = NULL;
  yypParser->yystksz = 0;
  if( yyGrowStack(yypParser) ){
    yypParser->yystack = &yypParser->yystk0;
    yypParser->yystksz = 1;
  }
#endif
#ifndef YYNOERRORRECOVERY
  yypParser->yyerrcnt = -1;
#endif
  yypParser->yytos = yypParser->yystack;
  yypParser->yystack[0].stateno = 0;
  yypParser->yystack[0].major = 0;
#if YYSTACKDEPTH>0
  yypParser->yystackEnd = &yypParser->yystack[YYSTACKDEPTH-1];
#endif
}

#ifndef PerfettoSqlParser_ENGINEALWAYSONSTACK
/* 
** This function allocates a new parser.
** The only argument is a pointer to a function which works like
** malloc.
**
** Inputs:
** A pointer to the function used to allocate memory.
**
** Outputs:
** A pointer to a parser.  This pointer is used in subsequent calls
** to PerfettoSqlParser and PerfettoSqlParserFree.
*/
void *PerfettoSqlParserAlloc(void *(*mallocProc)(YYMALLOCARGTYPE) PerfettoSqlParserCTX_PDECL){
  yyParser *yypParser;
  yypParser = (yyParser*)(*mallocProc)( (YYMALLOCARGTYPE)sizeof(yyParser) );
  if( yypParser ){
    PerfettoSqlParserCTX_STORE
    PerfettoSqlParserInit(yypParser PerfettoSqlParserCTX_PARAM);
  }
  return (void*)yypParser;
}
#endif /* PerfettoSqlParser_ENGINEALWAYSONSTACK */


/* The following function deletes the "minor type" or semantic value
** associated with a symbol.  The symbol can be either a terminal
** or nonterminal. "yymajor" is the symbol code, and "yypminor" is
** a pointer to the value to be deleted.  The code used to do the 
** deletions is derived from the %destructor and/or %token_destructor
** directives of the input grammar.
*/
static void yy_destructor(
  yyParser *yypParser,    /* The parser */
  YYCODETYPE yymajor,     /* Type code for object to destroy */
  YYMINORTYPE *yypminor   /* The object to be destroyed */
){
  PerfettoSqlParserARG_FETCH
  PerfettoSqlParserCTX_FETCH
  switch( yymajor ){
    /* Here is inserted the actions which take place when a
    ** terminal or non-terminal is destroyed.  This can happen
    ** when the symbol is popped from the stack during a
    ** reduce or during error processing or when a parser is 
    ** being destroyed before it is finished parsing.
    **
    ** Note: during a reduce, the only symbols destroyed are those
    ** which appear on the RHS of the rule, but which are *not* used
    ** inside the C code.
    */
/********* Begin destructor definitions ***************************************/
/********* End destructor definitions *****************************************/
    default:  break;   /* If no destructor action specified: do nothing */
  }
}

/*
** Pop the parser's stack once.
**
** If there is a destructor routine associated with the token which
** is popped from the stack, then call it.
*/
static void yy_pop_parser_stack(yyParser *pParser){
  yyStackEntry *yytos;
  assert( pParser->yytos!=0 );
  assert( pParser->yytos > pParser->yystack );
  yytos = pParser->yytos--;
#ifndef NDEBUG
  if( yyTraceFILE ){
    fprintf(yyTraceFILE,"%sPopping %s\n",
      yyTracePrompt,
      yyTokenName[yytos->major]);
  }
#endif
  yy_destructor(pParser, yytos->major, &yytos->minor);
}

/*
** Clear all secondary memory allocations from the parser
*/
void PerfettoSqlParserFinalize(void *p){
  yyParser *pParser = (yyParser*)p;
  while( pParser->yytos>pParser->yystack ) yy_pop_parser_stack(pParser);
#if YYSTACKDEPTH<=0
  if( pParser->yystack!=&pParser->yystk0 ) free(pParser->yystack);
#endif
}

#ifndef PerfettoSqlParser_ENGINEALWAYSONSTACK
/* 
** Deallocate and destroy a parser.  Destructors are called for
** all stack elements before shutting the parser down.
**
** If the YYPARSEFREENEVERNULL macro exists (for example because it
** is defined in a %include section of the input grammar) then it is
** assumed that the input pointer is never NULL.
*/
void PerfettoSqlParserFree(
  void *p,                    /* The parser to be deleted */
  void (*freeProc)(void*)     /* Function used to reclaim memory */
){
#ifndef YYPARSEFREENEVERNULL
  if( p==0 ) return;
#endif
  PerfettoSqlParserFinalize(p);
  (*freeProc)(p);
}
#endif /* PerfettoSqlParser_ENGINEALWAYSONSTACK */

/*
** Return the peak depth of the stack for a parser.
*/
#ifdef YYTRACKMAXSTACKDEPTH
int PerfettoSqlParserStackPeak(void *p){
  yyParser *pParser = (yyParser*)p;
  return pParser->yyhwm;
}
#endif

/* This array of booleans keeps track of the parser statement
** coverage.  The element yycoverage[X][Y] is set when the parser
** is in state X and has a lookahead token Y.  In a well-tested
** systems, every element of this matrix should end up being set.
*/
#if defined(YYCOVERAGE)
static unsigned char yycoverage[YYNSTATE][YYNTOKEN];
#endif

/*
** Write into out a description of every state/lookahead combination that
**
**   (1)  has not been used by the parser, and
**   (2)  is not a syntax error.
**
** Return the number of missed state/lookahead combinations.
*/
#if defined(YYCOVERAGE)
int PerfettoSqlParserCoverage(FILE *out){
  int stateno, iLookAhead, i;
  int nMissed = 0;
  for(stateno=0; stateno<YYNSTATE; stateno++){
    i = yy_shift_ofst[stateno];
    for(iLookAhead=0; iLookAhead<YYNTOKEN; iLookAhead++){
      if( yy_lookahead[i+iLookAhead]!=iLookAhead ) continue;
      if( yycoverage[stateno][iLookAhead]==0 ) nMissed++;
      if( out ){
        fprintf(out,"State %d lookahead %s %s\n", stateno,
                yyTokenName[iLookAhead],
                yycoverage[stateno][iLookAhead] ? "ok" : "missed");
      }
    }
  }
  return nMissed;
}
#endif

/*
** Find the appropriate action for a parser given the terminal
** look-ahead token iLookAhead.
*/
static YYACTIONTYPE yy_find_shift_action(
  YYCODETYPE iLookAhead,    /* The look-ahead token */
  YYACTIONTYPE stateno      /* Current state number */
){
  int i;

  if( stateno>YY_MAX_SHIFT ) return stateno;
  assert( stateno <= YY_SHIFT_COUNT );
#if defined(YYCOVERAGE)
  yycoverage[stateno][iLookAhead] = 1;
#endif
  do{
    i = yy_shift_ofst[stateno];
    assert( i>=0 );
    assert( i<=YY_ACTTAB_COUNT );
    assert( i+YYNTOKEN<=(int)YY_NLOOKAHEAD );
    assert( iLookAhead!=YYNOCODE );
    assert( iLookAhead < YYNTOKEN );
    i += iLookAhead;
    assert( i<(int)YY_NLOOKAHEAD );
    if( yy_lookahead[i]!=iLookAhead ){
#ifdef YYFALLBACK
      YYCODETYPE iFallback;            /* Fallback token */
      assert( iLookAhead<sizeof(yyFallback)/sizeof(yyFallback[0]) );
      iFallback = yyFallback[iLookAhead];
      if( iFallback!=0 ){
#ifndef NDEBUG
        if( yyTraceFILE ){
          fprintf(yyTraceFILE, "%sFALLBACK %s => %s\n",
             yyTracePrompt, yyTokenName[iLookAhead], yyTokenName[iFallback]);
        }
#endif
        assert( yyFallback[iFallback]==0 ); /* Fallback loop must terminate */
        iLookAhead = iFallback;
        continue;
      }
#endif
#ifdef YYWILDCARD
      {
        int j = i - iLookAhead + YYWILDCARD;
        assert( j<(int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0])) );
        if( yy_lookahead[j]==YYWILDCARD && iLookAhead>0 ){
#ifndef NDEBUG
          if( yyTraceFILE ){
            fprintf(yyTraceFILE, "%sWILDCARD %s => %s\n",
               yyTracePrompt, yyTokenName[iLookAhead],
               yyTokenName[YYWILDCARD]);
          }
#endif /* NDEBUG */
          return yy_action[j];
        }
      }
#endif /* YYWILDCARD */
      return yy_default[stateno];
    }else{
      assert( i>=0 && i<(int)(sizeof(yy_action)/sizeof(yy_action[0])) );
      return yy_action[i];
    }
  }while(1);
}

/*
** Find the appropriate action for a parser given the non-terminal
** look-ahead token iLookAhead.
*/
static YYACTIONTYPE yy_find_reduce_action(
  YYACTIONTYPE stateno,     /* Current state number */
  YYCODETYPE iLookAhead     /* The look-ahead token */
){
  int i;
#ifdef YYERRORSYMBOL
  if( stateno>YY_REDUCE_COUNT ){
    return yy_default[stateno];
  }
#else
  assert( stateno<=YY_REDUCE_COUNT );
#endif
  i = yy_reduce_ofst[stateno];
  assert( iLookAhead!=YYNOCODE );
  i += iLookAhead;
#ifdef YYERRORSYMBOL
  if( i<0 || i>=YY_ACTTAB_COUNT || yy_lookahead[i]!=iLookAhead ){
    return yy_default[stateno];
  }
#else
  assert( i>=0 && i<YY_ACTTAB_COUNT );
  assert( yy_lookahead[i]==iLookAhead );
#endif
  return yy_action[i];
}

/*
** The following routine is called if the stack overflows.
*/
static void yyStackOverflow(yyParser *yypParser){
   PerfettoSqlParserARG_FETCH
   PerfettoSqlParserCTX_FETCH
#ifndef NDEBUG
   if( yyTraceFILE ){
     fprintf(yyTraceFILE,"%sStack Overflow!\n",yyTracePrompt);
   }
#endif
   while( yypParser->yytos>yypParser->yystack ) yy_pop_parser_stack(yypParser);
   /* Here code is inserted which will execute if the parser
   ** stack every overflows */
/******** Begin %stack_overflow code ******************************************/
/******** End %stack_overflow code ********************************************/
   PerfettoSqlParserARG_STORE /* Suppress warning about unused %extra_argument var */
   PerfettoSqlParserCTX_STORE
}

/*
** Print tracing information for a SHIFT action
*/
#ifndef NDEBUG
static void yyTraceShift(yyParser *yypParser, int yyNewState, const char *zTag){
  if( yyTraceFILE ){
    if( yyNewState<YYNSTATE ){
      fprintf(yyTraceFILE,"%s%s '%s', go to state %d\n",
         yyTracePrompt, zTag, yyTokenName[yypParser->yytos->major],
         yyNewState);
    }else{
      fprintf(yyTraceFILE,"%s%s '%s', pending reduce %d\n",
         yyTracePrompt, zTag, yyTokenName[yypParser->yytos->major],
         yyNewState - YY_MIN_REDUCE);
    }
  }
}
#else
# define yyTraceShift(X,Y,Z)
#endif

/*
** Perform a shift action.
*/
static void yy_shift(
  yyParser *yypParser,          /* The parser to be shifted */
  YYACTIONTYPE yyNewState,      /* The new state to shift in */
  YYCODETYPE yyMajor,           /* The major token to shift in */
  PerfettoSqlParserTOKENTYPE yyMinor        /* The minor token to shift in */
){
  yyStackEntry *yytos;
  yypParser->yytos++;
#ifdef YYTRACKMAXSTACKDEPTH
  if( (int)(yypParser->yytos - yypParser->yystack)>yypParser->yyhwm ){
    yypParser->yyhwm++;
    assert( yypParser->yyhwm == (int)(yypParser->yytos - yypParser->yystack) );
  }
#endif
#if YYSTACKDEPTH>0 
  if( yypParser->yytos>yypParser->yystackEnd ){
    yypParser->yytos--;
    yyStackOverflow(yypParser);
    return;
  }
#else
  if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz] ){
    if( yyGrowStack(yypParser) ){
      yypParser->yytos--;
      yyStackOverflow(yypParser);
      return;
    }
  }
#endif
  if( yyNewState > YY_MAX_SHIFT ){
    yyNewState += YY_MIN_REDUCE - YY_MIN_SHIFTREDUCE;
  }
  yytos = yypParser->yytos;
  yytos->stateno = yyNewState;
  yytos->major = yyMajor;
  yytos->minor.yy0 = yyMinor;
  yyTraceShift(yypParser, yyNewState, "Shift");
}

/* For rule J, yyRuleInfoLhs[J] contains the symbol on the left-hand side
** of that rule */
static const YYCODETYPE yyRuleInfoLhs[] = {
   176,  /* (0) explain ::= EXPLAIN */
   176,  /* (1) explain ::= EXPLAIN QUERY PLAN */
   177,  /* (2) cmdx ::= cmd */
   178,  /* (3) cmd ::= BEGIN transtype trans_opt */
   179,  /* (4) transtype ::= */
   179,  /* (5) transtype ::= DEFERRED */
   179,  /* (6) transtype ::= IMMEDIATE */
   179,  /* (7) transtype ::= EXCLUSIVE */
   178,  /* (8) cmd ::= COMMIT|END trans_opt */
   178,  /* (9) cmd ::= ROLLBACK trans_opt */
   178,  /* (10) cmd ::= SAVEPOINT nm */
   178,  /* (11) cmd ::= RELEASE savepoint_opt nm */
   178,  /* (12) cmd ::= ROLLBACK trans_opt TO savepoint_opt nm */
   183,  /* (13) create_table ::= createkw temp TABLE ifnotexists nm dbnm */
   184,  /* (14) createkw ::= CREATE */
   186,  /* (15) ifnotexists ::= */
   186,  /* (16) ifnotexists ::= IF NOT EXISTS */
   185,  /* (17) temp ::= TEMP */
   185,  /* (18) temp ::= */
   188,  /* (19) create_table_args ::= LP columnlist conslist_opt RP table_option_set */
   188,  /* (20) create_table_args ::= AS select */
   191,  /* (21) table_option_set ::= */
   191,  /* (22) table_option_set ::= table_option_set COMMA table_option */
   193,  /* (23) table_option ::= WITHOUT nm */
   193,  /* (24) table_option ::= nm */
   194,  /* (25) columnname ::= nm typetoken */
   195,  /* (26) typetoken ::= */
   195,  /* (27) typetoken ::= typename LP signed RP */
   195,  /* (28) typetoken ::= typename LP signed COMMA signed RP */
   196,  /* (29) typename ::= typename ID|STRING */
   198,  /* (30) scanpt ::= */
   199,  /* (31) scantok ::= */
   200,  /* (32) ccons ::= CONSTRAINT nm */
   200,  /* (33) ccons ::= DEFAULT scantok term */
   200,  /* (34) ccons ::= DEFAULT LP expr RP */
   200,  /* (35) ccons ::= DEFAULT PLUS scantok term */
   200,  /* (36) ccons ::= DEFAULT MINUS scantok term */
   200,  /* (37) ccons ::= DEFAULT scantok ID|INDEXED */
   200,  /* (38) ccons ::= NOT NULL onconf */
   200,  /* (39) ccons ::= PRIMARY KEY sortorder onconf autoinc */
   200,  /* (40) ccons ::= UNIQUE onconf */
   200,  /* (41) ccons ::= CHECK LP expr RP */
   200,  /* (42) ccons ::= REFERENCES nm eidlist_opt refargs */
   200,  /* (43) ccons ::= defer_subclause */
   200,  /* (44) ccons ::= COLLATE ID|STRING */
   209,  /* (45) generated ::= LP expr RP */
   209,  /* (46) generated ::= LP expr RP ID */
   205,  /* (47) autoinc ::= */
   205,  /* (48) autoinc ::= AUTOINCR */
   207,  /* (49) refargs ::= */
   207,  /* (50) refargs ::= refargs refarg */
   210,  /* (51) refarg ::= MATCH nm */
   210,  /* (52) refarg ::= ON INSERT refact */
   210,  /* (53) refarg ::= ON DELETE refact */
   210,  /* (54) refarg ::= ON UPDATE refact */
   211,  /* (55) refact ::= SET NULL */
   211,  /* (56) refact ::= SET DEFAULT */
   211,  /* (57) refact ::= CASCADE */
   211,  /* (58) refact ::= RESTRICT */
   211,  /* (59) refact ::= NO ACTION */
   208,  /* (60) defer_subclause ::= NOT DEFERRABLE init_deferred_pred_opt */
   208,  /* (61) defer_subclause ::= DEFERRABLE init_deferred_pred_opt */
   212,  /* (62) init_deferred_pred_opt ::= */
   212,  /* (63) init_deferred_pred_opt ::= INITIALLY DEFERRED */
   212,  /* (64) init_deferred_pred_opt ::= INITIALLY IMMEDIATE */
   190,  /* (65) conslist_opt ::= */
   213,  /* (66) tconscomma ::= COMMA */
   214,  /* (67) tcons ::= CONSTRAINT nm */
   214,  /* (68) tcons ::= PRIMARY KEY LP sortlist autoinc RP onconf */
   214,  /* (69) tcons ::= UNIQUE LP sortlist RP onconf */
   214,  /* (70) tcons ::= CHECK LP expr RP onconf */
   214,  /* (71) tcons ::= FOREIGN KEY LP eidlist RP REFERENCES nm eidlist_opt refargs defer_subclause_opt */
   217,  /* (72) defer_subclause_opt ::= */
   203,  /* (73) onconf ::= */
   203,  /* (74) onconf ::= ON CONFLICT resolvetype */
   219,  /* (75) orconf ::= */
   219,  /* (76) orconf ::= OR resolvetype */
   218,  /* (77) resolvetype ::= IGNORE */
   218,  /* (78) resolvetype ::= REPLACE */
   178,  /* (79) cmd ::= DROP TABLE ifexists fullname */
   220,  /* (80) ifexists ::= IF EXISTS */
   220,  /* (81) ifexists ::= */
   178,  /* (82) cmd ::= createkw temp VIEW ifnotexists nm dbnm eidlist_opt AS select */
   178,  /* (83) cmd ::= DROP VIEW ifexists fullname */
   178,  /* (84) cmd ::= select */
   192,  /* (85) select ::= WITH wqlist selectnowith */
   192,  /* (86) select ::= WITH RECURSIVE wqlist selectnowith */
   192,  /* (87) select ::= selectnowith */
   223,  /* (88) selectnowith ::= selectnowith multiselect_op oneselect */
   224,  /* (89) multiselect_op ::= UNION */
   224,  /* (90) multiselect_op ::= UNION ALL */
   224,  /* (91) multiselect_op ::= EXCEPT|INTERSECT */
   225,  /* (92) oneselect ::= SELECT distinct selcollist from where_opt groupby_opt having_opt orderby_opt limit_opt */
   225,  /* (93) oneselect ::= SELECT distinct selcollist from where_opt groupby_opt having_opt window_clause orderby_opt limit_opt */
   235,  /* (94) values ::= VALUES LP nexprlist RP */
   235,  /* (95) values ::= values COMMA LP nexprlist RP */
   226,  /* (96) distinct ::= DISTINCT */
   226,  /* (97) distinct ::= ALL */
   226,  /* (98) distinct ::= */
   237,  /* (99) sclp ::= */
   227,  /* (100) selcollist ::= sclp scanpt expr scanpt as */
   227,  /* (101) selcollist ::= sclp scanpt STAR */
   227,  /* (102) selcollist ::= sclp scanpt nm DOT STAR */
   238,  /* (103) as ::= AS nm */
   238,  /* (104) as ::= */
   228,  /* (105) from ::= */
   228,  /* (106) from ::= FROM seltablist */
   240,  /* (107) stl_prefix ::= seltablist joinop */
   240,  /* (108) stl_prefix ::= */
   239,  /* (109) seltablist ::= stl_prefix nm dbnm as on_using */
   239,  /* (110) seltablist ::= stl_prefix nm dbnm as indexed_by on_using */
   239,  /* (111) seltablist ::= stl_prefix nm dbnm LP exprlist RP as on_using */
   239,  /* (112) seltablist ::= stl_prefix LP select RP as on_using */
   239,  /* (113) seltablist ::= stl_prefix LP seltablist RP as on_using */
   187,  /* (114) dbnm ::= */
   187,  /* (115) dbnm ::= DOT nm */
   221,  /* (116) fullname ::= nm */
   221,  /* (117) fullname ::= nm DOT nm */
   245,  /* (118) xfullname ::= nm */
   245,  /* (119) xfullname ::= nm DOT nm */
   245,  /* (120) xfullname ::= nm DOT nm AS nm */
   245,  /* (121) xfullname ::= nm AS nm */
   241,  /* (122) joinop ::= COMMA|JOIN */
   241,  /* (123) joinop ::= JOIN_KW JOIN */
   241,  /* (124) joinop ::= JOIN_KW nm JOIN */
   241,  /* (125) joinop ::= JOIN_KW nm nm JOIN */
   242,  /* (126) on_using ::= ON expr */
   242,  /* (127) on_using ::= USING LP idlist RP */
   242,  /* (128) on_using ::= */
   247,  /* (129) indexed_opt ::= */
   243,  /* (130) indexed_by ::= INDEXED BY nm */
   243,  /* (131) indexed_by ::= NOT INDEXED */
   232,  /* (132) orderby_opt ::= */
   232,  /* (133) orderby_opt ::= ORDER BY sortlist */
   215,  /* (134) sortlist ::= sortlist COMMA expr sortorder nulls */
   215,  /* (135) sortlist ::= expr sortorder nulls */
   204,  /* (136) sortorder ::= ASC */
   204,  /* (137) sortorder ::= DESC */
   204,  /* (138) sortorder ::= */
   248,  /* (139) nulls ::= NULLS FIRST */
   248,  /* (140) nulls ::= NULLS LAST */
   248,  /* (141) nulls ::= */
   230,  /* (142) groupby_opt ::= */
   230,  /* (143) groupby_opt ::= GROUP BY nexprlist */
   231,  /* (144) having_opt ::= */
   231,  /* (145) having_opt ::= HAVING expr */
   233,  /* (146) limit_opt ::= */
   233,  /* (147) limit_opt ::= LIMIT expr */
   233,  /* (148) limit_opt ::= LIMIT expr OFFSET expr */
   233,  /* (149) limit_opt ::= LIMIT expr COMMA expr */
   178,  /* (150) cmd ::= with DELETE FROM xfullname indexed_opt where_opt_ret */
   229,  /* (151) where_opt ::= */
   229,  /* (152) where_opt ::= WHERE expr */
   250,  /* (153) where_opt_ret ::= */
   250,  /* (154) where_opt_ret ::= WHERE expr */
   250,  /* (155) where_opt_ret ::= RETURNING selcollist */
   250,  /* (156) where_opt_ret ::= WHERE expr RETURNING selcollist */
   178,  /* (157) cmd ::= with UPDATE orconf xfullname indexed_opt SET setlist from where_opt_ret */
   251,  /* (158) setlist ::= setlist COMMA nm EQ expr */
   251,  /* (159) setlist ::= setlist COMMA LP idlist RP EQ expr */
   251,  /* (160) setlist ::= nm EQ expr */
   251,  /* (161) setlist ::= LP idlist RP EQ expr */
   178,  /* (162) cmd ::= with insert_cmd INTO xfullname idlist_opt select upsert */
   178,  /* (163) cmd ::= with insert_cmd INTO xfullname idlist_opt DEFAULT VALUES returning */
   254,  /* (164) upsert ::= */
   254,  /* (165) upsert ::= RETURNING selcollist */
   254,  /* (166) upsert ::= ON CONFLICT LP sortlist RP where_opt DO UPDATE SET setlist where_opt upsert */
   254,  /* (167) upsert ::= ON CONFLICT LP sortlist RP where_opt DO NOTHING upsert */
   254,  /* (168) upsert ::= ON CONFLICT DO NOTHING returning */
   254,  /* (169) upsert ::= ON CONFLICT DO UPDATE SET setlist where_opt returning */
   255,  /* (170) returning ::= RETURNING selcollist */
   252,  /* (171) insert_cmd ::= INSERT orconf */
   252,  /* (172) insert_cmd ::= REPLACE */
   253,  /* (173) idlist_opt ::= */
   253,  /* (174) idlist_opt ::= LP idlist RP */
   246,  /* (175) idlist ::= idlist COMMA nm */
   246,  /* (176) idlist ::= nm */
   202,  /* (177) expr ::= LP expr RP */
   202,  /* (178) expr ::= ID|INDEXED|JOIN_KW */
   202,  /* (179) expr ::= nm DOT nm */
   202,  /* (180) expr ::= nm DOT nm DOT nm */
   201,  /* (181) term ::= NULL|FLOAT|BLOB */
   201,  /* (182) term ::= STRING */
   201,  /* (183) term ::= INTEGER */
   202,  /* (184) expr ::= VARIABLE */
   202,  /* (185) expr ::= expr COLLATE ID|STRING */
   202,  /* (186) expr ::= CAST LP expr AS typetoken RP */
   202,  /* (187) expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist RP */
   202,  /* (188) expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist ORDER BY sortlist RP */
   202,  /* (189) expr ::= ID|INDEXED|JOIN_KW LP STAR RP */
   202,  /* (190) expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist RP filter_over */
   202,  /* (191) expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist ORDER BY sortlist RP filter_over */
   202,  /* (192) expr ::= ID|INDEXED|JOIN_KW LP STAR RP filter_over */
   201,  /* (193) term ::= CTIME_KW */
   202,  /* (194) expr ::= LP nexprlist COMMA expr RP */
   202,  /* (195) expr ::= expr AND expr */
   202,  /* (196) expr ::= expr OR expr */
   202,  /* (197) expr ::= expr LT|GT|GE|LE expr */
   202,  /* (198) expr ::= expr EQ|NE expr */
   202,  /* (199) expr ::= expr BITAND|BITOR|LSHIFT|RSHIFT expr */
   202,  /* (200) expr ::= expr PLUS|MINUS expr */
   202,  /* (201) expr ::= expr STAR|SLASH|REM expr */
   202,  /* (202) expr ::= expr CONCAT expr */
   257,  /* (203) likeop ::= NOT LIKE_KW|MATCH */
   202,  /* (204) expr ::= expr likeop expr */
   202,  /* (205) expr ::= expr likeop expr ESCAPE expr */
   202,  /* (206) expr ::= expr ISNULL|NOTNULL */
   202,  /* (207) expr ::= expr NOT NULL */
   202,  /* (208) expr ::= expr IS expr */
   202,  /* (209) expr ::= expr IS NOT expr */
   202,  /* (210) expr ::= expr IS NOT DISTINCT FROM expr */
   202,  /* (211) expr ::= expr IS DISTINCT FROM expr */
   202,  /* (212) expr ::= NOT expr */
   202,  /* (213) expr ::= BITNOT expr */
   202,  /* (214) expr ::= PLUS|MINUS expr */
   202,  /* (215) expr ::= expr PTR expr */
   258,  /* (216) between_op ::= BETWEEN */
   258,  /* (217) between_op ::= NOT BETWEEN */
   202,  /* (218) expr ::= expr between_op expr AND expr */
   259,  /* (219) in_op ::= IN */
   259,  /* (220) in_op ::= NOT IN */
   202,  /* (221) expr ::= expr in_op LP exprlist RP */
   202,  /* (222) expr ::= LP select RP */
   202,  /* (223) expr ::= expr in_op LP select RP */
   202,  /* (224) expr ::= expr in_op nm dbnm paren_exprlist */
   202,  /* (225) expr ::= EXISTS LP select RP */
   202,  /* (226) expr ::= CASE case_operand case_exprlist case_else END */
   262,  /* (227) case_exprlist ::= case_exprlist WHEN expr THEN expr */
   262,  /* (228) case_exprlist ::= WHEN expr THEN expr */
   263,  /* (229) case_else ::= ELSE expr */
   263,  /* (230) case_else ::= */
   261,  /* (231) case_operand ::= */
   244,  /* (232) exprlist ::= */
   236,  /* (233) nexprlist ::= nexprlist COMMA expr */
   236,  /* (234) nexprlist ::= expr */
   260,  /* (235) paren_exprlist ::= */
   260,  /* (236) paren_exprlist ::= LP exprlist RP */
   178,  /* (237) cmd ::= createkw uniqueflag INDEX ifnotexists nm dbnm ON nm LP sortlist RP where_opt */
   264,  /* (238) uniqueflag ::= UNIQUE */
   264,  /* (239) uniqueflag ::= */
   206,  /* (240) eidlist_opt ::= */
   206,  /* (241) eidlist_opt ::= LP eidlist RP */
   216,  /* (242) eidlist ::= eidlist COMMA nm collate sortorder */
   216,  /* (243) eidlist ::= nm collate sortorder */
   265,  /* (244) collate ::= */
   265,  /* (245) collate ::= COLLATE ID|STRING */
   178,  /* (246) cmd ::= DROP INDEX ifexists fullname */
   178,  /* (247) cmd ::= VACUUM vinto */
   178,  /* (248) cmd ::= VACUUM nm vinto */
   266,  /* (249) vinto ::= INTO expr */
   266,  /* (250) vinto ::= */
   178,  /* (251) cmd ::= PRAGMA nm dbnm */
   178,  /* (252) cmd ::= PRAGMA nm dbnm EQ nmnum */
   178,  /* (253) cmd ::= PRAGMA nm dbnm LP nmnum RP */
   178,  /* (254) cmd ::= PRAGMA nm dbnm EQ minus_num */
   178,  /* (255) cmd ::= PRAGMA nm dbnm LP minus_num RP */
   269,  /* (256) plus_num ::= PLUS INTEGER|FLOAT */
   268,  /* (257) minus_num ::= MINUS INTEGER|FLOAT */
   178,  /* (258) cmd ::= createkw trigger_decl BEGIN trigger_cmd_list END */
   270,  /* (259) trigger_decl ::= temp TRIGGER ifnotexists nm dbnm trigger_time trigger_event ON fullname foreach_clause when_clause */
   272,  /* (260) trigger_time ::= BEFORE|AFTER */
   272,  /* (261) trigger_time ::= INSTEAD OF */
   272,  /* (262) trigger_time ::= */
   273,  /* (263) trigger_event ::= DELETE|INSERT */
   273,  /* (264) trigger_event ::= UPDATE */
   273,  /* (265) trigger_event ::= UPDATE OF idlist */
   275,  /* (266) when_clause ::= */
   275,  /* (267) when_clause ::= WHEN expr */
   271,  /* (268) trigger_cmd_list ::= trigger_cmd_list trigger_cmd SEMI */
   271,  /* (269) trigger_cmd_list ::= trigger_cmd SEMI */
   277,  /* (270) trnm ::= nm DOT nm */
   278,  /* (271) tridxby ::= INDEXED BY nm */
   278,  /* (272) tridxby ::= NOT INDEXED */
   276,  /* (273) trigger_cmd ::= UPDATE orconf trnm tridxby SET setlist from where_opt scanpt */
   276,  /* (274) trigger_cmd ::= scanpt insert_cmd INTO trnm idlist_opt select upsert scanpt */
   276,  /* (275) trigger_cmd ::= DELETE FROM trnm tridxby where_opt scanpt */
   276,  /* (276) trigger_cmd ::= scanpt select scanpt */
   202,  /* (277) expr ::= RAISE LP IGNORE RP */
   202,  /* (278) expr ::= RAISE LP raisetype COMMA nm RP */
   279,  /* (279) raisetype ::= ROLLBACK */
   279,  /* (280) raisetype ::= ABORT */
   279,  /* (281) raisetype ::= FAIL */
   178,  /* (282) cmd ::= DROP TRIGGER ifexists fullname */
   178,  /* (283) cmd ::= ATTACH database_kw_opt expr AS expr key_opt */
   178,  /* (284) cmd ::= DETACH database_kw_opt expr */
   281,  /* (285) key_opt ::= */
   281,  /* (286) key_opt ::= KEY expr */
   178,  /* (287) cmd ::= REINDEX */
   178,  /* (288) cmd ::= REINDEX nm dbnm */
   178,  /* (289) cmd ::= ANALYZE */
   178,  /* (290) cmd ::= ANALYZE nm dbnm */
   178,  /* (291) cmd ::= ALTER TABLE fullname RENAME TO nm */
   178,  /* (292) cmd ::= ALTER TABLE add_column_fullname ADD kwcolumn_opt columnname carglist */
   178,  /* (293) cmd ::= ALTER TABLE fullname DROP kwcolumn_opt nm */
   282,  /* (294) add_column_fullname ::= fullname */
   178,  /* (295) cmd ::= ALTER TABLE fullname RENAME kwcolumn_opt nm TO nm */
   178,  /* (296) cmd ::= create_vtab */
   178,  /* (297) cmd ::= create_vtab LP vtabarglist RP */
   285,  /* (298) create_vtab ::= createkw VIRTUAL TABLE ifnotexists nm dbnm USING nm */
   287,  /* (299) vtabarg ::= */
   288,  /* (300) vtabargtoken ::= ANY */
   288,  /* (301) vtabargtoken ::= lp anylist RP */
   289,  /* (302) lp ::= LP */
   249,  /* (303) with ::= WITH wqlist */
   249,  /* (304) with ::= WITH RECURSIVE wqlist */
   291,  /* (305) wqas ::= AS */
   291,  /* (306) wqas ::= AS MATERIALIZED */
   291,  /* (307) wqas ::= AS NOT MATERIALIZED */
   292,  /* (308) wqitem ::= nm eidlist_opt wqas LP select RP */
   222,  /* (309) wqlist ::= wqitem */
   222,  /* (310) wqlist ::= wqlist COMMA wqitem */
   293,  /* (311) windowdefn_list ::= windowdefn_list COMMA windowdefn */
   294,  /* (312) windowdefn ::= nm AS LP window RP */
   295,  /* (313) window ::= PARTITION BY nexprlist orderby_opt frame_opt */
   295,  /* (314) window ::= nm PARTITION BY nexprlist orderby_opt frame_opt */
   295,  /* (315) window ::= ORDER BY sortlist frame_opt */
   295,  /* (316) window ::= nm ORDER BY sortlist frame_opt */
   295,  /* (317) window ::= nm frame_opt */
   296,  /* (318) frame_opt ::= */
   296,  /* (319) frame_opt ::= range_or_rows frame_bound_s frame_exclude_opt */
   296,  /* (320) frame_opt ::= range_or_rows BETWEEN frame_bound_s AND frame_bound_e frame_exclude_opt */
   297,  /* (321) range_or_rows ::= RANGE|ROWS|GROUPS */
   298,  /* (322) frame_bound_s ::= frame_bound */
   298,  /* (323) frame_bound_s ::= UNBOUNDED PRECEDING */
   300,  /* (324) frame_bound_e ::= frame_bound */
   300,  /* (325) frame_bound_e ::= UNBOUNDED FOLLOWING */
   301,  /* (326) frame_bound ::= expr PRECEDING|FOLLOWING */
   301,  /* (327) frame_bound ::= CURRENT ROW */
   299,  /* (328) frame_exclude_opt ::= */
   299,  /* (329) frame_exclude_opt ::= EXCLUDE frame_exclude */
   302,  /* (330) frame_exclude ::= NO OTHERS */
   302,  /* (331) frame_exclude ::= CURRENT ROW */
   302,  /* (332) frame_exclude ::= GROUP|TIES */
   234,  /* (333) window_clause ::= WINDOW windowdefn_list */
   256,  /* (334) filter_over ::= filter_clause over_clause */
   256,  /* (335) filter_over ::= over_clause */
   256,  /* (336) filter_over ::= filter_clause */
   304,  /* (337) over_clause ::= OVER LP window RP */
   304,  /* (338) over_clause ::= OVER nm */
   303,  /* (339) filter_clause ::= FILTER LP WHERE expr RP */
   305,  /* (340) input ::= cmdlist */
   306,  /* (341) cmdlist ::= cmdlist ecmd */
   306,  /* (342) cmdlist ::= ecmd */
   307,  /* (343) ecmd ::= SEMI */
   307,  /* (344) ecmd ::= cmdx SEMI */
   307,  /* (345) ecmd ::= explain cmdx SEMI */
   180,  /* (346) trans_opt ::= */
   180,  /* (347) trans_opt ::= TRANSACTION */
   180,  /* (348) trans_opt ::= TRANSACTION nm */
   182,  /* (349) savepoint_opt ::= SAVEPOINT */
   182,  /* (350) savepoint_opt ::= */
   178,  /* (351) cmd ::= create_table create_table_args */
   191,  /* (352) table_option_set ::= table_option */
   189,  /* (353) columnlist ::= columnlist COMMA columnname carglist */
   189,  /* (354) columnlist ::= columnname carglist */
   181,  /* (355) nm ::= ID|INDEXED|JOIN_KW */
   181,  /* (356) nm ::= STRING */
   195,  /* (357) typetoken ::= typename */
   196,  /* (358) typename ::= ID|STRING */
   197,  /* (359) signed ::= plus_num */
   197,  /* (360) signed ::= minus_num */
   284,  /* (361) carglist ::= carglist ccons */
   284,  /* (362) carglist ::= */
   200,  /* (363) ccons ::= NULL onconf */
   200,  /* (364) ccons ::= GENERATED ALWAYS AS generated */
   200,  /* (365) ccons ::= AS generated */
   190,  /* (366) conslist_opt ::= COMMA conslist */
   308,  /* (367) conslist ::= conslist tconscomma tcons */
   308,  /* (368) conslist ::= tcons */
   213,  /* (369) tconscomma ::= */
   217,  /* (370) defer_subclause_opt ::= defer_subclause */
   218,  /* (371) resolvetype ::= raisetype */
   223,  /* (372) selectnowith ::= oneselect */
   225,  /* (373) oneselect ::= values */
   237,  /* (374) sclp ::= selcollist COMMA */
   238,  /* (375) as ::= ID|STRING */
   247,  /* (376) indexed_opt ::= indexed_by */
   255,  /* (377) returning ::= */
   202,  /* (378) expr ::= term */
   257,  /* (379) likeop ::= LIKE_KW|MATCH */
   261,  /* (380) case_operand ::= expr */
   244,  /* (381) exprlist ::= nexprlist */
   267,  /* (382) nmnum ::= plus_num */
   267,  /* (383) nmnum ::= nm */
   267,  /* (384) nmnum ::= ON */
   267,  /* (385) nmnum ::= DELETE */
   267,  /* (386) nmnum ::= DEFAULT */
   269,  /* (387) plus_num ::= INTEGER|FLOAT */
   274,  /* (388) foreach_clause ::= */
   274,  /* (389) foreach_clause ::= FOR EACH ROW */
   277,  /* (390) trnm ::= nm */
   278,  /* (391) tridxby ::= */
   280,  /* (392) database_kw_opt ::= DATABASE */
   280,  /* (393) database_kw_opt ::= */
   283,  /* (394) kwcolumn_opt ::= */
   283,  /* (395) kwcolumn_opt ::= COLUMNKW */
   286,  /* (396) vtabarglist ::= vtabarg */
   286,  /* (397) vtabarglist ::= vtabarglist COMMA vtabarg */
   287,  /* (398) vtabarg ::= vtabarg vtabargtoken */
   290,  /* (399) anylist ::= */
   290,  /* (400) anylist ::= anylist LP anylist RP */
   290,  /* (401) anylist ::= anylist ANY */
   249,  /* (402) with ::= */
   293,  /* (403) windowdefn_list ::= windowdefn */
   295,  /* (404) window ::= frame_opt */
};

/* For rule J, yyRuleInfoNRhs[J] contains the negative of the number
** of symbols on the right-hand side of that rule. */
static const signed char yyRuleInfoNRhs[] = {
   -1,  /* (0) explain ::= EXPLAIN */
   -3,  /* (1) explain ::= EXPLAIN QUERY PLAN */
   -1,  /* (2) cmdx ::= cmd */
   -3,  /* (3) cmd ::= BEGIN transtype trans_opt */
    0,  /* (4) transtype ::= */
   -1,  /* (5) transtype ::= DEFERRED */
   -1,  /* (6) transtype ::= IMMEDIATE */
   -1,  /* (7) transtype ::= EXCLUSIVE */
   -2,  /* (8) cmd ::= COMMIT|END trans_opt */
   -2,  /* (9) cmd ::= ROLLBACK trans_opt */
   -2,  /* (10) cmd ::= SAVEPOINT nm */
   -3,  /* (11) cmd ::= RELEASE savepoint_opt nm */
   -5,  /* (12) cmd ::= ROLLBACK trans_opt TO savepoint_opt nm */
   -6,  /* (13) create_table ::= createkw temp TABLE ifnotexists nm dbnm */
   -1,  /* (14) createkw ::= CREATE */
    0,  /* (15) ifnotexists ::= */
   -3,  /* (16) ifnotexists ::= IF NOT EXISTS */
   -1,  /* (17) temp ::= TEMP */
    0,  /* (18) temp ::= */
   -5,  /* (19) create_table_args ::= LP columnlist conslist_opt RP table_option_set */
   -2,  /* (20) create_table_args ::= AS select */
    0,  /* (21) table_option_set ::= */
   -3,  /* (22) table_option_set ::= table_option_set COMMA table_option */
   -2,  /* (23) table_option ::= WITHOUT nm */
   -1,  /* (24) table_option ::= nm */
   -2,  /* (25) columnname ::= nm typetoken */
    0,  /* (26) typetoken ::= */
   -4,  /* (27) typetoken ::= typename LP signed RP */
   -6,  /* (28) typetoken ::= typename LP signed COMMA signed RP */
   -2,  /* (29) typename ::= typename ID|STRING */
    0,  /* (30) scanpt ::= */
    0,  /* (31) scantok ::= */
   -2,  /* (32) ccons ::= CONSTRAINT nm */
   -3,  /* (33) ccons ::= DEFAULT scantok term */
   -4,  /* (34) ccons ::= DEFAULT LP expr RP */
   -4,  /* (35) ccons ::= DEFAULT PLUS scantok term */
   -4,  /* (36) ccons ::= DEFAULT MINUS scantok term */
   -3,  /* (37) ccons ::= DEFAULT scantok ID|INDEXED */
   -3,  /* (38) ccons ::= NOT NULL onconf */
   -5,  /* (39) ccons ::= PRIMARY KEY sortorder onconf autoinc */
   -2,  /* (40) ccons ::= UNIQUE onconf */
   -4,  /* (41) ccons ::= CHECK LP expr RP */
   -4,  /* (42) ccons ::= REFERENCES nm eidlist_opt refargs */
   -1,  /* (43) ccons ::= defer_subclause */
   -2,  /* (44) ccons ::= COLLATE ID|STRING */
   -3,  /* (45) generated ::= LP expr RP */
   -4,  /* (46) generated ::= LP expr RP ID */
    0,  /* (47) autoinc ::= */
   -1,  /* (48) autoinc ::= AUTOINCR */
    0,  /* (49) refargs ::= */
   -2,  /* (50) refargs ::= refargs refarg */
   -2,  /* (51) refarg ::= MATCH nm */
   -3,  /* (52) refarg ::= ON INSERT refact */
   -3,  /* (53) refarg ::= ON DELETE refact */
   -3,  /* (54) refarg ::= ON UPDATE refact */
   -2,  /* (55) refact ::= SET NULL */
   -2,  /* (56) refact ::= SET DEFAULT */
   -1,  /* (57) refact ::= CASCADE */
   -1,  /* (58) refact ::= RESTRICT */
   -2,  /* (59) refact ::= NO ACTION */
   -3,  /* (60) defer_subclause ::= NOT DEFERRABLE init_deferred_pred_opt */
   -2,  /* (61) defer_subclause ::= DEFERRABLE init_deferred_pred_opt */
    0,  /* (62) init_deferred_pred_opt ::= */
   -2,  /* (63) init_deferred_pred_opt ::= INITIALLY DEFERRED */
   -2,  /* (64) init_deferred_pred_opt ::= INITIALLY IMMEDIATE */
    0,  /* (65) conslist_opt ::= */
   -1,  /* (66) tconscomma ::= COMMA */
   -2,  /* (67) tcons ::= CONSTRAINT nm */
   -7,  /* (68) tcons ::= PRIMARY KEY LP sortlist autoinc RP onconf */
   -5,  /* (69) tcons ::= UNIQUE LP sortlist RP onconf */
   -5,  /* (70) tcons ::= CHECK LP expr RP onconf */
  -10,  /* (71) tcons ::= FOREIGN KEY LP eidlist RP REFERENCES nm eidlist_opt refargs defer_subclause_opt */
    0,  /* (72) defer_subclause_opt ::= */
    0,  /* (73) onconf ::= */
   -3,  /* (74) onconf ::= ON CONFLICT resolvetype */
    0,  /* (75) orconf ::= */
   -2,  /* (76) orconf ::= OR resolvetype */
   -1,  /* (77) resolvetype ::= IGNORE */
   -1,  /* (78) resolvetype ::= REPLACE */
   -4,  /* (79) cmd ::= DROP TABLE ifexists fullname */
   -2,  /* (80) ifexists ::= IF EXISTS */
    0,  /* (81) ifexists ::= */
   -9,  /* (82) cmd ::= createkw temp VIEW ifnotexists nm dbnm eidlist_opt AS select */
   -4,  /* (83) cmd ::= DROP VIEW ifexists fullname */
   -1,  /* (84) cmd ::= select */
   -3,  /* (85) select ::= WITH wqlist selectnowith */
   -4,  /* (86) select ::= WITH RECURSIVE wqlist selectnowith */
   -1,  /* (87) select ::= selectnowith */
   -3,  /* (88) selectnowith ::= selectnowith multiselect_op oneselect */
   -1,  /* (89) multiselect_op ::= UNION */
   -2,  /* (90) multiselect_op ::= UNION ALL */
   -1,  /* (91) multiselect_op ::= EXCEPT|INTERSECT */
   -9,  /* (92) oneselect ::= SELECT distinct selcollist from where_opt groupby_opt having_opt orderby_opt limit_opt */
  -10,  /* (93) oneselect ::= SELECT distinct selcollist from where_opt groupby_opt having_opt window_clause orderby_opt limit_opt */
   -4,  /* (94) values ::= VALUES LP nexprlist RP */
   -5,  /* (95) values ::= values COMMA LP nexprlist RP */
   -1,  /* (96) distinct ::= DISTINCT */
   -1,  /* (97) distinct ::= ALL */
    0,  /* (98) distinct ::= */
    0,  /* (99) sclp ::= */
   -5,  /* (100) selcollist ::= sclp scanpt expr scanpt as */
   -3,  /* (101) selcollist ::= sclp scanpt STAR */
   -5,  /* (102) selcollist ::= sclp scanpt nm DOT STAR */
   -2,  /* (103) as ::= AS nm */
    0,  /* (104) as ::= */
    0,  /* (105) from ::= */
   -2,  /* (106) from ::= FROM seltablist */
   -2,  /* (107) stl_prefix ::= seltablist joinop */
    0,  /* (108) stl_prefix ::= */
   -5,  /* (109) seltablist ::= stl_prefix nm dbnm as on_using */
   -6,  /* (110) seltablist ::= stl_prefix nm dbnm as indexed_by on_using */
   -8,  /* (111) seltablist ::= stl_prefix nm dbnm LP exprlist RP as on_using */
   -6,  /* (112) seltablist ::= stl_prefix LP select RP as on_using */
   -6,  /* (113) seltablist ::= stl_prefix LP seltablist RP as on_using */
    0,  /* (114) dbnm ::= */
   -2,  /* (115) dbnm ::= DOT nm */
   -1,  /* (116) fullname ::= nm */
   -3,  /* (117) fullname ::= nm DOT nm */
   -1,  /* (118) xfullname ::= nm */
   -3,  /* (119) xfullname ::= nm DOT nm */
   -5,  /* (120) xfullname ::= nm DOT nm AS nm */
   -3,  /* (121) xfullname ::= nm AS nm */
   -1,  /* (122) joinop ::= COMMA|JOIN */
   -2,  /* (123) joinop ::= JOIN_KW JOIN */
   -3,  /* (124) joinop ::= JOIN_KW nm JOIN */
   -4,  /* (125) joinop ::= JOIN_KW nm nm JOIN */
   -2,  /* (126) on_using ::= ON expr */
   -4,  /* (127) on_using ::= USING LP idlist RP */
    0,  /* (128) on_using ::= */
    0,  /* (129) indexed_opt ::= */
   -3,  /* (130) indexed_by ::= INDEXED BY nm */
   -2,  /* (131) indexed_by ::= NOT INDEXED */
    0,  /* (132) orderby_opt ::= */
   -3,  /* (133) orderby_opt ::= ORDER BY sortlist */
   -5,  /* (134) sortlist ::= sortlist COMMA expr sortorder nulls */
   -3,  /* (135) sortlist ::= expr sortorder nulls */
   -1,  /* (136) sortorder ::= ASC */
   -1,  /* (137) sortorder ::= DESC */
    0,  /* (138) sortorder ::= */
   -2,  /* (139) nulls ::= NULLS FIRST */
   -2,  /* (140) nulls ::= NULLS LAST */
    0,  /* (141) nulls ::= */
    0,  /* (142) groupby_opt ::= */
   -3,  /* (143) groupby_opt ::= GROUP BY nexprlist */
    0,  /* (144) having_opt ::= */
   -2,  /* (145) having_opt ::= HAVING expr */
    0,  /* (146) limit_opt ::= */
   -2,  /* (147) limit_opt ::= LIMIT expr */
   -4,  /* (148) limit_opt ::= LIMIT expr OFFSET expr */
   -4,  /* (149) limit_opt ::= LIMIT expr COMMA expr */
   -6,  /* (150) cmd ::= with DELETE FROM xfullname indexed_opt where_opt_ret */
    0,  /* (151) where_opt ::= */
   -2,  /* (152) where_opt ::= WHERE expr */
    0,  /* (153) where_opt_ret ::= */
   -2,  /* (154) where_opt_ret ::= WHERE expr */
   -2,  /* (155) where_opt_ret ::= RETURNING selcollist */
   -4,  /* (156) where_opt_ret ::= WHERE expr RETURNING selcollist */
   -9,  /* (157) cmd ::= with UPDATE orconf xfullname indexed_opt SET setlist from where_opt_ret */
   -5,  /* (158) setlist ::= setlist COMMA nm EQ expr */
   -7,  /* (159) setlist ::= setlist COMMA LP idlist RP EQ expr */
   -3,  /* (160) setlist ::= nm EQ expr */
   -5,  /* (161) setlist ::= LP idlist RP EQ expr */
   -7,  /* (162) cmd ::= with insert_cmd INTO xfullname idlist_opt select upsert */
   -8,  /* (163) cmd ::= with insert_cmd INTO xfullname idlist_opt DEFAULT VALUES returning */
    0,  /* (164) upsert ::= */
   -2,  /* (165) upsert ::= RETURNING selcollist */
  -12,  /* (166) upsert ::= ON CONFLICT LP sortlist RP where_opt DO UPDATE SET setlist where_opt upsert */
   -9,  /* (167) upsert ::= ON CONFLICT LP sortlist RP where_opt DO NOTHING upsert */
   -5,  /* (168) upsert ::= ON CONFLICT DO NOTHING returning */
   -8,  /* (169) upsert ::= ON CONFLICT DO UPDATE SET setlist where_opt returning */
   -2,  /* (170) returning ::= RETURNING selcollist */
   -2,  /* (171) insert_cmd ::= INSERT orconf */
   -1,  /* (172) insert_cmd ::= REPLACE */
    0,  /* (173) idlist_opt ::= */
   -3,  /* (174) idlist_opt ::= LP idlist RP */
   -3,  /* (175) idlist ::= idlist COMMA nm */
   -1,  /* (176) idlist ::= nm */
   -3,  /* (177) expr ::= LP expr RP */
   -1,  /* (178) expr ::= ID|INDEXED|JOIN_KW */
   -3,  /* (179) expr ::= nm DOT nm */
   -5,  /* (180) expr ::= nm DOT nm DOT nm */
   -1,  /* (181) term ::= NULL|FLOAT|BLOB */
   -1,  /* (182) term ::= STRING */
   -1,  /* (183) term ::= INTEGER */
   -1,  /* (184) expr ::= VARIABLE */
   -3,  /* (185) expr ::= expr COLLATE ID|STRING */
   -6,  /* (186) expr ::= CAST LP expr AS typetoken RP */
   -5,  /* (187) expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist RP */
   -8,  /* (188) expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist ORDER BY sortlist RP */
   -4,  /* (189) expr ::= ID|INDEXED|JOIN_KW LP STAR RP */
   -6,  /* (190) expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist RP filter_over */
   -9,  /* (191) expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist ORDER BY sortlist RP filter_over */
   -5,  /* (192) expr ::= ID|INDEXED|JOIN_KW LP STAR RP filter_over */
   -1,  /* (193) term ::= CTIME_KW */
   -5,  /* (194) expr ::= LP nexprlist COMMA expr RP */
   -3,  /* (195) expr ::= expr AND expr */
   -3,  /* (196) expr ::= expr OR expr */
   -3,  /* (197) expr ::= expr LT|GT|GE|LE expr */
   -3,  /* (198) expr ::= expr EQ|NE expr */
   -3,  /* (199) expr ::= expr BITAND|BITOR|LSHIFT|RSHIFT expr */
   -3,  /* (200) expr ::= expr PLUS|MINUS expr */
   -3,  /* (201) expr ::= expr STAR|SLASH|REM expr */
   -3,  /* (202) expr ::= expr CONCAT expr */
   -2,  /* (203) likeop ::= NOT LIKE_KW|MATCH */
   -3,  /* (204) expr ::= expr likeop expr */
   -5,  /* (205) expr ::= expr likeop expr ESCAPE expr */
   -2,  /* (206) expr ::= expr ISNULL|NOTNULL */
   -3,  /* (207) expr ::= expr NOT NULL */
   -3,  /* (208) expr ::= expr IS expr */
   -4,  /* (209) expr ::= expr IS NOT expr */
   -6,  /* (210) expr ::= expr IS NOT DISTINCT FROM expr */
   -5,  /* (211) expr ::= expr IS DISTINCT FROM expr */
   -2,  /* (212) expr ::= NOT expr */
   -2,  /* (213) expr ::= BITNOT expr */
   -2,  /* (214) expr ::= PLUS|MINUS expr */
   -3,  /* (215) expr ::= expr PTR expr */
   -1,  /* (216) between_op ::= BETWEEN */
   -2,  /* (217) between_op ::= NOT BETWEEN */
   -5,  /* (218) expr ::= expr between_op expr AND expr */
   -1,  /* (219) in_op ::= IN */
   -2,  /* (220) in_op ::= NOT IN */
   -5,  /* (221) expr ::= expr in_op LP exprlist RP */
   -3,  /* (222) expr ::= LP select RP */
   -5,  /* (223) expr ::= expr in_op LP select RP */
   -5,  /* (224) expr ::= expr in_op nm dbnm paren_exprlist */
   -4,  /* (225) expr ::= EXISTS LP select RP */
   -5,  /* (226) expr ::= CASE case_operand case_exprlist case_else END */
   -5,  /* (227) case_exprlist ::= case_exprlist WHEN expr THEN expr */
   -4,  /* (228) case_exprlist ::= WHEN expr THEN expr */
   -2,  /* (229) case_else ::= ELSE expr */
    0,  /* (230) case_else ::= */
    0,  /* (231) case_operand ::= */
    0,  /* (232) exprlist ::= */
   -3,  /* (233) nexprlist ::= nexprlist COMMA expr */
   -1,  /* (234) nexprlist ::= expr */
    0,  /* (235) paren_exprlist ::= */
   -3,  /* (236) paren_exprlist ::= LP exprlist RP */
  -12,  /* (237) cmd ::= createkw uniqueflag INDEX ifnotexists nm dbnm ON nm LP sortlist RP where_opt */
   -1,  /* (238) uniqueflag ::= UNIQUE */
    0,  /* (239) uniqueflag ::= */
    0,  /* (240) eidlist_opt ::= */
   -3,  /* (241) eidlist_opt ::= LP eidlist RP */
   -5,  /* (242) eidlist ::= eidlist COMMA nm collate sortorder */
   -3,  /* (243) eidlist ::= nm collate sortorder */
    0,  /* (244) collate ::= */
   -2,  /* (245) collate ::= COLLATE ID|STRING */
   -4,  /* (246) cmd ::= DROP INDEX ifexists fullname */
   -2,  /* (247) cmd ::= VACUUM vinto */
   -3,  /* (248) cmd ::= VACUUM nm vinto */
   -2,  /* (249) vinto ::= INTO expr */
    0,  /* (250) vinto ::= */
   -3,  /* (251) cmd ::= PRAGMA nm dbnm */
   -5,  /* (252) cmd ::= PRAGMA nm dbnm EQ nmnum */
   -6,  /* (253) cmd ::= PRAGMA nm dbnm LP nmnum RP */
   -5,  /* (254) cmd ::= PRAGMA nm dbnm EQ minus_num */
   -6,  /* (255) cmd ::= PRAGMA nm dbnm LP minus_num RP */
   -2,  /* (256) plus_num ::= PLUS INTEGER|FLOAT */
   -2,  /* (257) minus_num ::= MINUS INTEGER|FLOAT */
   -5,  /* (258) cmd ::= createkw trigger_decl BEGIN trigger_cmd_list END */
  -11,  /* (259) trigger_decl ::= temp TRIGGER ifnotexists nm dbnm trigger_time trigger_event ON fullname foreach_clause when_clause */
   -1,  /* (260) trigger_time ::= BEFORE|AFTER */
   -2,  /* (261) trigger_time ::= INSTEAD OF */
    0,  /* (262) trigger_time ::= */
   -1,  /* (263) trigger_event ::= DELETE|INSERT */
   -1,  /* (264) trigger_event ::= UPDATE */
   -3,  /* (265) trigger_event ::= UPDATE OF idlist */
    0,  /* (266) when_clause ::= */
   -2,  /* (267) when_clause ::= WHEN expr */
   -3,  /* (268) trigger_cmd_list ::= trigger_cmd_list trigger_cmd SEMI */
   -2,  /* (269) trigger_cmd_list ::= trigger_cmd SEMI */
   -3,  /* (270) trnm ::= nm DOT nm */
   -3,  /* (271) tridxby ::= INDEXED BY nm */
   -2,  /* (272) tridxby ::= NOT INDEXED */
   -9,  /* (273) trigger_cmd ::= UPDATE orconf trnm tridxby SET setlist from where_opt scanpt */
   -8,  /* (274) trigger_cmd ::= scanpt insert_cmd INTO trnm idlist_opt select upsert scanpt */
   -6,  /* (275) trigger_cmd ::= DELETE FROM trnm tridxby where_opt scanpt */
   -3,  /* (276) trigger_cmd ::= scanpt select scanpt */
   -4,  /* (277) expr ::= RAISE LP IGNORE RP */
   -6,  /* (278) expr ::= RAISE LP raisetype COMMA nm RP */
   -1,  /* (279) raisetype ::= ROLLBACK */
   -1,  /* (280) raisetype ::= ABORT */
   -1,  /* (281) raisetype ::= FAIL */
   -4,  /* (282) cmd ::= DROP TRIGGER ifexists fullname */
   -6,  /* (283) cmd ::= ATTACH database_kw_opt expr AS expr key_opt */
   -3,  /* (284) cmd ::= DETACH database_kw_opt expr */
    0,  /* (285) key_opt ::= */
   -2,  /* (286) key_opt ::= KEY expr */
   -1,  /* (287) cmd ::= REINDEX */
   -3,  /* (288) cmd ::= REINDEX nm dbnm */
   -1,  /* (289) cmd ::= ANALYZE */
   -3,  /* (290) cmd ::= ANALYZE nm dbnm */
   -6,  /* (291) cmd ::= ALTER TABLE fullname RENAME TO nm */
   -7,  /* (292) cmd ::= ALTER TABLE add_column_fullname ADD kwcolumn_opt columnname carglist */
   -6,  /* (293) cmd ::= ALTER TABLE fullname DROP kwcolumn_opt nm */
   -1,  /* (294) add_column_fullname ::= fullname */
   -8,  /* (295) cmd ::= ALTER TABLE fullname RENAME kwcolumn_opt nm TO nm */
   -1,  /* (296) cmd ::= create_vtab */
   -4,  /* (297) cmd ::= create_vtab LP vtabarglist RP */
   -8,  /* (298) create_vtab ::= createkw VIRTUAL TABLE ifnotexists nm dbnm USING nm */
    0,  /* (299) vtabarg ::= */
   -1,  /* (300) vtabargtoken ::= ANY */
   -3,  /* (301) vtabargtoken ::= lp anylist RP */
   -1,  /* (302) lp ::= LP */
   -2,  /* (303) with ::= WITH wqlist */
   -3,  /* (304) with ::= WITH RECURSIVE wqlist */
   -1,  /* (305) wqas ::= AS */
   -2,  /* (306) wqas ::= AS MATERIALIZED */
   -3,  /* (307) wqas ::= AS NOT MATERIALIZED */
   -6,  /* (308) wqitem ::= nm eidlist_opt wqas LP select RP */
   -1,  /* (309) wqlist ::= wqitem */
   -3,  /* (310) wqlist ::= wqlist COMMA wqitem */
   -3,  /* (311) windowdefn_list ::= windowdefn_list COMMA windowdefn */
   -5,  /* (312) windowdefn ::= nm AS LP window RP */
   -5,  /* (313) window ::= PARTITION BY nexprlist orderby_opt frame_opt */
   -6,  /* (314) window ::= nm PARTITION BY nexprlist orderby_opt frame_opt */
   -4,  /* (315) window ::= ORDER BY sortlist frame_opt */
   -5,  /* (316) window ::= nm ORDER BY sortlist frame_opt */
   -2,  /* (317) window ::= nm frame_opt */
    0,  /* (318) frame_opt ::= */
   -3,  /* (319) frame_opt ::= range_or_rows frame_bound_s frame_exclude_opt */
   -6,  /* (320) frame_opt ::= range_or_rows BETWEEN frame_bound_s AND frame_bound_e frame_exclude_opt */
   -1,  /* (321) range_or_rows ::= RANGE|ROWS|GROUPS */
   -1,  /* (322) frame_bound_s ::= frame_bound */
   -2,  /* (323) frame_bound_s ::= UNBOUNDED PRECEDING */
   -1,  /* (324) frame_bound_e ::= frame_bound */
   -2,  /* (325) frame_bound_e ::= UNBOUNDED FOLLOWING */
   -2,  /* (326) frame_bound ::= expr PRECEDING|FOLLOWING */
   -2,  /* (327) frame_bound ::= CURRENT ROW */
    0,  /* (328) frame_exclude_opt ::= */
   -2,  /* (329) frame_exclude_opt ::= EXCLUDE frame_exclude */
   -2,  /* (330) frame_exclude ::= NO OTHERS */
   -2,  /* (331) frame_exclude ::= CURRENT ROW */
   -1,  /* (332) frame_exclude ::= GROUP|TIES */
   -2,  /* (333) window_clause ::= WINDOW windowdefn_list */
   -2,  /* (334) filter_over ::= filter_clause over_clause */
   -1,  /* (335) filter_over ::= over_clause */
   -1,  /* (336) filter_over ::= filter_clause */
   -4,  /* (337) over_clause ::= OVER LP window RP */
   -2,  /* (338) over_clause ::= OVER nm */
   -5,  /* (339) filter_clause ::= FILTER LP WHERE expr RP */
   -1,  /* (340) input ::= cmdlist */
   -2,  /* (341) cmdlist ::= cmdlist ecmd */
   -1,  /* (342) cmdlist ::= ecmd */
   -1,  /* (343) ecmd ::= SEMI */
   -2,  /* (344) ecmd ::= cmdx SEMI */
   -3,  /* (345) ecmd ::= explain cmdx SEMI */
    0,  /* (346) trans_opt ::= */
   -1,  /* (347) trans_opt ::= TRANSACTION */
   -2,  /* (348) trans_opt ::= TRANSACTION nm */
   -1,  /* (349) savepoint_opt ::= SAVEPOINT */
    0,  /* (350) savepoint_opt ::= */
   -2,  /* (351) cmd ::= create_table create_table_args */
   -1,  /* (352) table_option_set ::= table_option */
   -4,  /* (353) columnlist ::= columnlist COMMA columnname carglist */
   -2,  /* (354) columnlist ::= columnname carglist */
   -1,  /* (355) nm ::= ID|INDEXED|JOIN_KW */
   -1,  /* (356) nm ::= STRING */
   -1,  /* (357) typetoken ::= typename */
   -1,  /* (358) typename ::= ID|STRING */
   -1,  /* (359) signed ::= plus_num */
   -1,  /* (360) signed ::= minus_num */
   -2,  /* (361) carglist ::= carglist ccons */
    0,  /* (362) carglist ::= */
   -2,  /* (363) ccons ::= NULL onconf */
   -4,  /* (364) ccons ::= GENERATED ALWAYS AS generated */
   -2,  /* (365) ccons ::= AS generated */
   -2,  /* (366) conslist_opt ::= COMMA conslist */
   -3,  /* (367) conslist ::= conslist tconscomma tcons */
   -1,  /* (368) conslist ::= tcons */
    0,  /* (369) tconscomma ::= */
   -1,  /* (370) defer_subclause_opt ::= defer_subclause */
   -1,  /* (371) resolvetype ::= raisetype */
   -1,  /* (372) selectnowith ::= oneselect */
   -1,  /* (373) oneselect ::= values */
   -2,  /* (374) sclp ::= selcollist COMMA */
   -1,  /* (375) as ::= ID|STRING */
   -1,  /* (376) indexed_opt ::= indexed_by */
    0,  /* (377) returning ::= */
   -1,  /* (378) expr ::= term */
   -1,  /* (379) likeop ::= LIKE_KW|MATCH */
   -1,  /* (380) case_operand ::= expr */
   -1,  /* (381) exprlist ::= nexprlist */
   -1,  /* (382) nmnum ::= plus_num */
   -1,  /* (383) nmnum ::= nm */
   -1,  /* (384) nmnum ::= ON */
   -1,  /* (385) nmnum ::= DELETE */
   -1,  /* (386) nmnum ::= DEFAULT */
   -1,  /* (387) plus_num ::= INTEGER|FLOAT */
    0,  /* (388) foreach_clause ::= */
   -3,  /* (389) foreach_clause ::= FOR EACH ROW */
   -1,  /* (390) trnm ::= nm */
    0,  /* (391) tridxby ::= */
   -1,  /* (392) database_kw_opt ::= DATABASE */
    0,  /* (393) database_kw_opt ::= */
    0,  /* (394) kwcolumn_opt ::= */
   -1,  /* (395) kwcolumn_opt ::= COLUMNKW */
   -1,  /* (396) vtabarglist ::= vtabarg */
   -3,  /* (397) vtabarglist ::= vtabarglist COMMA vtabarg */
   -2,  /* (398) vtabarg ::= vtabarg vtabargtoken */
    0,  /* (399) anylist ::= */
   -4,  /* (400) anylist ::= anylist LP anylist RP */
   -2,  /* (401) anylist ::= anylist ANY */
    0,  /* (402) with ::= */
   -1,  /* (403) windowdefn_list ::= windowdefn */
   -1,  /* (404) window ::= frame_opt */
};

static void yy_accept(yyParser*);  /* Forward Declaration */

/*
** Perform a reduce action and the shift that must immediately
** follow the reduce.
**
** The yyLookahead and yyLookaheadToken parameters provide reduce actions
** access to the lookahead token (if any).  The yyLookahead will be YYNOCODE
** if the lookahead token has already been consumed.  As this procedure is
** only called from one place, optimizing compilers will in-line it, which
** means that the extra parameters have no performance impact.
*/
static YYACTIONTYPE yy_reduce(
  yyParser *yypParser,         /* The parser */
  unsigned int yyruleno,       /* Number of the rule by which to reduce */
  int yyLookahead,             /* Lookahead token, or YYNOCODE if none */
  PerfettoSqlParserTOKENTYPE yyLookaheadToken  /* Value of the lookahead token */
  PerfettoSqlParserCTX_PDECL                   /* %extra_context */
){
  int yygoto;                     /* The next state */
  YYACTIONTYPE yyact;             /* The next action */
  yyStackEntry *yymsp;            /* The top of the parser's stack */
  int yysize;                     /* Amount to pop the stack */
  PerfettoSqlParserARG_FETCH
  (void)yyLookahead;
  (void)yyLookaheadToken;
  yymsp = yypParser->yytos;

  switch( yyruleno ){
  /* Beginning here are the reduction cases.  A typical example
  ** follows:
  **   case 0:
  **  #line <lineno> <grammarfile>
  **     { ... }           // User supplied code
  **  #line <lineno> <thisfile>
  **     break;
  */
/********** Begin reduce actions **********************************************/
      default:
      /* (0) explain ::= EXPLAIN */ yytestcase(yyruleno==0);
      /* (1) explain ::= EXPLAIN QUERY PLAN */ yytestcase(yyruleno==1);
      /* (2) cmdx ::= cmd (OPTIMIZED OUT) */ assert(yyruleno!=2);
      /* (3) cmd ::= BEGIN transtype trans_opt */ yytestcase(yyruleno==3);
      /* (4) transtype ::= */ yytestcase(yyruleno==4);
      /* (5) transtype ::= DEFERRED */ yytestcase(yyruleno==5);
      /* (6) transtype ::= IMMEDIATE */ yytestcase(yyruleno==6);
      /* (7) transtype ::= EXCLUSIVE */ yytestcase(yyruleno==7);
      /* (8) cmd ::= COMMIT|END trans_opt */ yytestcase(yyruleno==8);
      /* (9) cmd ::= ROLLBACK trans_opt */ yytestcase(yyruleno==9);
      /* (10) cmd ::= SAVEPOINT nm */ yytestcase(yyruleno==10);
      /* (11) cmd ::= RELEASE savepoint_opt nm */ yytestcase(yyruleno==11);
      /* (12) cmd ::= ROLLBACK trans_opt TO savepoint_opt nm */ yytestcase(yyruleno==12);
      /* (13) create_table ::= createkw temp TABLE ifnotexists nm dbnm */ yytestcase(yyruleno==13);
      /* (14) createkw ::= CREATE */ yytestcase(yyruleno==14);
      /* (15) ifnotexists ::= */ yytestcase(yyruleno==15);
      /* (16) ifnotexists ::= IF NOT EXISTS */ yytestcase(yyruleno==16);
      /* (17) temp ::= TEMP */ yytestcase(yyruleno==17);
      /* (18) temp ::= */ yytestcase(yyruleno==18);
      /* (19) create_table_args ::= LP columnlist conslist_opt RP table_option_set */ yytestcase(yyruleno==19);
      /* (20) create_table_args ::= AS select */ yytestcase(yyruleno==20);
      /* (21) table_option_set ::= */ yytestcase(yyruleno==21);
      /* (22) table_option_set ::= table_option_set COMMA table_option */ yytestcase(yyruleno==22);
      /* (23) table_option ::= WITHOUT nm */ yytestcase(yyruleno==23);
      /* (24) table_option ::= nm (OPTIMIZED OUT) */ assert(yyruleno!=24);
      /* (25) columnname ::= nm typetoken */ yytestcase(yyruleno==25);
      /* (26) typetoken ::= */ yytestcase(yyruleno==26);
      /* (27) typetoken ::= typename LP signed RP */ yytestcase(yyruleno==27);
      /* (28) typetoken ::= typename LP signed COMMA signed RP */ yytestcase(yyruleno==28);
      /* (29) typename ::= typename ID|STRING */ yytestcase(yyruleno==29);
      /* (30) scanpt ::= */ yytestcase(yyruleno==30);
      /* (31) scantok ::= */ yytestcase(yyruleno==31);
      /* (32) ccons ::= CONSTRAINT nm */ yytestcase(yyruleno==32);
      /* (33) ccons ::= DEFAULT scantok term */ yytestcase(yyruleno==33);
      /* (34) ccons ::= DEFAULT LP expr RP */ yytestcase(yyruleno==34);
      /* (35) ccons ::= DEFAULT PLUS scantok term */ yytestcase(yyruleno==35);
      /* (36) ccons ::= DEFAULT MINUS scantok term */ yytestcase(yyruleno==36);
      /* (37) ccons ::= DEFAULT scantok ID|INDEXED */ yytestcase(yyruleno==37);
      /* (38) ccons ::= NOT NULL onconf */ yytestcase(yyruleno==38);
      /* (39) ccons ::= PRIMARY KEY sortorder onconf autoinc */ yytestcase(yyruleno==39);
      /* (40) ccons ::= UNIQUE onconf */ yytestcase(yyruleno==40);
      /* (41) ccons ::= CHECK LP expr RP */ yytestcase(yyruleno==41);
      /* (42) ccons ::= REFERENCES nm eidlist_opt refargs */ yytestcase(yyruleno==42);
      /* (43) ccons ::= defer_subclause (OPTIMIZED OUT) */ assert(yyruleno!=43);
      /* (44) ccons ::= COLLATE ID|STRING */ yytestcase(yyruleno==44);
      /* (45) generated ::= LP expr RP */ yytestcase(yyruleno==45);
      /* (46) generated ::= LP expr RP ID */ yytestcase(yyruleno==46);
      /* (47) autoinc ::= */ yytestcase(yyruleno==47);
      /* (48) autoinc ::= AUTOINCR */ yytestcase(yyruleno==48);
      /* (49) refargs ::= */ yytestcase(yyruleno==49);
      /* (50) refargs ::= refargs refarg */ yytestcase(yyruleno==50);
      /* (51) refarg ::= MATCH nm */ yytestcase(yyruleno==51);
      /* (52) refarg ::= ON INSERT refact */ yytestcase(yyruleno==52);
      /* (53) refarg ::= ON DELETE refact */ yytestcase(yyruleno==53);
      /* (54) refarg ::= ON UPDATE refact */ yytestcase(yyruleno==54);
      /* (55) refact ::= SET NULL */ yytestcase(yyruleno==55);
      /* (56) refact ::= SET DEFAULT */ yytestcase(yyruleno==56);
      /* (57) refact ::= CASCADE */ yytestcase(yyruleno==57);
      /* (58) refact ::= RESTRICT */ yytestcase(yyruleno==58);
      /* (59) refact ::= NO ACTION */ yytestcase(yyruleno==59);
      /* (60) defer_subclause ::= NOT DEFERRABLE init_deferred_pred_opt */ yytestcase(yyruleno==60);
      /* (61) defer_subclause ::= DEFERRABLE init_deferred_pred_opt */ yytestcase(yyruleno==61);
      /* (62) init_deferred_pred_opt ::= */ yytestcase(yyruleno==62);
      /* (63) init_deferred_pred_opt ::= INITIALLY DEFERRED */ yytestcase(yyruleno==63);
      /* (64) init_deferred_pred_opt ::= INITIALLY IMMEDIATE */ yytestcase(yyruleno==64);
      /* (65) conslist_opt ::= */ yytestcase(yyruleno==65);
      /* (66) tconscomma ::= COMMA */ yytestcase(yyruleno==66);
      /* (67) tcons ::= CONSTRAINT nm */ yytestcase(yyruleno==67);
      /* (68) tcons ::= PRIMARY KEY LP sortlist autoinc RP onconf */ yytestcase(yyruleno==68);
      /* (69) tcons ::= UNIQUE LP sortlist RP onconf */ yytestcase(yyruleno==69);
      /* (70) tcons ::= CHECK LP expr RP onconf */ yytestcase(yyruleno==70);
      /* (71) tcons ::= FOREIGN KEY LP eidlist RP REFERENCES nm eidlist_opt refargs defer_subclause_opt */ yytestcase(yyruleno==71);
      /* (72) defer_subclause_opt ::= */ yytestcase(yyruleno==72);
      /* (73) onconf ::= */ yytestcase(yyruleno==73);
      /* (74) onconf ::= ON CONFLICT resolvetype */ yytestcase(yyruleno==74);
      /* (75) orconf ::= */ yytestcase(yyruleno==75);
      /* (76) orconf ::= OR resolvetype */ yytestcase(yyruleno==76);
      /* (77) resolvetype ::= IGNORE */ yytestcase(yyruleno==77);
      /* (78) resolvetype ::= REPLACE */ yytestcase(yyruleno==78);
      /* (79) cmd ::= DROP TABLE ifexists fullname */ yytestcase(yyruleno==79);
      /* (80) ifexists ::= IF EXISTS */ yytestcase(yyruleno==80);
      /* (81) ifexists ::= */ yytestcase(yyruleno==81);
      /* (82) cmd ::= createkw temp VIEW ifnotexists nm dbnm eidlist_opt AS select */ yytestcase(yyruleno==82);
      /* (83) cmd ::= DROP VIEW ifexists fullname */ yytestcase(yyruleno==83);
      /* (84) cmd ::= select (OPTIMIZED OUT) */ assert(yyruleno!=84);
      /* (85) select ::= WITH wqlist selectnowith */ yytestcase(yyruleno==85);
      /* (86) select ::= WITH RECURSIVE wqlist selectnowith */ yytestcase(yyruleno==86);
      /* (87) select ::= selectnowith */ yytestcase(yyruleno==87);
      /* (88) selectnowith ::= selectnowith multiselect_op oneselect */ yytestcase(yyruleno==88);
      /* (89) multiselect_op ::= UNION */ yytestcase(yyruleno==89);
      /* (90) multiselect_op ::= UNION ALL */ yytestcase(yyruleno==90);
      /* (91) multiselect_op ::= EXCEPT|INTERSECT */ yytestcase(yyruleno==91);
      /* (92) oneselect ::= SELECT distinct selcollist from where_opt groupby_opt having_opt orderby_opt limit_opt */ yytestcase(yyruleno==92);
      /* (93) oneselect ::= SELECT distinct selcollist from where_opt groupby_opt having_opt window_clause orderby_opt limit_opt */ yytestcase(yyruleno==93);
      /* (94) values ::= VALUES LP nexprlist RP */ yytestcase(yyruleno==94);
      /* (95) values ::= values COMMA LP nexprlist RP */ yytestcase(yyruleno==95);
      /* (96) distinct ::= DISTINCT */ yytestcase(yyruleno==96);
      /* (97) distinct ::= ALL */ yytestcase(yyruleno==97);
      /* (98) distinct ::= */ yytestcase(yyruleno==98);
      /* (99) sclp ::= */ yytestcase(yyruleno==99);
      /* (100) selcollist ::= sclp scanpt expr scanpt as */ yytestcase(yyruleno==100);
      /* (101) selcollist ::= sclp scanpt STAR */ yytestcase(yyruleno==101);
      /* (102) selcollist ::= sclp scanpt nm DOT STAR */ yytestcase(yyruleno==102);
      /* (103) as ::= AS nm */ yytestcase(yyruleno==103);
      /* (104) as ::= */ yytestcase(yyruleno==104);
      /* (105) from ::= */ yytestcase(yyruleno==105);
      /* (106) from ::= FROM seltablist */ yytestcase(yyruleno==106);
      /* (107) stl_prefix ::= seltablist joinop */ yytestcase(yyruleno==107);
      /* (108) stl_prefix ::= */ yytestcase(yyruleno==108);
      /* (109) seltablist ::= stl_prefix nm dbnm as on_using */ yytestcase(yyruleno==109);
      /* (110) seltablist ::= stl_prefix nm dbnm as indexed_by on_using */ yytestcase(yyruleno==110);
      /* (111) seltablist ::= stl_prefix nm dbnm LP exprlist RP as on_using */ yytestcase(yyruleno==111);
      /* (112) seltablist ::= stl_prefix LP select RP as on_using */ yytestcase(yyruleno==112);
      /* (113) seltablist ::= stl_prefix LP seltablist RP as on_using */ yytestcase(yyruleno==113);
      /* (114) dbnm ::= */ yytestcase(yyruleno==114);
      /* (115) dbnm ::= DOT nm */ yytestcase(yyruleno==115);
      /* (116) fullname ::= nm */ yytestcase(yyruleno==116);
      /* (117) fullname ::= nm DOT nm */ yytestcase(yyruleno==117);
      /* (118) xfullname ::= nm */ yytestcase(yyruleno==118);
      /* (119) xfullname ::= nm DOT nm */ yytestcase(yyruleno==119);
      /* (120) xfullname ::= nm DOT nm AS nm */ yytestcase(yyruleno==120);
      /* (121) xfullname ::= nm AS nm */ yytestcase(yyruleno==121);
      /* (122) joinop ::= COMMA|JOIN */ yytestcase(yyruleno==122);
      /* (123) joinop ::= JOIN_KW JOIN */ yytestcase(yyruleno==123);
      /* (124) joinop ::= JOIN_KW nm JOIN */ yytestcase(yyruleno==124);
      /* (125) joinop ::= JOIN_KW nm nm JOIN */ yytestcase(yyruleno==125);
      /* (126) on_using ::= ON expr */ yytestcase(yyruleno==126);
      /* (127) on_using ::= USING LP idlist RP */ yytestcase(yyruleno==127);
      /* (128) on_using ::= */ yytestcase(yyruleno==128);
      /* (129) indexed_opt ::= */ yytestcase(yyruleno==129);
      /* (130) indexed_by ::= INDEXED BY nm */ yytestcase(yyruleno==130);
      /* (131) indexed_by ::= NOT INDEXED */ yytestcase(yyruleno==131);
      /* (132) orderby_opt ::= */ yytestcase(yyruleno==132);
      /* (133) orderby_opt ::= ORDER BY sortlist */ yytestcase(yyruleno==133);
      /* (134) sortlist ::= sortlist COMMA expr sortorder nulls */ yytestcase(yyruleno==134);
      /* (135) sortlist ::= expr sortorder nulls */ yytestcase(yyruleno==135);
      /* (136) sortorder ::= ASC */ yytestcase(yyruleno==136);
      /* (137) sortorder ::= DESC */ yytestcase(yyruleno==137);
      /* (138) sortorder ::= */ yytestcase(yyruleno==138);
      /* (139) nulls ::= NULLS FIRST */ yytestcase(yyruleno==139);
      /* (140) nulls ::= NULLS LAST */ yytestcase(yyruleno==140);
      /* (141) nulls ::= */ yytestcase(yyruleno==141);
      /* (142) groupby_opt ::= */ yytestcase(yyruleno==142);
      /* (143) groupby_opt ::= GROUP BY nexprlist */ yytestcase(yyruleno==143);
      /* (144) having_opt ::= */ yytestcase(yyruleno==144);
      /* (145) having_opt ::= HAVING expr */ yytestcase(yyruleno==145);
      /* (146) limit_opt ::= */ yytestcase(yyruleno==146);
      /* (147) limit_opt ::= LIMIT expr */ yytestcase(yyruleno==147);
      /* (148) limit_opt ::= LIMIT expr OFFSET expr */ yytestcase(yyruleno==148);
      /* (149) limit_opt ::= LIMIT expr COMMA expr */ yytestcase(yyruleno==149);
      /* (150) cmd ::= with DELETE FROM xfullname indexed_opt where_opt_ret */ yytestcase(yyruleno==150);
      /* (151) where_opt ::= */ yytestcase(yyruleno==151);
      /* (152) where_opt ::= WHERE expr */ yytestcase(yyruleno==152);
      /* (153) where_opt_ret ::= */ yytestcase(yyruleno==153);
      /* (154) where_opt_ret ::= WHERE expr */ yytestcase(yyruleno==154);
      /* (155) where_opt_ret ::= RETURNING selcollist */ yytestcase(yyruleno==155);
      /* (156) where_opt_ret ::= WHERE expr RETURNING selcollist */ yytestcase(yyruleno==156);
      /* (157) cmd ::= with UPDATE orconf xfullname indexed_opt SET setlist from where_opt_ret */ yytestcase(yyruleno==157);
      /* (158) setlist ::= setlist COMMA nm EQ expr */ yytestcase(yyruleno==158);
      /* (159) setlist ::= setlist COMMA LP idlist RP EQ expr */ yytestcase(yyruleno==159);
      /* (160) setlist ::= nm EQ expr */ yytestcase(yyruleno==160);
      /* (161) setlist ::= LP idlist RP EQ expr */ yytestcase(yyruleno==161);
      /* (162) cmd ::= with insert_cmd INTO xfullname idlist_opt select upsert */ yytestcase(yyruleno==162);
      /* (163) cmd ::= with insert_cmd INTO xfullname idlist_opt DEFAULT VALUES returning */ yytestcase(yyruleno==163);
      /* (164) upsert ::= */ yytestcase(yyruleno==164);
      /* (165) upsert ::= RETURNING selcollist */ yytestcase(yyruleno==165);
      /* (166) upsert ::= ON CONFLICT LP sortlist RP where_opt DO UPDATE SET setlist where_opt upsert */ yytestcase(yyruleno==166);
      /* (167) upsert ::= ON CONFLICT LP sortlist RP where_opt DO NOTHING upsert */ yytestcase(yyruleno==167);
      /* (168) upsert ::= ON CONFLICT DO NOTHING returning */ yytestcase(yyruleno==168);
      /* (169) upsert ::= ON CONFLICT DO UPDATE SET setlist where_opt returning */ yytestcase(yyruleno==169);
      /* (170) returning ::= RETURNING selcollist */ yytestcase(yyruleno==170);
      /* (171) insert_cmd ::= INSERT orconf */ yytestcase(yyruleno==171);
      /* (172) insert_cmd ::= REPLACE */ yytestcase(yyruleno==172);
      /* (173) idlist_opt ::= */ yytestcase(yyruleno==173);
      /* (174) idlist_opt ::= LP idlist RP */ yytestcase(yyruleno==174);
      /* (175) idlist ::= idlist COMMA nm */ yytestcase(yyruleno==175);
      /* (176) idlist ::= nm (OPTIMIZED OUT) */ assert(yyruleno!=176);
      /* (177) expr ::= LP expr RP */ yytestcase(yyruleno==177);
      /* (178) expr ::= ID|INDEXED|JOIN_KW */ yytestcase(yyruleno==178);
      /* (179) expr ::= nm DOT nm */ yytestcase(yyruleno==179);
      /* (180) expr ::= nm DOT nm DOT nm */ yytestcase(yyruleno==180);
      /* (181) term ::= NULL|FLOAT|BLOB */ yytestcase(yyruleno==181);
      /* (182) term ::= STRING */ yytestcase(yyruleno==182);
      /* (183) term ::= INTEGER */ yytestcase(yyruleno==183);
      /* (184) expr ::= VARIABLE */ yytestcase(yyruleno==184);
      /* (185) expr ::= expr COLLATE ID|STRING */ yytestcase(yyruleno==185);
      /* (186) expr ::= CAST LP expr AS typetoken RP */ yytestcase(yyruleno==186);
      /* (187) expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist RP */ yytestcase(yyruleno==187);
      /* (188) expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist ORDER BY sortlist RP */ yytestcase(yyruleno==188);
      /* (189) expr ::= ID|INDEXED|JOIN_KW LP STAR RP */ yytestcase(yyruleno==189);
      /* (190) expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist RP filter_over */ yytestcase(yyruleno==190);
      /* (191) expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist ORDER BY sortlist RP filter_over */ yytestcase(yyruleno==191);
      /* (192) expr ::= ID|INDEXED|JOIN_KW LP STAR RP filter_over */ yytestcase(yyruleno==192);
      /* (193) term ::= CTIME_KW */ yytestcase(yyruleno==193);
      /* (194) expr ::= LP nexprlist COMMA expr RP */ yytestcase(yyruleno==194);
      /* (195) expr ::= expr AND expr */ yytestcase(yyruleno==195);
      /* (196) expr ::= expr OR expr */ yytestcase(yyruleno==196);
      /* (197) expr ::= expr LT|GT|GE|LE expr */ yytestcase(yyruleno==197);
      /* (198) expr ::= expr EQ|NE expr */ yytestcase(yyruleno==198);
      /* (199) expr ::= expr BITAND|BITOR|LSHIFT|RSHIFT expr */ yytestcase(yyruleno==199);
      /* (200) expr ::= expr PLUS|MINUS expr */ yytestcase(yyruleno==200);
      /* (201) expr ::= expr STAR|SLASH|REM expr */ yytestcase(yyruleno==201);
      /* (202) expr ::= expr CONCAT expr */ yytestcase(yyruleno==202);
      /* (203) likeop ::= NOT LIKE_KW|MATCH */ yytestcase(yyruleno==203);
      /* (204) expr ::= expr likeop expr */ yytestcase(yyruleno==204);
      /* (205) expr ::= expr likeop expr ESCAPE expr */ yytestcase(yyruleno==205);
      /* (206) expr ::= expr ISNULL|NOTNULL */ yytestcase(yyruleno==206);
      /* (207) expr ::= expr NOT NULL */ yytestcase(yyruleno==207);
      /* (208) expr ::= expr IS expr */ yytestcase(yyruleno==208);
      /* (209) expr ::= expr IS NOT expr */ yytestcase(yyruleno==209);
      /* (210) expr ::= expr IS NOT DISTINCT FROM expr */ yytestcase(yyruleno==210);
      /* (211) expr ::= expr IS DISTINCT FROM expr */ yytestcase(yyruleno==211);
      /* (212) expr ::= NOT expr */ yytestcase(yyruleno==212);
      /* (213) expr ::= BITNOT expr */ yytestcase(yyruleno==213);
      /* (214) expr ::= PLUS|MINUS expr */ yytestcase(yyruleno==214);
      /* (215) expr ::= expr PTR expr */ yytestcase(yyruleno==215);
      /* (216) between_op ::= BETWEEN */ yytestcase(yyruleno==216);
      /* (217) between_op ::= NOT BETWEEN */ yytestcase(yyruleno==217);
      /* (218) expr ::= expr between_op expr AND expr */ yytestcase(yyruleno==218);
      /* (219) in_op ::= IN */ yytestcase(yyruleno==219);
      /* (220) in_op ::= NOT IN */ yytestcase(yyruleno==220);
      /* (221) expr ::= expr in_op LP exprlist RP */ yytestcase(yyruleno==221);
      /* (222) expr ::= LP select RP */ yytestcase(yyruleno==222);
      /* (223) expr ::= expr in_op LP select RP */ yytestcase(yyruleno==223);
      /* (224) expr ::= expr in_op nm dbnm paren_exprlist */ yytestcase(yyruleno==224);
      /* (225) expr ::= EXISTS LP select RP */ yytestcase(yyruleno==225);
      /* (226) expr ::= CASE case_operand case_exprlist case_else END */ yytestcase(yyruleno==226);
      /* (227) case_exprlist ::= case_exprlist WHEN expr THEN expr */ yytestcase(yyruleno==227);
      /* (228) case_exprlist ::= WHEN expr THEN expr */ yytestcase(yyruleno==228);
      /* (229) case_else ::= ELSE expr */ yytestcase(yyruleno==229);
      /* (230) case_else ::= */ yytestcase(yyruleno==230);
      /* (231) case_operand ::= */ yytestcase(yyruleno==231);
      /* (232) exprlist ::= */ yytestcase(yyruleno==232);
      /* (233) nexprlist ::= nexprlist COMMA expr */ yytestcase(yyruleno==233);
      /* (234) nexprlist ::= expr */ yytestcase(yyruleno==234);
      /* (235) paren_exprlist ::= */ yytestcase(yyruleno==235);
      /* (236) paren_exprlist ::= LP exprlist RP */ yytestcase(yyruleno==236);
      /* (237) cmd ::= createkw uniqueflag INDEX ifnotexists nm dbnm ON nm LP sortlist RP where_opt */ yytestcase(yyruleno==237);
      /* (238) uniqueflag ::= UNIQUE */ yytestcase(yyruleno==238);
      /* (239) uniqueflag ::= */ yytestcase(yyruleno==239);
      /* (240) eidlist_opt ::= */ yytestcase(yyruleno==240);
      /* (241) eidlist_opt ::= LP eidlist RP */ yytestcase(yyruleno==241);
      /* (242) eidlist ::= eidlist COMMA nm collate sortorder */ yytestcase(yyruleno==242);
      /* (243) eidlist ::= nm collate sortorder */ yytestcase(yyruleno==243);
      /* (244) collate ::= */ yytestcase(yyruleno==244);
      /* (245) collate ::= COLLATE ID|STRING */ yytestcase(yyruleno==245);
      /* (246) cmd ::= DROP INDEX ifexists fullname */ yytestcase(yyruleno==246);
      /* (247) cmd ::= VACUUM vinto */ yytestcase(yyruleno==247);
      /* (248) cmd ::= VACUUM nm vinto */ yytestcase(yyruleno==248);
      /* (249) vinto ::= INTO expr */ yytestcase(yyruleno==249);
      /* (250) vinto ::= */ yytestcase(yyruleno==250);
      /* (251) cmd ::= PRAGMA nm dbnm */ yytestcase(yyruleno==251);
      /* (252) cmd ::= PRAGMA nm dbnm EQ nmnum */ yytestcase(yyruleno==252);
      /* (253) cmd ::= PRAGMA nm dbnm LP nmnum RP */ yytestcase(yyruleno==253);
      /* (254) cmd ::= PRAGMA nm dbnm EQ minus_num */ yytestcase(yyruleno==254);
      /* (255) cmd ::= PRAGMA nm dbnm LP minus_num RP */ yytestcase(yyruleno==255);
      /* (256) plus_num ::= PLUS INTEGER|FLOAT */ yytestcase(yyruleno==256);
      /* (257) minus_num ::= MINUS INTEGER|FLOAT */ yytestcase(yyruleno==257);
      /* (258) cmd ::= createkw trigger_decl BEGIN trigger_cmd_list END */ yytestcase(yyruleno==258);
      /* (259) trigger_decl ::= temp TRIGGER ifnotexists nm dbnm trigger_time trigger_event ON fullname foreach_clause when_clause */ yytestcase(yyruleno==259);
      /* (260) trigger_time ::= BEFORE|AFTER */ yytestcase(yyruleno==260);
      /* (261) trigger_time ::= INSTEAD OF */ yytestcase(yyruleno==261);
      /* (262) trigger_time ::= */ yytestcase(yyruleno==262);
      /* (263) trigger_event ::= DELETE|INSERT */ yytestcase(yyruleno==263);
      /* (264) trigger_event ::= UPDATE */ yytestcase(yyruleno==264);
      /* (265) trigger_event ::= UPDATE OF idlist */ yytestcase(yyruleno==265);
      /* (266) when_clause ::= */ yytestcase(yyruleno==266);
      /* (267) when_clause ::= WHEN expr */ yytestcase(yyruleno==267);
      /* (268) trigger_cmd_list ::= trigger_cmd_list trigger_cmd SEMI */ yytestcase(yyruleno==268);
      /* (269) trigger_cmd_list ::= trigger_cmd SEMI */ yytestcase(yyruleno==269);
      /* (270) trnm ::= nm DOT nm */ yytestcase(yyruleno==270);
      /* (271) tridxby ::= INDEXED BY nm */ yytestcase(yyruleno==271);
      /* (272) tridxby ::= NOT INDEXED */ yytestcase(yyruleno==272);
      /* (273) trigger_cmd ::= UPDATE orconf trnm tridxby SET setlist from where_opt scanpt */ yytestcase(yyruleno==273);
      /* (274) trigger_cmd ::= scanpt insert_cmd INTO trnm idlist_opt select upsert scanpt */ yytestcase(yyruleno==274);
      /* (275) trigger_cmd ::= DELETE FROM trnm tridxby where_opt scanpt */ yytestcase(yyruleno==275);
      /* (276) trigger_cmd ::= scanpt select scanpt */ yytestcase(yyruleno==276);
      /* (277) expr ::= RAISE LP IGNORE RP */ yytestcase(yyruleno==277);
      /* (278) expr ::= RAISE LP raisetype COMMA nm RP */ yytestcase(yyruleno==278);
      /* (279) raisetype ::= ROLLBACK */ yytestcase(yyruleno==279);
      /* (280) raisetype ::= ABORT */ yytestcase(yyruleno==280);
      /* (281) raisetype ::= FAIL */ yytestcase(yyruleno==281);
      /* (282) cmd ::= DROP TRIGGER ifexists fullname */ yytestcase(yyruleno==282);
      /* (283) cmd ::= ATTACH database_kw_opt expr AS expr key_opt */ yytestcase(yyruleno==283);
      /* (284) cmd ::= DETACH database_kw_opt expr */ yytestcase(yyruleno==284);
      /* (285) key_opt ::= */ yytestcase(yyruleno==285);
      /* (286) key_opt ::= KEY expr */ yytestcase(yyruleno==286);
      /* (287) cmd ::= REINDEX */ yytestcase(yyruleno==287);
      /* (288) cmd ::= REINDEX nm dbnm */ yytestcase(yyruleno==288);
      /* (289) cmd ::= ANALYZE */ yytestcase(yyruleno==289);
      /* (290) cmd ::= ANALYZE nm dbnm */ yytestcase(yyruleno==290);
      /* (291) cmd ::= ALTER TABLE fullname RENAME TO nm */ yytestcase(yyruleno==291);
      /* (292) cmd ::= ALTER TABLE add_column_fullname ADD kwcolumn_opt columnname carglist */ yytestcase(yyruleno==292);
      /* (293) cmd ::= ALTER TABLE fullname DROP kwcolumn_opt nm */ yytestcase(yyruleno==293);
      /* (294) add_column_fullname ::= fullname */ yytestcase(yyruleno==294);
      /* (295) cmd ::= ALTER TABLE fullname RENAME kwcolumn_opt nm TO nm */ yytestcase(yyruleno==295);
      /* (296) cmd ::= create_vtab */ yytestcase(yyruleno==296);
      /* (297) cmd ::= create_vtab LP vtabarglist RP */ yytestcase(yyruleno==297);
      /* (298) create_vtab ::= createkw VIRTUAL TABLE ifnotexists nm dbnm USING nm */ yytestcase(yyruleno==298);
      /* (299) vtabarg ::= */ yytestcase(yyruleno==299);
      /* (300) vtabargtoken ::= ANY */ yytestcase(yyruleno==300);
      /* (301) vtabargtoken ::= lp anylist RP */ yytestcase(yyruleno==301);
      /* (302) lp ::= LP */ yytestcase(yyruleno==302);
      /* (303) with ::= WITH wqlist */ yytestcase(yyruleno==303);
      /* (304) with ::= WITH RECURSIVE wqlist */ yytestcase(yyruleno==304);
      /* (305) wqas ::= AS */ yytestcase(yyruleno==305);
      /* (306) wqas ::= AS MATERIALIZED */ yytestcase(yyruleno==306);
      /* (307) wqas ::= AS NOT MATERIALIZED */ yytestcase(yyruleno==307);
      /* (308) wqitem ::= nm eidlist_opt wqas LP select RP */ yytestcase(yyruleno==308);
      /* (309) wqlist ::= wqitem (OPTIMIZED OUT) */ assert(yyruleno!=309);
      /* (310) wqlist ::= wqlist COMMA wqitem */ yytestcase(yyruleno==310);
      /* (311) windowdefn_list ::= windowdefn_list COMMA windowdefn */ yytestcase(yyruleno==311);
      /* (312) windowdefn ::= nm AS LP window RP */ yytestcase(yyruleno==312);
      /* (313) window ::= PARTITION BY nexprlist orderby_opt frame_opt */ yytestcase(yyruleno==313);
      /* (314) window ::= nm PARTITION BY nexprlist orderby_opt frame_opt */ yytestcase(yyruleno==314);
      /* (315) window ::= ORDER BY sortlist frame_opt */ yytestcase(yyruleno==315);
      /* (316) window ::= nm ORDER BY sortlist frame_opt */ yytestcase(yyruleno==316);
      /* (317) window ::= nm frame_opt */ yytestcase(yyruleno==317);
      /* (318) frame_opt ::= */ yytestcase(yyruleno==318);
      /* (319) frame_opt ::= range_or_rows frame_bound_s frame_exclude_opt */ yytestcase(yyruleno==319);
      /* (320) frame_opt ::= range_or_rows BETWEEN frame_bound_s AND frame_bound_e frame_exclude_opt */ yytestcase(yyruleno==320);
      /* (321) range_or_rows ::= RANGE|ROWS|GROUPS */ yytestcase(yyruleno==321);
      /* (322) frame_bound_s ::= frame_bound (OPTIMIZED OUT) */ assert(yyruleno!=322);
      /* (323) frame_bound_s ::= UNBOUNDED PRECEDING */ yytestcase(yyruleno==323);
      /* (324) frame_bound_e ::= frame_bound (OPTIMIZED OUT) */ assert(yyruleno!=324);
      /* (325) frame_bound_e ::= UNBOUNDED FOLLOWING */ yytestcase(yyruleno==325);
      /* (326) frame_bound ::= expr PRECEDING|FOLLOWING */ yytestcase(yyruleno==326);
      /* (327) frame_bound ::= CURRENT ROW */ yytestcase(yyruleno==327);
      /* (328) frame_exclude_opt ::= */ yytestcase(yyruleno==328);
      /* (329) frame_exclude_opt ::= EXCLUDE frame_exclude */ yytestcase(yyruleno==329);
      /* (330) frame_exclude ::= NO OTHERS */ yytestcase(yyruleno==330);
      /* (331) frame_exclude ::= CURRENT ROW */ yytestcase(yyruleno==331);
      /* (332) frame_exclude ::= GROUP|TIES */ yytestcase(yyruleno==332);
      /* (333) window_clause ::= WINDOW windowdefn_list */ yytestcase(yyruleno==333);
      /* (334) filter_over ::= filter_clause over_clause */ yytestcase(yyruleno==334);
      /* (335) filter_over ::= over_clause (OPTIMIZED OUT) */ assert(yyruleno!=335);
      /* (336) filter_over ::= filter_clause */ yytestcase(yyruleno==336);
      /* (337) over_clause ::= OVER LP window RP */ yytestcase(yyruleno==337);
      /* (338) over_clause ::= OVER nm */ yytestcase(yyruleno==338);
      /* (339) filter_clause ::= FILTER LP WHERE expr RP */ yytestcase(yyruleno==339);
      /* (340) input ::= cmdlist */ yytestcase(yyruleno==340);
      /* (341) cmdlist ::= cmdlist ecmd */ yytestcase(yyruleno==341);
      /* (342) cmdlist ::= ecmd (OPTIMIZED OUT) */ assert(yyruleno!=342);
      /* (343) ecmd ::= SEMI */ yytestcase(yyruleno==343);
      /* (344) ecmd ::= cmdx SEMI */ yytestcase(yyruleno==344);
      /* (345) ecmd ::= explain cmdx SEMI */ yytestcase(yyruleno==345);
      /* (346) trans_opt ::= */ yytestcase(yyruleno==346);
      /* (347) trans_opt ::= TRANSACTION */ yytestcase(yyruleno==347);
      /* (348) trans_opt ::= TRANSACTION nm */ yytestcase(yyruleno==348);
      /* (349) savepoint_opt ::= SAVEPOINT */ yytestcase(yyruleno==349);
      /* (350) savepoint_opt ::= */ yytestcase(yyruleno==350);
      /* (351) cmd ::= create_table create_table_args */ yytestcase(yyruleno==351);
      /* (352) table_option_set ::= table_option (OPTIMIZED OUT) */ assert(yyruleno!=352);
      /* (353) columnlist ::= columnlist COMMA columnname carglist */ yytestcase(yyruleno==353);
      /* (354) columnlist ::= columnname carglist */ yytestcase(yyruleno==354);
      /* (355) nm ::= ID|INDEXED|JOIN_KW */ yytestcase(yyruleno==355);
      /* (356) nm ::= STRING */ yytestcase(yyruleno==356);
      /* (357) typetoken ::= typename */ yytestcase(yyruleno==357);
      /* (358) typename ::= ID|STRING */ yytestcase(yyruleno==358);
      /* (359) signed ::= plus_num (OPTIMIZED OUT) */ assert(yyruleno!=359);
      /* (360) signed ::= minus_num (OPTIMIZED OUT) */ assert(yyruleno!=360);
      /* (361) carglist ::= carglist ccons */ yytestcase(yyruleno==361);
      /* (362) carglist ::= */ yytestcase(yyruleno==362);
      /* (363) ccons ::= NULL onconf */ yytestcase(yyruleno==363);
      /* (364) ccons ::= GENERATED ALWAYS AS generated */ yytestcase(yyruleno==364);
      /* (365) ccons ::= AS generated */ yytestcase(yyruleno==365);
      /* (366) conslist_opt ::= COMMA conslist */ yytestcase(yyruleno==366);
      /* (367) conslist ::= conslist tconscomma tcons */ yytestcase(yyruleno==367);
      /* (368) conslist ::= tcons (OPTIMIZED OUT) */ assert(yyruleno!=368);
      /* (369) tconscomma ::= */ yytestcase(yyruleno==369);
      /* (370) defer_subclause_opt ::= defer_subclause (OPTIMIZED OUT) */ assert(yyruleno!=370);
      /* (371) resolvetype ::= raisetype (OPTIMIZED OUT) */ assert(yyruleno!=371);
      /* (372) selectnowith ::= oneselect (OPTIMIZED OUT) */ assert(yyruleno!=372);
      /* (373) oneselect ::= values */ yytestcase(yyruleno==373);
      /* (374) sclp ::= selcollist COMMA */ yytestcase(yyruleno==374);
      /* (375) as ::= ID|STRING */ yytestcase(yyruleno==375);
      /* (376) indexed_opt ::= indexed_by (OPTIMIZED OUT) */ assert(yyruleno!=376);
      /* (377) returning ::= */ yytestcase(yyruleno==377);
      /* (378) expr ::= term (OPTIMIZED OUT) */ assert(yyruleno!=378);
      /* (379) likeop ::= LIKE_KW|MATCH */ yytestcase(yyruleno==379);
      /* (380) case_operand ::= expr */ yytestcase(yyruleno==380);
      /* (381) exprlist ::= nexprlist */ yytestcase(yyruleno==381);
      /* (382) nmnum ::= plus_num (OPTIMIZED OUT) */ assert(yyruleno!=382);
      /* (383) nmnum ::= nm (OPTIMIZED OUT) */ assert(yyruleno!=383);
      /* (384) nmnum ::= ON */ yytestcase(yyruleno==384);
      /* (385) nmnum ::= DELETE */ yytestcase(yyruleno==385);
      /* (386) nmnum ::= DEFAULT */ yytestcase(yyruleno==386);
      /* (387) plus_num ::= INTEGER|FLOAT */ yytestcase(yyruleno==387);
      /* (388) foreach_clause ::= */ yytestcase(yyruleno==388);
      /* (389) foreach_clause ::= FOR EACH ROW */ yytestcase(yyruleno==389);
      /* (390) trnm ::= nm */ yytestcase(yyruleno==390);
      /* (391) tridxby ::= */ yytestcase(yyruleno==391);
      /* (392) database_kw_opt ::= DATABASE */ yytestcase(yyruleno==392);
      /* (393) database_kw_opt ::= */ yytestcase(yyruleno==393);
      /* (394) kwcolumn_opt ::= */ yytestcase(yyruleno==394);
      /* (395) kwcolumn_opt ::= COLUMNKW */ yytestcase(yyruleno==395);
      /* (396) vtabarglist ::= vtabarg */ yytestcase(yyruleno==396);
      /* (397) vtabarglist ::= vtabarglist COMMA vtabarg */ yytestcase(yyruleno==397);
      /* (398) vtabarg ::= vtabarg vtabargtoken */ yytestcase(yyruleno==398);
      /* (399) anylist ::= */ yytestcase(yyruleno==399);
      /* (400) anylist ::= anylist LP anylist RP */ yytestcase(yyruleno==400);
      /* (401) anylist ::= anylist ANY */ yytestcase(yyruleno==401);
      /* (402) with ::= */ yytestcase(yyruleno==402);
      /* (403) windowdefn_list ::= windowdefn (OPTIMIZED OUT) */ assert(yyruleno!=403);
      /* (404) window ::= frame_opt (OPTIMIZED OUT) */ assert(yyruleno!=404);
        break;
/********** End reduce actions ************************************************/
  };
  assert( yyruleno<sizeof(yyRuleInfoLhs)/sizeof(yyRuleInfoLhs[0]) );
  yygoto = yyRuleInfoLhs[yyruleno];
  yysize = yyRuleInfoNRhs[yyruleno];
  yyact = yy_find_reduce_action(yymsp[yysize].stateno,(YYCODETYPE)yygoto);

  /* There are no SHIFTREDUCE actions on nonterminals because the table
  ** generator has simplified them to pure REDUCE actions. */
  assert( !(yyact>YY_MAX_SHIFT && yyact<=YY_MAX_SHIFTREDUCE) );

  /* It is not possible for a REDUCE to be followed by an error */
  assert( yyact!=YY_ERROR_ACTION );

  yymsp += yysize+1;
  yypParser->yytos = yymsp;
  yymsp->stateno = (YYACTIONTYPE)yyact;
  yymsp->major = (YYCODETYPE)yygoto;
  yyTraceShift(yypParser, yyact, "... then shift");
  return yyact;
}

/*
** The following code executes when the parse fails
*/
#ifndef YYNOERRORRECOVERY
static void yy_parse_failed(
  yyParser *yypParser           /* The parser */
){
  PerfettoSqlParserARG_FETCH
  PerfettoSqlParserCTX_FETCH
#ifndef NDEBUG
  if( yyTraceFILE ){
    fprintf(yyTraceFILE,"%sFail!\n",yyTracePrompt);
  }
#endif
  while( yypParser->yytos>yypParser->yystack ) yy_pop_parser_stack(yypParser);
  /* Here code is inserted which will be executed whenever the
  ** parser fails */
/************ Begin %parse_failure code ***************************************/
/************ End %parse_failure code *****************************************/
  PerfettoSqlParserARG_STORE /* Suppress warning about unused %extra_argument variable */
  PerfettoSqlParserCTX_STORE
}
#endif /* YYNOERRORRECOVERY */

/*
** The following code executes when a syntax error first occurs.
*/
static void yy_syntax_error(
  yyParser *yypParser,           /* The parser */
  int yymajor,                   /* The major type of the error token */
  PerfettoSqlParserTOKENTYPE yyminor         /* The minor type of the error token */
){
  PerfettoSqlParserARG_FETCH
  PerfettoSqlParserCTX_FETCH
#define TOKEN yyminor
/************ Begin %syntax_error code ****************************************/
/************ End %syntax_error code ******************************************/
  PerfettoSqlParserARG_STORE /* Suppress warning about unused %extra_argument variable */
  PerfettoSqlParserCTX_STORE
}

/*
** The following is executed when the parser accepts
*/
static void yy_accept(
  yyParser *yypParser           /* The parser */
){
  PerfettoSqlParserARG_FETCH
  PerfettoSqlParserCTX_FETCH
#ifndef NDEBUG
  if( yyTraceFILE ){
    fprintf(yyTraceFILE,"%sAccept!\n",yyTracePrompt);
  }
#endif
#ifndef YYNOERRORRECOVERY
  yypParser->yyerrcnt = -1;
#endif
  assert( yypParser->yytos==yypParser->yystack );
  /* Here code is inserted which will be executed whenever the
  ** parser accepts */
/*********** Begin %parse_accept code *****************************************/
/*********** End %parse_accept code *******************************************/
  PerfettoSqlParserARG_STORE /* Suppress warning about unused %extra_argument variable */
  PerfettoSqlParserCTX_STORE
}

/* The main parser program.
** The first argument is a pointer to a structure obtained from
** "PerfettoSqlParserAlloc" which describes the current state of the parser.
** The second argument is the major token number.  The third is
** the minor token.  The fourth optional argument is whatever the
** user wants (and specified in the grammar) and is available for
** use by the action routines.
**
** Inputs:
** <ul>
** <li> A pointer to the parser (an opaque structure.)
** <li> The major token number.
** <li> The minor token number.
** <li> An option argument of a grammar-specified type.
** </ul>
**
** Outputs:
** None.
*/
void PerfettoSqlParser(
  void *yyp,                   /* The parser */
  int yymajor,                 /* The major token code number */
  PerfettoSqlParserTOKENTYPE yyminor       /* The value for the token */
  PerfettoSqlParserARG_PDECL               /* Optional %extra_argument parameter */
){
  YYMINORTYPE yyminorunion;
  YYACTIONTYPE yyact;   /* The parser action. */
#if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY)
  int yyendofinput;     /* True if we are at the end of input */
#endif
#ifdef YYERRORSYMBOL
  int yyerrorhit = 0;   /* True if yymajor has invoked an error */
#endif
  yyParser *yypParser = (yyParser*)yyp;  /* The parser */
  PerfettoSqlParserCTX_FETCH
  PerfettoSqlParserARG_STORE

  assert( yypParser->yytos!=0 );
#if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY)
  yyendofinput = (yymajor==0);
#endif

  yyact = yypParser->yytos->stateno;
#ifndef NDEBUG
  if( yyTraceFILE ){
    if( yyact < YY_MIN_REDUCE ){
      fprintf(yyTraceFILE,"%sInput '%s' in state %d\n",
              yyTracePrompt,yyTokenName[yymajor],yyact);
    }else{
      fprintf(yyTraceFILE,"%sInput '%s' with pending reduce %d\n",
              yyTracePrompt,yyTokenName[yymajor],yyact-YY_MIN_REDUCE);
    }
  }
#endif

  while(1){ /* Exit by "break" */
    assert( yypParser->yytos>=yypParser->yystack );
    assert( yyact==yypParser->yytos->stateno );
    yyact = yy_find_shift_action((YYCODETYPE)yymajor,yyact);
    if( yyact >= YY_MIN_REDUCE ){
      unsigned int yyruleno = yyact - YY_MIN_REDUCE; /* Reduce by this rule */
#ifndef NDEBUG
      assert( yyruleno<(int)(sizeof(yyRuleName)/sizeof(yyRuleName[0])) );
      if( yyTraceFILE ){
        int yysize = yyRuleInfoNRhs[yyruleno];
        if( yysize ){
          fprintf(yyTraceFILE, "%sReduce %d [%s]%s, pop back to state %d.\n",
            yyTracePrompt,
            yyruleno, yyRuleName[yyruleno],
            yyruleno<YYNRULE_WITH_ACTION ? "" : " without external action",
            yypParser->yytos[yysize].stateno);
        }else{
          fprintf(yyTraceFILE, "%sReduce %d [%s]%s.\n",
            yyTracePrompt, yyruleno, yyRuleName[yyruleno],
            yyruleno<YYNRULE_WITH_ACTION ? "" : " without external action");
        }
      }
#endif /* NDEBUG */

      /* Check that the stack is large enough to grow by a single entry
      ** if the RHS of the rule is empty.  This ensures that there is room
      ** enough on the stack to push the LHS value */
      if( yyRuleInfoNRhs[yyruleno]==0 ){
#ifdef YYTRACKMAXSTACKDEPTH
        if( (int)(yypParser->yytos - yypParser->yystack)>yypParser->yyhwm ){
          yypParser->yyhwm++;
          assert( yypParser->yyhwm ==
                  (int)(yypParser->yytos - yypParser->yystack));
        }
#endif
#if YYSTACKDEPTH>0 
        if( yypParser->yytos>=yypParser->yystackEnd ){
          yyStackOverflow(yypParser);
          break;
        }
#else
        if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz-1] ){
          if( yyGrowStack(yypParser) ){
            yyStackOverflow(yypParser);
            break;
          }
        }
#endif
      }
      yyact = yy_reduce(yypParser,yyruleno,yymajor,yyminor PerfettoSqlParserCTX_PARAM);
    }else if( yyact <= YY_MAX_SHIFTREDUCE ){
      yy_shift(yypParser,yyact,(YYCODETYPE)yymajor,yyminor);
#ifndef YYNOERRORRECOVERY
      yypParser->yyerrcnt--;
#endif
      break;
    }else if( yyact==YY_ACCEPT_ACTION ){
      yypParser->yytos--;
      yy_accept(yypParser);
      return;
    }else{
      assert( yyact == YY_ERROR_ACTION );
      yyminorunion.yy0 = yyminor;
#ifdef YYERRORSYMBOL
      int yymx;
#endif
#ifndef NDEBUG
      if( yyTraceFILE ){
        fprintf(yyTraceFILE,"%sSyntax Error!\n",yyTracePrompt);
      }
#endif
#ifdef YYERRORSYMBOL
      /* A syntax error has occurred.
      ** The response to an error depends upon whether or not the
      ** grammar defines an error token "ERROR".  
      **
      ** This is what we do if the grammar does define ERROR:
      **
      **  * Call the %syntax_error function.
      **
      **  * Begin popping the stack until we enter a state where
      **    it is legal to shift the error symbol, then shift
      **    the error symbol.
      **
      **  * Set the error count to three.
      **
      **  * Begin accepting and shifting new tokens.  No new error
      **    processing will occur until three tokens have been
      **    shifted successfully.
      **
      */
      if( yypParser->yyerrcnt<0 ){
        yy_syntax_error(yypParser,yymajor,yyminor);
      }
      yymx = yypParser->yytos->major;
      if( yymx==YYERRORSYMBOL || yyerrorhit ){
#ifndef NDEBUG
        if( yyTraceFILE ){
          fprintf(yyTraceFILE,"%sDiscard input token %s\n",
             yyTracePrompt,yyTokenName[yymajor]);
        }
#endif
        yy_destructor(yypParser, (YYCODETYPE)yymajor, &yyminorunion);
        yymajor = YYNOCODE;
      }else{
        while( yypParser->yytos > yypParser->yystack ){
          yyact = yy_find_reduce_action(yypParser->yytos->stateno,
                                        YYERRORSYMBOL);
          if( yyact<=YY_MAX_SHIFTREDUCE ) break;
          yy_pop_parser_stack(yypParser);
        }
        if( yypParser->yytos <= yypParser->yystack || yymajor==0 ){
          yy_destructor(yypParser,(YYCODETYPE)yymajor,&yyminorunion);
          yy_parse_failed(yypParser);
#ifndef YYNOERRORRECOVERY
          yypParser->yyerrcnt = -1;
#endif
          yymajor = YYNOCODE;
        }else if( yymx!=YYERRORSYMBOL ){
          yy_shift(yypParser,yyact,YYERRORSYMBOL,yyminor);
        }
      }
      yypParser->yyerrcnt = 3;
      yyerrorhit = 1;
      if( yymajor==YYNOCODE ) break;
      yyact = yypParser->yytos->stateno;
#elif defined(YYNOERRORRECOVERY)
      /* If the YYNOERRORRECOVERY macro is defined, then do not attempt to
      ** do any kind of error recovery.  Instead, simply invoke the syntax
      ** error routine and continue going as if nothing had happened.
      **
      ** Applications can set this macro (for example inside %include) if
      ** they intend to abandon the parse upon the first syntax error seen.
      */
      yy_syntax_error(yypParser,yymajor, yyminor);
      yy_destructor(yypParser,(YYCODETYPE)yymajor,&yyminorunion);
      break;
#else  /* YYERRORSYMBOL is not defined */
      /* This is what we do if the grammar does not define ERROR:
      **
      **  * Report an error message, and throw away the input token.
      **
      **  * If the input token is $, then fail the parse.
      **
      ** As before, subsequent error messages are suppressed until
      ** three input tokens have been successfully shifted.
      */
      if( yypParser->yyerrcnt<=0 ){
        yy_syntax_error(yypParser,yymajor, yyminor);
      }
      yypParser->yyerrcnt = 3;
      yy_destructor(yypParser,(YYCODETYPE)yymajor,&yyminorunion);
      if( yyendofinput ){
        yy_parse_failed(yypParser);
#ifndef YYNOERRORRECOVERY
        yypParser->yyerrcnt = -1;
#endif
      }
      break;
#endif
    }
  }
#ifndef NDEBUG
  if( yyTraceFILE ){
    yyStackEntry *i;
    char cDiv = '[';
    fprintf(yyTraceFILE,"%sReturn. Stack=",yyTracePrompt);
    for(i=&yypParser->yystack[1]; i<=yypParser->yytos; i++){
      fprintf(yyTraceFILE,"%c%s", cDiv, yyTokenName[i->major]);
      cDiv = ' ';
    }
    fprintf(yyTraceFILE,"]\n");
  }
#endif
  return;
}

/*
** Return the fallback token corresponding to canonical token iToken, or
** 0 if iToken has no fallback.
*/
int PerfettoSqlParserFallback(int iToken){
#ifdef YYFALLBACK
  assert( iToken<(int)(sizeof(yyFallback)/sizeof(yyFallback[0])) );
  return yyFallback[iToken];
#else
  (void)iToken;
  return 0;
#endif
}
