os/persistentdata/persistentstorage/sql/SQLite/parse.c
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/persistentdata/persistentstorage/sql/SQLite/parse.c	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,3463 @@
     1.4 +/* Driver template for the LEMON parser generator.
     1.5 +** The author disclaims copyright to this source code.
     1.6 +*/
     1.7 +/* First off, code is included that follows the "include" declaration
     1.8 +** in the input grammar file. */
     1.9 +#include <stdio.h>
    1.10 +#line 51 "parse.y"
    1.11 +
    1.12 +#include "sqliteInt.h"
    1.13 +
    1.14 +/*
    1.15 +** An instance of this structure holds information about the
    1.16 +** LIMIT clause of a SELECT statement.
    1.17 +*/
    1.18 +struct LimitVal {
    1.19 +  Expr *pLimit;    /* The LIMIT expression.  NULL if there is no limit */
    1.20 +  Expr *pOffset;   /* The OFFSET expression.  NULL if there is none */
    1.21 +};
    1.22 +
    1.23 +/*
    1.24 +** An instance of this structure is used to store the LIKE,
    1.25 +** GLOB, NOT LIKE, and NOT GLOB operators.
    1.26 +*/
    1.27 +struct LikeOp {
    1.28 +  Token eOperator;  /* "like" or "glob" or "regexp" */
    1.29 +  int not;         /* True if the NOT keyword is present */
    1.30 +};
    1.31 +
    1.32 +/*
    1.33 +** An instance of the following structure describes the event of a
    1.34 +** TRIGGER.  "a" is the event type, one of TK_UPDATE, TK_INSERT,
    1.35 +** TK_DELETE, or TK_INSTEAD.  If the event is of the form
    1.36 +**
    1.37 +**      UPDATE ON (a,b,c)
    1.38 +**
    1.39 +** Then the "b" IdList records the list "a,b,c".
    1.40 +*/
    1.41 +struct TrigEvent { int a; IdList * b; };
    1.42 +
    1.43 +/*
    1.44 +** An instance of this structure holds the ATTACH key and the key type.
    1.45 +*/
    1.46 +struct AttachKey { int type;  Token key; };
    1.47 +
    1.48 +#line 48 "parse.c"
    1.49 +/* Next is all token values, in a form suitable for use by makeheaders.
    1.50 +** This section will be null unless lemon is run with the -m switch.
    1.51 +*/
    1.52 +/* 
    1.53 +** These constants (all generated automatically by the parser generator)
    1.54 +** specify the various kinds of tokens (terminals) that the parser
    1.55 +** understands. 
    1.56 +**
    1.57 +** Each symbol here is a terminal symbol in the grammar.
    1.58 +*/
    1.59 +/* Make sure the INTERFACE macro is defined.
    1.60 +*/
    1.61 +#ifndef INTERFACE
    1.62 +# define INTERFACE 1
    1.63 +#endif
    1.64 +/* The next thing included is series of defines which control
    1.65 +** various aspects of the generated parser.
    1.66 +**    YYCODETYPE         is the data type used for storing terminal
    1.67 +**                       and nonterminal numbers.  "unsigned char" is
    1.68 +**                       used if there are fewer than 250 terminals
    1.69 +**                       and nonterminals.  "int" is used otherwise.
    1.70 +**    YYNOCODE           is a number of type YYCODETYPE which corresponds
    1.71 +**                       to no legal terminal or nonterminal number.  This
    1.72 +**                       number is used to fill in empty slots of the hash 
    1.73 +**                       table.
    1.74 +**    YYFALLBACK         If defined, this indicates that one or more tokens
    1.75 +**                       have fall-back values which should be used if the
    1.76 +**                       original value of the token will not parse.
    1.77 +**    YYACTIONTYPE       is the data type used for storing terminal
    1.78 +**                       and nonterminal numbers.  "unsigned char" is
    1.79 +**                       used if there are fewer than 250 rules and
    1.80 +**                       states combined.  "int" is used otherwise.
    1.81 +**    sqlite3ParserTOKENTYPE     is the data type used for minor tokens given 
    1.82 +**                       directly to the parser from the tokenizer.
    1.83 +**    YYMINORTYPE        is the data type used for all minor tokens.
    1.84 +**                       This is typically a union of many types, one of
    1.85 +**                       which is sqlite3ParserTOKENTYPE.  The entry in the union
    1.86 +**                       for base tokens is called "yy0".
    1.87 +**    YYSTACKDEPTH       is the maximum depth of the parser's stack.  If
    1.88 +**                       zero the stack is dynamically sized using realloc()
    1.89 +**    sqlite3ParserARG_SDECL     A static variable declaration for the %extra_argument
    1.90 +**    sqlite3ParserARG_PDECL     A parameter declaration for the %extra_argument
    1.91 +**    sqlite3ParserARG_STORE     Code to store %extra_argument into yypParser
    1.92 +**    sqlite3ParserARG_FETCH     Code to extract %extra_argument from yypParser
    1.93 +**    YYNSTATE           the combined number of states.
    1.94 +**    YYNRULE            the number of rules in the grammar
    1.95 +**    YYERRORSYMBOL      is the code number of the error symbol.  If not
    1.96 +**                       defined, then do no error processing.
    1.97 +*/
    1.98 +#define YYCODETYPE unsigned char
    1.99 +#define YYNOCODE 242
   1.100 +#define YYACTIONTYPE unsigned short int
   1.101 +#define YYWILDCARD 59
   1.102 +#define sqlite3ParserTOKENTYPE Token
   1.103 +typedef union {
   1.104 +  sqlite3ParserTOKENTYPE yy0;
   1.105 +  ExprList* yy44;
   1.106 +  int yy124;
   1.107 +  TriggerStep* yy137;
   1.108 +  SrcList* yy149;
   1.109 +  Expr* yy162;
   1.110 +  struct LikeOp yy168;
   1.111 +  struct LimitVal yy278;
   1.112 +  Select* yy313;
   1.113 +  struct {int value; int mask;} yy317;
   1.114 +  IdList* yy326;
   1.115 +  struct TrigEvent yy412;
   1.116 +} YYMINORTYPE;
   1.117 +#ifndef YYSTACKDEPTH
   1.118 +#define YYSTACKDEPTH 100
   1.119 +#endif
   1.120 +#define sqlite3ParserARG_SDECL Parse *pParse;
   1.121 +#define sqlite3ParserARG_PDECL ,Parse *pParse
   1.122 +#define sqlite3ParserARG_FETCH Parse *pParse = yypParser->pParse
   1.123 +#define sqlite3ParserARG_STORE yypParser->pParse = pParse
   1.124 +#define YYNSTATE 569
   1.125 +#define YYNRULE 301
   1.126 +#define YYFALLBACK 1
   1.127 +#define YY_NO_ACTION      (YYNSTATE+YYNRULE+2)
   1.128 +#define YY_ACCEPT_ACTION  (YYNSTATE+YYNRULE+1)
   1.129 +#define YY_ERROR_ACTION   (YYNSTATE+YYNRULE)
   1.130 +
   1.131 +/* The yyzerominor constant is used to initialize instances of
   1.132 +** YYMINORTYPE objects to zero. */
   1.133 +static const YYMINORTYPE yyzerominor;
   1.134 +
   1.135 +/* Next are the tables used to determine what action to take based on the
   1.136 +** current state and lookahead token.  These tables are used to implement
   1.137 +** functions that take a state number and lookahead value and return an
   1.138 +** action integer.  
   1.139 +**
   1.140 +** Suppose the action integer is N.  Then the action is determined as
   1.141 +** follows
   1.142 +**
   1.143 +**   0 <= N < YYNSTATE                  Shift N.  That is, push the lookahead
   1.144 +**                                      token onto the stack and goto state N.
   1.145 +**
   1.146 +**   YYNSTATE <= N < YYNSTATE+YYNRULE   Reduce by rule N-YYNSTATE.
   1.147 +**
   1.148 +**   N == YYNSTATE+YYNRULE              A syntax error has occurred.
   1.149 +**
   1.150 +**   N == YYNSTATE+YYNRULE+1            The parser accepts its input.
   1.151 +**
   1.152 +**   N == YYNSTATE+YYNRULE+2            No such action.  Denotes unused
   1.153 +**                                      slots in the yy_action[] table.
   1.154 +**
   1.155 +** The action table is constructed as a single large table named yy_action[].
   1.156 +** Given state S and lookahead X, the action is computed as
   1.157 +**
   1.158 +**      yy_action[ yy_shift_ofst[S] + X ]
   1.159 +**
   1.160 +** If the index value yy_shift_ofst[S]+X is out of range or if the value
   1.161 +** yy_lookahead[yy_shift_ofst[S]+X] is not equal to X or if yy_shift_ofst[S]
   1.162 +** is equal to YY_SHIFT_USE_DFLT, it means that the action is not in the table
   1.163 +** and that yy_default[S] should be used instead.  
   1.164 +**
   1.165 +** The formula above is for computing the action when the lookahead is
   1.166 +** a terminal symbol.  If the lookahead is a non-terminal (as occurs after
   1.167 +** a reduce action) then the yy_reduce_ofst[] array is used in place of
   1.168 +** the yy_shift_ofst[] array and YY_REDUCE_USE_DFLT is used in place of
   1.169 +** YY_SHIFT_USE_DFLT.
   1.170 +**
   1.171 +** The following are the tables generated in this section:
   1.172 +**
   1.173 +**  yy_action[]        A single table containing all actions.
   1.174 +**  yy_lookahead[]     A table containing the lookahead for each entry in
   1.175 +**                     yy_action.  Used to detect hash collisions.
   1.176 +**  yy_shift_ofst[]    For each state, the offset into yy_action for
   1.177 +**                     shifting terminals.
   1.178 +**  yy_reduce_ofst[]   For each state, the offset into yy_action for
   1.179 +**                     shifting non-terminals after a reduce.
   1.180 +**  yy_default[]       Default action for each state.
   1.181 +*/
   1.182 +static const YYACTIONTYPE yy_action[] = {
   1.183 + /*     0 */   284,  871,  131,  568,  397,  172,    2,  406,   82,   82,
   1.184 + /*    10 */    82,   82,  506,   70,   70,   70,   70,   79,   79,   80,
   1.185 + /*    20 */    80,   80,   76,  204,  255,  301,  413,  419,   77,   70,
   1.186 + /*    30 */    70,   70,   70,   79,   79,   80,   80,   80,   76,  204,
   1.187 + /*    40 */   439,  437,  334,  162,   58,   87,  295,  423,  424,  420,
   1.188 + /*    50 */   420,   66,   66,   82,   82,   82,   82,  175,   70,   70,
   1.189 + /*    60 */    70,   70,   79,   79,   80,   80,   80,   76,  204,  284,
   1.190 + /*    70 */   477,  301,  406,  558,  408,   93,  414,  415,  534,  481,
   1.191 + /*    80 */    70,   70,   70,   70,   79,   79,   80,   80,   80,   76,
   1.192 + /*    90 */   204,  557,  556,  209,  321,  413,  419,  417,  418,   90,
   1.193 + /*   100 */   118,  266,  366,  272,  373,  160,  410,  410,  410,  340,
   1.194 + /*   110 */   430,  431,  276,   58,   87,  295,  423,  424,  420,  420,
   1.195 + /*   120 */    66,   66,   82,   82,   82,   82,  416,   70,   70,   70,
   1.196 + /*   130 */    70,   79,   79,   80,   80,   80,   76,  204,  284,  209,
   1.197 + /*   140 */   387,  388,  389,   88,  504,  197,  118,  266,  366,  272,
   1.198 + /*   150 */   373,  160,  221,  553,  205,  352,  518,  492,  276,   73,
   1.199 + /*   160 */   192,   60,  152,  517,  413,  419,   79,   79,   80,   80,
   1.200 + /*   170 */    80,   76,  204,  205,  377,  481,  440,  402,   47,  296,
   1.201 + /*   180 */   560,  284,   58,   87,  295,  423,  424,  420,  420,   66,
   1.202 + /*   190 */    66,   82,   82,   82,   82,  530,   70,   70,   70,   70,
   1.203 + /*   200 */    79,   79,   80,   80,   80,   76,  204,  413,  419,   86,
   1.204 + /*   210 */    80,   80,   80,   76,  204,  384,  605,  354,  212,   68,
   1.205 + /*   220 */    22,  166,  275,  398,  406,   58,   87,  295,  423,  424,
   1.206 + /*   230 */   420,  420,   66,   66,   82,   82,   82,   82,  210,   70,
   1.207 + /*   240 */    70,   70,   70,   79,   79,   80,   80,   80,   76,  204,
   1.208 + /*   250 */   284,  314,    1,  603,  472,  403,  384,  444,  439,    6,
   1.209 + /*   260 */   353,  380,  313,  352,  426,  426,  214,  201,  156,  445,
   1.210 + /*   270 */   435,  217,  343,  169,  396,  509,  413,  419,  148,  147,
   1.211 + /*   280 */   385,  386,  446,  506,  376,  402,   40,  229,  477,  406,
   1.212 + /*   290 */   554,  555,  408,  284,   58,   87,  295,  423,  424,  420,
   1.213 + /*   300 */   420,   66,   66,   82,   82,   82,   82,  403,   70,   70,
   1.214 + /*   310 */    70,   70,   79,   79,   80,   80,   80,   76,  204,  413,
   1.215 + /*   320 */   419,  385,  386,  351,  410,  410,  410,  358,  367,  371,
   1.216 + /*   330 */   283,  306,  345,  437,  510,  162,  284,   58,   87,  295,
   1.217 + /*   340 */   423,  424,  420,  420,   66,   66,   82,   82,   82,   82,
   1.218 + /*   350 */   384,   70,   70,   70,   70,   79,   79,   80,   80,   80,
   1.219 + /*   360 */    76,  204,  413,  419,  196,  229,  149,  335,  341,  364,
   1.220 + /*   370 */   531,  462,   73,  243,   60,  152,  435,  217,  316,  363,
   1.221 + /*   380 */    58,   87,  295,  423,  424,  420,  420,   66,   66,   82,
   1.222 + /*   390 */    82,   82,   82,  462,   70,   70,   70,   70,   79,   79,
   1.223 + /*   400 */    80,   80,   80,   76,  204,  421,  543,  537,   75,  284,
   1.224 + /*   410 */   468,  247,  452,  245,  113,  385,  386,  196,  352,  453,
   1.225 + /*   420 */   335,  341,  364,   73,  450,   60,  152,   73,   72,   60,
   1.226 + /*   430 */   152,  316,  261,  504,  196,  413,  419,  335,  341,  364,
   1.227 + /*   440 */   402,   33,  384,  479,  384,  536,  533,  313,  316,  426,
   1.228 + /*   450 */   426,   61,  399,   58,   87,  295,  423,  424,  420,  420,
   1.229 + /*   460 */    66,   66,   82,   82,   82,   82,  191,   70,   70,   70,
   1.230 + /*   470 */    70,   79,   79,   80,   80,   80,   76,  204,  284,  511,
   1.231 + /*   480 */   427,  511,  491,  494,  384,  805,  299,  222,  395,   21,
   1.232 + /*   490 */   521,   21,  246,  352,  327,  312,  239,  238,  287,  470,
   1.233 + /*   500 */   403,  151,  496,  495,  413,  419,  210,  385,  386,  385,
   1.234 + /*   510 */   386,  274,  146,  520,    9,  402,   40,  406,  384,  466,
   1.235 + /*   520 */   223,  184,   58,   87,  295,  423,  424,  420,  420,   66,
   1.236 + /*   530 */    66,   82,   82,   82,   82,  403,   70,   70,   70,   70,
   1.237 + /*   540 */    79,   79,   80,   80,   80,   76,  204,  284,  352,  385,
   1.238 + /*   550 */   386,  279,  444,  384,  457,   18,  155,  358,  227,  471,
   1.239 + /*   560 */   225,  319,  359,  352,  445,  352,  313,  384,  426,  426,
   1.240 + /*   570 */   402,   26,  330,  413,  419,  458,  286,  446,  326,  482,
   1.241 + /*   580 */   292,  276,  406,  385,  386,  402,   33,  402,   40,  483,
   1.242 + /*   590 */   403,   58,   87,  295,  423,  424,  420,  420,   66,   66,
   1.243 + /*   600 */    82,   82,   82,   82,    8,   70,   70,   70,   70,   79,
   1.244 + /*   610 */    79,   80,   80,   80,   76,  204,  284,  558,  385,  386,
   1.245 + /*   620 */   475,  158,  435,  290,  430,  431,  202,  352,  511,  348,
   1.246 + /*   630 */   352,  288,  385,  386,  342,  557,  236,  565,   21,  569,
   1.247 + /*   640 */   379,  361,  413,  419,  459,  313,  457,  426,  426,  402,
   1.248 + /*   650 */    47,  229,  402,   37,  504,  564,  402,    3,  504,  284,
   1.249 + /*   660 */    58,   87,  295,  423,  424,  420,  420,   66,   66,   82,
   1.250 + /*   670 */    82,   82,   82,  352,   70,   70,   70,   70,   79,   79,
   1.251 + /*   680 */    80,   80,   80,   76,  204,  413,  419,  205,  378,  289,
   1.252 + /*   690 */   211,    2,  545,  302,   64,  402,   23,  372,  205,  504,
   1.253 + /*   700 */   513,  182,  284,   58,   87,  295,  423,  424,  420,  420,
   1.254 + /*   710 */    66,   66,   82,   82,   82,   82,  352,   70,   70,   70,
   1.255 + /*   720 */    70,   79,   79,   80,   80,   80,   76,  204,  413,  419,
   1.256 + /*   730 */   433,  433,  275,  229,  213,  403,  275,  462,  402,  115,
   1.257 + /*   740 */   504,  527,  333,  527,  229,  284,   58,   62,  295,  423,
   1.258 + /*   750 */   424,  420,  420,   66,   66,   82,   82,   82,   82,  317,
   1.259 + /*   760 */    70,   70,   70,   70,   79,   79,   80,   80,   80,   76,
   1.260 + /*   770 */   204,  413,  419,  163,  546,  298,  263,  275,  194,  177,
   1.261 + /*   780 */   179,  278,  323,  138,  138,  547,  135,  229,  284,  347,
   1.262 + /*   790 */    87,  295,  423,  424,  420,  420,   66,   66,   82,   82,
   1.263 + /*   800 */    82,   82,  200,   70,   70,   70,   70,   79,   79,   80,
   1.264 + /*   810 */    80,   80,   76,  204,  413,  419,  401,  529,  275,  466,
   1.265 + /*   820 */   400,  528,  193,  172,  532,  406,  138,  355,  248,  138,
   1.266 + /*   830 */   119,  188,  229,  331,  295,  423,  424,  420,  420,   66,
   1.267 + /*   840 */    66,   82,   82,   82,   82,  352,   70,   70,   70,   70,
   1.268 + /*   850 */    79,   79,   80,   80,   80,   76,  204,   84,  325,  489,
   1.269 + /*   860 */     4,  466,  229,  352,  293,  403,  319,  402,   52,  352,
   1.270 + /*   870 */   455,  352,  324,  307,  229,  352,  541,   19,   63,  141,
   1.271 + /*   880 */   300,   84,  325,  352,    4,  402,   35,  352,  293,  303,
   1.272 + /*   890 */   406,  402,   29,  402,   39,  352,  324,  402,   38,  439,
   1.273 + /*   900 */   268,   69,  352,  250,  352,  402,   97,  187,  153,  402,
   1.274 + /*   910 */    34,  269,  352,  303,  224,  231,  352,  402,   45,   57,
   1.275 + /*   920 */    92,  469,  332,  439,  402,   31,  402,   96,   85,  315,
   1.276 + /*   930 */   318,  208,  269,  408,  402,   51,  352,  244,  402,   25,
   1.277 + /*   940 */   352,  403,  403,   57,   92,  304,   65,  464,   81,  167,
   1.278 + /*   950 */   320,  173,   85,  315,  318,  184,  497,  408,  402,   44,
   1.279 + /*   960 */   352,  145,  402,  101,  210,  410,  410,  410,  411,  412,
   1.280 + /*   970 */    12,   84,  325,  207,    4,  210,  498,  305,  293,  111,
   1.281 + /*   980 */    55,  107,  402,   32,  352,  403,  324,  176,  156,  410,
   1.282 + /*   990 */   410,  410,  411,  412,   12,  550,  352,   63,  352,  501,
   1.283 + /*  1000 */   352,  138,  352,  303,  352,  549,  402,   49,  456,  168,
   1.284 + /*  1010 */   286,   76,  204,  439,  258,  265,  220,  109,  402,   16,
   1.285 + /*  1020 */   402,   42,  402,   36,  402,  114,  402,   99,  294,  407,
   1.286 + /*  1030 */   189,  505,  252,   57,   92,  428,  352,   20,  432,  253,
   1.287 + /*  1040 */   352,  503,   85,  315,  318,  352,  539,  408,  486,  487,
   1.288 + /*  1050 */   352,  161,  352,  536,  352,  379,  361,  165,  402,   24,
   1.289 + /*  1060 */   186,  401,  402,  102,  352,  400,  352,  402,  112,  352,
   1.290 + /*  1070 */   230,  352,  402,   98,  402,   46,  402,   53,  352,  410,
   1.291 + /*  1080 */   410,  410,  411,  412,   12,  352,  402,  117,  402,   41,
   1.292 + /*  1090 */   507,  402,   54,  402,   10,  540,  339,  167,  393,  144,
   1.293 + /*  1100 */   402,   28,  451,  308,  249,  238,  352,  402,   50,  285,
   1.294 + /*  1110 */   352,  454,  270,  352,  210,  310,  434,  352,  502,  352,
   1.295 + /*  1120 */   492,  159,  392,  210,  404,    7,  369,  309,  402,   43,
   1.296 + /*  1130 */   171,  198,  402,  116,  522,  402,   48,  174,  370,  402,
   1.297 + /*  1140 */    30,  402,   27,  362,  170,   69,  199,  524,  338,  232,
   1.298 + /*  1150 */   233,   91,  349,  525,   67,  357,  234,  164,  120,  329,
   1.299 + /*  1160 */   235,  535,  241,  123,  140,  190,   56,  405,  542,  311,
   1.300 + /*  1170 */   124,  126,   78,  215,  127,  128,  133,  297,  561,  548,
   1.301 + /*  1180 */   562,  122,   89,  563,   83,  566,  390,   71,  105,  449,
   1.302 + /*  1190 */   382,  344,  356,  262,  264,  125,  391,  480,  106,  291,
   1.303 + /*  1200 */   206,  463,  467,  281,  484,  489,  485,  271,  216,  508,
   1.304 + /*  1210 */    95,  488,  195,  143,  256,  100,  490,  360,  447,  567,
   1.305 + /*  1220 */   514,  280,  515,  516,  218,  203,  538,   74,  219,  142,
   1.306 + /*  1230 */   103,   17,  121,  185,    5,   14,  381,  178,  139,  180,
   1.307 + /*  1240 */    13,  474,  460,  473,  204,  519,  282,  442,  478,  476,
   1.308 + /*  1250 */   512,  183,  350,  443,  257,   94,  375,  559,  422,  108,
   1.309 + /*  1260 */   368,  260,  129,  523,  365,  346,  157,  383,  273,  132,
   1.310 + /*  1270 */   154,  251,  551,  436,  150,  104,  328,  237,  552,   15,
   1.311 + /*  1280 */   465,  429,  277,  136,  259,  134,  337,  130,  228,  448,
   1.312 + /*  1290 */   461,  526,  394,  226,  110,  240,  441,  336,  544,  438,
   1.313 + /*  1300 */   499,  181,  409,   59,  500,  242,  425,   11,  137,  604,
   1.314 + /*  1310 */   374,  167,  493,  322,  267,  254,
   1.315 +};
   1.316 +static const YYCODETYPE yy_lookahead[] = {
   1.317 + /*     0 */    16,  139,  140,  141,  168,   21,  144,   23,   69,   70,
   1.318 + /*    10 */    71,   72,  176,   74,   75,   76,   77,   78,   79,   80,
   1.319 + /*    20 */    81,   82,   83,   84,  147,   16,   42,   43,   73,   74,
   1.320 + /*    30 */    75,   76,   77,   78,   79,   80,   81,   82,   83,   84,
   1.321 + /*    40 */    58,  161,  162,  163,   60,   61,   62,   63,   64,   65,
   1.322 + /*    50 */    66,   67,   68,   69,   70,   71,   72,  122,   74,   75,
   1.323 + /*    60 */    76,   77,   78,   79,   80,   81,   82,   83,   84,   16,
   1.324 + /*    70 */    88,   16,   88,  147,   92,   22,   42,   43,  185,  186,
   1.325 + /*    80 */    74,   75,   76,   77,   78,   79,   80,   81,   82,   83,
   1.326 + /*    90 */    84,  165,  166,   84,  147,   42,   43,   63,   64,   46,
   1.327 + /*   100 */    91,   92,   93,   94,   95,   96,  124,  125,  126,  164,
   1.328 + /*   110 */   165,  166,  103,   60,   61,   62,   63,   64,   65,   66,
   1.329 + /*   120 */    67,   68,   69,   70,   71,   72,   92,   74,   75,   76,
   1.330 + /*   130 */    77,   78,   79,   80,   81,   82,   83,   84,   16,   84,
   1.331 + /*   140 */     7,    8,    9,   21,  147,   90,   91,   92,   93,   94,
   1.332 + /*   150 */    95,   96,  190,  227,  228,  147,  176,  177,  103,  217,
   1.333 + /*   160 */    19,  219,  220,  183,   42,   43,   78,   79,   80,   81,
   1.334 + /*   170 */    82,   83,   84,  228,  185,  186,   20,  169,  170,  182,
   1.335 + /*   180 */   238,   16,   60,   61,   62,   63,   64,   65,   66,   67,
   1.336 + /*   190 */    68,   69,   70,   71,   72,   45,   74,   75,   76,   77,
   1.337 + /*   200 */    78,   79,   80,   81,   82,   83,   84,   42,   43,   44,
   1.338 + /*   210 */    80,   81,   82,   83,   84,   23,  112,  209,  210,   19,
   1.339 + /*   220 */    19,  155,  225,   23,   23,   60,   61,   62,   63,   64,
   1.340 + /*   230 */    65,   66,   67,   68,   69,   70,   71,   72,  110,   74,
   1.341 + /*   240 */    75,   76,   77,   78,   79,   80,   81,   82,   83,   84,
   1.342 + /*   250 */    16,  123,   19,  112,   20,  189,   23,   12,   58,  191,
   1.343 + /*   260 */   142,  143,  106,  147,  108,  109,  148,  201,  202,   24,
   1.344 + /*   270 */    78,   79,  206,  155,  167,  168,   42,   43,   78,   79,
   1.345 + /*   280 */    88,   89,   37,  176,   39,  169,  170,  147,   88,   88,
   1.346 + /*   290 */    98,   99,   92,   16,   60,   61,   62,   63,   64,   65,
   1.347 + /*   300 */    66,   67,   68,   69,   70,   71,   72,  189,   74,   75,
   1.348 + /*   310 */    76,   77,   78,   79,   80,   81,   82,   83,   84,   42,
   1.349 + /*   320 */    43,   88,   89,  233,  124,  125,  126,  211,  188,   16,
   1.350 + /*   330 */   158,  213,  216,  161,  162,  163,   16,   60,   61,   62,
   1.351 + /*   340 */    63,   64,   65,   66,   67,   68,   69,   70,   71,   72,
   1.352 + /*   350 */    23,   74,   75,   76,   77,   78,   79,   80,   81,   82,
   1.353 + /*   360 */    83,   84,   42,   43,   90,  147,   22,   93,   94,   95,
   1.354 + /*   370 */    18,  161,  217,   14,  219,  220,   78,   79,  104,  239,
   1.355 + /*   380 */    60,   61,   62,   63,   64,   65,   66,   67,   68,   69,
   1.356 + /*   390 */    70,   71,   72,  161,   74,   75,   76,   77,   78,   79,
   1.357 + /*   400 */    80,   81,   82,   83,   84,   92,  188,   11,  131,   16,
   1.358 + /*   410 */   200,   52,   27,   54,   21,   88,   89,   90,  147,   34,
   1.359 + /*   420 */    93,   94,   95,  217,  218,  219,  220,  217,   68,  219,
   1.360 + /*   430 */   220,  104,  200,  147,   90,   42,   43,   93,   94,   95,
   1.361 + /*   440 */   169,  170,   23,  160,   23,   49,   94,  106,  104,  108,
   1.362 + /*   450 */   109,  131,  169,   60,   61,   62,   63,   64,   65,   66,
   1.363 + /*   460 */    67,   68,   69,   70,   71,   72,  155,   74,   75,   76,
   1.364 + /*   470 */    77,   78,   79,   80,   81,   82,   83,   84,   16,  147,
   1.365 + /*   480 */    20,  147,   20,  178,   23,  133,  215,  153,  156,  157,
   1.366 + /*   490 */   156,  157,  133,  147,   16,   99,  100,  101,  150,   80,
   1.367 + /*   500 */   189,  155,   91,   92,   42,   43,  110,   88,   89,   88,
   1.368 + /*   510 */    89,  225,  180,  181,   19,  169,  170,   23,   23,  147,
   1.369 + /*   520 */    14,   43,   60,   61,   62,   63,   64,   65,   66,   67,
   1.370 + /*   530 */    68,   69,   70,   71,   72,  189,   74,   75,   76,   77,
   1.371 + /*   540 */    78,   79,   80,   81,   82,   83,   84,   16,  147,   88,
   1.372 + /*   550 */    89,   20,   12,   23,   22,   19,  155,  211,   52,   20,
   1.373 + /*   560 */    54,  147,  216,  147,   24,  147,  106,   23,  108,  109,
   1.374 + /*   570 */   169,  170,  224,   42,   43,  114,   98,   37,  230,   39,
   1.375 + /*   580 */   208,  103,   88,   88,   89,  169,  170,  169,  170,   49,
   1.376 + /*   590 */   189,   60,   61,   62,   63,   64,   65,   66,   67,   68,
   1.377 + /*   600 */    69,   70,   71,   72,   68,   74,   75,   76,   77,   78,
   1.378 + /*   610 */    79,   80,   81,   82,   83,   84,   16,  147,   88,   89,
   1.379 + /*   620 */    20,   89,   78,  164,  165,  166,  212,  147,  147,  211,
   1.380 + /*   630 */   147,  215,   88,   89,  147,  165,  133,  156,  157,    0,
   1.381 + /*   640 */     1,    2,   42,   43,  114,  106,  114,  108,  109,  169,
   1.382 + /*   650 */   170,  147,  169,  170,  147,  147,  169,  170,  147,   16,
   1.383 + /*   660 */    60,   61,   62,   63,   64,   65,   66,   67,   68,   69,
   1.384 + /*   670 */    70,   71,   72,  147,   74,   75,   76,   77,   78,   79,
   1.385 + /*   680 */    80,   81,   82,   83,   84,   42,   43,  228,  141,  182,
   1.386 + /*   690 */   210,  144,  188,  182,   68,  169,  170,  227,  228,  147,
   1.387 + /*   700 */   147,  155,   16,   60,   61,   62,   63,   64,   65,   66,
   1.388 + /*   710 */    67,   68,   69,   70,   71,   72,  147,   74,   75,   76,
   1.389 + /*   720 */    77,   78,   79,   80,   81,   82,   83,   84,   42,   43,
   1.390 + /*   730 */   124,  125,  225,  147,  182,  189,  225,  161,  169,  170,
   1.391 + /*   740 */   147,   99,  100,  101,  147,   16,   60,   61,   62,   63,
   1.392 + /*   750 */    64,   65,   66,   67,   68,   69,   70,   71,   72,  213,
   1.393 + /*   760 */    74,   75,   76,   77,   78,   79,   80,   81,   82,   83,
   1.394 + /*   770 */    84,   42,   43,   98,  188,  182,  200,  225,   99,  100,
   1.395 + /*   780 */   101,   20,  236,   22,   22,  188,  102,  147,   16,   80,
   1.396 + /*   790 */    61,   62,   63,   64,   65,   66,   67,   68,   69,   70,
   1.397 + /*   800 */    71,   72,   22,   74,   75,   76,   77,   78,   79,   80,
   1.398 + /*   810 */    81,   82,   83,   84,   42,   43,  107,   25,  225,  147,
   1.399 + /*   820 */   111,   29,  232,   21,   20,   23,   22,   20,  188,   22,
   1.400 + /*   830 */   147,  155,  147,   41,   62,   63,   64,   65,   66,   67,
   1.401 + /*   840 */    68,   69,   70,   71,   72,  147,   74,   75,   76,   77,
   1.402 + /*   850 */    78,   79,   80,   81,   82,   83,   84,   16,   17,   97,
   1.403 + /*   860 */    19,  147,  147,  147,   23,  189,  147,  169,  170,  147,
   1.404 + /*   870 */    22,  147,   31,  188,  147,  147,   20,   19,   22,   21,
   1.405 + /*   880 */   208,   16,   17,  147,   19,  169,  170,  147,   23,   48,
   1.406 + /*   890 */    88,  169,  170,  169,  170,  147,   31,  169,  170,   58,
   1.407 + /*   900 */    92,  121,  147,  188,  147,  169,  170,  155,  155,  169,
   1.408 + /*   910 */   170,  103,  147,   48,  147,  188,  147,  169,  170,   78,
   1.409 + /*   920 */    79,   80,  208,   58,  169,  170,  169,  170,   87,   88,
   1.410 + /*   930 */    89,  212,  103,   92,  169,  170,  147,  221,  169,  170,
   1.411 + /*   940 */   147,  189,  189,   78,   79,   91,  130,   20,  132,   22,
   1.412 + /*   950 */   147,  155,   87,   88,   89,   43,   30,   92,  169,  170,
   1.413 + /*   960 */   147,  113,  169,  170,  110,  124,  125,  126,  127,  128,
   1.414 + /*   970 */   129,   16,   17,  192,   19,  110,   50,  123,   23,   19,
   1.415 + /*   980 */   199,   19,  169,  170,  147,  189,   31,  201,  202,  124,
   1.416 + /*   990 */   125,  126,  127,  128,  129,   20,  147,   22,  147,   20,
   1.417 + /*  1000 */   147,   22,  147,   48,  147,  194,  169,  170,  203,    5,
   1.418 + /*  1010 */    98,   83,   84,   58,   10,   11,   12,   13,  169,  170,
   1.419 + /*  1020 */   169,  170,  169,  170,  169,  170,  169,  170,  102,  161,
   1.420 + /*  1030 */    26,  172,   28,   78,   79,   20,  147,   22,  229,   35,
   1.421 + /*  1040 */   147,  161,   87,   88,   89,  147,  194,   92,    7,    8,
   1.422 + /*  1050 */   147,   47,  147,   49,  147,    1,    2,   53,  169,  170,
   1.423 + /*  1060 */    56,  107,  169,  170,  147,  111,  147,  169,  170,  147,
   1.424 + /*  1070 */   193,  147,  169,  170,  169,  170,  169,  170,  147,  124,
   1.425 + /*  1080 */   125,  126,  127,  128,  129,  147,  169,  170,  169,  170,
   1.426 + /*  1090 */   161,  169,  170,  169,  170,   20,  173,   22,  149,  191,
   1.427 + /*  1100 */   169,  170,  172,   99,  100,  101,  147,  169,  170,  105,
   1.428 + /*  1110 */   147,  172,  172,  147,  110,  223,  229,  147,  172,  147,
   1.429 + /*  1120 */   177,    6,  146,  110,  189,   22,   15,  154,  169,  170,
   1.430 + /*  1130 */   112,  151,  169,  170,  152,  169,  170,  151,  134,  169,
   1.431 + /*  1140 */   170,  169,  170,  152,  151,  121,  152,  152,   38,  234,
   1.432 + /*  1150 */   194,  130,  118,  235,  119,  116,  195,  151,   60,  152,
   1.433 + /*  1160 */   196,  184,  197,   19,  214,  184,  120,  198,  194,   15,
   1.434 + /*  1170 */   187,  187,  130,  222,  187,  187,  184,  152,   33,  194,
   1.435 + /*  1180 */   152,  214,  237,  152,  237,  137,  146,   98,  240,  152,
   1.436 + /*  1190 */   146,  115,   98,  204,  204,  152,  146,  171,   19,   40,
   1.437 + /*  1200 */    84,  205,  205,  174,  171,   97,  179,  171,   44,  179,
   1.438 + /*  1210 */    19,  173,  135,   21,  136,  159,  171,    3,   20,    4,
   1.439 + /*  1220 */   171,  174,  171,  171,  226,  226,    1,   22,  175,   19,
   1.440 + /*  1230 */   175,  231,   32,   96,  117,   22,    1,  112,   98,  112,
   1.441 + /*  1240 */   117,   20,  114,   20,   84,  181,    5,   20,  169,  169,
   1.442 + /*  1250 */   181,   22,  147,   20,  147,   19,  186,   20,   92,   14,
   1.443 + /*  1260 */    16,  147,   19,   17,   57,  147,  147,  147,  147,   20,
   1.444 + /*  1270 */    19,  147,  123,  161,  112,   19,  147,  147,  147,   19,
   1.445 + /*  1280 */   147,   20,   20,  122,  145,  102,   36,  113,  147,  147,
   1.446 + /*  1290 */   147,   51,   20,  147,   19,  147,   11,   44,   17,   20,
   1.447 + /*  1300 */   178,  113,  147,   19,  178,  147,  107,   19,   45,  112,
   1.448 + /*  1310 */   147,   22,  147,   44,  147,  147,
   1.449 +};
   1.450 +#define YY_SHIFT_USE_DFLT (-66)
   1.451 +#define YY_SHIFT_MAX 376
   1.452 +static const short yy_shift_ofst[] = {
   1.453 + /*     0 */  1054,  865, 1004,  -16,  865,  955,  955,  327,  192, 1013,
   1.454 + /*    10 */   165,  955,  955,  955,  955,  955,  -45,  396,  544,  421,
   1.455 + /*    20 */   298,  494,  298,   53,  277,  600,  234,  531,  122,  393,
   1.456 + /*    30 */   462,  320,  643,  643,  643,  643,  643,  643,  643,  686,
   1.457 + /*    40 */   643,  643,  643,  643,  643,  643,  643,  643,  643,  643,
   1.458 + /*    50 */   643,  643,  729,  772,  772,  841,  955,  955,  955,  955,
   1.459 + /*    60 */   955,  955,  955,  955,  955,  955,  955,  955,  955,  955,
   1.460 + /*    70 */   955,  955,  955,  955,  955,  955,  955,  955,  955,  955,
   1.461 + /*    80 */   955,  955,  955,  955,  955,  955,  955,  955,  955,  955,
   1.462 + /*    90 */   955,  955,  955,  955,  955,  955,  -61,  -61,    6,    6,
   1.463 + /*   100 */    55,   88,  130,  478,  421,  421,  421,  421,  421,  352,
   1.464 + /*   110 */   421,  421,  928,  494, 1160,  -66,  -66,  -66,  200,    9,
   1.465 + /*   120 */   540,  540,  854,  421,  421,  802,  421,  421,  421,  421,
   1.466 + /*   130 */   421,  639,  802,  421,  421,  421,  421,  421,  421,  421,
   1.467 + /*   140 */   128, 1013, 1013, 1013,  -66,  -66,  344,  -18,  -18,  274,
   1.468 + /*   150 */   419,  460,  233,  156,  245,  539,  495,  530,  461,  421,
   1.469 + /*   160 */   421,  421,  201,  421,  421,  421,  341,  421,  133,  341,
   1.470 + /*   170 */   421,  421,  421,  341,  421,  421,  532,  926,  421,  926,
   1.471 + /*   180 */   421,  421,  341,  421,  421,  421,  421,  341,  341,  421,
   1.472 + /*   190 */   421,  341,  709,  642,  926,  421,  421,  421,  421,  792,
   1.473 + /*   200 */   421,  532,  780,  385,  494,  606,  494,  848,  780,  494,
   1.474 + /*   210 */   954,  385,  385,  762,  858,  816,  385,  606,  385,  912,
   1.475 + /*   220 */  1115, 1013, 1103, 1111, 1018, 1111, 1018, 1111, 1018, 1018,
   1.476 + /*   230 */  1024, 1110, 1021, 1034, 1035, 1039, 1111, 1018, 1098, 1098,
   1.477 + /*   240 */  1144, 1046, 1024, 1154, 1042, 1154, 1154, 1154, 1024, 1098,
   1.478 + /*   250 */  1144, 1018, 1145, 1145, 1018, 1018, 1048, 1018, 1115, 1115,
   1.479 + /*   260 */  1018, 1089, 1076, 1089, 1076, 1115, 1094, 1179, 1094, 1159,
   1.480 + /*   270 */  1094, 1108, 1094, 1179, 1116, 1116, 1159, 1094, 1094, 1094,
   1.481 + /*   280 */   -66,  -66,  -66,  -66,   34,  359,  679,  506,  975,  979,
   1.482 + /*   290 */  1015, 1041, 1075,  141,  411,  313,  761,  536,  807,  856,
   1.483 + /*   300 */   927,  808,  804, 1251, 1149, 1260, 1161, 1183, 1174, 1272,
   1.484 + /*   310 */  1285, 1281, 1188, 1199, 1288, 1197, 1269,  -65,  104,  360,
   1.485 + /*   320 */   626,  684,  960, 1225, 1284, 1210, 1241,  829,  962,  675,
   1.486 + /*   330 */   503,  150, 1289, 1263, 1279, 1253, 1275, 1240, 1250, 1262,
   1.487 + /*   340 */  1261, 1256, 1162, 1249, 1243, 1223, 1128, 1221, 1205, 1123,
   1.488 + /*   350 */  1127, 1140, 1125, 1235, 1213, 1137, 1200, 1117, 1205, 1198,
   1.489 + /*   360 */  1215, 1214, 1192, 1078, 1191, 1077, 1164, 1207, 1246, 1244,
   1.490 + /*   370 */  1245, 1166, 1237, 1236, 1233, 1229, 1227,
   1.491 +};
   1.492 +#define YY_REDUCE_USE_DFLT (-165)
   1.493 +#define YY_REDUCE_MAX 283
   1.494 +static const short yy_reduce_ofst[] = {
   1.495 + /*     0 */  -138,  346,  118,  210,  401,    8,  116,  332,  -74,   66,
   1.496 + /*    10 */   -58,  271,  716,  418,  480,  416,  206,  546,  470,  334,
   1.497 + /*    20 */   -55,  172,  459,  155,  155,  155,  155,  155,  155,  155,
   1.498 + /*    30 */   155,  155,  155,  155,  155,  155,  155,  155,  155,  155,
   1.499 + /*    40 */   155,  155,  155,  155,  155,  155,  155,  155,  155,  155,
   1.500 + /*    50 */   155,  155,  155,  155,  155,  487,  526,  569,  698,  722,
   1.501 + /*    60 */   724,  728,  736,  740,  748,  755,  757,  765,  769,  789,
   1.502 + /*    70 */   793,  813,  837,  849,  851,  853,  855,  857,  889,  893,
   1.503 + /*    80 */   898,  483,  903,  905,  907,  917,  919,  922,  924,  931,
   1.504 + /*    90 */   938,  959,  963,  966,  970,  972,  155,  155,  155,  155,
   1.505 + /*   100 */   107,  155,  155,  -20,   -3,  481,  507,  511,  140,  348,
   1.506 + /*   110 */   552,  593,  155, -120,  155,  155,  155,  155,  283, -164,
   1.507 + /*   120 */  -107,  -11,  311,  372,  218,  232,  504,  586,  597,  672,
   1.508 + /*   130 */   640,  547,  576,  685,  414,  719,  715,  714,  286,  727,
   1.509 + /*   140 */   676,  752,  753,  796,  781,  786, 1064, 1079, 1080, 1069,
   1.510 + /*   150 */  1105,  -38, 1107,  -38, 1070,  -38, 1114, 1118, 1119, 1120,
   1.511 + /*   160 */  1121, 1124, 1112, 1129, 1130, 1131,  -38, 1133, 1139,  -38,
   1.512 + /*   170 */  1141, 1142, 1143,  -38, 1146, 1148,  805, 1122, 1105, 1126,
   1.513 + /*   180 */  1155, 1158,  -38, 1163, 1165, 1167, 1168,  -38,  -38, -123,
   1.514 + /*   190 */   -53,  -38,   68,   90,  305,  508,  553,  683,  767,  590,
   1.515 + /*   200 */   803,  805,  811,  859,  868,  809,  880,  877,  852,  929,
   1.516 + /*   210 */   908,  930,  939,  923,  949,  892,  940,  887,  946,  943,
   1.517 + /*   220 */   976,  935,  973,  980,  982,  986,  991,  993,  994,  995,
   1.518 + /*   230 */   956,  915,  918,  961,  964,  965, 1006, 1007,  977,  981,
   1.519 + /*   240 */   950,  969,  974,  983,  951,  984,  987,  988,  985,  992,
   1.520 + /*   250 */   967, 1025,  945,  947, 1028, 1031,  948, 1037, 1040, 1044,
   1.521 + /*   260 */  1043,  989,  996,  990,  997, 1050, 1026, 1029, 1033, 1027,
   1.522 + /*   270 */  1036, 1038, 1045, 1047,  998,  999, 1030, 1049, 1051, 1052,
   1.523 + /*   280 */  1053, 1055, 1000, 1056,
   1.524 +};
   1.525 +static const YYACTIONTYPE yy_default[] = {
   1.526 + /*     0 */   575,  800,  870,  690,  870,  870,  800,  870,  828,  694,
   1.527 + /*    10 */   857,  870,  798,  870,  870,  870,  772,  870,  828,  870,
   1.528 + /*    20 */   828,  606,  828,  723,  870,  870,  870,  870,  870,  870,
   1.529 + /*    30 */   870,  870,  706,  738,  737,  797,  794,  795,  793,  870,
   1.530 + /*    40 */   802,  858,  801,  841,  728,  730,  856,  714,  725,  731,
   1.531 + /*    50 */   724,  721,  760,  778,  759,  870,  870,  870,  870,  870,
   1.532 + /*    60 */   870,  870,  870,  870,  870,  870,  870,  870,  870,  870,
   1.533 + /*    70 */   870,  870,  870,  870,  870,  870,  870,  870,  870,  870,
   1.534 + /*    80 */   870,  870,  870,  870,  870,  870,  870,  870,  870,  870,
   1.535 + /*    90 */   870,  870,  870,  870,  870,  870,  762,  784,  761,  771,
   1.536 + /*   100 */   599,  763,  764,  659,  870,  870,  870,  870,  870,  594,
   1.537 + /*   110 */   870,  870,  765,  870,  766,  781,  780,  779,  870,  870,
   1.538 + /*   120 */   870,  870,  870,  870,  870,  690,  870,  870,  870,  870,
   1.539 + /*   130 */   870,  575,  690,  870,  870,  870,  870,  870,  870,  870,
   1.540 + /*   140 */   870,  870,  870,  870,  684,  694,  650,  870,  870,  870,
   1.541 + /*   150 */   870,  870,  870,  870,  870,  870,  870,  870,  870,  580,
   1.542 + /*   160 */   870,  870,  608,  870,  870,  814,  697,  870,  582,  673,
   1.543 + /*   170 */   870,  870,  870,  671,  870,  870,  692,  870,  870,  870,
   1.544 + /*   180 */   870,  870,  848,  870,  870,  870,  861,  596,  846,  863,
   1.545 + /*   190 */   870,  733,  682,  870,  870,  870,  870,  870,  870,  834,
   1.546 + /*   200 */   870,  698,  727,  717,  870,  870,  870,  691,  727,  870,
   1.547 + /*   210 */   682,  717,  717,  632,  870,  796,  717,  870,  717,  629,
   1.548 + /*   220 */   579,  870,  649,  591,  699,  591,  699,  591,  699,  699,
   1.549 + /*   230 */   727,  838,  840,  718,  720,  710,  591,  699,  663,  663,
   1.550 + /*   240 */   739,  722,  727,  670,  870,  670,  670,  670,  727,  663,
   1.551 + /*   250 */   739,  699,  860,  860,  699,  699,  868,  699,  579,  579,
   1.552 + /*   260 */   699,  707,  709,  707,  709,  579,  661,  806,  661,  646,
   1.553 + /*   270 */   661,  632,  661,  806,  811,  811,  646,  661,  661,  661,
   1.554 + /*   280 */   634,  634,  843,  616,  870,  870,  870,  870,  870,  870,
   1.555 + /*   290 */   870,  870,  870,  746,  870,  870,  870,  821,  870,  870,
   1.556 + /*   300 */   870,  870,  870,  870,  870,  870,  870,  870,  870,  870,
   1.557 + /*   310 */   870,  870,  870,  676,  870,  751,  870,  870,  747,  870,
   1.558 + /*   320 */   870,  870,  870,  870,  870,  870,  870,  870,  870,  870,
   1.559 + /*   330 */   870,  870,  837,  836,  870,  870,  870,  870,  870,  870,
   1.560 + /*   340 */   870,  870,  870,  870,  870,  870,  870,  870,  719,  870,
   1.561 + /*   350 */   748,  870,  870,  870,  711,  870,  870,  870,  799,  870,
   1.562 + /*   360 */   870,  576,  870,  870,  870,  870,  870,  867,  870,  870,
   1.563 + /*   370 */   870,  870,  870,  870,  870,  870,  870,  662,  570,  573,
   1.564 + /*   380 */   572,  574,  578,  581,  603,  604,  605,  583,  584,  585,
   1.565 + /*   390 */   586,  587,  588,  589,  595,  597,  615,  617,  601,  619,
   1.566 + /*   400 */   680,  681,  743,  674,  675,  679,  602,  754,  745,  749,
   1.567 + /*   410 */   750,  752,  753,  767,  768,  770,  776,  783,  786,  769,
   1.568 + /*   420 */   774,  775,  777,  782,  785,  677,  678,  789,  609,  610,
   1.569 + /*   430 */   613,  614,  824,  826,  825,  827,  612,  611,  755,  758,
   1.570 + /*   440 */   791,  792,  849,  850,  851,  852,  853,  787,  700,  790,
   1.571 + /*   450 */   773,  712,  715,  716,  713,  683,  693,  702,  703,  704,
   1.572 + /*   460 */   705,  688,  689,  695,  708,  741,  742,  696,  685,  686,
   1.573 + /*   470 */   687,  788,  744,  756,  757,  620,  621,  751,  622,  623,
   1.574 + /*   480 */   624,  665,  666,  667,  625,  644,  647,  648,  626,  633,
   1.575 + /*   490 */   627,  628,  635,  636,  637,  640,  641,  642,  643,  638,
   1.576 + /*   500 */   639,  807,  808,  812,  810,  809,  630,  631,  645,  618,
   1.577 + /*   510 */   607,  600,  651,  654,  655,  656,  657,  658,  660,  652,
   1.578 + /*   520 */   653,  598,  590,  592,  701,  830,  839,  835,  831,  832,
   1.579 + /*   530 */   833,  593,  803,  804,  664,  735,  736,  829,  842,  844,
   1.580 + /*   540 */   740,  845,  847,  668,  669,  672,  813,  854,  726,  729,
   1.581 + /*   550 */   732,  734,  815,  816,  817,  818,  819,  822,  823,  820,
   1.582 + /*   560 */   855,  859,  862,  864,  865,  866,  869,  577,  571,
   1.583 +};
   1.584 +#define YY_SZ_ACTTAB (int)(sizeof(yy_action)/sizeof(yy_action[0]))
   1.585 +
   1.586 +/* The next table maps tokens into fallback tokens.  If a construct
   1.587 +** like the following:
   1.588 +** 
   1.589 +**      %fallback ID X Y Z.
   1.590 +**
   1.591 +** appears in the grammar, then ID becomes a fallback token for X, Y,
   1.592 +** and Z.  Whenever one of the tokens X, Y, or Z is input to the parser
   1.593 +** but it does not parse, the type of the token is changed to ID and
   1.594 +** the parse is retried before an error is thrown.
   1.595 +*/
   1.596 +#ifdef YYFALLBACK
   1.597 +static const YYCODETYPE yyFallback[] = {
   1.598 +    0,  /*          $ => nothing */
   1.599 +    0,  /*       SEMI => nothing */
   1.600 +   23,  /*    EXPLAIN => ID */
   1.601 +   23,  /*      QUERY => ID */
   1.602 +   23,  /*       PLAN => ID */
   1.603 +   23,  /*      BEGIN => ID */
   1.604 +    0,  /* TRANSACTION => nothing */
   1.605 +   23,  /*   DEFERRED => ID */
   1.606 +   23,  /*  IMMEDIATE => ID */
   1.607 +   23,  /*  EXCLUSIVE => ID */
   1.608 +    0,  /*     COMMIT => nothing */
   1.609 +   23,  /*        END => ID */
   1.610 +    0,  /*   ROLLBACK => nothing */
   1.611 +    0,  /*     CREATE => nothing */
   1.612 +    0,  /*      TABLE => nothing */
   1.613 +   23,  /*         IF => ID */
   1.614 +    0,  /*        NOT => nothing */
   1.615 +    0,  /*     EXISTS => nothing */
   1.616 +   23,  /*       TEMP => ID */
   1.617 +    0,  /*         LP => nothing */
   1.618 +    0,  /*         RP => nothing */
   1.619 +    0,  /*         AS => nothing */
   1.620 +    0,  /*      COMMA => nothing */
   1.621 +    0,  /*         ID => nothing */
   1.622 +   23,  /*      ABORT => ID */
   1.623 +   23,  /*      AFTER => ID */
   1.624 +   23,  /*    ANALYZE => ID */
   1.625 +   23,  /*        ASC => ID */
   1.626 +   23,  /*     ATTACH => ID */
   1.627 +   23,  /*     BEFORE => ID */
   1.628 +   23,  /*    CASCADE => ID */
   1.629 +   23,  /*       CAST => ID */
   1.630 +   23,  /*   CONFLICT => ID */
   1.631 +   23,  /*   DATABASE => ID */
   1.632 +   23,  /*       DESC => ID */
   1.633 +   23,  /*     DETACH => ID */
   1.634 +   23,  /*       EACH => ID */
   1.635 +   23,  /*       FAIL => ID */
   1.636 +   23,  /*        FOR => ID */
   1.637 +   23,  /*     IGNORE => ID */
   1.638 +   23,  /*  INITIALLY => ID */
   1.639 +   23,  /*    INSTEAD => ID */
   1.640 +   23,  /*    LIKE_KW => ID */
   1.641 +   23,  /*      MATCH => ID */
   1.642 +   23,  /*        KEY => ID */
   1.643 +   23,  /*         OF => ID */
   1.644 +   23,  /*     OFFSET => ID */
   1.645 +   23,  /*     PRAGMA => ID */
   1.646 +   23,  /*      RAISE => ID */
   1.647 +   23,  /*    REPLACE => ID */
   1.648 +   23,  /*   RESTRICT => ID */
   1.649 +   23,  /*        ROW => ID */
   1.650 +   23,  /*    TRIGGER => ID */
   1.651 +   23,  /*     VACUUM => ID */
   1.652 +   23,  /*       VIEW => ID */
   1.653 +   23,  /*    VIRTUAL => ID */
   1.654 +   23,  /*    REINDEX => ID */
   1.655 +   23,  /*     RENAME => ID */
   1.656 +   23,  /*   CTIME_KW => ID */
   1.657 +    0,  /*        ANY => nothing */
   1.658 +    0,  /*         OR => nothing */
   1.659 +    0,  /*        AND => nothing */
   1.660 +    0,  /*         IS => nothing */
   1.661 +    0,  /*    BETWEEN => nothing */
   1.662 +    0,  /*         IN => nothing */
   1.663 +    0,  /*     ISNULL => nothing */
   1.664 +    0,  /*    NOTNULL => nothing */
   1.665 +    0,  /*         NE => nothing */
   1.666 +    0,  /*         EQ => nothing */
   1.667 +    0,  /*         GT => nothing */
   1.668 +    0,  /*         LE => nothing */
   1.669 +    0,  /*         LT => nothing */
   1.670 +    0,  /*         GE => nothing */
   1.671 +    0,  /*     ESCAPE => nothing */
   1.672 +    0,  /*     BITAND => nothing */
   1.673 +    0,  /*      BITOR => nothing */
   1.674 +    0,  /*     LSHIFT => nothing */
   1.675 +    0,  /*     RSHIFT => nothing */
   1.676 +    0,  /*       PLUS => nothing */
   1.677 +    0,  /*      MINUS => nothing */
   1.678 +    0,  /*       STAR => nothing */
   1.679 +    0,  /*      SLASH => nothing */
   1.680 +    0,  /*        REM => nothing */
   1.681 +    0,  /*     CONCAT => nothing */
   1.682 +    0,  /*    COLLATE => nothing */
   1.683 +    0,  /*     UMINUS => nothing */
   1.684 +    0,  /*      UPLUS => nothing */
   1.685 +    0,  /*     BITNOT => nothing */
   1.686 +    0,  /*     STRING => nothing */
   1.687 +    0,  /*    JOIN_KW => nothing */
   1.688 +    0,  /* CONSTRAINT => nothing */
   1.689 +    0,  /*    DEFAULT => nothing */
   1.690 +    0,  /*       NULL => nothing */
   1.691 +    0,  /*    PRIMARY => nothing */
   1.692 +    0,  /*     UNIQUE => nothing */
   1.693 +    0,  /*      CHECK => nothing */
   1.694 +    0,  /* REFERENCES => nothing */
   1.695 +    0,  /*   AUTOINCR => nothing */
   1.696 +    0,  /*         ON => nothing */
   1.697 +    0,  /*     DELETE => nothing */
   1.698 +    0,  /*     UPDATE => nothing */
   1.699 +    0,  /*     INSERT => nothing */
   1.700 +    0,  /*        SET => nothing */
   1.701 +    0,  /* DEFERRABLE => nothing */
   1.702 +    0,  /*    FOREIGN => nothing */
   1.703 +    0,  /*       DROP => nothing */
   1.704 +    0,  /*      UNION => nothing */
   1.705 +    0,  /*        ALL => nothing */
   1.706 +    0,  /*     EXCEPT => nothing */
   1.707 +    0,  /*  INTERSECT => nothing */
   1.708 +    0,  /*     SELECT => nothing */
   1.709 +    0,  /*   DISTINCT => nothing */
   1.710 +    0,  /*        DOT => nothing */
   1.711 +    0,  /*       FROM => nothing */
   1.712 +    0,  /*       JOIN => nothing */
   1.713 +    0,  /*      USING => nothing */
   1.714 +    0,  /*      ORDER => nothing */
   1.715 +    0,  /*         BY => nothing */
   1.716 +    0,  /*      GROUP => nothing */
   1.717 +    0,  /*     HAVING => nothing */
   1.718 +    0,  /*      LIMIT => nothing */
   1.719 +    0,  /*      WHERE => nothing */
   1.720 +    0,  /*       INTO => nothing */
   1.721 +    0,  /*     VALUES => nothing */
   1.722 +    0,  /*    INTEGER => nothing */
   1.723 +    0,  /*      FLOAT => nothing */
   1.724 +    0,  /*       BLOB => nothing */
   1.725 +    0,  /*   REGISTER => nothing */
   1.726 +    0,  /*   VARIABLE => nothing */
   1.727 +    0,  /*       CASE => nothing */
   1.728 +    0,  /*       WHEN => nothing */
   1.729 +    0,  /*       THEN => nothing */
   1.730 +    0,  /*       ELSE => nothing */
   1.731 +    0,  /*      INDEX => nothing */
   1.732 +    0,  /*      ALTER => nothing */
   1.733 +    0,  /*         TO => nothing */
   1.734 +    0,  /*        ADD => nothing */
   1.735 +    0,  /*   COLUMNKW => nothing */
   1.736 +};
   1.737 +#endif /* YYFALLBACK */
   1.738 +
   1.739 +/* The following structure represents a single element of the
   1.740 +** parser's stack.  Information stored includes:
   1.741 +**
   1.742 +**   +  The state number for the parser at this level of the stack.
   1.743 +**
   1.744 +**   +  The value of the token stored at this level of the stack.
   1.745 +**      (In other words, the "major" token.)
   1.746 +**
   1.747 +**   +  The semantic value stored at this level of the stack.  This is
   1.748 +**      the information used by the action routines in the grammar.
   1.749 +**      It is sometimes called the "minor" token.
   1.750 +*/
   1.751 +struct yyStackEntry {
   1.752 +  YYACTIONTYPE stateno;  /* The state-number */
   1.753 +  YYCODETYPE major;      /* The major token value.  This is the code
   1.754 +                         ** number for the token at this stack level */
   1.755 +  YYMINORTYPE minor;     /* The user-supplied minor token value.  This
   1.756 +                         ** is the value of the token  */
   1.757 +};
   1.758 +typedef struct yyStackEntry yyStackEntry;
   1.759 +
   1.760 +/* The state of the parser is completely contained in an instance of
   1.761 +** the following structure */
   1.762 +struct yyParser {
   1.763 +  int yyidx;                    /* Index of top element in stack */
   1.764 +#ifdef YYTRACKMAXSTACKDEPTH
   1.765 +  int yyidxMax;                 /* Maximum value of yyidx */
   1.766 +#endif
   1.767 +  int yyerrcnt;                 /* Shifts left before out of the error */
   1.768 +  sqlite3ParserARG_SDECL                /* A place to hold %extra_argument */
   1.769 +#if YYSTACKDEPTH<=0
   1.770 +  int yystksz;                  /* Current side of the stack */
   1.771 +  yyStackEntry *yystack;        /* The parser's stack */
   1.772 +#else
   1.773 +  yyStackEntry yystack[YYSTACKDEPTH];  /* The parser's stack */
   1.774 +#endif
   1.775 +};
   1.776 +typedef struct yyParser yyParser;
   1.777 +
   1.778 +#ifndef NDEBUG
   1.779 +#include <stdio.h>
   1.780 +static FILE *yyTraceFILE = 0;
   1.781 +static char *yyTracePrompt = 0;
   1.782 +#endif /* NDEBUG */
   1.783 +
   1.784 +#ifndef NDEBUG
   1.785 +/* 
   1.786 +** Turn parser tracing on by giving a stream to which to write the trace
   1.787 +** and a prompt to preface each trace message.  Tracing is turned off
   1.788 +** by making either argument NULL 
   1.789 +**
   1.790 +** Inputs:
   1.791 +** <ul>
   1.792 +** <li> A FILE* to which trace output should be written.
   1.793 +**      If NULL, then tracing is turned off.
   1.794 +** <li> A prefix string written at the beginning of every
   1.795 +**      line of trace output.  If NULL, then tracing is
   1.796 +**      turned off.
   1.797 +** </ul>
   1.798 +**
   1.799 +** Outputs:
   1.800 +** None.
   1.801 +*/
   1.802 +void sqlite3ParserTrace(FILE *TraceFILE, char *zTracePrompt){
   1.803 +  yyTraceFILE = TraceFILE;
   1.804 +  yyTracePrompt = zTracePrompt;
   1.805 +  if( yyTraceFILE==0 ) yyTracePrompt = 0;
   1.806 +  else if( yyTracePrompt==0 ) yyTraceFILE = 0;
   1.807 +}
   1.808 +#endif /* NDEBUG */
   1.809 +
   1.810 +#ifndef NDEBUG
   1.811 +/* For tracing shifts, the names of all terminals and nonterminals
   1.812 +** are required.  The following table supplies these names */
   1.813 +static const char *const yyTokenName[] = { 
   1.814 +  "$",             "SEMI",          "EXPLAIN",       "QUERY",       
   1.815 +  "PLAN",          "BEGIN",         "TRANSACTION",   "DEFERRED",    
   1.816 +  "IMMEDIATE",     "EXCLUSIVE",     "COMMIT",        "END",         
   1.817 +  "ROLLBACK",      "CREATE",        "TABLE",         "IF",          
   1.818 +  "NOT",           "EXISTS",        "TEMP",          "LP",          
   1.819 +  "RP",            "AS",            "COMMA",         "ID",          
   1.820 +  "ABORT",         "AFTER",         "ANALYZE",       "ASC",         
   1.821 +  "ATTACH",        "BEFORE",        "CASCADE",       "CAST",        
   1.822 +  "CONFLICT",      "DATABASE",      "DESC",          "DETACH",      
   1.823 +  "EACH",          "FAIL",          "FOR",           "IGNORE",      
   1.824 +  "INITIALLY",     "INSTEAD",       "LIKE_KW",       "MATCH",       
   1.825 +  "KEY",           "OF",            "OFFSET",        "PRAGMA",      
   1.826 +  "RAISE",         "REPLACE",       "RESTRICT",      "ROW",         
   1.827 +  "TRIGGER",       "VACUUM",        "VIEW",          "VIRTUAL",     
   1.828 +  "REINDEX",       "RENAME",        "CTIME_KW",      "ANY",         
   1.829 +  "OR",            "AND",           "IS",            "BETWEEN",     
   1.830 +  "IN",            "ISNULL",        "NOTNULL",       "NE",          
   1.831 +  "EQ",            "GT",            "LE",            "LT",          
   1.832 +  "GE",            "ESCAPE",        "BITAND",        "BITOR",       
   1.833 +  "LSHIFT",        "RSHIFT",        "PLUS",          "MINUS",       
   1.834 +  "STAR",          "SLASH",         "REM",           "CONCAT",      
   1.835 +  "COLLATE",       "UMINUS",        "UPLUS",         "BITNOT",      
   1.836 +  "STRING",        "JOIN_KW",       "CONSTRAINT",    "DEFAULT",     
   1.837 +  "NULL",          "PRIMARY",       "UNIQUE",        "CHECK",       
   1.838 +  "REFERENCES",    "AUTOINCR",      "ON",            "DELETE",      
   1.839 +  "UPDATE",        "INSERT",        "SET",           "DEFERRABLE",  
   1.840 +  "FOREIGN",       "DROP",          "UNION",         "ALL",         
   1.841 +  "EXCEPT",        "INTERSECT",     "SELECT",        "DISTINCT",    
   1.842 +  "DOT",           "FROM",          "JOIN",          "USING",       
   1.843 +  "ORDER",         "BY",            "GROUP",         "HAVING",      
   1.844 +  "LIMIT",         "WHERE",         "INTO",          "VALUES",      
   1.845 +  "INTEGER",       "FLOAT",         "BLOB",          "REGISTER",    
   1.846 +  "VARIABLE",      "CASE",          "WHEN",          "THEN",        
   1.847 +  "ELSE",          "INDEX",         "ALTER",         "TO",          
   1.848 +  "ADD",           "COLUMNKW",      "error",         "input",       
   1.849 +  "cmdlist",       "ecmd",          "cmdx",          "cmd",         
   1.850 +  "explain",       "transtype",     "trans_opt",     "nm",          
   1.851 +  "create_table",  "create_table_args",  "temp",          "ifnotexists", 
   1.852 +  "dbnm",          "columnlist",    "conslist_opt",  "select",      
   1.853 +  "column",        "columnid",      "type",          "carglist",    
   1.854 +  "id",            "ids",           "typetoken",     "typename",    
   1.855 +  "signed",        "plus_num",      "minus_num",     "carg",        
   1.856 +  "ccons",         "term",          "expr",          "onconf",      
   1.857 +  "sortorder",     "autoinc",       "idxlist_opt",   "refargs",     
   1.858 +  "defer_subclause",  "refarg",        "refact",        "init_deferred_pred_opt",
   1.859 +  "conslist",      "tcons",         "idxlist",       "defer_subclause_opt",
   1.860 +  "orconf",        "resolvetype",   "raisetype",     "ifexists",    
   1.861 +  "fullname",      "oneselect",     "multiselect_op",  "distinct",    
   1.862 +  "selcollist",    "from",          "where_opt",     "groupby_opt", 
   1.863 +  "having_opt",    "orderby_opt",   "limit_opt",     "sclp",        
   1.864 +  "as",            "seltablist",    "stl_prefix",    "joinop",      
   1.865 +  "on_opt",        "using_opt",     "seltablist_paren",  "joinop2",     
   1.866 +  "inscollist",    "sortlist",      "sortitem",      "nexprlist",   
   1.867 +  "setlist",       "insert_cmd",    "inscollist_opt",  "itemlist",    
   1.868 +  "exprlist",      "likeop",        "escape",        "between_op",  
   1.869 +  "in_op",         "case_operand",  "case_exprlist",  "case_else",   
   1.870 +  "uniqueflag",    "idxitem",       "collate",       "nmnum",       
   1.871 +  "plus_opt",      "number",        "trigger_decl",  "trigger_cmd_list",
   1.872 +  "trigger_time",  "trigger_event",  "foreach_clause",  "when_clause", 
   1.873 +  "trigger_cmd",   "database_kw_opt",  "key_opt",       "add_column_fullname",
   1.874 +  "kwcolumn_opt",
   1.875 +};
   1.876 +#endif /* NDEBUG */
   1.877 +
   1.878 +#ifndef NDEBUG
   1.879 +/* For tracing reduce actions, the names of all rules are required.
   1.880 +*/
   1.881 +static const char *const yyRuleName[] = {
   1.882 + /*   0 */ "input ::= cmdlist",
   1.883 + /*   1 */ "cmdlist ::= cmdlist ecmd",
   1.884 + /*   2 */ "cmdlist ::= ecmd",
   1.885 + /*   3 */ "cmdx ::= cmd",
   1.886 + /*   4 */ "ecmd ::= SEMI",
   1.887 + /*   5 */ "ecmd ::= explain cmdx SEMI",
   1.888 + /*   6 */ "explain ::=",
   1.889 + /*   7 */ "explain ::= EXPLAIN",
   1.890 + /*   8 */ "explain ::= EXPLAIN QUERY PLAN",
   1.891 + /*   9 */ "cmd ::= BEGIN transtype trans_opt",
   1.892 + /*  10 */ "trans_opt ::=",
   1.893 + /*  11 */ "trans_opt ::= TRANSACTION",
   1.894 + /*  12 */ "trans_opt ::= TRANSACTION nm",
   1.895 + /*  13 */ "transtype ::=",
   1.896 + /*  14 */ "transtype ::= DEFERRED",
   1.897 + /*  15 */ "transtype ::= IMMEDIATE",
   1.898 + /*  16 */ "transtype ::= EXCLUSIVE",
   1.899 + /*  17 */ "cmd ::= COMMIT trans_opt",
   1.900 + /*  18 */ "cmd ::= END trans_opt",
   1.901 + /*  19 */ "cmd ::= ROLLBACK trans_opt",
   1.902 + /*  20 */ "cmd ::= create_table create_table_args",
   1.903 + /*  21 */ "create_table ::= CREATE temp TABLE ifnotexists nm dbnm",
   1.904 + /*  22 */ "ifnotexists ::=",
   1.905 + /*  23 */ "ifnotexists ::= IF NOT EXISTS",
   1.906 + /*  24 */ "temp ::= TEMP",
   1.907 + /*  25 */ "temp ::=",
   1.908 + /*  26 */ "create_table_args ::= LP columnlist conslist_opt RP",
   1.909 + /*  27 */ "create_table_args ::= AS select",
   1.910 + /*  28 */ "columnlist ::= columnlist COMMA column",
   1.911 + /*  29 */ "columnlist ::= column",
   1.912 + /*  30 */ "column ::= columnid type carglist",
   1.913 + /*  31 */ "columnid ::= nm",
   1.914 + /*  32 */ "id ::= ID",
   1.915 + /*  33 */ "ids ::= ID|STRING",
   1.916 + /*  34 */ "nm ::= ID",
   1.917 + /*  35 */ "nm ::= STRING",
   1.918 + /*  36 */ "nm ::= JOIN_KW",
   1.919 + /*  37 */ "type ::=",
   1.920 + /*  38 */ "type ::= typetoken",
   1.921 + /*  39 */ "typetoken ::= typename",
   1.922 + /*  40 */ "typetoken ::= typename LP signed RP",
   1.923 + /*  41 */ "typetoken ::= typename LP signed COMMA signed RP",
   1.924 + /*  42 */ "typename ::= ids",
   1.925 + /*  43 */ "typename ::= typename ids",
   1.926 + /*  44 */ "signed ::= plus_num",
   1.927 + /*  45 */ "signed ::= minus_num",
   1.928 + /*  46 */ "carglist ::= carglist carg",
   1.929 + /*  47 */ "carglist ::=",
   1.930 + /*  48 */ "carg ::= CONSTRAINT nm ccons",
   1.931 + /*  49 */ "carg ::= ccons",
   1.932 + /*  50 */ "ccons ::= DEFAULT term",
   1.933 + /*  51 */ "ccons ::= DEFAULT LP expr RP",
   1.934 + /*  52 */ "ccons ::= DEFAULT PLUS term",
   1.935 + /*  53 */ "ccons ::= DEFAULT MINUS term",
   1.936 + /*  54 */ "ccons ::= DEFAULT id",
   1.937 + /*  55 */ "ccons ::= NULL onconf",
   1.938 + /*  56 */ "ccons ::= NOT NULL onconf",
   1.939 + /*  57 */ "ccons ::= PRIMARY KEY sortorder onconf autoinc",
   1.940 + /*  58 */ "ccons ::= UNIQUE onconf",
   1.941 + /*  59 */ "ccons ::= CHECK LP expr RP",
   1.942 + /*  60 */ "ccons ::= REFERENCES nm idxlist_opt refargs",
   1.943 + /*  61 */ "ccons ::= defer_subclause",
   1.944 + /*  62 */ "ccons ::= COLLATE ids",
   1.945 + /*  63 */ "autoinc ::=",
   1.946 + /*  64 */ "autoinc ::= AUTOINCR",
   1.947 + /*  65 */ "refargs ::=",
   1.948 + /*  66 */ "refargs ::= refargs refarg",
   1.949 + /*  67 */ "refarg ::= MATCH nm",
   1.950 + /*  68 */ "refarg ::= ON DELETE refact",
   1.951 + /*  69 */ "refarg ::= ON UPDATE refact",
   1.952 + /*  70 */ "refarg ::= ON INSERT refact",
   1.953 + /*  71 */ "refact ::= SET NULL",
   1.954 + /*  72 */ "refact ::= SET DEFAULT",
   1.955 + /*  73 */ "refact ::= CASCADE",
   1.956 + /*  74 */ "refact ::= RESTRICT",
   1.957 + /*  75 */ "defer_subclause ::= NOT DEFERRABLE init_deferred_pred_opt",
   1.958 + /*  76 */ "defer_subclause ::= DEFERRABLE init_deferred_pred_opt",
   1.959 + /*  77 */ "init_deferred_pred_opt ::=",
   1.960 + /*  78 */ "init_deferred_pred_opt ::= INITIALLY DEFERRED",
   1.961 + /*  79 */ "init_deferred_pred_opt ::= INITIALLY IMMEDIATE",
   1.962 + /*  80 */ "conslist_opt ::=",
   1.963 + /*  81 */ "conslist_opt ::= COMMA conslist",
   1.964 + /*  82 */ "conslist ::= conslist COMMA tcons",
   1.965 + /*  83 */ "conslist ::= conslist tcons",
   1.966 + /*  84 */ "conslist ::= tcons",
   1.967 + /*  85 */ "tcons ::= CONSTRAINT nm",
   1.968 + /*  86 */ "tcons ::= PRIMARY KEY LP idxlist autoinc RP onconf",
   1.969 + /*  87 */ "tcons ::= UNIQUE LP idxlist RP onconf",
   1.970 + /*  88 */ "tcons ::= CHECK LP expr RP onconf",
   1.971 + /*  89 */ "tcons ::= FOREIGN KEY LP idxlist RP REFERENCES nm idxlist_opt refargs defer_subclause_opt",
   1.972 + /*  90 */ "defer_subclause_opt ::=",
   1.973 + /*  91 */ "defer_subclause_opt ::= defer_subclause",
   1.974 + /*  92 */ "onconf ::=",
   1.975 + /*  93 */ "onconf ::= ON CONFLICT resolvetype",
   1.976 + /*  94 */ "orconf ::=",
   1.977 + /*  95 */ "orconf ::= OR resolvetype",
   1.978 + /*  96 */ "resolvetype ::= raisetype",
   1.979 + /*  97 */ "resolvetype ::= IGNORE",
   1.980 + /*  98 */ "resolvetype ::= REPLACE",
   1.981 + /*  99 */ "cmd ::= DROP TABLE ifexists fullname",
   1.982 + /* 100 */ "ifexists ::= IF EXISTS",
   1.983 + /* 101 */ "ifexists ::=",
   1.984 + /* 102 */ "cmd ::= CREATE temp VIEW ifnotexists nm dbnm AS select",
   1.985 + /* 103 */ "cmd ::= DROP VIEW ifexists fullname",
   1.986 + /* 104 */ "cmd ::= select",
   1.987 + /* 105 */ "select ::= oneselect",
   1.988 + /* 106 */ "select ::= select multiselect_op oneselect",
   1.989 + /* 107 */ "multiselect_op ::= UNION",
   1.990 + /* 108 */ "multiselect_op ::= UNION ALL",
   1.991 + /* 109 */ "multiselect_op ::= EXCEPT|INTERSECT",
   1.992 + /* 110 */ "oneselect ::= SELECT distinct selcollist from where_opt groupby_opt having_opt orderby_opt limit_opt",
   1.993 + /* 111 */ "distinct ::= DISTINCT",
   1.994 + /* 112 */ "distinct ::= ALL",
   1.995 + /* 113 */ "distinct ::=",
   1.996 + /* 114 */ "sclp ::= selcollist COMMA",
   1.997 + /* 115 */ "sclp ::=",
   1.998 + /* 116 */ "selcollist ::= sclp expr as",
   1.999 + /* 117 */ "selcollist ::= sclp STAR",
  1.1000 + /* 118 */ "selcollist ::= sclp nm DOT STAR",
  1.1001 + /* 119 */ "as ::= AS nm",
  1.1002 + /* 120 */ "as ::= ids",
  1.1003 + /* 121 */ "as ::=",
  1.1004 + /* 122 */ "from ::=",
  1.1005 + /* 123 */ "from ::= FROM seltablist",
  1.1006 + /* 124 */ "stl_prefix ::= seltablist joinop",
  1.1007 + /* 125 */ "stl_prefix ::=",
  1.1008 + /* 126 */ "seltablist ::= stl_prefix nm dbnm as on_opt using_opt",
  1.1009 + /* 127 */ "seltablist ::= stl_prefix LP seltablist_paren RP as on_opt using_opt",
  1.1010 + /* 128 */ "seltablist_paren ::= select",
  1.1011 + /* 129 */ "seltablist_paren ::= seltablist",
  1.1012 + /* 130 */ "dbnm ::=",
  1.1013 + /* 131 */ "dbnm ::= DOT nm",
  1.1014 + /* 132 */ "fullname ::= nm dbnm",
  1.1015 + /* 133 */ "joinop ::= COMMA|JOIN",
  1.1016 + /* 134 */ "joinop ::= JOIN_KW JOIN",
  1.1017 + /* 135 */ "joinop ::= JOIN_KW nm JOIN",
  1.1018 + /* 136 */ "joinop ::= JOIN_KW nm nm JOIN",
  1.1019 + /* 137 */ "on_opt ::= ON expr",
  1.1020 + /* 138 */ "on_opt ::=",
  1.1021 + /* 139 */ "using_opt ::= USING LP inscollist RP",
  1.1022 + /* 140 */ "using_opt ::=",
  1.1023 + /* 141 */ "orderby_opt ::=",
  1.1024 + /* 142 */ "orderby_opt ::= ORDER BY sortlist",
  1.1025 + /* 143 */ "sortlist ::= sortlist COMMA sortitem sortorder",
  1.1026 + /* 144 */ "sortlist ::= sortitem sortorder",
  1.1027 + /* 145 */ "sortitem ::= expr",
  1.1028 + /* 146 */ "sortorder ::= ASC",
  1.1029 + /* 147 */ "sortorder ::= DESC",
  1.1030 + /* 148 */ "sortorder ::=",
  1.1031 + /* 149 */ "groupby_opt ::=",
  1.1032 + /* 150 */ "groupby_opt ::= GROUP BY nexprlist",
  1.1033 + /* 151 */ "having_opt ::=",
  1.1034 + /* 152 */ "having_opt ::= HAVING expr",
  1.1035 + /* 153 */ "limit_opt ::=",
  1.1036 + /* 154 */ "limit_opt ::= LIMIT expr",
  1.1037 + /* 155 */ "limit_opt ::= LIMIT expr OFFSET expr",
  1.1038 + /* 156 */ "limit_opt ::= LIMIT expr COMMA expr",
  1.1039 + /* 157 */ "cmd ::= DELETE FROM fullname where_opt",
  1.1040 + /* 158 */ "where_opt ::=",
  1.1041 + /* 159 */ "where_opt ::= WHERE expr",
  1.1042 + /* 160 */ "cmd ::= UPDATE orconf fullname SET setlist where_opt",
  1.1043 + /* 161 */ "setlist ::= setlist COMMA nm EQ expr",
  1.1044 + /* 162 */ "setlist ::= nm EQ expr",
  1.1045 + /* 163 */ "cmd ::= insert_cmd INTO fullname inscollist_opt VALUES LP itemlist RP",
  1.1046 + /* 164 */ "cmd ::= insert_cmd INTO fullname inscollist_opt select",
  1.1047 + /* 165 */ "cmd ::= insert_cmd INTO fullname inscollist_opt DEFAULT VALUES",
  1.1048 + /* 166 */ "insert_cmd ::= INSERT orconf",
  1.1049 + /* 167 */ "insert_cmd ::= REPLACE",
  1.1050 + /* 168 */ "itemlist ::= itemlist COMMA expr",
  1.1051 + /* 169 */ "itemlist ::= expr",
  1.1052 + /* 170 */ "inscollist_opt ::=",
  1.1053 + /* 171 */ "inscollist_opt ::= LP inscollist RP",
  1.1054 + /* 172 */ "inscollist ::= inscollist COMMA nm",
  1.1055 + /* 173 */ "inscollist ::= nm",
  1.1056 + /* 174 */ "expr ::= term",
  1.1057 + /* 175 */ "expr ::= LP expr RP",
  1.1058 + /* 176 */ "term ::= NULL",
  1.1059 + /* 177 */ "expr ::= ID",
  1.1060 + /* 178 */ "expr ::= JOIN_KW",
  1.1061 + /* 179 */ "expr ::= nm DOT nm",
  1.1062 + /* 180 */ "expr ::= nm DOT nm DOT nm",
  1.1063 + /* 181 */ "term ::= INTEGER|FLOAT|BLOB",
  1.1064 + /* 182 */ "term ::= STRING",
  1.1065 + /* 183 */ "expr ::= REGISTER",
  1.1066 + /* 184 */ "expr ::= VARIABLE",
  1.1067 + /* 185 */ "expr ::= expr COLLATE ids",
  1.1068 + /* 186 */ "expr ::= CAST LP expr AS typetoken RP",
  1.1069 + /* 187 */ "expr ::= ID LP distinct exprlist RP",
  1.1070 + /* 188 */ "expr ::= ID LP STAR RP",
  1.1071 + /* 189 */ "term ::= CTIME_KW",
  1.1072 + /* 190 */ "expr ::= expr AND expr",
  1.1073 + /* 191 */ "expr ::= expr OR expr",
  1.1074 + /* 192 */ "expr ::= expr LT|GT|GE|LE expr",
  1.1075 + /* 193 */ "expr ::= expr EQ|NE expr",
  1.1076 + /* 194 */ "expr ::= expr BITAND|BITOR|LSHIFT|RSHIFT expr",
  1.1077 + /* 195 */ "expr ::= expr PLUS|MINUS expr",
  1.1078 + /* 196 */ "expr ::= expr STAR|SLASH|REM expr",
  1.1079 + /* 197 */ "expr ::= expr CONCAT expr",
  1.1080 + /* 198 */ "likeop ::= LIKE_KW",
  1.1081 + /* 199 */ "likeop ::= NOT LIKE_KW",
  1.1082 + /* 200 */ "likeop ::= MATCH",
  1.1083 + /* 201 */ "likeop ::= NOT MATCH",
  1.1084 + /* 202 */ "escape ::= ESCAPE expr",
  1.1085 + /* 203 */ "escape ::=",
  1.1086 + /* 204 */ "expr ::= expr likeop expr escape",
  1.1087 + /* 205 */ "expr ::= expr ISNULL|NOTNULL",
  1.1088 + /* 206 */ "expr ::= expr IS NULL",
  1.1089 + /* 207 */ "expr ::= expr NOT NULL",
  1.1090 + /* 208 */ "expr ::= expr IS NOT NULL",
  1.1091 + /* 209 */ "expr ::= NOT expr",
  1.1092 + /* 210 */ "expr ::= BITNOT expr",
  1.1093 + /* 211 */ "expr ::= MINUS expr",
  1.1094 + /* 212 */ "expr ::= PLUS expr",
  1.1095 + /* 213 */ "between_op ::= BETWEEN",
  1.1096 + /* 214 */ "between_op ::= NOT BETWEEN",
  1.1097 + /* 215 */ "expr ::= expr between_op expr AND expr",
  1.1098 + /* 216 */ "in_op ::= IN",
  1.1099 + /* 217 */ "in_op ::= NOT IN",
  1.1100 + /* 218 */ "expr ::= expr in_op LP exprlist RP",
  1.1101 + /* 219 */ "expr ::= LP select RP",
  1.1102 + /* 220 */ "expr ::= expr in_op LP select RP",
  1.1103 + /* 221 */ "expr ::= expr in_op nm dbnm",
  1.1104 + /* 222 */ "expr ::= EXISTS LP select RP",
  1.1105 + /* 223 */ "expr ::= CASE case_operand case_exprlist case_else END",
  1.1106 + /* 224 */ "case_exprlist ::= case_exprlist WHEN expr THEN expr",
  1.1107 + /* 225 */ "case_exprlist ::= WHEN expr THEN expr",
  1.1108 + /* 226 */ "case_else ::= ELSE expr",
  1.1109 + /* 227 */ "case_else ::=",
  1.1110 + /* 228 */ "case_operand ::= expr",
  1.1111 + /* 229 */ "case_operand ::=",
  1.1112 + /* 230 */ "exprlist ::= nexprlist",
  1.1113 + /* 231 */ "exprlist ::=",
  1.1114 + /* 232 */ "nexprlist ::= nexprlist COMMA expr",
  1.1115 + /* 233 */ "nexprlist ::= expr",
  1.1116 + /* 234 */ "cmd ::= CREATE uniqueflag INDEX ifnotexists nm dbnm ON nm LP idxlist RP",
  1.1117 + /* 235 */ "uniqueflag ::= UNIQUE",
  1.1118 + /* 236 */ "uniqueflag ::=",
  1.1119 + /* 237 */ "idxlist_opt ::=",
  1.1120 + /* 238 */ "idxlist_opt ::= LP idxlist RP",
  1.1121 + /* 239 */ "idxlist ::= idxlist COMMA idxitem collate sortorder",
  1.1122 + /* 240 */ "idxlist ::= idxitem collate sortorder",
  1.1123 + /* 241 */ "idxitem ::= nm",
  1.1124 + /* 242 */ "collate ::=",
  1.1125 + /* 243 */ "collate ::= COLLATE ids",
  1.1126 + /* 244 */ "cmd ::= DROP INDEX ifexists fullname",
  1.1127 + /* 245 */ "cmd ::= VACUUM",
  1.1128 + /* 246 */ "cmd ::= VACUUM nm",
  1.1129 + /* 247 */ "cmd ::= PRAGMA nm dbnm EQ nmnum",
  1.1130 + /* 248 */ "cmd ::= PRAGMA nm dbnm EQ ON",
  1.1131 + /* 249 */ "cmd ::= PRAGMA nm dbnm EQ DELETE",
  1.1132 + /* 250 */ "cmd ::= PRAGMA nm dbnm EQ minus_num",
  1.1133 + /* 251 */ "cmd ::= PRAGMA nm dbnm LP nmnum RP",
  1.1134 + /* 252 */ "cmd ::= PRAGMA nm dbnm",
  1.1135 + /* 253 */ "nmnum ::= plus_num",
  1.1136 + /* 254 */ "nmnum ::= nm",
  1.1137 + /* 255 */ "plus_num ::= plus_opt number",
  1.1138 + /* 256 */ "minus_num ::= MINUS number",
  1.1139 + /* 257 */ "number ::= INTEGER|FLOAT",
  1.1140 + /* 258 */ "plus_opt ::= PLUS",
  1.1141 + /* 259 */ "plus_opt ::=",
  1.1142 + /* 260 */ "cmd ::= CREATE trigger_decl BEGIN trigger_cmd_list END",
  1.1143 + /* 261 */ "trigger_decl ::= temp TRIGGER ifnotexists nm dbnm trigger_time trigger_event ON fullname foreach_clause when_clause",
  1.1144 + /* 262 */ "trigger_time ::= BEFORE",
  1.1145 + /* 263 */ "trigger_time ::= AFTER",
  1.1146 + /* 264 */ "trigger_time ::= INSTEAD OF",
  1.1147 + /* 265 */ "trigger_time ::=",
  1.1148 + /* 266 */ "trigger_event ::= DELETE|INSERT",
  1.1149 + /* 267 */ "trigger_event ::= UPDATE",
  1.1150 + /* 268 */ "trigger_event ::= UPDATE OF inscollist",
  1.1151 + /* 269 */ "foreach_clause ::=",
  1.1152 + /* 270 */ "foreach_clause ::= FOR EACH ROW",
  1.1153 + /* 271 */ "when_clause ::=",
  1.1154 + /* 272 */ "when_clause ::= WHEN expr",
  1.1155 + /* 273 */ "trigger_cmd_list ::= trigger_cmd_list trigger_cmd SEMI",
  1.1156 + /* 274 */ "trigger_cmd_list ::=",
  1.1157 + /* 275 */ "trigger_cmd ::= UPDATE orconf nm SET setlist where_opt",
  1.1158 + /* 276 */ "trigger_cmd ::= insert_cmd INTO nm inscollist_opt VALUES LP itemlist RP",
  1.1159 + /* 277 */ "trigger_cmd ::= insert_cmd INTO nm inscollist_opt select",
  1.1160 + /* 278 */ "trigger_cmd ::= DELETE FROM nm where_opt",
  1.1161 + /* 279 */ "trigger_cmd ::= select",
  1.1162 + /* 280 */ "expr ::= RAISE LP IGNORE RP",
  1.1163 + /* 281 */ "expr ::= RAISE LP raisetype COMMA nm RP",
  1.1164 + /* 282 */ "raisetype ::= ROLLBACK",
  1.1165 + /* 283 */ "raisetype ::= ABORT",
  1.1166 + /* 284 */ "raisetype ::= FAIL",
  1.1167 + /* 285 */ "cmd ::= DROP TRIGGER ifexists fullname",
  1.1168 + /* 286 */ "cmd ::= ATTACH database_kw_opt expr AS expr key_opt",
  1.1169 + /* 287 */ "cmd ::= DETACH database_kw_opt expr",
  1.1170 + /* 288 */ "key_opt ::=",
  1.1171 + /* 289 */ "key_opt ::= KEY expr",
  1.1172 + /* 290 */ "database_kw_opt ::= DATABASE",
  1.1173 + /* 291 */ "database_kw_opt ::=",
  1.1174 + /* 292 */ "cmd ::= REINDEX",
  1.1175 + /* 293 */ "cmd ::= REINDEX nm dbnm",
  1.1176 + /* 294 */ "cmd ::= ANALYZE",
  1.1177 + /* 295 */ "cmd ::= ANALYZE nm dbnm",
  1.1178 + /* 296 */ "cmd ::= ALTER TABLE fullname RENAME TO nm",
  1.1179 + /* 297 */ "cmd ::= ALTER TABLE add_column_fullname ADD kwcolumn_opt column",
  1.1180 + /* 298 */ "add_column_fullname ::= fullname",
  1.1181 + /* 299 */ "kwcolumn_opt ::=",
  1.1182 + /* 300 */ "kwcolumn_opt ::= COLUMNKW",
  1.1183 +};
  1.1184 +#endif /* NDEBUG */
  1.1185 +
  1.1186 +
  1.1187 +#if YYSTACKDEPTH<=0
  1.1188 +/*
  1.1189 +** Try to increase the size of the parser stack.
  1.1190 +*/
  1.1191 +static void yyGrowStack(yyParser *p){
  1.1192 +  int newSize;
  1.1193 +  yyStackEntry *pNew;
  1.1194 +
  1.1195 +  newSize = p->yystksz*2 + 100;
  1.1196 +  pNew = realloc(p->yystack, newSize*sizeof(pNew[0]));
  1.1197 +  if( pNew ){
  1.1198 +    p->yystack = pNew;
  1.1199 +    p->yystksz = newSize;
  1.1200 +#ifndef NDEBUG
  1.1201 +    if( yyTraceFILE ){
  1.1202 +      fprintf(yyTraceFILE,"%sStack grows to %d entries!\n",
  1.1203 +              yyTracePrompt, p->yystksz);
  1.1204 +    }
  1.1205 +#endif
  1.1206 +  }
  1.1207 +}
  1.1208 +#endif
  1.1209 +
  1.1210 +/* 
  1.1211 +** This function allocates a new parser.
  1.1212 +** The only argument is a pointer to a function which works like
  1.1213 +** malloc.
  1.1214 +**
  1.1215 +** Inputs:
  1.1216 +** A pointer to the function used to allocate memory.
  1.1217 +**
  1.1218 +** Outputs:
  1.1219 +** A pointer to a parser.  This pointer is used in subsequent calls
  1.1220 +** to sqlite3Parser and sqlite3ParserFree.
  1.1221 +*/
  1.1222 +void *sqlite3ParserAlloc(void *(*mallocProc)(size_t)){
  1.1223 +  yyParser *pParser;
  1.1224 +  pParser = (yyParser*)(*mallocProc)( (size_t)sizeof(yyParser) );
  1.1225 +  if( pParser ){
  1.1226 +    pParser->yyidx = -1;
  1.1227 +#ifdef YYTRACKMAXSTACKDEPTH
  1.1228 +    pParser->yyidxMax = 0;
  1.1229 +#endif
  1.1230 +#if YYSTACKDEPTH<=0
  1.1231 +    yyGrowStack(pParser);
  1.1232 +#endif
  1.1233 +  }
  1.1234 +  return pParser;
  1.1235 +}
  1.1236 +
  1.1237 +/* The following function deletes the value associated with a
  1.1238 +** symbol.  The symbol can be either a terminal or nonterminal.
  1.1239 +** "yymajor" is the symbol code, and "yypminor" is a pointer to
  1.1240 +** the value.
  1.1241 +*/
  1.1242 +static void yy_destructor(
  1.1243 +  yyParser *yypParser,    /* The parser */
  1.1244 +  YYCODETYPE yymajor,     /* Type code for object to destroy */
  1.1245 +  YYMINORTYPE *yypminor   /* The object to be destroyed */
  1.1246 +){
  1.1247 +  sqlite3ParserARG_FETCH;
  1.1248 +  switch( yymajor ){
  1.1249 +    /* Here is inserted the actions which take place when a
  1.1250 +    ** terminal or non-terminal is destroyed.  This can happen
  1.1251 +    ** when the symbol is popped from the stack during a
  1.1252 +    ** reduce or during error processing or when a parser is 
  1.1253 +    ** being destroyed before it is finished parsing.
  1.1254 +    **
  1.1255 +    ** Note: during a reduce, the only symbols destroyed are those
  1.1256 +    ** which appear on the RHS of the rule, but which are not used
  1.1257 +    ** inside the C code.
  1.1258 +    */
  1.1259 +    case 155: /* select */
  1.1260 +    case 189: /* oneselect */
  1.1261 +    case 206: /* seltablist_paren */
  1.1262 +{
  1.1263 +#line 369 "parse.y"
  1.1264 +sqlite3SelectDelete(pParse->db, (yypminor->yy313));
  1.1265 +#line 1266 "parse.c"
  1.1266 +}
  1.1267 +      break;
  1.1268 +    case 169: /* term */
  1.1269 +    case 170: /* expr */
  1.1270 +    case 194: /* where_opt */
  1.1271 +    case 196: /* having_opt */
  1.1272 +    case 204: /* on_opt */
  1.1273 +    case 210: /* sortitem */
  1.1274 +    case 218: /* escape */
  1.1275 +    case 221: /* case_operand */
  1.1276 +    case 223: /* case_else */
  1.1277 +    case 235: /* when_clause */
  1.1278 +    case 238: /* key_opt */
  1.1279 +{
  1.1280 +#line 629 "parse.y"
  1.1281 +sqlite3ExprDelete(pParse->db, (yypminor->yy162));
  1.1282 +#line 1283 "parse.c"
  1.1283 +}
  1.1284 +      break;
  1.1285 +    case 174: /* idxlist_opt */
  1.1286 +    case 182: /* idxlist */
  1.1287 +    case 192: /* selcollist */
  1.1288 +    case 195: /* groupby_opt */
  1.1289 +    case 197: /* orderby_opt */
  1.1290 +    case 199: /* sclp */
  1.1291 +    case 209: /* sortlist */
  1.1292 +    case 211: /* nexprlist */
  1.1293 +    case 212: /* setlist */
  1.1294 +    case 215: /* itemlist */
  1.1295 +    case 216: /* exprlist */
  1.1296 +    case 222: /* case_exprlist */
  1.1297 +{
  1.1298 +#line 887 "parse.y"
  1.1299 +sqlite3ExprListDelete(pParse->db, (yypminor->yy44));
  1.1300 +#line 1301 "parse.c"
  1.1301 +}
  1.1302 +      break;
  1.1303 +    case 188: /* fullname */
  1.1304 +    case 193: /* from */
  1.1305 +    case 201: /* seltablist */
  1.1306 +    case 202: /* stl_prefix */
  1.1307 +{
  1.1308 +#line 486 "parse.y"
  1.1309 +sqlite3SrcListDelete(pParse->db, (yypminor->yy149));
  1.1310 +#line 1311 "parse.c"
  1.1311 +}
  1.1312 +      break;
  1.1313 +    case 205: /* using_opt */
  1.1314 +    case 208: /* inscollist */
  1.1315 +    case 214: /* inscollist_opt */
  1.1316 +{
  1.1317 +#line 503 "parse.y"
  1.1318 +sqlite3IdListDelete(pParse->db, (yypminor->yy326));
  1.1319 +#line 1320 "parse.c"
  1.1320 +}
  1.1321 +      break;
  1.1322 +    case 231: /* trigger_cmd_list */
  1.1323 +    case 236: /* trigger_cmd */
  1.1324 +{
  1.1325 +#line 993 "parse.y"
  1.1326 +sqlite3DeleteTriggerStep(pParse->db, (yypminor->yy137));
  1.1327 +#line 1328 "parse.c"
  1.1328 +}
  1.1329 +      break;
  1.1330 +    case 233: /* trigger_event */
  1.1331 +{
  1.1332 +#line 979 "parse.y"
  1.1333 +sqlite3IdListDelete(pParse->db, (yypminor->yy412).b);
  1.1334 +#line 1335 "parse.c"
  1.1335 +}
  1.1336 +      break;
  1.1337 +    default:  break;   /* If no destructor action specified: do nothing */
  1.1338 +  }
  1.1339 +}
  1.1340 +
  1.1341 +/*
  1.1342 +** Pop the parser's stack once.
  1.1343 +**
  1.1344 +** If there is a destructor routine associated with the token which
  1.1345 +** is popped from the stack, then call it.
  1.1346 +**
  1.1347 +** Return the major token number for the symbol popped.
  1.1348 +*/
  1.1349 +static int yy_pop_parser_stack(yyParser *pParser){
  1.1350 +  YYCODETYPE yymajor;
  1.1351 +  yyStackEntry *yytos = &pParser->yystack[pParser->yyidx];
  1.1352 +
  1.1353 +  if( pParser->yyidx<0 ) return 0;
  1.1354 +#ifndef NDEBUG
  1.1355 +  if( yyTraceFILE && pParser->yyidx>=0 ){
  1.1356 +    fprintf(yyTraceFILE,"%sPopping %s\n",
  1.1357 +      yyTracePrompt,
  1.1358 +      yyTokenName[yytos->major]);
  1.1359 +  }
  1.1360 +#endif
  1.1361 +  yymajor = yytos->major;
  1.1362 +  yy_destructor(pParser, yymajor, &yytos->minor);
  1.1363 +  pParser->yyidx--;
  1.1364 +  return yymajor;
  1.1365 +}
  1.1366 +
  1.1367 +/* 
  1.1368 +** Deallocate and destroy a parser.  Destructors are all called for
  1.1369 +** all stack elements before shutting the parser down.
  1.1370 +**
  1.1371 +** Inputs:
  1.1372 +** <ul>
  1.1373 +** <li>  A pointer to the parser.  This should be a pointer
  1.1374 +**       obtained from sqlite3ParserAlloc.
  1.1375 +** <li>  A pointer to a function used to reclaim memory obtained
  1.1376 +**       from malloc.
  1.1377 +** </ul>
  1.1378 +*/
  1.1379 +void sqlite3ParserFree(
  1.1380 +  void *p,                    /* The parser to be deleted */
  1.1381 +  void (*freeProc)(void*)     /* Function used to reclaim memory */
  1.1382 +){
  1.1383 +  yyParser *pParser = (yyParser*)p;
  1.1384 +  if( pParser==0 ) return;
  1.1385 +  while( pParser->yyidx>=0 ) yy_pop_parser_stack(pParser);
  1.1386 +#if YYSTACKDEPTH<=0
  1.1387 +  free(pParser->yystack);
  1.1388 +#endif
  1.1389 +  (*freeProc)((void*)pParser);
  1.1390 +}
  1.1391 +
  1.1392 +/*
  1.1393 +** Return the peak depth of the stack for a parser.
  1.1394 +*/
  1.1395 +#ifdef YYTRACKMAXSTACKDEPTH
  1.1396 +int sqlite3ParserStackPeak(void *p){
  1.1397 +  yyParser *pParser = (yyParser*)p;
  1.1398 +  return pParser->yyidxMax;
  1.1399 +}
  1.1400 +#endif
  1.1401 +
  1.1402 +/*
  1.1403 +** Find the appropriate action for a parser given the terminal
  1.1404 +** look-ahead token iLookAhead.
  1.1405 +**
  1.1406 +** If the look-ahead token is YYNOCODE, then check to see if the action is
  1.1407 +** independent of the look-ahead.  If it is, return the action, otherwise
  1.1408 +** return YY_NO_ACTION.
  1.1409 +*/
  1.1410 +static int yy_find_shift_action(
  1.1411 +  yyParser *pParser,        /* The parser */
  1.1412 +  YYCODETYPE iLookAhead     /* The look-ahead token */
  1.1413 +){
  1.1414 +  int i;
  1.1415 +  int stateno = pParser->yystack[pParser->yyidx].stateno;
  1.1416 + 
  1.1417 +  if( stateno>YY_SHIFT_MAX || (i = yy_shift_ofst[stateno])==YY_SHIFT_USE_DFLT ){
  1.1418 +    return yy_default[stateno];
  1.1419 +  }
  1.1420 +  assert( iLookAhead!=YYNOCODE );
  1.1421 +  i += iLookAhead;
  1.1422 +  if( i<0 || i>=YY_SZ_ACTTAB || yy_lookahead[i]!=iLookAhead ){
  1.1423 +    if( iLookAhead>0 ){
  1.1424 +#ifdef YYFALLBACK
  1.1425 +      int iFallback;            /* Fallback token */
  1.1426 +      if( iLookAhead<sizeof(yyFallback)/sizeof(yyFallback[0])
  1.1427 +             && (iFallback = yyFallback[iLookAhead])!=0 ){
  1.1428 +#ifndef NDEBUG
  1.1429 +        if( yyTraceFILE ){
  1.1430 +          fprintf(yyTraceFILE, "%sFALLBACK %s => %s\n",
  1.1431 +             yyTracePrompt, yyTokenName[iLookAhead], yyTokenName[iFallback]);
  1.1432 +        }
  1.1433 +#endif
  1.1434 +        return yy_find_shift_action(pParser, iFallback);
  1.1435 +      }
  1.1436 +#endif
  1.1437 +#ifdef YYWILDCARD
  1.1438 +      {
  1.1439 +        int j = i - iLookAhead + YYWILDCARD;
  1.1440 +        if( j>=0 && j<YY_SZ_ACTTAB && yy_lookahead[j]==YYWILDCARD ){
  1.1441 +#ifndef NDEBUG
  1.1442 +          if( yyTraceFILE ){
  1.1443 +            fprintf(yyTraceFILE, "%sWILDCARD %s => %s\n",
  1.1444 +               yyTracePrompt, yyTokenName[iLookAhead], yyTokenName[YYWILDCARD]);
  1.1445 +          }
  1.1446 +#endif /* NDEBUG */
  1.1447 +          return yy_action[j];
  1.1448 +        }
  1.1449 +      }
  1.1450 +#endif /* YYWILDCARD */
  1.1451 +    }
  1.1452 +    return yy_default[stateno];
  1.1453 +  }else{
  1.1454 +    return yy_action[i];
  1.1455 +  }
  1.1456 +}
  1.1457 +
  1.1458 +/*
  1.1459 +** Find the appropriate action for a parser given the non-terminal
  1.1460 +** look-ahead token iLookAhead.
  1.1461 +**
  1.1462 +** If the look-ahead token is YYNOCODE, then check to see if the action is
  1.1463 +** independent of the look-ahead.  If it is, return the action, otherwise
  1.1464 +** return YY_NO_ACTION.
  1.1465 +*/
  1.1466 +static int yy_find_reduce_action(
  1.1467 +  int stateno,              /* Current state number */
  1.1468 +  YYCODETYPE iLookAhead     /* The look-ahead token */
  1.1469 +){
  1.1470 +  int i;
  1.1471 +#ifdef YYERRORSYMBOL
  1.1472 +  if( stateno>YY_REDUCE_MAX ){
  1.1473 +    return yy_default[stateno];
  1.1474 +  }
  1.1475 +#else
  1.1476 +  assert( stateno<=YY_REDUCE_MAX );
  1.1477 +#endif
  1.1478 +  i = yy_reduce_ofst[stateno];
  1.1479 +  assert( i!=YY_REDUCE_USE_DFLT );
  1.1480 +  assert( iLookAhead!=YYNOCODE );
  1.1481 +  i += iLookAhead;
  1.1482 +#ifdef YYERRORSYMBOL
  1.1483 +  if( i<0 || i>=YY_SZ_ACTTAB || yy_lookahead[i]!=iLookAhead ){
  1.1484 +    return yy_default[stateno];
  1.1485 +  }
  1.1486 +#else
  1.1487 +  assert( i>=0 && i<YY_SZ_ACTTAB );
  1.1488 +  assert( yy_lookahead[i]==iLookAhead );
  1.1489 +#endif
  1.1490 +  return yy_action[i];
  1.1491 +}
  1.1492 +
  1.1493 +/*
  1.1494 +** The following routine is called if the stack overflows.
  1.1495 +*/
  1.1496 +static void yyStackOverflow(yyParser *yypParser, YYMINORTYPE *yypMinor){
  1.1497 +   sqlite3ParserARG_FETCH;
  1.1498 +   yypParser->yyidx--;
  1.1499 +#ifndef NDEBUG
  1.1500 +   if( yyTraceFILE ){
  1.1501 +     fprintf(yyTraceFILE,"%sStack Overflow!\n",yyTracePrompt);
  1.1502 +   }
  1.1503 +#endif
  1.1504 +   while( yypParser->yyidx>=0 ) yy_pop_parser_stack(yypParser);
  1.1505 +   /* Here code is inserted which will execute if the parser
  1.1506 +   ** stack every overflows */
  1.1507 +#line 39 "parse.y"
  1.1508 +
  1.1509 +  sqlite3ErrorMsg(pParse, "parser stack overflow");
  1.1510 +  pParse->parseError = 1;
  1.1511 +#line 1513 "parse.c"
  1.1512 +   sqlite3ParserARG_STORE; /* Suppress warning about unused %extra_argument var */
  1.1513 +}
  1.1514 +
  1.1515 +/*
  1.1516 +** Perform a shift action.
  1.1517 +*/
  1.1518 +static void yy_shift(
  1.1519 +  yyParser *yypParser,          /* The parser to be shifted */
  1.1520 +  int yyNewState,               /* The new state to shift in */
  1.1521 +  int yyMajor,                  /* The major token to shift in */
  1.1522 +  YYMINORTYPE *yypMinor         /* Pointer to the minor token to shift in */
  1.1523 +){
  1.1524 +  yyStackEntry *yytos;
  1.1525 +  yypParser->yyidx++;
  1.1526 +#ifdef YYTRACKMAXSTACKDEPTH
  1.1527 +  if( yypParser->yyidx>yypParser->yyidxMax ){
  1.1528 +    yypParser->yyidxMax = yypParser->yyidx;
  1.1529 +  }
  1.1530 +#endif
  1.1531 +#if YYSTACKDEPTH>0 
  1.1532 +  if( yypParser->yyidx>=YYSTACKDEPTH ){
  1.1533 +    yyStackOverflow(yypParser, yypMinor);
  1.1534 +    return;
  1.1535 +  }
  1.1536 +#else
  1.1537 +  if( yypParser->yyidx>=yypParser->yystksz ){
  1.1538 +    yyGrowStack(yypParser);
  1.1539 +    if( yypParser->yyidx>=yypParser->yystksz ){
  1.1540 +      yyStackOverflow(yypParser, yypMinor);
  1.1541 +      return;
  1.1542 +    }
  1.1543 +  }
  1.1544 +#endif
  1.1545 +  yytos = &yypParser->yystack[yypParser->yyidx];
  1.1546 +  yytos->stateno = yyNewState;
  1.1547 +  yytos->major = yyMajor;
  1.1548 +  yytos->minor = *yypMinor;
  1.1549 +#ifndef NDEBUG
  1.1550 +  if( yyTraceFILE && yypParser->yyidx>0 ){
  1.1551 +    int i;
  1.1552 +    fprintf(yyTraceFILE,"%sShift %d\n",yyTracePrompt,yyNewState);
  1.1553 +    fprintf(yyTraceFILE,"%sStack:",yyTracePrompt);
  1.1554 +    for(i=1; i<=yypParser->yyidx; i++)
  1.1555 +      fprintf(yyTraceFILE," %s",yyTokenName[yypParser->yystack[i].major]);
  1.1556 +    fprintf(yyTraceFILE,"\n");
  1.1557 +  }
  1.1558 +#endif
  1.1559 +}
  1.1560 +
  1.1561 +/* The following table contains information about every rule that
  1.1562 +** is used during the reduce.
  1.1563 +*/
  1.1564 +static const struct {
  1.1565 +  YYCODETYPE lhs;         /* Symbol on the left-hand side of the rule */
  1.1566 +  unsigned char nrhs;     /* Number of right-hand side symbols in the rule */
  1.1567 +} yyRuleInfo[] = {
  1.1568 +  { 139, 1 },
  1.1569 +  { 140, 2 },
  1.1570 +  { 140, 1 },
  1.1571 +  { 142, 1 },
  1.1572 +  { 141, 1 },
  1.1573 +  { 141, 3 },
  1.1574 +  { 144, 0 },
  1.1575 +  { 144, 1 },
  1.1576 +  { 144, 3 },
  1.1577 +  { 143, 3 },
  1.1578 +  { 146, 0 },
  1.1579 +  { 146, 1 },
  1.1580 +  { 146, 2 },
  1.1581 +  { 145, 0 },
  1.1582 +  { 145, 1 },
  1.1583 +  { 145, 1 },
  1.1584 +  { 145, 1 },
  1.1585 +  { 143, 2 },
  1.1586 +  { 143, 2 },
  1.1587 +  { 143, 2 },
  1.1588 +  { 143, 2 },
  1.1589 +  { 148, 6 },
  1.1590 +  { 151, 0 },
  1.1591 +  { 151, 3 },
  1.1592 +  { 150, 1 },
  1.1593 +  { 150, 0 },
  1.1594 +  { 149, 4 },
  1.1595 +  { 149, 2 },
  1.1596 +  { 153, 3 },
  1.1597 +  { 153, 1 },
  1.1598 +  { 156, 3 },
  1.1599 +  { 157, 1 },
  1.1600 +  { 160, 1 },
  1.1601 +  { 161, 1 },
  1.1602 +  { 147, 1 },
  1.1603 +  { 147, 1 },
  1.1604 +  { 147, 1 },
  1.1605 +  { 158, 0 },
  1.1606 +  { 158, 1 },
  1.1607 +  { 162, 1 },
  1.1608 +  { 162, 4 },
  1.1609 +  { 162, 6 },
  1.1610 +  { 163, 1 },
  1.1611 +  { 163, 2 },
  1.1612 +  { 164, 1 },
  1.1613 +  { 164, 1 },
  1.1614 +  { 159, 2 },
  1.1615 +  { 159, 0 },
  1.1616 +  { 167, 3 },
  1.1617 +  { 167, 1 },
  1.1618 +  { 168, 2 },
  1.1619 +  { 168, 4 },
  1.1620 +  { 168, 3 },
  1.1621 +  { 168, 3 },
  1.1622 +  { 168, 2 },
  1.1623 +  { 168, 2 },
  1.1624 +  { 168, 3 },
  1.1625 +  { 168, 5 },
  1.1626 +  { 168, 2 },
  1.1627 +  { 168, 4 },
  1.1628 +  { 168, 4 },
  1.1629 +  { 168, 1 },
  1.1630 +  { 168, 2 },
  1.1631 +  { 173, 0 },
  1.1632 +  { 173, 1 },
  1.1633 +  { 175, 0 },
  1.1634 +  { 175, 2 },
  1.1635 +  { 177, 2 },
  1.1636 +  { 177, 3 },
  1.1637 +  { 177, 3 },
  1.1638 +  { 177, 3 },
  1.1639 +  { 178, 2 },
  1.1640 +  { 178, 2 },
  1.1641 +  { 178, 1 },
  1.1642 +  { 178, 1 },
  1.1643 +  { 176, 3 },
  1.1644 +  { 176, 2 },
  1.1645 +  { 179, 0 },
  1.1646 +  { 179, 2 },
  1.1647 +  { 179, 2 },
  1.1648 +  { 154, 0 },
  1.1649 +  { 154, 2 },
  1.1650 +  { 180, 3 },
  1.1651 +  { 180, 2 },
  1.1652 +  { 180, 1 },
  1.1653 +  { 181, 2 },
  1.1654 +  { 181, 7 },
  1.1655 +  { 181, 5 },
  1.1656 +  { 181, 5 },
  1.1657 +  { 181, 10 },
  1.1658 +  { 183, 0 },
  1.1659 +  { 183, 1 },
  1.1660 +  { 171, 0 },
  1.1661 +  { 171, 3 },
  1.1662 +  { 184, 0 },
  1.1663 +  { 184, 2 },
  1.1664 +  { 185, 1 },
  1.1665 +  { 185, 1 },
  1.1666 +  { 185, 1 },
  1.1667 +  { 143, 4 },
  1.1668 +  { 187, 2 },
  1.1669 +  { 187, 0 },
  1.1670 +  { 143, 8 },
  1.1671 +  { 143, 4 },
  1.1672 +  { 143, 1 },
  1.1673 +  { 155, 1 },
  1.1674 +  { 155, 3 },
  1.1675 +  { 190, 1 },
  1.1676 +  { 190, 2 },
  1.1677 +  { 190, 1 },
  1.1678 +  { 189, 9 },
  1.1679 +  { 191, 1 },
  1.1680 +  { 191, 1 },
  1.1681 +  { 191, 0 },
  1.1682 +  { 199, 2 },
  1.1683 +  { 199, 0 },
  1.1684 +  { 192, 3 },
  1.1685 +  { 192, 2 },
  1.1686 +  { 192, 4 },
  1.1687 +  { 200, 2 },
  1.1688 +  { 200, 1 },
  1.1689 +  { 200, 0 },
  1.1690 +  { 193, 0 },
  1.1691 +  { 193, 2 },
  1.1692 +  { 202, 2 },
  1.1693 +  { 202, 0 },
  1.1694 +  { 201, 6 },
  1.1695 +  { 201, 7 },
  1.1696 +  { 206, 1 },
  1.1697 +  { 206, 1 },
  1.1698 +  { 152, 0 },
  1.1699 +  { 152, 2 },
  1.1700 +  { 188, 2 },
  1.1701 +  { 203, 1 },
  1.1702 +  { 203, 2 },
  1.1703 +  { 203, 3 },
  1.1704 +  { 203, 4 },
  1.1705 +  { 204, 2 },
  1.1706 +  { 204, 0 },
  1.1707 +  { 205, 4 },
  1.1708 +  { 205, 0 },
  1.1709 +  { 197, 0 },
  1.1710 +  { 197, 3 },
  1.1711 +  { 209, 4 },
  1.1712 +  { 209, 2 },
  1.1713 +  { 210, 1 },
  1.1714 +  { 172, 1 },
  1.1715 +  { 172, 1 },
  1.1716 +  { 172, 0 },
  1.1717 +  { 195, 0 },
  1.1718 +  { 195, 3 },
  1.1719 +  { 196, 0 },
  1.1720 +  { 196, 2 },
  1.1721 +  { 198, 0 },
  1.1722 +  { 198, 2 },
  1.1723 +  { 198, 4 },
  1.1724 +  { 198, 4 },
  1.1725 +  { 143, 4 },
  1.1726 +  { 194, 0 },
  1.1727 +  { 194, 2 },
  1.1728 +  { 143, 6 },
  1.1729 +  { 212, 5 },
  1.1730 +  { 212, 3 },
  1.1731 +  { 143, 8 },
  1.1732 +  { 143, 5 },
  1.1733 +  { 143, 6 },
  1.1734 +  { 213, 2 },
  1.1735 +  { 213, 1 },
  1.1736 +  { 215, 3 },
  1.1737 +  { 215, 1 },
  1.1738 +  { 214, 0 },
  1.1739 +  { 214, 3 },
  1.1740 +  { 208, 3 },
  1.1741 +  { 208, 1 },
  1.1742 +  { 170, 1 },
  1.1743 +  { 170, 3 },
  1.1744 +  { 169, 1 },
  1.1745 +  { 170, 1 },
  1.1746 +  { 170, 1 },
  1.1747 +  { 170, 3 },
  1.1748 +  { 170, 5 },
  1.1749 +  { 169, 1 },
  1.1750 +  { 169, 1 },
  1.1751 +  { 170, 1 },
  1.1752 +  { 170, 1 },
  1.1753 +  { 170, 3 },
  1.1754 +  { 170, 6 },
  1.1755 +  { 170, 5 },
  1.1756 +  { 170, 4 },
  1.1757 +  { 169, 1 },
  1.1758 +  { 170, 3 },
  1.1759 +  { 170, 3 },
  1.1760 +  { 170, 3 },
  1.1761 +  { 170, 3 },
  1.1762 +  { 170, 3 },
  1.1763 +  { 170, 3 },
  1.1764 +  { 170, 3 },
  1.1765 +  { 170, 3 },
  1.1766 +  { 217, 1 },
  1.1767 +  { 217, 2 },
  1.1768 +  { 217, 1 },
  1.1769 +  { 217, 2 },
  1.1770 +  { 218, 2 },
  1.1771 +  { 218, 0 },
  1.1772 +  { 170, 4 },
  1.1773 +  { 170, 2 },
  1.1774 +  { 170, 3 },
  1.1775 +  { 170, 3 },
  1.1776 +  { 170, 4 },
  1.1777 +  { 170, 2 },
  1.1778 +  { 170, 2 },
  1.1779 +  { 170, 2 },
  1.1780 +  { 170, 2 },
  1.1781 +  { 219, 1 },
  1.1782 +  { 219, 2 },
  1.1783 +  { 170, 5 },
  1.1784 +  { 220, 1 },
  1.1785 +  { 220, 2 },
  1.1786 +  { 170, 5 },
  1.1787 +  { 170, 3 },
  1.1788 +  { 170, 5 },
  1.1789 +  { 170, 4 },
  1.1790 +  { 170, 4 },
  1.1791 +  { 170, 5 },
  1.1792 +  { 222, 5 },
  1.1793 +  { 222, 4 },
  1.1794 +  { 223, 2 },
  1.1795 +  { 223, 0 },
  1.1796 +  { 221, 1 },
  1.1797 +  { 221, 0 },
  1.1798 +  { 216, 1 },
  1.1799 +  { 216, 0 },
  1.1800 +  { 211, 3 },
  1.1801 +  { 211, 1 },
  1.1802 +  { 143, 11 },
  1.1803 +  { 224, 1 },
  1.1804 +  { 224, 0 },
  1.1805 +  { 174, 0 },
  1.1806 +  { 174, 3 },
  1.1807 +  { 182, 5 },
  1.1808 +  { 182, 3 },
  1.1809 +  { 225, 1 },
  1.1810 +  { 226, 0 },
  1.1811 +  { 226, 2 },
  1.1812 +  { 143, 4 },
  1.1813 +  { 143, 1 },
  1.1814 +  { 143, 2 },
  1.1815 +  { 143, 5 },
  1.1816 +  { 143, 5 },
  1.1817 +  { 143, 5 },
  1.1818 +  { 143, 5 },
  1.1819 +  { 143, 6 },
  1.1820 +  { 143, 3 },
  1.1821 +  { 227, 1 },
  1.1822 +  { 227, 1 },
  1.1823 +  { 165, 2 },
  1.1824 +  { 166, 2 },
  1.1825 +  { 229, 1 },
  1.1826 +  { 228, 1 },
  1.1827 +  { 228, 0 },
  1.1828 +  { 143, 5 },
  1.1829 +  { 230, 11 },
  1.1830 +  { 232, 1 },
  1.1831 +  { 232, 1 },
  1.1832 +  { 232, 2 },
  1.1833 +  { 232, 0 },
  1.1834 +  { 233, 1 },
  1.1835 +  { 233, 1 },
  1.1836 +  { 233, 3 },
  1.1837 +  { 234, 0 },
  1.1838 +  { 234, 3 },
  1.1839 +  { 235, 0 },
  1.1840 +  { 235, 2 },
  1.1841 +  { 231, 3 },
  1.1842 +  { 231, 0 },
  1.1843 +  { 236, 6 },
  1.1844 +  { 236, 8 },
  1.1845 +  { 236, 5 },
  1.1846 +  { 236, 4 },
  1.1847 +  { 236, 1 },
  1.1848 +  { 170, 4 },
  1.1849 +  { 170, 6 },
  1.1850 +  { 186, 1 },
  1.1851 +  { 186, 1 },
  1.1852 +  { 186, 1 },
  1.1853 +  { 143, 4 },
  1.1854 +  { 143, 6 },
  1.1855 +  { 143, 3 },
  1.1856 +  { 238, 0 },
  1.1857 +  { 238, 2 },
  1.1858 +  { 237, 1 },
  1.1859 +  { 237, 0 },
  1.1860 +  { 143, 1 },
  1.1861 +  { 143, 3 },
  1.1862 +  { 143, 1 },
  1.1863 +  { 143, 3 },
  1.1864 +  { 143, 6 },
  1.1865 +  { 143, 6 },
  1.1866 +  { 239, 1 },
  1.1867 +  { 240, 0 },
  1.1868 +  { 240, 1 },
  1.1869 +};
  1.1870 +
  1.1871 +static void yy_accept(yyParser*);  /* Forward Declaration */
  1.1872 +
  1.1873 +/*
  1.1874 +** Perform a reduce action and the shift that must immediately
  1.1875 +** follow the reduce.
  1.1876 +*/
  1.1877 +static void yy_reduce(
  1.1878 +  yyParser *yypParser,         /* The parser */
  1.1879 +  int yyruleno                 /* Number of the rule by which to reduce */
  1.1880 +){
  1.1881 +  int yygoto;                     /* The next state */
  1.1882 +  int yyact;                      /* The next action */
  1.1883 +  YYMINORTYPE yygotominor;        /* The LHS of the rule reduced */
  1.1884 +  yyStackEntry *yymsp;            /* The top of the parser's stack */
  1.1885 +  int yysize;                     /* Amount to pop the stack */
  1.1886 +  sqlite3ParserARG_FETCH;
  1.1887 +  yymsp = &yypParser->yystack[yypParser->yyidx];
  1.1888 +#ifndef NDEBUG
  1.1889 +  if( yyTraceFILE && yyruleno>=0 
  1.1890 +        && yyruleno<(int)(sizeof(yyRuleName)/sizeof(yyRuleName[0])) ){
  1.1891 +    fprintf(yyTraceFILE, "%sReduce [%s].\n", yyTracePrompt,
  1.1892 +      yyRuleName[yyruleno]);
  1.1893 +  }
  1.1894 +#endif /* NDEBUG */
  1.1895 +
  1.1896 +  /* Silence complaints from purify about yygotominor being uninitialized
  1.1897 +  ** in some cases when it is copied into the stack after the following
  1.1898 +  ** switch.  yygotominor is uninitialized when a rule reduces that does
  1.1899 +  ** not set the value of its left-hand side nonterminal.  Leaving the
  1.1900 +  ** value of the nonterminal uninitialized is utterly harmless as long
  1.1901 +  ** as the value is never used.  So really the only thing this code
  1.1902 +  ** accomplishes is to quieten purify.  
  1.1903 +  **
  1.1904 +  ** 2007-01-16:  The wireshark project (www.wireshark.org) reports that
  1.1905 +  ** without this code, their parser segfaults.  I'm not sure what there
  1.1906 +  ** parser is doing to make this happen.  This is the second bug report
  1.1907 +  ** from wireshark this week.  Clearly they are stressing Lemon in ways
  1.1908 +  ** that it has not been previously stressed...  (SQLite ticket #2172)
  1.1909 +  */
  1.1910 +  /*memset(&yygotominor, 0, sizeof(yygotominor));*/
  1.1911 +  yygotominor = yyzerominor;
  1.1912 +
  1.1913 +
  1.1914 +  switch( yyruleno ){
  1.1915 +  /* Beginning here are the reduction cases.  A typical example
  1.1916 +  ** follows:
  1.1917 +  **   case 0:
  1.1918 +  **  #line <lineno> <grammarfile>
  1.1919 +  **     { ... }           // User supplied code
  1.1920 +  **  #line <lineno> <thisfile>
  1.1921 +  **     break;
  1.1922 +  */
  1.1923 +      case 0: /* input ::= cmdlist */
  1.1924 +      case 1: /* cmdlist ::= cmdlist ecmd */
  1.1925 +      case 2: /* cmdlist ::= ecmd */
  1.1926 +      case 4: /* ecmd ::= SEMI */
  1.1927 +      case 5: /* ecmd ::= explain cmdx SEMI */
  1.1928 +      case 10: /* trans_opt ::= */
  1.1929 +      case 11: /* trans_opt ::= TRANSACTION */
  1.1930 +      case 12: /* trans_opt ::= TRANSACTION nm */
  1.1931 +      case 20: /* cmd ::= create_table create_table_args */
  1.1932 +      case 28: /* columnlist ::= columnlist COMMA column */
  1.1933 +      case 29: /* columnlist ::= column */
  1.1934 +      case 37: /* type ::= */
  1.1935 +      case 44: /* signed ::= plus_num */
  1.1936 +      case 45: /* signed ::= minus_num */
  1.1937 +      case 46: /* carglist ::= carglist carg */
  1.1938 +      case 47: /* carglist ::= */
  1.1939 +      case 48: /* carg ::= CONSTRAINT nm ccons */
  1.1940 +      case 49: /* carg ::= ccons */
  1.1941 +      case 55: /* ccons ::= NULL onconf */
  1.1942 +      case 82: /* conslist ::= conslist COMMA tcons */
  1.1943 +      case 83: /* conslist ::= conslist tcons */
  1.1944 +      case 84: /* conslist ::= tcons */
  1.1945 +      case 85: /* tcons ::= CONSTRAINT nm */
  1.1946 +      case 258: /* plus_opt ::= PLUS */
  1.1947 +      case 259: /* plus_opt ::= */
  1.1948 +      case 269: /* foreach_clause ::= */
  1.1949 +      case 270: /* foreach_clause ::= FOR EACH ROW */
  1.1950 +      case 290: /* database_kw_opt ::= DATABASE */
  1.1951 +      case 291: /* database_kw_opt ::= */
  1.1952 +      case 299: /* kwcolumn_opt ::= */
  1.1953 +      case 300: /* kwcolumn_opt ::= COLUMNKW */
  1.1954 +#line 91 "parse.y"
  1.1955 +{
  1.1956 +}
  1.1957 +#line 1959 "parse.c"
  1.1958 +        break;
  1.1959 +      case 3: /* cmdx ::= cmd */
  1.1960 +#line 94 "parse.y"
  1.1961 +{ sqlite3FinishCoding(pParse); }
  1.1962 +#line 1964 "parse.c"
  1.1963 +        break;
  1.1964 +      case 6: /* explain ::= */
  1.1965 +#line 97 "parse.y"
  1.1966 +{ sqlite3BeginParse(pParse, 0); }
  1.1967 +#line 1969 "parse.c"
  1.1968 +        break;
  1.1969 +      case 7: /* explain ::= EXPLAIN */
  1.1970 +#line 99 "parse.y"
  1.1971 +{ sqlite3BeginParse(pParse, 1); }
  1.1972 +#line 1974 "parse.c"
  1.1973 +        break;
  1.1974 +      case 8: /* explain ::= EXPLAIN QUERY PLAN */
  1.1975 +#line 100 "parse.y"
  1.1976 +{ sqlite3BeginParse(pParse, 2); }
  1.1977 +#line 1979 "parse.c"
  1.1978 +        break;
  1.1979 +      case 9: /* cmd ::= BEGIN transtype trans_opt */
  1.1980 +#line 106 "parse.y"
  1.1981 +{sqlite3BeginTransaction(pParse, yymsp[-1].minor.yy124);}
  1.1982 +#line 1984 "parse.c"
  1.1983 +        break;
  1.1984 +      case 13: /* transtype ::= */
  1.1985 +#line 111 "parse.y"
  1.1986 +{yygotominor.yy124 = TK_DEFERRED;}
  1.1987 +#line 1989 "parse.c"
  1.1988 +        break;
  1.1989 +      case 14: /* transtype ::= DEFERRED */
  1.1990 +      case 15: /* transtype ::= IMMEDIATE */
  1.1991 +      case 16: /* transtype ::= EXCLUSIVE */
  1.1992 +      case 107: /* multiselect_op ::= UNION */
  1.1993 +      case 109: /* multiselect_op ::= EXCEPT|INTERSECT */
  1.1994 +#line 112 "parse.y"
  1.1995 +{yygotominor.yy124 = yymsp[0].major;}
  1.1996 +#line 1998 "parse.c"
  1.1997 +        break;
  1.1998 +      case 17: /* cmd ::= COMMIT trans_opt */
  1.1999 +      case 18: /* cmd ::= END trans_opt */
  1.2000 +#line 115 "parse.y"
  1.2001 +{sqlite3CommitTransaction(pParse);}
  1.2002 +#line 2004 "parse.c"
  1.2003 +        break;
  1.2004 +      case 19: /* cmd ::= ROLLBACK trans_opt */
  1.2005 +#line 117 "parse.y"
  1.2006 +{sqlite3RollbackTransaction(pParse);}
  1.2007 +#line 2009 "parse.c"
  1.2008 +        break;
  1.2009 +      case 21: /* create_table ::= CREATE temp TABLE ifnotexists nm dbnm */
  1.2010 +#line 122 "parse.y"
  1.2011 +{
  1.2012 +   sqlite3StartTable(pParse,&yymsp[-1].minor.yy0,&yymsp[0].minor.yy0,yymsp[-4].minor.yy124,0,0,yymsp[-2].minor.yy124);
  1.2013 +}
  1.2014 +#line 2016 "parse.c"
  1.2015 +        break;
  1.2016 +      case 22: /* ifnotexists ::= */
  1.2017 +      case 25: /* temp ::= */
  1.2018 +      case 63: /* autoinc ::= */
  1.2019 +      case 77: /* init_deferred_pred_opt ::= */
  1.2020 +      case 79: /* init_deferred_pred_opt ::= INITIALLY IMMEDIATE */
  1.2021 +      case 90: /* defer_subclause_opt ::= */
  1.2022 +      case 101: /* ifexists ::= */
  1.2023 +      case 112: /* distinct ::= ALL */
  1.2024 +      case 113: /* distinct ::= */
  1.2025 +      case 213: /* between_op ::= BETWEEN */
  1.2026 +      case 216: /* in_op ::= IN */
  1.2027 +#line 126 "parse.y"
  1.2028 +{yygotominor.yy124 = 0;}
  1.2029 +#line 2031 "parse.c"
  1.2030 +        break;
  1.2031 +      case 23: /* ifnotexists ::= IF NOT EXISTS */
  1.2032 +      case 24: /* temp ::= TEMP */
  1.2033 +      case 64: /* autoinc ::= AUTOINCR */
  1.2034 +      case 78: /* init_deferred_pred_opt ::= INITIALLY DEFERRED */
  1.2035 +      case 100: /* ifexists ::= IF EXISTS */
  1.2036 +      case 111: /* distinct ::= DISTINCT */
  1.2037 +      case 214: /* between_op ::= NOT BETWEEN */
  1.2038 +      case 217: /* in_op ::= NOT IN */
  1.2039 +#line 127 "parse.y"
  1.2040 +{yygotominor.yy124 = 1;}
  1.2041 +#line 2043 "parse.c"
  1.2042 +        break;
  1.2043 +      case 26: /* create_table_args ::= LP columnlist conslist_opt RP */
  1.2044 +#line 133 "parse.y"
  1.2045 +{
  1.2046 +  sqlite3EndTable(pParse,&yymsp[-1].minor.yy0,&yymsp[0].minor.yy0,0);
  1.2047 +}
  1.2048 +#line 2050 "parse.c"
  1.2049 +        break;
  1.2050 +      case 27: /* create_table_args ::= AS select */
  1.2051 +#line 136 "parse.y"
  1.2052 +{
  1.2053 +  sqlite3EndTable(pParse,0,0,yymsp[0].minor.yy313);
  1.2054 +  sqlite3SelectDelete(pParse->db, yymsp[0].minor.yy313);
  1.2055 +}
  1.2056 +#line 2058 "parse.c"
  1.2057 +        break;
  1.2058 +      case 30: /* column ::= columnid type carglist */
  1.2059 +#line 148 "parse.y"
  1.2060 +{
  1.2061 +  yygotominor.yy0.z = yymsp[-2].minor.yy0.z;
  1.2062 +  yygotominor.yy0.n = (pParse->sLastToken.z-yymsp[-2].minor.yy0.z) + pParse->sLastToken.n;
  1.2063 +}
  1.2064 +#line 2066 "parse.c"
  1.2065 +        break;
  1.2066 +      case 31: /* columnid ::= nm */
  1.2067 +#line 152 "parse.y"
  1.2068 +{
  1.2069 +  sqlite3AddColumn(pParse,&yymsp[0].minor.yy0);
  1.2070 +  yygotominor.yy0 = yymsp[0].minor.yy0;
  1.2071 +}
  1.2072 +#line 2074 "parse.c"
  1.2073 +        break;
  1.2074 +      case 32: /* id ::= ID */
  1.2075 +      case 33: /* ids ::= ID|STRING */
  1.2076 +      case 34: /* nm ::= ID */
  1.2077 +      case 35: /* nm ::= STRING */
  1.2078 +      case 36: /* nm ::= JOIN_KW */
  1.2079 +      case 39: /* typetoken ::= typename */
  1.2080 +      case 42: /* typename ::= ids */
  1.2081 +      case 119: /* as ::= AS nm */
  1.2082 +      case 120: /* as ::= ids */
  1.2083 +      case 131: /* dbnm ::= DOT nm */
  1.2084 +      case 241: /* idxitem ::= nm */
  1.2085 +      case 243: /* collate ::= COLLATE ids */
  1.2086 +      case 253: /* nmnum ::= plus_num */
  1.2087 +      case 254: /* nmnum ::= nm */
  1.2088 +      case 255: /* plus_num ::= plus_opt number */
  1.2089 +      case 256: /* minus_num ::= MINUS number */
  1.2090 +      case 257: /* number ::= INTEGER|FLOAT */
  1.2091 +#line 162 "parse.y"
  1.2092 +{yygotominor.yy0 = yymsp[0].minor.yy0;}
  1.2093 +#line 2095 "parse.c"
  1.2094 +        break;
  1.2095 +      case 38: /* type ::= typetoken */
  1.2096 +#line 223 "parse.y"
  1.2097 +{sqlite3AddColumnType(pParse,&yymsp[0].minor.yy0);}
  1.2098 +#line 2100 "parse.c"
  1.2099 +        break;
  1.2100 +      case 40: /* typetoken ::= typename LP signed RP */
  1.2101 +#line 225 "parse.y"
  1.2102 +{
  1.2103 +  yygotominor.yy0.z = yymsp[-3].minor.yy0.z;
  1.2104 +  yygotominor.yy0.n = &yymsp[0].minor.yy0.z[yymsp[0].minor.yy0.n] - yymsp[-3].minor.yy0.z;
  1.2105 +}
  1.2106 +#line 2108 "parse.c"
  1.2107 +        break;
  1.2108 +      case 41: /* typetoken ::= typename LP signed COMMA signed RP */
  1.2109 +#line 229 "parse.y"
  1.2110 +{
  1.2111 +  yygotominor.yy0.z = yymsp[-5].minor.yy0.z;
  1.2112 +  yygotominor.yy0.n = &yymsp[0].minor.yy0.z[yymsp[0].minor.yy0.n] - yymsp[-5].minor.yy0.z;
  1.2113 +}
  1.2114 +#line 2116 "parse.c"
  1.2115 +        break;
  1.2116 +      case 43: /* typename ::= typename ids */
  1.2117 +#line 235 "parse.y"
  1.2118 +{yygotominor.yy0.z=yymsp[-1].minor.yy0.z; yygotominor.yy0.n=yymsp[0].minor.yy0.n+(yymsp[0].minor.yy0.z-yymsp[-1].minor.yy0.z);}
  1.2119 +#line 2121 "parse.c"
  1.2120 +        break;
  1.2121 +      case 50: /* ccons ::= DEFAULT term */
  1.2122 +      case 52: /* ccons ::= DEFAULT PLUS term */
  1.2123 +#line 246 "parse.y"
  1.2124 +{sqlite3AddDefaultValue(pParse,yymsp[0].minor.yy162);}
  1.2125 +#line 2127 "parse.c"
  1.2126 +        break;
  1.2127 +      case 51: /* ccons ::= DEFAULT LP expr RP */
  1.2128 +#line 247 "parse.y"
  1.2129 +{sqlite3AddDefaultValue(pParse,yymsp[-1].minor.yy162);}
  1.2130 +#line 2132 "parse.c"
  1.2131 +        break;
  1.2132 +      case 53: /* ccons ::= DEFAULT MINUS term */
  1.2133 +#line 249 "parse.y"
  1.2134 +{
  1.2135 +  Expr *p = sqlite3PExpr(pParse, TK_UMINUS, yymsp[0].minor.yy162, 0, 0);
  1.2136 +  sqlite3AddDefaultValue(pParse,p);
  1.2137 +}
  1.2138 +#line 2140 "parse.c"
  1.2139 +        break;
  1.2140 +      case 54: /* ccons ::= DEFAULT id */
  1.2141 +#line 253 "parse.y"
  1.2142 +{
  1.2143 +  Expr *p = sqlite3PExpr(pParse, TK_STRING, 0, 0, &yymsp[0].minor.yy0);
  1.2144 +  sqlite3AddDefaultValue(pParse,p);
  1.2145 +}
  1.2146 +#line 2148 "parse.c"
  1.2147 +        break;
  1.2148 +      case 56: /* ccons ::= NOT NULL onconf */
  1.2149 +#line 262 "parse.y"
  1.2150 +{sqlite3AddNotNull(pParse, yymsp[0].minor.yy124);}
  1.2151 +#line 2153 "parse.c"
  1.2152 +        break;
  1.2153 +      case 57: /* ccons ::= PRIMARY KEY sortorder onconf autoinc */
  1.2154 +#line 264 "parse.y"
  1.2155 +{sqlite3AddPrimaryKey(pParse,0,yymsp[-1].minor.yy124,yymsp[0].minor.yy124,yymsp[-2].minor.yy124);}
  1.2156 +#line 2158 "parse.c"
  1.2157 +        break;
  1.2158 +      case 58: /* ccons ::= UNIQUE onconf */
  1.2159 +#line 265 "parse.y"
  1.2160 +{sqlite3CreateIndex(pParse,0,0,0,0,yymsp[0].minor.yy124,0,0,0,0);}
  1.2161 +#line 2163 "parse.c"
  1.2162 +        break;
  1.2163 +      case 59: /* ccons ::= CHECK LP expr RP */
  1.2164 +#line 266 "parse.y"
  1.2165 +{sqlite3AddCheckConstraint(pParse,yymsp[-1].minor.yy162);}
  1.2166 +#line 2168 "parse.c"
  1.2167 +        break;
  1.2168 +      case 60: /* ccons ::= REFERENCES nm idxlist_opt refargs */
  1.2169 +#line 268 "parse.y"
  1.2170 +{sqlite3CreateForeignKey(pParse,0,&yymsp[-2].minor.yy0,yymsp[-1].minor.yy44,yymsp[0].minor.yy124);}
  1.2171 +#line 2173 "parse.c"
  1.2172 +        break;
  1.2173 +      case 61: /* ccons ::= defer_subclause */
  1.2174 +#line 269 "parse.y"
  1.2175 +{sqlite3DeferForeignKey(pParse,yymsp[0].minor.yy124);}
  1.2176 +#line 2178 "parse.c"
  1.2177 +        break;
  1.2178 +      case 62: /* ccons ::= COLLATE ids */
  1.2179 +#line 270 "parse.y"
  1.2180 +{sqlite3AddCollateType(pParse, &yymsp[0].minor.yy0);}
  1.2181 +#line 2183 "parse.c"
  1.2182 +        break;
  1.2183 +      case 65: /* refargs ::= */
  1.2184 +#line 283 "parse.y"
  1.2185 +{ yygotominor.yy124 = OE_Restrict * 0x010101; }
  1.2186 +#line 2188 "parse.c"
  1.2187 +        break;
  1.2188 +      case 66: /* refargs ::= refargs refarg */
  1.2189 +#line 284 "parse.y"
  1.2190 +{ yygotominor.yy124 = (yymsp[-1].minor.yy124 & yymsp[0].minor.yy317.mask) | yymsp[0].minor.yy317.value; }
  1.2191 +#line 2193 "parse.c"
  1.2192 +        break;
  1.2193 +      case 67: /* refarg ::= MATCH nm */
  1.2194 +#line 286 "parse.y"
  1.2195 +{ yygotominor.yy317.value = 0;     yygotominor.yy317.mask = 0x000000; }
  1.2196 +#line 2198 "parse.c"
  1.2197 +        break;
  1.2198 +      case 68: /* refarg ::= ON DELETE refact */
  1.2199 +#line 287 "parse.y"
  1.2200 +{ yygotominor.yy317.value = yymsp[0].minor.yy124;     yygotominor.yy317.mask = 0x0000ff; }
  1.2201 +#line 2203 "parse.c"
  1.2202 +        break;
  1.2203 +      case 69: /* refarg ::= ON UPDATE refact */
  1.2204 +#line 288 "parse.y"
  1.2205 +{ yygotominor.yy317.value = yymsp[0].minor.yy124<<8;  yygotominor.yy317.mask = 0x00ff00; }
  1.2206 +#line 2208 "parse.c"
  1.2207 +        break;
  1.2208 +      case 70: /* refarg ::= ON INSERT refact */
  1.2209 +#line 289 "parse.y"
  1.2210 +{ yygotominor.yy317.value = yymsp[0].minor.yy124<<16; yygotominor.yy317.mask = 0xff0000; }
  1.2211 +#line 2213 "parse.c"
  1.2212 +        break;
  1.2213 +      case 71: /* refact ::= SET NULL */
  1.2214 +#line 291 "parse.y"
  1.2215 +{ yygotominor.yy124 = OE_SetNull; }
  1.2216 +#line 2218 "parse.c"
  1.2217 +        break;
  1.2218 +      case 72: /* refact ::= SET DEFAULT */
  1.2219 +#line 292 "parse.y"
  1.2220 +{ yygotominor.yy124 = OE_SetDflt; }
  1.2221 +#line 2223 "parse.c"
  1.2222 +        break;
  1.2223 +      case 73: /* refact ::= CASCADE */
  1.2224 +#line 293 "parse.y"
  1.2225 +{ yygotominor.yy124 = OE_Cascade; }
  1.2226 +#line 2228 "parse.c"
  1.2227 +        break;
  1.2228 +      case 74: /* refact ::= RESTRICT */
  1.2229 +#line 294 "parse.y"
  1.2230 +{ yygotominor.yy124 = OE_Restrict; }
  1.2231 +#line 2233 "parse.c"
  1.2232 +        break;
  1.2233 +      case 75: /* defer_subclause ::= NOT DEFERRABLE init_deferred_pred_opt */
  1.2234 +      case 76: /* defer_subclause ::= DEFERRABLE init_deferred_pred_opt */
  1.2235 +      case 91: /* defer_subclause_opt ::= defer_subclause */
  1.2236 +      case 93: /* onconf ::= ON CONFLICT resolvetype */
  1.2237 +      case 95: /* orconf ::= OR resolvetype */
  1.2238 +      case 96: /* resolvetype ::= raisetype */
  1.2239 +      case 166: /* insert_cmd ::= INSERT orconf */
  1.2240 +#line 296 "parse.y"
  1.2241 +{yygotominor.yy124 = yymsp[0].minor.yy124;}
  1.2242 +#line 2244 "parse.c"
  1.2243 +        break;
  1.2244 +      case 80: /* conslist_opt ::= */
  1.2245 +#line 306 "parse.y"
  1.2246 +{yygotominor.yy0.n = 0; yygotominor.yy0.z = 0;}
  1.2247 +#line 2249 "parse.c"
  1.2248 +        break;
  1.2249 +      case 81: /* conslist_opt ::= COMMA conslist */
  1.2250 +#line 307 "parse.y"
  1.2251 +{yygotominor.yy0 = yymsp[-1].minor.yy0;}
  1.2252 +#line 2254 "parse.c"
  1.2253 +        break;
  1.2254 +      case 86: /* tcons ::= PRIMARY KEY LP idxlist autoinc RP onconf */
  1.2255 +#line 313 "parse.y"
  1.2256 +{sqlite3AddPrimaryKey(pParse,yymsp[-3].minor.yy44,yymsp[0].minor.yy124,yymsp[-2].minor.yy124,0);}
  1.2257 +#line 2259 "parse.c"
  1.2258 +        break;
  1.2259 +      case 87: /* tcons ::= UNIQUE LP idxlist RP onconf */
  1.2260 +#line 315 "parse.y"
  1.2261 +{sqlite3CreateIndex(pParse,0,0,0,yymsp[-2].minor.yy44,yymsp[0].minor.yy124,0,0,0,0);}
  1.2262 +#line 2264 "parse.c"
  1.2263 +        break;
  1.2264 +      case 88: /* tcons ::= CHECK LP expr RP onconf */
  1.2265 +#line 316 "parse.y"
  1.2266 +{sqlite3AddCheckConstraint(pParse,yymsp[-2].minor.yy162);}
  1.2267 +#line 2269 "parse.c"
  1.2268 +        break;
  1.2269 +      case 89: /* tcons ::= FOREIGN KEY LP idxlist RP REFERENCES nm idxlist_opt refargs defer_subclause_opt */
  1.2270 +#line 318 "parse.y"
  1.2271 +{
  1.2272 +    sqlite3CreateForeignKey(pParse, yymsp[-6].minor.yy44, &yymsp[-3].minor.yy0, yymsp[-2].minor.yy44, yymsp[-1].minor.yy124);
  1.2273 +    sqlite3DeferForeignKey(pParse, yymsp[0].minor.yy124);
  1.2274 +}
  1.2275 +#line 2277 "parse.c"
  1.2276 +        break;
  1.2277 +      case 92: /* onconf ::= */
  1.2278 +      case 94: /* orconf ::= */
  1.2279 +#line 332 "parse.y"
  1.2280 +{yygotominor.yy124 = OE_Default;}
  1.2281 +#line 2283 "parse.c"
  1.2282 +        break;
  1.2283 +      case 97: /* resolvetype ::= IGNORE */
  1.2284 +#line 337 "parse.y"
  1.2285 +{yygotominor.yy124 = OE_Ignore;}
  1.2286 +#line 2288 "parse.c"
  1.2287 +        break;
  1.2288 +      case 98: /* resolvetype ::= REPLACE */
  1.2289 +      case 167: /* insert_cmd ::= REPLACE */
  1.2290 +#line 338 "parse.y"
  1.2291 +{yygotominor.yy124 = OE_Replace;}
  1.2292 +#line 2294 "parse.c"
  1.2293 +        break;
  1.2294 +      case 99: /* cmd ::= DROP TABLE ifexists fullname */
  1.2295 +#line 342 "parse.y"
  1.2296 +{
  1.2297 +  sqlite3DropTable(pParse, yymsp[0].minor.yy149, 0, yymsp[-1].minor.yy124);
  1.2298 +}
  1.2299 +#line 2301 "parse.c"
  1.2300 +        break;
  1.2301 +      case 102: /* cmd ::= CREATE temp VIEW ifnotexists nm dbnm AS select */
  1.2302 +#line 352 "parse.y"
  1.2303 +{
  1.2304 +  sqlite3CreateView(pParse, &yymsp[-7].minor.yy0, &yymsp[-3].minor.yy0, &yymsp[-2].minor.yy0, yymsp[0].minor.yy313, yymsp[-6].minor.yy124, yymsp[-4].minor.yy124);
  1.2305 +}
  1.2306 +#line 2308 "parse.c"
  1.2307 +        break;
  1.2308 +      case 103: /* cmd ::= DROP VIEW ifexists fullname */
  1.2309 +#line 355 "parse.y"
  1.2310 +{
  1.2311 +  sqlite3DropTable(pParse, yymsp[0].minor.yy149, 1, yymsp[-1].minor.yy124);
  1.2312 +}
  1.2313 +#line 2315 "parse.c"
  1.2314 +        break;
  1.2315 +      case 104: /* cmd ::= select */
  1.2316 +#line 362 "parse.y"
  1.2317 +{
  1.2318 +  SelectDest dest = {SRT_Callback, 0, 0, 0, 0};
  1.2319 +  sqlite3Select(pParse, yymsp[0].minor.yy313, &dest, 0, 0, 0);
  1.2320 +  sqlite3SelectDelete(pParse->db, yymsp[0].minor.yy313);
  1.2321 +}
  1.2322 +#line 2324 "parse.c"
  1.2323 +        break;
  1.2324 +      case 105: /* select ::= oneselect */
  1.2325 +      case 128: /* seltablist_paren ::= select */
  1.2326 +#line 373 "parse.y"
  1.2327 +{yygotominor.yy313 = yymsp[0].minor.yy313;}
  1.2328 +#line 2330 "parse.c"
  1.2329 +        break;
  1.2330 +      case 106: /* select ::= select multiselect_op oneselect */
  1.2331 +#line 375 "parse.y"
  1.2332 +{
  1.2333 +  if( yymsp[0].minor.yy313 ){
  1.2334 +    yymsp[0].minor.yy313->op = yymsp[-1].minor.yy124;
  1.2335 +    yymsp[0].minor.yy313->pPrior = yymsp[-2].minor.yy313;
  1.2336 +  }else{
  1.2337 +    sqlite3SelectDelete(pParse->db, yymsp[-2].minor.yy313);
  1.2338 +  }
  1.2339 +  yygotominor.yy313 = yymsp[0].minor.yy313;
  1.2340 +}
  1.2341 +#line 2343 "parse.c"
  1.2342 +        break;
  1.2343 +      case 108: /* multiselect_op ::= UNION ALL */
  1.2344 +#line 386 "parse.y"
  1.2345 +{yygotominor.yy124 = TK_ALL;}
  1.2346 +#line 2348 "parse.c"
  1.2347 +        break;
  1.2348 +      case 110: /* oneselect ::= SELECT distinct selcollist from where_opt groupby_opt having_opt orderby_opt limit_opt */
  1.2349 +#line 390 "parse.y"
  1.2350 +{
  1.2351 +  yygotominor.yy313 = sqlite3SelectNew(pParse,yymsp[-6].minor.yy44,yymsp[-5].minor.yy149,yymsp[-4].minor.yy162,yymsp[-3].minor.yy44,yymsp[-2].minor.yy162,yymsp[-1].minor.yy44,yymsp[-7].minor.yy124,yymsp[0].minor.yy278.pLimit,yymsp[0].minor.yy278.pOffset);
  1.2352 +}
  1.2353 +#line 2355 "parse.c"
  1.2354 +        break;
  1.2355 +      case 114: /* sclp ::= selcollist COMMA */
  1.2356 +      case 238: /* idxlist_opt ::= LP idxlist RP */
  1.2357 +#line 411 "parse.y"
  1.2358 +{yygotominor.yy44 = yymsp[-1].minor.yy44;}
  1.2359 +#line 2361 "parse.c"
  1.2360 +        break;
  1.2361 +      case 115: /* sclp ::= */
  1.2362 +      case 141: /* orderby_opt ::= */
  1.2363 +      case 149: /* groupby_opt ::= */
  1.2364 +      case 231: /* exprlist ::= */
  1.2365 +      case 237: /* idxlist_opt ::= */
  1.2366 +#line 412 "parse.y"
  1.2367 +{yygotominor.yy44 = 0;}
  1.2368 +#line 2370 "parse.c"
  1.2369 +        break;
  1.2370 +      case 116: /* selcollist ::= sclp expr as */
  1.2371 +#line 413 "parse.y"
  1.2372 +{
  1.2373 +   yygotominor.yy44 = sqlite3ExprListAppend(pParse,yymsp[-2].minor.yy44,yymsp[-1].minor.yy162,yymsp[0].minor.yy0.n?&yymsp[0].minor.yy0:0);
  1.2374 +}
  1.2375 +#line 2377 "parse.c"
  1.2376 +        break;
  1.2377 +      case 117: /* selcollist ::= sclp STAR */
  1.2378 +#line 416 "parse.y"
  1.2379 +{
  1.2380 +  Expr *p = sqlite3PExpr(pParse, TK_ALL, 0, 0, 0);
  1.2381 +  yygotominor.yy44 = sqlite3ExprListAppend(pParse, yymsp[-1].minor.yy44, p, 0);
  1.2382 +}
  1.2383 +#line 2385 "parse.c"
  1.2384 +        break;
  1.2385 +      case 118: /* selcollist ::= sclp nm DOT STAR */
  1.2386 +#line 420 "parse.y"
  1.2387 +{
  1.2388 +  Expr *pRight = sqlite3PExpr(pParse, TK_ALL, 0, 0, &yymsp[0].minor.yy0);
  1.2389 +  Expr *pLeft = sqlite3PExpr(pParse, TK_ID, 0, 0, &yymsp[-2].minor.yy0);
  1.2390 +  Expr *pDot = sqlite3PExpr(pParse, TK_DOT, pLeft, pRight, 0);
  1.2391 +  yygotominor.yy44 = sqlite3ExprListAppend(pParse,yymsp[-3].minor.yy44, pDot, 0);
  1.2392 +}
  1.2393 +#line 2395 "parse.c"
  1.2394 +        break;
  1.2395 +      case 121: /* as ::= */
  1.2396 +#line 433 "parse.y"
  1.2397 +{yygotominor.yy0.n = 0;}
  1.2398 +#line 2400 "parse.c"
  1.2399 +        break;
  1.2400 +      case 122: /* from ::= */
  1.2401 +#line 445 "parse.y"
  1.2402 +{yygotominor.yy149 = sqlite3DbMallocZero(pParse->db, sizeof(*yygotominor.yy149));}
  1.2403 +#line 2405 "parse.c"
  1.2404 +        break;
  1.2405 +      case 123: /* from ::= FROM seltablist */
  1.2406 +#line 446 "parse.y"
  1.2407 +{
  1.2408 +  yygotominor.yy149 = yymsp[0].minor.yy149;
  1.2409 +  sqlite3SrcListShiftJoinType(yygotominor.yy149);
  1.2410 +}
  1.2411 +#line 2413 "parse.c"
  1.2412 +        break;
  1.2413 +      case 124: /* stl_prefix ::= seltablist joinop */
  1.2414 +#line 454 "parse.y"
  1.2415 +{
  1.2416 +   yygotominor.yy149 = yymsp[-1].minor.yy149;
  1.2417 +   if( yygotominor.yy149 && yygotominor.yy149->nSrc>0 ) yygotominor.yy149->a[yygotominor.yy149->nSrc-1].jointype = yymsp[0].minor.yy124;
  1.2418 +}
  1.2419 +#line 2421 "parse.c"
  1.2420 +        break;
  1.2421 +      case 125: /* stl_prefix ::= */
  1.2422 +#line 458 "parse.y"
  1.2423 +{yygotominor.yy149 = 0;}
  1.2424 +#line 2426 "parse.c"
  1.2425 +        break;
  1.2426 +      case 126: /* seltablist ::= stl_prefix nm dbnm as on_opt using_opt */
  1.2427 +#line 459 "parse.y"
  1.2428 +{
  1.2429 +  yygotominor.yy149 = sqlite3SrcListAppendFromTerm(pParse,yymsp[-5].minor.yy149,&yymsp[-4].minor.yy0,&yymsp[-3].minor.yy0,&yymsp[-2].minor.yy0,0,yymsp[-1].minor.yy162,yymsp[0].minor.yy326);
  1.2430 +}
  1.2431 +#line 2433 "parse.c"
  1.2432 +        break;
  1.2433 +      case 127: /* seltablist ::= stl_prefix LP seltablist_paren RP as on_opt using_opt */
  1.2434 +#line 464 "parse.y"
  1.2435 +{
  1.2436 +    yygotominor.yy149 = sqlite3SrcListAppendFromTerm(pParse,yymsp[-6].minor.yy149,0,0,&yymsp[-2].minor.yy0,yymsp[-4].minor.yy313,yymsp[-1].minor.yy162,yymsp[0].minor.yy326);
  1.2437 +  }
  1.2438 +#line 2440 "parse.c"
  1.2439 +        break;
  1.2440 +      case 129: /* seltablist_paren ::= seltablist */
  1.2441 +#line 475 "parse.y"
  1.2442 +{
  1.2443 +     sqlite3SrcListShiftJoinType(yymsp[0].minor.yy149);
  1.2444 +     yygotominor.yy313 = sqlite3SelectNew(pParse,0,yymsp[0].minor.yy149,0,0,0,0,0,0,0);
  1.2445 +  }
  1.2446 +#line 2448 "parse.c"
  1.2447 +        break;
  1.2448 +      case 130: /* dbnm ::= */
  1.2449 +#line 482 "parse.y"
  1.2450 +{yygotominor.yy0.z=0; yygotominor.yy0.n=0;}
  1.2451 +#line 2453 "parse.c"
  1.2452 +        break;
  1.2453 +      case 132: /* fullname ::= nm dbnm */
  1.2454 +#line 487 "parse.y"
  1.2455 +{yygotominor.yy149 = sqlite3SrcListAppend(pParse->db,0,&yymsp[-1].minor.yy0,&yymsp[0].minor.yy0);}
  1.2456 +#line 2458 "parse.c"
  1.2457 +        break;
  1.2458 +      case 133: /* joinop ::= COMMA|JOIN */
  1.2459 +#line 491 "parse.y"
  1.2460 +{ yygotominor.yy124 = JT_INNER; }
  1.2461 +#line 2463 "parse.c"
  1.2462 +        break;
  1.2463 +      case 134: /* joinop ::= JOIN_KW JOIN */
  1.2464 +#line 492 "parse.y"
  1.2465 +{ yygotominor.yy124 = sqlite3JoinType(pParse,&yymsp[-1].minor.yy0,0,0); }
  1.2466 +#line 2468 "parse.c"
  1.2467 +        break;
  1.2468 +      case 135: /* joinop ::= JOIN_KW nm JOIN */
  1.2469 +#line 493 "parse.y"
  1.2470 +{ yygotominor.yy124 = sqlite3JoinType(pParse,&yymsp[-2].minor.yy0,&yymsp[-1].minor.yy0,0); }
  1.2471 +#line 2473 "parse.c"
  1.2472 +        break;
  1.2473 +      case 136: /* joinop ::= JOIN_KW nm nm JOIN */
  1.2474 +#line 495 "parse.y"
  1.2475 +{ yygotominor.yy124 = sqlite3JoinType(pParse,&yymsp[-3].minor.yy0,&yymsp[-2].minor.yy0,&yymsp[-1].minor.yy0); }
  1.2476 +#line 2478 "parse.c"
  1.2477 +        break;
  1.2478 +      case 137: /* on_opt ::= ON expr */
  1.2479 +      case 145: /* sortitem ::= expr */
  1.2480 +      case 152: /* having_opt ::= HAVING expr */
  1.2481 +      case 159: /* where_opt ::= WHERE expr */
  1.2482 +      case 174: /* expr ::= term */
  1.2483 +      case 202: /* escape ::= ESCAPE expr */
  1.2484 +      case 226: /* case_else ::= ELSE expr */
  1.2485 +      case 228: /* case_operand ::= expr */
  1.2486 +#line 499 "parse.y"
  1.2487 +{yygotominor.yy162 = yymsp[0].minor.yy162;}
  1.2488 +#line 2490 "parse.c"
  1.2489 +        break;
  1.2490 +      case 138: /* on_opt ::= */
  1.2491 +      case 151: /* having_opt ::= */
  1.2492 +      case 158: /* where_opt ::= */
  1.2493 +      case 203: /* escape ::= */
  1.2494 +      case 227: /* case_else ::= */
  1.2495 +      case 229: /* case_operand ::= */
  1.2496 +#line 500 "parse.y"
  1.2497 +{yygotominor.yy162 = 0;}
  1.2498 +#line 2500 "parse.c"
  1.2499 +        break;
  1.2500 +      case 139: /* using_opt ::= USING LP inscollist RP */
  1.2501 +      case 171: /* inscollist_opt ::= LP inscollist RP */
  1.2502 +#line 504 "parse.y"
  1.2503 +{yygotominor.yy326 = yymsp[-1].minor.yy326;}
  1.2504 +#line 2506 "parse.c"
  1.2505 +        break;
  1.2506 +      case 140: /* using_opt ::= */
  1.2507 +      case 170: /* inscollist_opt ::= */
  1.2508 +#line 505 "parse.y"
  1.2509 +{yygotominor.yy326 = 0;}
  1.2510 +#line 2512 "parse.c"
  1.2511 +        break;
  1.2512 +      case 142: /* orderby_opt ::= ORDER BY sortlist */
  1.2513 +      case 150: /* groupby_opt ::= GROUP BY nexprlist */
  1.2514 +      case 230: /* exprlist ::= nexprlist */
  1.2515 +#line 516 "parse.y"
  1.2516 +{yygotominor.yy44 = yymsp[0].minor.yy44;}
  1.2517 +#line 2519 "parse.c"
  1.2518 +        break;
  1.2519 +      case 143: /* sortlist ::= sortlist COMMA sortitem sortorder */
  1.2520 +#line 517 "parse.y"
  1.2521 +{
  1.2522 +  yygotominor.yy44 = sqlite3ExprListAppend(pParse,yymsp[-3].minor.yy44,yymsp[-1].minor.yy162,0);
  1.2523 +  if( yygotominor.yy44 ) yygotominor.yy44->a[yygotominor.yy44->nExpr-1].sortOrder = yymsp[0].minor.yy124;
  1.2524 +}
  1.2525 +#line 2527 "parse.c"
  1.2526 +        break;
  1.2527 +      case 144: /* sortlist ::= sortitem sortorder */
  1.2528 +#line 521 "parse.y"
  1.2529 +{
  1.2530 +  yygotominor.yy44 = sqlite3ExprListAppend(pParse,0,yymsp[-1].minor.yy162,0);
  1.2531 +  if( yygotominor.yy44 && yygotominor.yy44->a ) yygotominor.yy44->a[0].sortOrder = yymsp[0].minor.yy124;
  1.2532 +}
  1.2533 +#line 2535 "parse.c"
  1.2534 +        break;
  1.2535 +      case 146: /* sortorder ::= ASC */
  1.2536 +      case 148: /* sortorder ::= */
  1.2537 +#line 529 "parse.y"
  1.2538 +{yygotominor.yy124 = SQLITE_SO_ASC;}
  1.2539 +#line 2541 "parse.c"
  1.2540 +        break;
  1.2541 +      case 147: /* sortorder ::= DESC */
  1.2542 +#line 530 "parse.y"
  1.2543 +{yygotominor.yy124 = SQLITE_SO_DESC;}
  1.2544 +#line 2546 "parse.c"
  1.2545 +        break;
  1.2546 +      case 153: /* limit_opt ::= */
  1.2547 +#line 556 "parse.y"
  1.2548 +{yygotominor.yy278.pLimit = 0; yygotominor.yy278.pOffset = 0;}
  1.2549 +#line 2551 "parse.c"
  1.2550 +        break;
  1.2551 +      case 154: /* limit_opt ::= LIMIT expr */
  1.2552 +#line 557 "parse.y"
  1.2553 +{yygotominor.yy278.pLimit = yymsp[0].minor.yy162; yygotominor.yy278.pOffset = 0;}
  1.2554 +#line 2556 "parse.c"
  1.2555 +        break;
  1.2556 +      case 155: /* limit_opt ::= LIMIT expr OFFSET expr */
  1.2557 +#line 559 "parse.y"
  1.2558 +{yygotominor.yy278.pLimit = yymsp[-2].minor.yy162; yygotominor.yy278.pOffset = yymsp[0].minor.yy162;}
  1.2559 +#line 2561 "parse.c"
  1.2560 +        break;
  1.2561 +      case 156: /* limit_opt ::= LIMIT expr COMMA expr */
  1.2562 +#line 561 "parse.y"
  1.2563 +{yygotominor.yy278.pOffset = yymsp[-2].minor.yy162; yygotominor.yy278.pLimit = yymsp[0].minor.yy162;}
  1.2564 +#line 2566 "parse.c"
  1.2565 +        break;
  1.2566 +      case 157: /* cmd ::= DELETE FROM fullname where_opt */
  1.2567 +#line 565 "parse.y"
  1.2568 +{sqlite3DeleteFrom(pParse,yymsp[-1].minor.yy149,yymsp[0].minor.yy162);}
  1.2569 +#line 2571 "parse.c"
  1.2570 +        break;
  1.2571 +      case 160: /* cmd ::= UPDATE orconf fullname SET setlist where_opt */
  1.2572 +#line 575 "parse.y"
  1.2573 +{
  1.2574 +  sqlite3ExprListCheckLength(pParse,yymsp[-1].minor.yy44,"set list"); 
  1.2575 +  sqlite3Update(pParse,yymsp[-3].minor.yy149,yymsp[-1].minor.yy44,yymsp[0].minor.yy162,yymsp[-4].minor.yy124);
  1.2576 +}
  1.2577 +#line 2579 "parse.c"
  1.2578 +        break;
  1.2579 +      case 161: /* setlist ::= setlist COMMA nm EQ expr */
  1.2580 +#line 584 "parse.y"
  1.2581 +{yygotominor.yy44 = sqlite3ExprListAppend(pParse,yymsp[-4].minor.yy44,yymsp[0].minor.yy162,&yymsp[-2].minor.yy0);}
  1.2582 +#line 2584 "parse.c"
  1.2583 +        break;
  1.2584 +      case 162: /* setlist ::= nm EQ expr */
  1.2585 +#line 586 "parse.y"
  1.2586 +{yygotominor.yy44 = sqlite3ExprListAppend(pParse,0,yymsp[0].minor.yy162,&yymsp[-2].minor.yy0);}
  1.2587 +#line 2589 "parse.c"
  1.2588 +        break;
  1.2589 +      case 163: /* cmd ::= insert_cmd INTO fullname inscollist_opt VALUES LP itemlist RP */
  1.2590 +#line 592 "parse.y"
  1.2591 +{sqlite3Insert(pParse, yymsp[-5].minor.yy149, yymsp[-1].minor.yy44, 0, yymsp[-4].minor.yy326, yymsp[-7].minor.yy124);}
  1.2592 +#line 2594 "parse.c"
  1.2593 +        break;
  1.2594 +      case 164: /* cmd ::= insert_cmd INTO fullname inscollist_opt select */
  1.2595 +#line 594 "parse.y"
  1.2596 +{sqlite3Insert(pParse, yymsp[-2].minor.yy149, 0, yymsp[0].minor.yy313, yymsp[-1].minor.yy326, yymsp[-4].minor.yy124);}
  1.2597 +#line 2599 "parse.c"
  1.2598 +        break;
  1.2599 +      case 165: /* cmd ::= insert_cmd INTO fullname inscollist_opt DEFAULT VALUES */
  1.2600 +#line 596 "parse.y"
  1.2601 +{sqlite3Insert(pParse, yymsp[-3].minor.yy149, 0, 0, yymsp[-2].minor.yy326, yymsp[-5].minor.yy124);}
  1.2602 +#line 2604 "parse.c"
  1.2603 +        break;
  1.2604 +      case 168: /* itemlist ::= itemlist COMMA expr */
  1.2605 +      case 232: /* nexprlist ::= nexprlist COMMA expr */
  1.2606 +#line 607 "parse.y"
  1.2607 +{yygotominor.yy44 = sqlite3ExprListAppend(pParse,yymsp[-2].minor.yy44,yymsp[0].minor.yy162,0);}
  1.2608 +#line 2610 "parse.c"
  1.2609 +        break;
  1.2610 +      case 169: /* itemlist ::= expr */
  1.2611 +      case 233: /* nexprlist ::= expr */
  1.2612 +#line 609 "parse.y"
  1.2613 +{yygotominor.yy44 = sqlite3ExprListAppend(pParse,0,yymsp[0].minor.yy162,0);}
  1.2614 +#line 2616 "parse.c"
  1.2615 +        break;
  1.2616 +      case 172: /* inscollist ::= inscollist COMMA nm */
  1.2617 +#line 619 "parse.y"
  1.2618 +{yygotominor.yy326 = sqlite3IdListAppend(pParse->db,yymsp[-2].minor.yy326,&yymsp[0].minor.yy0);}
  1.2619 +#line 2621 "parse.c"
  1.2620 +        break;
  1.2621 +      case 173: /* inscollist ::= nm */
  1.2622 +#line 621 "parse.y"
  1.2623 +{yygotominor.yy326 = sqlite3IdListAppend(pParse->db,0,&yymsp[0].minor.yy0);}
  1.2624 +#line 2626 "parse.c"
  1.2625 +        break;
  1.2626 +      case 175: /* expr ::= LP expr RP */
  1.2627 +#line 632 "parse.y"
  1.2628 +{yygotominor.yy162 = yymsp[-1].minor.yy162; sqlite3ExprSpan(yygotominor.yy162,&yymsp[-2].minor.yy0,&yymsp[0].minor.yy0); }
  1.2629 +#line 2631 "parse.c"
  1.2630 +        break;
  1.2631 +      case 176: /* term ::= NULL */
  1.2632 +      case 181: /* term ::= INTEGER|FLOAT|BLOB */
  1.2633 +      case 182: /* term ::= STRING */
  1.2634 +#line 633 "parse.y"
  1.2635 +{yygotominor.yy162 = sqlite3PExpr(pParse, yymsp[0].major, 0, 0, &yymsp[0].minor.yy0);}
  1.2636 +#line 2638 "parse.c"
  1.2637 +        break;
  1.2638 +      case 177: /* expr ::= ID */
  1.2639 +      case 178: /* expr ::= JOIN_KW */
  1.2640 +#line 634 "parse.y"
  1.2641 +{yygotominor.yy162 = sqlite3PExpr(pParse, TK_ID, 0, 0, &yymsp[0].minor.yy0);}
  1.2642 +#line 2644 "parse.c"
  1.2643 +        break;
  1.2644 +      case 179: /* expr ::= nm DOT nm */
  1.2645 +#line 636 "parse.y"
  1.2646 +{
  1.2647 +  Expr *temp1 = sqlite3PExpr(pParse, TK_ID, 0, 0, &yymsp[-2].minor.yy0);
  1.2648 +  Expr *temp2 = sqlite3PExpr(pParse, TK_ID, 0, 0, &yymsp[0].minor.yy0);
  1.2649 +  yygotominor.yy162 = sqlite3PExpr(pParse, TK_DOT, temp1, temp2, 0);
  1.2650 +}
  1.2651 +#line 2653 "parse.c"
  1.2652 +        break;
  1.2653 +      case 180: /* expr ::= nm DOT nm DOT nm */
  1.2654 +#line 641 "parse.y"
  1.2655 +{
  1.2656 +  Expr *temp1 = sqlite3PExpr(pParse, TK_ID, 0, 0, &yymsp[-4].minor.yy0);
  1.2657 +  Expr *temp2 = sqlite3PExpr(pParse, TK_ID, 0, 0, &yymsp[-2].minor.yy0);
  1.2658 +  Expr *temp3 = sqlite3PExpr(pParse, TK_ID, 0, 0, &yymsp[0].minor.yy0);
  1.2659 +  Expr *temp4 = sqlite3PExpr(pParse, TK_DOT, temp2, temp3, 0);
  1.2660 +  yygotominor.yy162 = sqlite3PExpr(pParse, TK_DOT, temp1, temp4, 0);
  1.2661 +}
  1.2662 +#line 2664 "parse.c"
  1.2663 +        break;
  1.2664 +      case 183: /* expr ::= REGISTER */
  1.2665 +#line 650 "parse.y"
  1.2666 +{yygotominor.yy162 = sqlite3RegisterExpr(pParse, &yymsp[0].minor.yy0);}
  1.2667 +#line 2669 "parse.c"
  1.2668 +        break;
  1.2669 +      case 184: /* expr ::= VARIABLE */
  1.2670 +#line 651 "parse.y"
  1.2671 +{
  1.2672 +  Token *pToken = &yymsp[0].minor.yy0;
  1.2673 +  Expr *pExpr = yygotominor.yy162 = sqlite3PExpr(pParse, TK_VARIABLE, 0, 0, pToken);
  1.2674 +  sqlite3ExprAssignVarNumber(pParse, pExpr);
  1.2675 +}
  1.2676 +#line 2678 "parse.c"
  1.2677 +        break;
  1.2678 +      case 185: /* expr ::= expr COLLATE ids */
  1.2679 +#line 656 "parse.y"
  1.2680 +{
  1.2681 +  yygotominor.yy162 = sqlite3ExprSetColl(pParse, yymsp[-2].minor.yy162, &yymsp[0].minor.yy0);
  1.2682 +}
  1.2683 +#line 2685 "parse.c"
  1.2684 +        break;
  1.2685 +      case 186: /* expr ::= CAST LP expr AS typetoken RP */
  1.2686 +#line 660 "parse.y"
  1.2687 +{
  1.2688 +  yygotominor.yy162 = sqlite3PExpr(pParse, TK_CAST, yymsp[-3].minor.yy162, 0, &yymsp[-1].minor.yy0);
  1.2689 +  sqlite3ExprSpan(yygotominor.yy162,&yymsp[-5].minor.yy0,&yymsp[0].minor.yy0);
  1.2690 +}
  1.2691 +#line 2693 "parse.c"
  1.2692 +        break;
  1.2693 +      case 187: /* expr ::= ID LP distinct exprlist RP */
  1.2694 +#line 665 "parse.y"
  1.2695 +{
  1.2696 +  if( yymsp[-1].minor.yy44 && yymsp[-1].minor.yy44->nExpr>SQLITE_MAX_FUNCTION_ARG ){
  1.2697 +    sqlite3ErrorMsg(pParse, "too many arguments on function %T", &yymsp[-4].minor.yy0);
  1.2698 +  }
  1.2699 +  yygotominor.yy162 = sqlite3ExprFunction(pParse, yymsp[-1].minor.yy44, &yymsp[-4].minor.yy0);
  1.2700 +  sqlite3ExprSpan(yygotominor.yy162,&yymsp[-4].minor.yy0,&yymsp[0].minor.yy0);
  1.2701 +  if( yymsp[-2].minor.yy124 && yygotominor.yy162 ){
  1.2702 +    yygotominor.yy162->flags |= EP_Distinct;
  1.2703 +  }
  1.2704 +}
  1.2705 +#line 2707 "parse.c"
  1.2706 +        break;
  1.2707 +      case 188: /* expr ::= ID LP STAR RP */
  1.2708 +#line 675 "parse.y"
  1.2709 +{
  1.2710 +  yygotominor.yy162 = sqlite3ExprFunction(pParse, 0, &yymsp[-3].minor.yy0);
  1.2711 +  sqlite3ExprSpan(yygotominor.yy162,&yymsp[-3].minor.yy0,&yymsp[0].minor.yy0);
  1.2712 +}
  1.2713 +#line 2715 "parse.c"
  1.2714 +        break;
  1.2715 +      case 189: /* term ::= CTIME_KW */
  1.2716 +#line 679 "parse.y"
  1.2717 +{
  1.2718 +  /* The CURRENT_TIME, CURRENT_DATE, and CURRENT_TIMESTAMP values are
  1.2719 +  ** treated as functions that return constants */
  1.2720 +  yygotominor.yy162 = sqlite3ExprFunction(pParse, 0,&yymsp[0].minor.yy0);
  1.2721 +  if( yygotominor.yy162 ){
  1.2722 +    yygotominor.yy162->op = TK_CONST_FUNC;  
  1.2723 +    yygotominor.yy162->span = yymsp[0].minor.yy0;
  1.2724 +  }
  1.2725 +}
  1.2726 +#line 2728 "parse.c"
  1.2727 +        break;
  1.2728 +      case 190: /* expr ::= expr AND expr */
  1.2729 +      case 191: /* expr ::= expr OR expr */
  1.2730 +      case 192: /* expr ::= expr LT|GT|GE|LE expr */
  1.2731 +      case 193: /* expr ::= expr EQ|NE expr */
  1.2732 +      case 194: /* expr ::= expr BITAND|BITOR|LSHIFT|RSHIFT expr */
  1.2733 +      case 195: /* expr ::= expr PLUS|MINUS expr */
  1.2734 +      case 196: /* expr ::= expr STAR|SLASH|REM expr */
  1.2735 +      case 197: /* expr ::= expr CONCAT expr */
  1.2736 +#line 688 "parse.y"
  1.2737 +{yygotominor.yy162 = sqlite3PExpr(pParse,yymsp[-1].major,yymsp[-2].minor.yy162,yymsp[0].minor.yy162,0);}
  1.2738 +#line 2740 "parse.c"
  1.2739 +        break;
  1.2740 +      case 198: /* likeop ::= LIKE_KW */
  1.2741 +      case 200: /* likeop ::= MATCH */
  1.2742 +#line 700 "parse.y"
  1.2743 +{yygotominor.yy168.eOperator = yymsp[0].minor.yy0; yygotominor.yy168.not = 0;}
  1.2744 +#line 2746 "parse.c"
  1.2745 +        break;
  1.2746 +      case 199: /* likeop ::= NOT LIKE_KW */
  1.2747 +      case 201: /* likeop ::= NOT MATCH */
  1.2748 +#line 701 "parse.y"
  1.2749 +{yygotominor.yy168.eOperator = yymsp[0].minor.yy0; yygotominor.yy168.not = 1;}
  1.2750 +#line 2752 "parse.c"
  1.2751 +        break;
  1.2752 +      case 204: /* expr ::= expr likeop expr escape */
  1.2753 +#line 708 "parse.y"
  1.2754 +{
  1.2755 +  ExprList *pList;
  1.2756 +  pList = sqlite3ExprListAppend(pParse,0, yymsp[-1].minor.yy162, 0);
  1.2757 +  pList = sqlite3ExprListAppend(pParse,pList, yymsp[-3].minor.yy162, 0);
  1.2758 +  if( yymsp[0].minor.yy162 ){
  1.2759 +    pList = sqlite3ExprListAppend(pParse,pList, yymsp[0].minor.yy162, 0);
  1.2760 +  }
  1.2761 +  yygotominor.yy162 = sqlite3ExprFunction(pParse, pList, &yymsp[-2].minor.yy168.eOperator);
  1.2762 +  if( yymsp[-2].minor.yy168.not ) yygotominor.yy162 = sqlite3PExpr(pParse, TK_NOT, yygotominor.yy162, 0, 0);
  1.2763 +  sqlite3ExprSpan(yygotominor.yy162, &yymsp[-3].minor.yy162->span, &yymsp[-1].minor.yy162->span);
  1.2764 +  if( yygotominor.yy162 ) yygotominor.yy162->flags |= EP_InfixFunc;
  1.2765 +}
  1.2766 +#line 2768 "parse.c"
  1.2767 +        break;
  1.2768 +      case 205: /* expr ::= expr ISNULL|NOTNULL */
  1.2769 +#line 721 "parse.y"
  1.2770 +{
  1.2771 +  yygotominor.yy162 = sqlite3PExpr(pParse, yymsp[0].major, yymsp[-1].minor.yy162, 0, 0);
  1.2772 +  sqlite3ExprSpan(yygotominor.yy162,&yymsp[-1].minor.yy162->span,&yymsp[0].minor.yy0);
  1.2773 +}
  1.2774 +#line 2776 "parse.c"
  1.2775 +        break;
  1.2776 +      case 206: /* expr ::= expr IS NULL */
  1.2777 +#line 725 "parse.y"
  1.2778 +{
  1.2779 +  yygotominor.yy162 = sqlite3PExpr(pParse, TK_ISNULL, yymsp[-2].minor.yy162, 0, 0);
  1.2780 +  sqlite3ExprSpan(yygotominor.yy162,&yymsp[-2].minor.yy162->span,&yymsp[0].minor.yy0);
  1.2781 +}
  1.2782 +#line 2784 "parse.c"
  1.2783 +        break;
  1.2784 +      case 207: /* expr ::= expr NOT NULL */
  1.2785 +#line 729 "parse.y"
  1.2786 +{
  1.2787 +  yygotominor.yy162 = sqlite3PExpr(pParse, TK_NOTNULL, yymsp[-2].minor.yy162, 0, 0);
  1.2788 +  sqlite3ExprSpan(yygotominor.yy162,&yymsp[-2].minor.yy162->span,&yymsp[0].minor.yy0);
  1.2789 +}
  1.2790 +#line 2792 "parse.c"
  1.2791 +        break;
  1.2792 +      case 208: /* expr ::= expr IS NOT NULL */
  1.2793 +#line 733 "parse.y"
  1.2794 +{
  1.2795 +  yygotominor.yy162 = sqlite3PExpr(pParse, TK_NOTNULL, yymsp[-3].minor.yy162, 0, 0);
  1.2796 +  sqlite3ExprSpan(yygotominor.yy162,&yymsp[-3].minor.yy162->span,&yymsp[0].minor.yy0);
  1.2797 +}
  1.2798 +#line 2800 "parse.c"
  1.2799 +        break;
  1.2800 +      case 209: /* expr ::= NOT expr */
  1.2801 +      case 210: /* expr ::= BITNOT expr */
  1.2802 +#line 737 "parse.y"
  1.2803 +{
  1.2804 +  yygotominor.yy162 = sqlite3PExpr(pParse, yymsp[-1].major, yymsp[0].minor.yy162, 0, 0);
  1.2805 +  sqlite3ExprSpan(yygotominor.yy162,&yymsp[-1].minor.yy0,&yymsp[0].minor.yy162->span);
  1.2806 +}
  1.2807 +#line 2809 "parse.c"
  1.2808 +        break;
  1.2809 +      case 211: /* expr ::= MINUS expr */
  1.2810 +#line 745 "parse.y"
  1.2811 +{
  1.2812 +  yygotominor.yy162 = sqlite3PExpr(pParse, TK_UMINUS, yymsp[0].minor.yy162, 0, 0);
  1.2813 +  sqlite3ExprSpan(yygotominor.yy162,&yymsp[-1].minor.yy0,&yymsp[0].minor.yy162->span);
  1.2814 +}
  1.2815 +#line 2817 "parse.c"
  1.2816 +        break;
  1.2817 +      case 212: /* expr ::= PLUS expr */
  1.2818 +#line 749 "parse.y"
  1.2819 +{
  1.2820 +  yygotominor.yy162 = sqlite3PExpr(pParse, TK_UPLUS, yymsp[0].minor.yy162, 0, 0);
  1.2821 +  sqlite3ExprSpan(yygotominor.yy162,&yymsp[-1].minor.yy0,&yymsp[0].minor.yy162->span);
  1.2822 +}
  1.2823 +#line 2825 "parse.c"
  1.2824 +        break;
  1.2825 +      case 215: /* expr ::= expr between_op expr AND expr */
  1.2826 +#line 756 "parse.y"
  1.2827 +{
  1.2828 +  ExprList *pList = sqlite3ExprListAppend(pParse,0, yymsp[-2].minor.yy162, 0);
  1.2829 +  pList = sqlite3ExprListAppend(pParse,pList, yymsp[0].minor.yy162, 0);
  1.2830 +  yygotominor.yy162 = sqlite3PExpr(pParse, TK_BETWEEN, yymsp[-4].minor.yy162, 0, 0);
  1.2831 +  if( yygotominor.yy162 ){
  1.2832 +    yygotominor.yy162->pList = pList;
  1.2833 +  }else{
  1.2834 +    sqlite3ExprListDelete(pParse->db, pList);
  1.2835 +  } 
  1.2836 +  if( yymsp[-3].minor.yy124 ) yygotominor.yy162 = sqlite3PExpr(pParse, TK_NOT, yygotominor.yy162, 0, 0);
  1.2837 +  sqlite3ExprSpan(yygotominor.yy162,&yymsp[-4].minor.yy162->span,&yymsp[0].minor.yy162->span);
  1.2838 +}
  1.2839 +#line 2841 "parse.c"
  1.2840 +        break;
  1.2841 +      case 218: /* expr ::= expr in_op LP exprlist RP */
  1.2842 +#line 772 "parse.y"
  1.2843 +{
  1.2844 +    yygotominor.yy162 = sqlite3PExpr(pParse, TK_IN, yymsp[-4].minor.yy162, 0, 0);
  1.2845 +    if( yygotominor.yy162 ){
  1.2846 +      yygotominor.yy162->pList = yymsp[-1].minor.yy44;
  1.2847 +      sqlite3ExprSetHeight(pParse, yygotominor.yy162);
  1.2848 +    }else{
  1.2849 +      sqlite3ExprListDelete(pParse->db, yymsp[-1].minor.yy44);
  1.2850 +    }
  1.2851 +    if( yymsp[-3].minor.yy124 ) yygotominor.yy162 = sqlite3PExpr(pParse, TK_NOT, yygotominor.yy162, 0, 0);
  1.2852 +    sqlite3ExprSpan(yygotominor.yy162,&yymsp[-4].minor.yy162->span,&yymsp[0].minor.yy0);
  1.2853 +  }
  1.2854 +#line 2856 "parse.c"
  1.2855 +        break;
  1.2856 +      case 219: /* expr ::= LP select RP */
  1.2857 +#line 783 "parse.y"
  1.2858 +{
  1.2859 +    yygotominor.yy162 = sqlite3PExpr(pParse, TK_SELECT, 0, 0, 0);
  1.2860 +    if( yygotominor.yy162 ){
  1.2861 +      yygotominor.yy162->pSelect = yymsp[-1].minor.yy313;
  1.2862 +      sqlite3ExprSetHeight(pParse, yygotominor.yy162);
  1.2863 +    }else{
  1.2864 +      sqlite3SelectDelete(pParse->db, yymsp[-1].minor.yy313);
  1.2865 +    }
  1.2866 +    sqlite3ExprSpan(yygotominor.yy162,&yymsp[-2].minor.yy0,&yymsp[0].minor.yy0);
  1.2867 +  }
  1.2868 +#line 2870 "parse.c"
  1.2869 +        break;
  1.2870 +      case 220: /* expr ::= expr in_op LP select RP */
  1.2871 +#line 793 "parse.y"
  1.2872 +{
  1.2873 +    yygotominor.yy162 = sqlite3PExpr(pParse, TK_IN, yymsp[-4].minor.yy162, 0, 0);
  1.2874 +    if( yygotominor.yy162 ){
  1.2875 +      yygotominor.yy162->pSelect = yymsp[-1].minor.yy313;
  1.2876 +      sqlite3ExprSetHeight(pParse, yygotominor.yy162);
  1.2877 +    }else{
  1.2878 +      sqlite3SelectDelete(pParse->db, yymsp[-1].minor.yy313);
  1.2879 +    }
  1.2880 +    if( yymsp[-3].minor.yy124 ) yygotominor.yy162 = sqlite3PExpr(pParse, TK_NOT, yygotominor.yy162, 0, 0);
  1.2881 +    sqlite3ExprSpan(yygotominor.yy162,&yymsp[-4].minor.yy162->span,&yymsp[0].minor.yy0);
  1.2882 +  }
  1.2883 +#line 2885 "parse.c"
  1.2884 +        break;
  1.2885 +      case 221: /* expr ::= expr in_op nm dbnm */
  1.2886 +#line 804 "parse.y"
  1.2887 +{
  1.2888 +    SrcList *pSrc = sqlite3SrcListAppend(pParse->db, 0,&yymsp[-1].minor.yy0,&yymsp[0].minor.yy0);
  1.2889 +    yygotominor.yy162 = sqlite3PExpr(pParse, TK_IN, yymsp[-3].minor.yy162, 0, 0);
  1.2890 +    if( yygotominor.yy162 ){
  1.2891 +      yygotominor.yy162->pSelect = sqlite3SelectNew(pParse, 0,pSrc,0,0,0,0,0,0,0);
  1.2892 +      sqlite3ExprSetHeight(pParse, yygotominor.yy162);
  1.2893 +    }else{
  1.2894 +      sqlite3SrcListDelete(pParse->db, pSrc);
  1.2895 +    }
  1.2896 +    if( yymsp[-2].minor.yy124 ) yygotominor.yy162 = sqlite3PExpr(pParse, TK_NOT, yygotominor.yy162, 0, 0);
  1.2897 +    sqlite3ExprSpan(yygotominor.yy162,&yymsp[-3].minor.yy162->span,yymsp[0].minor.yy0.z?&yymsp[0].minor.yy0:&yymsp[-1].minor.yy0);
  1.2898 +  }
  1.2899 +#line 2901 "parse.c"
  1.2900 +        break;
  1.2901 +      case 222: /* expr ::= EXISTS LP select RP */
  1.2902 +#line 816 "parse.y"
  1.2903 +{
  1.2904 +    Expr *p = yygotominor.yy162 = sqlite3PExpr(pParse, TK_EXISTS, 0, 0, 0);
  1.2905 +    if( p ){
  1.2906 +      p->pSelect = yymsp[-1].minor.yy313;
  1.2907 +      sqlite3ExprSpan(p,&yymsp[-3].minor.yy0,&yymsp[0].minor.yy0);
  1.2908 +      sqlite3ExprSetHeight(pParse, yygotominor.yy162);
  1.2909 +    }else{
  1.2910 +      sqlite3SelectDelete(pParse->db, yymsp[-1].minor.yy313);
  1.2911 +    }
  1.2912 +  }
  1.2913 +#line 2915 "parse.c"
  1.2914 +        break;
  1.2915 +      case 223: /* expr ::= CASE case_operand case_exprlist case_else END */
  1.2916 +#line 829 "parse.y"
  1.2917 +{
  1.2918 +  yygotominor.yy162 = sqlite3PExpr(pParse, TK_CASE, yymsp[-3].minor.yy162, yymsp[-1].minor.yy162, 0);
  1.2919 +  if( yygotominor.yy162 ){
  1.2920 +    yygotominor.yy162->pList = yymsp[-2].minor.yy44;
  1.2921 +    sqlite3ExprSetHeight(pParse, yygotominor.yy162);
  1.2922 +  }else{
  1.2923 +    sqlite3ExprListDelete(pParse->db, yymsp[-2].minor.yy44);
  1.2924 +  }
  1.2925 +  sqlite3ExprSpan(yygotominor.yy162, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0);
  1.2926 +}
  1.2927 +#line 2929 "parse.c"
  1.2928 +        break;
  1.2929 +      case 224: /* case_exprlist ::= case_exprlist WHEN expr THEN expr */
  1.2930 +#line 841 "parse.y"
  1.2931 +{
  1.2932 +  yygotominor.yy44 = sqlite3ExprListAppend(pParse,yymsp[-4].minor.yy44, yymsp[-2].minor.yy162, 0);
  1.2933 +  yygotominor.yy44 = sqlite3ExprListAppend(pParse,yygotominor.yy44, yymsp[0].minor.yy162, 0);
  1.2934 +}
  1.2935 +#line 2937 "parse.c"
  1.2936 +        break;
  1.2937 +      case 225: /* case_exprlist ::= WHEN expr THEN expr */
  1.2938 +#line 845 "parse.y"
  1.2939 +{
  1.2940 +  yygotominor.yy44 = sqlite3ExprListAppend(pParse,0, yymsp[-2].minor.yy162, 0);
  1.2941 +  yygotominor.yy44 = sqlite3ExprListAppend(pParse,yygotominor.yy44, yymsp[0].minor.yy162, 0);
  1.2942 +}
  1.2943 +#line 2945 "parse.c"
  1.2944 +        break;
  1.2945 +      case 234: /* cmd ::= CREATE uniqueflag INDEX ifnotexists nm dbnm ON nm LP idxlist RP */
  1.2946 +#line 874 "parse.y"
  1.2947 +{
  1.2948 +  sqlite3CreateIndex(pParse, &yymsp[-6].minor.yy0, &yymsp[-5].minor.yy0, 
  1.2949 +                     sqlite3SrcListAppend(pParse->db,0,&yymsp[-3].minor.yy0,0), yymsp[-1].minor.yy44, yymsp[-9].minor.yy124,
  1.2950 +                      &yymsp[-10].minor.yy0, &yymsp[0].minor.yy0, SQLITE_SO_ASC, yymsp[-7].minor.yy124);
  1.2951 +}
  1.2952 +#line 2954 "parse.c"
  1.2953 +        break;
  1.2954 +      case 235: /* uniqueflag ::= UNIQUE */
  1.2955 +      case 283: /* raisetype ::= ABORT */
  1.2956 +#line 881 "parse.y"
  1.2957 +{yygotominor.yy124 = OE_Abort;}
  1.2958 +#line 2960 "parse.c"
  1.2959 +        break;
  1.2960 +      case 236: /* uniqueflag ::= */
  1.2961 +#line 882 "parse.y"
  1.2962 +{yygotominor.yy124 = OE_None;}
  1.2963 +#line 2965 "parse.c"
  1.2964 +        break;
  1.2965 +      case 239: /* idxlist ::= idxlist COMMA idxitem collate sortorder */
  1.2966 +#line 892 "parse.y"
  1.2967 +{
  1.2968 +  Expr *p = 0;
  1.2969 +  if( yymsp[-1].minor.yy0.n>0 ){
  1.2970 +    p = sqlite3PExpr(pParse, TK_COLUMN, 0, 0, 0);
  1.2971 +    sqlite3ExprSetColl(pParse, p, &yymsp[-1].minor.yy0);
  1.2972 +  }
  1.2973 +  yygotominor.yy44 = sqlite3ExprListAppend(pParse,yymsp[-4].minor.yy44, p, &yymsp[-2].minor.yy0);
  1.2974 +  sqlite3ExprListCheckLength(pParse, yygotominor.yy44, "index");
  1.2975 +  if( yygotominor.yy44 ) yygotominor.yy44->a[yygotominor.yy44->nExpr-1].sortOrder = yymsp[0].minor.yy124;
  1.2976 +}
  1.2977 +#line 2979 "parse.c"
  1.2978 +        break;
  1.2979 +      case 240: /* idxlist ::= idxitem collate sortorder */
  1.2980 +#line 902 "parse.y"
  1.2981 +{
  1.2982 +  Expr *p = 0;
  1.2983 +  if( yymsp[-1].minor.yy0.n>0 ){
  1.2984 +    p = sqlite3PExpr(pParse, TK_COLUMN, 0, 0, 0);
  1.2985 +    sqlite3ExprSetColl(pParse, p, &yymsp[-1].minor.yy0);
  1.2986 +  }
  1.2987 +  yygotominor.yy44 = sqlite3ExprListAppend(pParse,0, p, &yymsp[-2].minor.yy0);
  1.2988 +  sqlite3ExprListCheckLength(pParse, yygotominor.yy44, "index");
  1.2989 +  if( yygotominor.yy44 ) yygotominor.yy44->a[yygotominor.yy44->nExpr-1].sortOrder = yymsp[0].minor.yy124;
  1.2990 +}
  1.2991 +#line 2993 "parse.c"
  1.2992 +        break;
  1.2993 +      case 242: /* collate ::= */
  1.2994 +#line 915 "parse.y"
  1.2995 +{yygotominor.yy0.z = 0; yygotominor.yy0.n = 0;}
  1.2996 +#line 2998 "parse.c"
  1.2997 +        break;
  1.2998 +      case 244: /* cmd ::= DROP INDEX ifexists fullname */
  1.2999 +#line 921 "parse.y"
  1.3000 +{sqlite3DropIndex(pParse, yymsp[0].minor.yy149, yymsp[-1].minor.yy124);}
  1.3001 +#line 3003 "parse.c"
  1.3002 +        break;
  1.3003 +      case 245: /* cmd ::= VACUUM */
  1.3004 +      case 246: /* cmd ::= VACUUM nm */
  1.3005 +#line 927 "parse.y"
  1.3006 +{sqlite3Vacuum(pParse);}
  1.3007 +#line 3009 "parse.c"
  1.3008 +        break;
  1.3009 +      case 247: /* cmd ::= PRAGMA nm dbnm EQ nmnum */
  1.3010 +      case 248: /* cmd ::= PRAGMA nm dbnm EQ ON */
  1.3011 +      case 249: /* cmd ::= PRAGMA nm dbnm EQ DELETE */
  1.3012 +#line 936 "parse.y"
  1.3013 +{sqlite3Pragma(pParse,&yymsp[-3].minor.yy0,&yymsp[-2].minor.yy0,&yymsp[0].minor.yy0,0);}
  1.3014 +#line 3016 "parse.c"
  1.3015 +        break;
  1.3016 +      case 250: /* cmd ::= PRAGMA nm dbnm EQ minus_num */
  1.3017 +#line 939 "parse.y"
  1.3018 +{
  1.3019 +  sqlite3Pragma(pParse,&yymsp[-3].minor.yy0,&yymsp[-2].minor.yy0,&yymsp[0].minor.yy0,1);
  1.3020 +}
  1.3021 +#line 3023 "parse.c"
  1.3022 +        break;
  1.3023 +      case 251: /* cmd ::= PRAGMA nm dbnm LP nmnum RP */
  1.3024 +#line 942 "parse.y"
  1.3025 +{sqlite3Pragma(pParse,&yymsp[-4].minor.yy0,&yymsp[-3].minor.yy0,&yymsp[-1].minor.yy0,0);}
  1.3026 +#line 3028 "parse.c"
  1.3027 +        break;
  1.3028 +      case 252: /* cmd ::= PRAGMA nm dbnm */
  1.3029 +#line 943 "parse.y"
  1.3030 +{sqlite3Pragma(pParse,&yymsp[-1].minor.yy0,&yymsp[0].minor.yy0,0,0);}
  1.3031 +#line 3033 "parse.c"
  1.3032 +        break;
  1.3033 +      case 260: /* cmd ::= CREATE trigger_decl BEGIN trigger_cmd_list END */
  1.3034 +#line 958 "parse.y"
  1.3035 +{
  1.3036 +  Token all;
  1.3037 +  all.z = yymsp[-3].minor.yy0.z;
  1.3038 +  all.n = (yymsp[0].minor.yy0.z - yymsp[-3].minor.yy0.z) + yymsp[0].minor.yy0.n;
  1.3039 +  sqlite3FinishTrigger(pParse, yymsp[-1].minor.yy137, &all);
  1.3040 +}
  1.3041 +#line 3043 "parse.c"
  1.3042 +        break;
  1.3043 +      case 261: /* trigger_decl ::= temp TRIGGER ifnotexists nm dbnm trigger_time trigger_event ON fullname foreach_clause when_clause */
  1.3044 +#line 967 "parse.y"
  1.3045 +{
  1.3046 +  sqlite3BeginTrigger(pParse, &yymsp[-7].minor.yy0, &yymsp[-6].minor.yy0, yymsp[-5].minor.yy124, yymsp[-4].minor.yy412.a, yymsp[-4].minor.yy412.b, yymsp[-2].minor.yy149, yymsp[0].minor.yy162, yymsp[-10].minor.yy124, yymsp[-8].minor.yy124);
  1.3047 +  yygotominor.yy0 = (yymsp[-6].minor.yy0.n==0?yymsp[-7].minor.yy0:yymsp[-6].minor.yy0);
  1.3048 +}
  1.3049 +#line 3051 "parse.c"
  1.3050 +        break;
  1.3051 +      case 262: /* trigger_time ::= BEFORE */
  1.3052 +      case 265: /* trigger_time ::= */
  1.3053 +#line 973 "parse.y"
  1.3054 +{ yygotominor.yy124 = TK_BEFORE; }
  1.3055 +#line 3057 "parse.c"
  1.3056 +        break;
  1.3057 +      case 263: /* trigger_time ::= AFTER */
  1.3058 +#line 974 "parse.y"
  1.3059 +{ yygotominor.yy124 = TK_AFTER;  }
  1.3060 +#line 3062 "parse.c"
  1.3061 +        break;
  1.3062 +      case 264: /* trigger_time ::= INSTEAD OF */
  1.3063 +#line 975 "parse.y"
  1.3064 +{ yygotominor.yy124 = TK_INSTEAD;}
  1.3065 +#line 3067 "parse.c"
  1.3066 +        break;
  1.3067 +      case 266: /* trigger_event ::= DELETE|INSERT */
  1.3068 +      case 267: /* trigger_event ::= UPDATE */
  1.3069 +#line 980 "parse.y"
  1.3070 +{yygotominor.yy412.a = yymsp[0].major; yygotominor.yy412.b = 0;}
  1.3071 +#line 3073 "parse.c"
  1.3072 +        break;
  1.3073 +      case 268: /* trigger_event ::= UPDATE OF inscollist */
  1.3074 +#line 982 "parse.y"
  1.3075 +{yygotominor.yy412.a = TK_UPDATE; yygotominor.yy412.b = yymsp[0].minor.yy326;}
  1.3076 +#line 3078 "parse.c"
  1.3077 +        break;
  1.3078 +      case 271: /* when_clause ::= */
  1.3079 +      case 288: /* key_opt ::= */
  1.3080 +#line 989 "parse.y"
  1.3081 +{ yygotominor.yy162 = 0; }
  1.3082 +#line 3084 "parse.c"
  1.3083 +        break;
  1.3084 +      case 272: /* when_clause ::= WHEN expr */
  1.3085 +      case 289: /* key_opt ::= KEY expr */
  1.3086 +#line 990 "parse.y"
  1.3087 +{ yygotominor.yy162 = yymsp[0].minor.yy162; }
  1.3088 +#line 3090 "parse.c"
  1.3089 +        break;
  1.3090 +      case 273: /* trigger_cmd_list ::= trigger_cmd_list trigger_cmd SEMI */
  1.3091 +#line 994 "parse.y"
  1.3092 +{
  1.3093 +  if( yymsp[-2].minor.yy137 ){
  1.3094 +    yymsp[-2].minor.yy137->pLast->pNext = yymsp[-1].minor.yy137;
  1.3095 +  }else{
  1.3096 +    yymsp[-2].minor.yy137 = yymsp[-1].minor.yy137;
  1.3097 +  }
  1.3098 +  yymsp[-2].minor.yy137->pLast = yymsp[-1].minor.yy137;
  1.3099 +  yygotominor.yy137 = yymsp[-2].minor.yy137;
  1.3100 +}
  1.3101 +#line 3103 "parse.c"
  1.3102 +        break;
  1.3103 +      case 274: /* trigger_cmd_list ::= */
  1.3104 +#line 1003 "parse.y"
  1.3105 +{ yygotominor.yy137 = 0; }
  1.3106 +#line 3108 "parse.c"
  1.3107 +        break;
  1.3108 +      case 275: /* trigger_cmd ::= UPDATE orconf nm SET setlist where_opt */
  1.3109 +#line 1009 "parse.y"
  1.3110 +{ yygotominor.yy137 = sqlite3TriggerUpdateStep(pParse->db, &yymsp[-3].minor.yy0, yymsp[-1].minor.yy44, yymsp[0].minor.yy162, yymsp[-4].minor.yy124); }
  1.3111 +#line 3113 "parse.c"
  1.3112 +        break;
  1.3113 +      case 276: /* trigger_cmd ::= insert_cmd INTO nm inscollist_opt VALUES LP itemlist RP */
  1.3114 +#line 1014 "parse.y"
  1.3115 +{yygotominor.yy137 = sqlite3TriggerInsertStep(pParse->db, &yymsp[-5].minor.yy0, yymsp[-4].minor.yy326, yymsp[-1].minor.yy44, 0, yymsp[-7].minor.yy124);}
  1.3116 +#line 3118 "parse.c"
  1.3117 +        break;
  1.3118 +      case 277: /* trigger_cmd ::= insert_cmd INTO nm inscollist_opt select */
  1.3119 +#line 1017 "parse.y"
  1.3120 +{yygotominor.yy137 = sqlite3TriggerInsertStep(pParse->db, &yymsp[-2].minor.yy0, yymsp[-1].minor.yy326, 0, yymsp[0].minor.yy313, yymsp[-4].minor.yy124);}
  1.3121 +#line 3123 "parse.c"
  1.3122 +        break;
  1.3123 +      case 278: /* trigger_cmd ::= DELETE FROM nm where_opt */
  1.3124 +#line 1021 "parse.y"
  1.3125 +{yygotominor.yy137 = sqlite3TriggerDeleteStep(pParse->db, &yymsp[-1].minor.yy0, yymsp[0].minor.yy162);}
  1.3126 +#line 3128 "parse.c"
  1.3127 +        break;
  1.3128 +      case 279: /* trigger_cmd ::= select */
  1.3129 +#line 1024 "parse.y"
  1.3130 +{yygotominor.yy137 = sqlite3TriggerSelectStep(pParse->db, yymsp[0].minor.yy313); }
  1.3131 +#line 3133 "parse.c"
  1.3132 +        break;
  1.3133 +      case 280: /* expr ::= RAISE LP IGNORE RP */
  1.3134 +#line 1027 "parse.y"
  1.3135 +{
  1.3136 +  yygotominor.yy162 = sqlite3PExpr(pParse, TK_RAISE, 0, 0, 0); 
  1.3137 +  if( yygotominor.yy162 ){
  1.3138 +    yygotominor.yy162->iColumn = OE_Ignore;
  1.3139 +    sqlite3ExprSpan(yygotominor.yy162, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0);
  1.3140 +  }
  1.3141 +}
  1.3142 +#line 3144 "parse.c"
  1.3143 +        break;
  1.3144 +      case 281: /* expr ::= RAISE LP raisetype COMMA nm RP */
  1.3145 +#line 1034 "parse.y"
  1.3146 +{
  1.3147 +  yygotominor.yy162 = sqlite3PExpr(pParse, TK_RAISE, 0, 0, &yymsp[-1].minor.yy0); 
  1.3148 +  if( yygotominor.yy162 ) {
  1.3149 +    yygotominor.yy162->iColumn = yymsp[-3].minor.yy124;
  1.3150 +    sqlite3ExprSpan(yygotominor.yy162, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0);
  1.3151 +  }
  1.3152 +}
  1.3153 +#line 3155 "parse.c"
  1.3154 +        break;
  1.3155 +      case 282: /* raisetype ::= ROLLBACK */
  1.3156 +#line 1044 "parse.y"
  1.3157 +{yygotominor.yy124 = OE_Rollback;}
  1.3158 +#line 3160 "parse.c"
  1.3159 +        break;
  1.3160 +      case 284: /* raisetype ::= FAIL */
  1.3161 +#line 1046 "parse.y"
  1.3162 +{yygotominor.yy124 = OE_Fail;}
  1.3163 +#line 3165 "parse.c"
  1.3164 +        break;
  1.3165 +      case 285: /* cmd ::= DROP TRIGGER ifexists fullname */
  1.3166 +#line 1051 "parse.y"
  1.3167 +{
  1.3168 +  sqlite3DropTrigger(pParse,yymsp[0].minor.yy149,yymsp[-1].minor.yy124);
  1.3169 +}
  1.3170 +#line 3172 "parse.c"
  1.3171 +        break;
  1.3172 +      case 286: /* cmd ::= ATTACH database_kw_opt expr AS expr key_opt */
  1.3173 +#line 1058 "parse.y"
  1.3174 +{
  1.3175 +  sqlite3Attach(pParse, yymsp[-3].minor.yy162, yymsp[-1].minor.yy162, yymsp[0].minor.yy162);
  1.3176 +}
  1.3177 +#line 3179 "parse.c"
  1.3178 +        break;
  1.3179 +      case 287: /* cmd ::= DETACH database_kw_opt expr */
  1.3180 +#line 1061 "parse.y"
  1.3181 +{
  1.3182 +  sqlite3Detach(pParse, yymsp[0].minor.yy162);
  1.3183 +}
  1.3184 +#line 3186 "parse.c"
  1.3185 +        break;
  1.3186 +      case 292: /* cmd ::= REINDEX */
  1.3187 +#line 1076 "parse.y"
  1.3188 +{sqlite3Reindex(pParse, 0, 0);}
  1.3189 +#line 3191 "parse.c"
  1.3190 +        break;
  1.3191 +      case 293: /* cmd ::= REINDEX nm dbnm */
  1.3192 +#line 1077 "parse.y"
  1.3193 +{sqlite3Reindex(pParse, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0);}
  1.3194 +#line 3196 "parse.c"
  1.3195 +        break;
  1.3196 +      case 294: /* cmd ::= ANALYZE */
  1.3197 +#line 1082 "parse.y"
  1.3198 +{sqlite3Analyze(pParse, 0, 0);}
  1.3199 +#line 3201 "parse.c"
  1.3200 +        break;
  1.3201 +      case 295: /* cmd ::= ANALYZE nm dbnm */
  1.3202 +#line 1083 "parse.y"
  1.3203 +{sqlite3Analyze(pParse, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0);}
  1.3204 +#line 3206 "parse.c"
  1.3205 +        break;
  1.3206 +      case 296: /* cmd ::= ALTER TABLE fullname RENAME TO nm */
  1.3207 +#line 1088 "parse.y"
  1.3208 +{
  1.3209 +  sqlite3AlterRenameTable(pParse,yymsp[-3].minor.yy149,&yymsp[0].minor.yy0);
  1.3210 +}
  1.3211 +#line 3213 "parse.c"
  1.3212 +        break;
  1.3213 +      case 297: /* cmd ::= ALTER TABLE add_column_fullname ADD kwcolumn_opt column */
  1.3214 +#line 1091 "parse.y"
  1.3215 +{
  1.3216 +  sqlite3AlterFinishAddColumn(pParse, &yymsp[0].minor.yy0);
  1.3217 +}
  1.3218 +#line 3220 "parse.c"
  1.3219 +        break;
  1.3220 +      case 298: /* add_column_fullname ::= fullname */
  1.3221 +#line 1094 "parse.y"
  1.3222 +{
  1.3223 +  sqlite3AlterBeginAddColumn(pParse, yymsp[0].minor.yy149);
  1.3224 +}
  1.3225 +#line 3227 "parse.c"
  1.3226 +        break;
  1.3227 +  };
  1.3228 +  yygoto = yyRuleInfo[yyruleno].lhs;
  1.3229 +  yysize = yyRuleInfo[yyruleno].nrhs;
  1.3230 +  yypParser->yyidx -= yysize;
  1.3231 +  yyact = yy_find_reduce_action(yymsp[-yysize].stateno,yygoto);
  1.3232 +  if( yyact < YYNSTATE ){
  1.3233 +#ifdef NDEBUG
  1.3234 +    /* If we are not debugging and the reduce action popped at least
  1.3235 +    ** one element off the stack, then we can push the new element back
  1.3236 +    ** onto the stack here, and skip the stack overflow test in yy_shift().
  1.3237 +    ** That gives a significant speed improvement. */
  1.3238 +    if( yysize ){
  1.3239 +      yypParser->yyidx++;
  1.3240 +      yymsp -= yysize-1;
  1.3241 +      yymsp->stateno = yyact;
  1.3242 +      yymsp->major = yygoto;
  1.3243 +      yymsp->minor = yygotominor;
  1.3244 +    }else
  1.3245 +#endif
  1.3246 +    {
  1.3247 +      yy_shift(yypParser,yyact,yygoto,&yygotominor);
  1.3248 +    }
  1.3249 +  }else{
  1.3250 +    assert( yyact == YYNSTATE + YYNRULE + 1 );
  1.3251 +    yy_accept(yypParser);
  1.3252 +  }
  1.3253 +}
  1.3254 +
  1.3255 +/*
  1.3256 +** The following code executes when the parse fails
  1.3257 +*/
  1.3258 +static void yy_parse_failed(
  1.3259 +  yyParser *yypParser           /* The parser */
  1.3260 +){
  1.3261 +  sqlite3ParserARG_FETCH;
  1.3262 +#ifndef NDEBUG
  1.3263 +  if( yyTraceFILE ){
  1.3264 +    fprintf(yyTraceFILE,"%sFail!\n",yyTracePrompt);
  1.3265 +  }
  1.3266 +#endif
  1.3267 +  while( yypParser->yyidx>=0 ) yy_pop_parser_stack(yypParser);
  1.3268 +  /* Here code is inserted which will be executed whenever the
  1.3269 +  ** parser fails */
  1.3270 +  sqlite3ParserARG_STORE; /* Suppress warning about unused %extra_argument variable */
  1.3271 +}
  1.3272 +
  1.3273 +/*
  1.3274 +** The following code executes when a syntax error first occurs.
  1.3275 +*/
  1.3276 +static void yy_syntax_error(
  1.3277 +  yyParser *yypParser,           /* The parser */
  1.3278 +  int yymajor,                   /* The major type of the error token */
  1.3279 +  YYMINORTYPE yyminor            /* The minor type of the error token */
  1.3280 +){
  1.3281 +  sqlite3ParserARG_FETCH;
  1.3282 +#define TOKEN (yyminor.yy0)
  1.3283 +#line 34 "parse.y"
  1.3284 +
  1.3285 +  assert( TOKEN.z[0] );  /* The tokenizer always gives us a token */
  1.3286 +  sqlite3ErrorMsg(pParse, "near \"%T\": syntax error", &TOKEN);
  1.3287 +  pParse->parseError = 1;
  1.3288 +#line 3292 "parse.c"
  1.3289 +  sqlite3ParserARG_STORE; /* Suppress warning about unused %extra_argument variable */
  1.3290 +}
  1.3291 +
  1.3292 +/*
  1.3293 +** The following is executed when the parser accepts
  1.3294 +*/
  1.3295 +static void yy_accept(
  1.3296 +  yyParser *yypParser           /* The parser */
  1.3297 +){
  1.3298 +  sqlite3ParserARG_FETCH;
  1.3299 +#ifndef NDEBUG
  1.3300 +  if( yyTraceFILE ){
  1.3301 +    fprintf(yyTraceFILE,"%sAccept!\n",yyTracePrompt);
  1.3302 +  }
  1.3303 +#endif
  1.3304 +  while( yypParser->yyidx>=0 ) yy_pop_parser_stack(yypParser);
  1.3305 +  /* Here code is inserted which will be executed whenever the
  1.3306 +  ** parser accepts */
  1.3307 +  sqlite3ParserARG_STORE; /* Suppress warning about unused %extra_argument variable */
  1.3308 +}
  1.3309 +
  1.3310 +/* The main parser program.
  1.3311 +** The first argument is a pointer to a structure obtained from
  1.3312 +** "sqlite3ParserAlloc" which describes the current state of the parser.
  1.3313 +** The second argument is the major token number.  The third is
  1.3314 +** the minor token.  The fourth optional argument is whatever the
  1.3315 +** user wants (and specified in the grammar) and is available for
  1.3316 +** use by the action routines.
  1.3317 +**
  1.3318 +** Inputs:
  1.3319 +** <ul>
  1.3320 +** <li> A pointer to the parser (an opaque structure.)
  1.3321 +** <li> The major token number.
  1.3322 +** <li> The minor token number.
  1.3323 +** <li> An option argument of a grammar-specified type.
  1.3324 +** </ul>
  1.3325 +**
  1.3326 +** Outputs:
  1.3327 +** None.
  1.3328 +*/
  1.3329 +void sqlite3Parser(
  1.3330 +  void *yyp,                   /* The parser */
  1.3331 +  int yymajor,                 /* The major token code number */
  1.3332 +  sqlite3ParserTOKENTYPE yyminor       /* The value for the token */
  1.3333 +  sqlite3ParserARG_PDECL               /* Optional %extra_argument parameter */
  1.3334 +){
  1.3335 +  YYMINORTYPE yyminorunion;
  1.3336 +  int yyact;            /* The parser action. */
  1.3337 +  int yyendofinput;     /* True if we are at the end of input */
  1.3338 +#ifdef YYERRORSYMBOL
  1.3339 +  int yyerrorhit = 0;   /* True if yymajor has invoked an error */
  1.3340 +#endif
  1.3341 +  yyParser *yypParser;  /* The parser */
  1.3342 +
  1.3343 +  /* (re)initialize the parser, if necessary */
  1.3344 +  yypParser = (yyParser*)yyp;
  1.3345 +  if( yypParser->yyidx<0 ){
  1.3346 +#if YYSTACKDEPTH<=0
  1.3347 +    if( yypParser->yystksz <=0 ){
  1.3348 +      /*memset(&yyminorunion, 0, sizeof(yyminorunion));*/
  1.3349 +      yyminorunion = yyzerominor;
  1.3350 +      yyStackOverflow(yypParser, &yyminorunion);
  1.3351 +      return;
  1.3352 +    }
  1.3353 +#endif
  1.3354 +    yypParser->yyidx = 0;
  1.3355 +    yypParser->yyerrcnt = -1;
  1.3356 +    yypParser->yystack[0].stateno = 0;
  1.3357 +    yypParser->yystack[0].major = 0;
  1.3358 +  }
  1.3359 +  yyminorunion.yy0 = yyminor;
  1.3360 +  yyendofinput = (yymajor==0);
  1.3361 +  sqlite3ParserARG_STORE;
  1.3362 +
  1.3363 +#ifndef NDEBUG
  1.3364 +  if( yyTraceFILE ){
  1.3365 +    fprintf(yyTraceFILE,"%sInput %s\n",yyTracePrompt,yyTokenName[yymajor]);
  1.3366 +  }
  1.3367 +#endif
  1.3368 +
  1.3369 +  do{
  1.3370 +    yyact = yy_find_shift_action(yypParser,yymajor);
  1.3371 +    if( yyact<YYNSTATE ){
  1.3372 +      assert( !yyendofinput );  /* Impossible to shift the $ token */
  1.3373 +      yy_shift(yypParser,yyact,yymajor,&yyminorunion);
  1.3374 +      yypParser->yyerrcnt--;
  1.3375 +      yymajor = YYNOCODE;
  1.3376 +    }else if( yyact < YYNSTATE + YYNRULE ){
  1.3377 +      yy_reduce(yypParser,yyact-YYNSTATE);
  1.3378 +    }else{
  1.3379 +      assert( yyact == YY_ERROR_ACTION );
  1.3380 +#ifdef YYERRORSYMBOL
  1.3381 +      int yymx;
  1.3382 +#endif
  1.3383 +#ifndef NDEBUG
  1.3384 +      if( yyTraceFILE ){
  1.3385 +        fprintf(yyTraceFILE,"%sSyntax Error!\n",yyTracePrompt);
  1.3386 +      }
  1.3387 +#endif
  1.3388 +#ifdef YYERRORSYMBOL
  1.3389 +      /* A syntax error has occurred.
  1.3390 +      ** The response to an error depends upon whether or not the
  1.3391 +      ** grammar defines an error token "ERROR".  
  1.3392 +      **
  1.3393 +      ** This is what we do if the grammar does define ERROR:
  1.3394 +      **
  1.3395 +      **  * Call the %syntax_error function.
  1.3396 +      **
  1.3397 +      **  * Begin popping the stack until we enter a state where
  1.3398 +      **    it is legal to shift the error symbol, then shift
  1.3399 +      **    the error symbol.
  1.3400 +      **
  1.3401 +      **  * Set the error count to three.
  1.3402 +      **
  1.3403 +      **  * Begin accepting and shifting new tokens.  No new error
  1.3404 +      **    processing will occur until three tokens have been
  1.3405 +      **    shifted successfully.
  1.3406 +      **
  1.3407 +      */
  1.3408 +      if( yypParser->yyerrcnt<0 ){
  1.3409 +        yy_syntax_error(yypParser,yymajor,yyminorunion);
  1.3410 +      }
  1.3411 +      yymx = yypParser->yystack[yypParser->yyidx].major;
  1.3412 +      if( yymx==YYERRORSYMBOL || yyerrorhit ){
  1.3413 +#ifndef NDEBUG
  1.3414 +        if( yyTraceFILE ){
  1.3415 +          fprintf(yyTraceFILE,"%sDiscard input token %s\n",
  1.3416 +             yyTracePrompt,yyTokenName[yymajor]);
  1.3417 +        }
  1.3418 +#endif
  1.3419 +        yy_destructor(yypParser, yymajor,&yyminorunion);
  1.3420 +        yymajor = YYNOCODE;
  1.3421 +      }else{
  1.3422 +         while(
  1.3423 +          yypParser->yyidx >= 0 &&
  1.3424 +          yymx != YYERRORSYMBOL &&
  1.3425 +          (yyact = yy_find_reduce_action(
  1.3426 +                        yypParser->yystack[yypParser->yyidx].stateno,
  1.3427 +                        YYERRORSYMBOL)) >= YYNSTATE
  1.3428 +        ){
  1.3429 +          yy_pop_parser_stack(yypParser);
  1.3430 +        }
  1.3431 +        if( yypParser->yyidx < 0 || yymajor==0 ){
  1.3432 +          yy_destructor(yypParser,yymajor,&yyminorunion);
  1.3433 +          yy_parse_failed(yypParser);
  1.3434 +          yymajor = YYNOCODE;
  1.3435 +        }else if( yymx!=YYERRORSYMBOL ){
  1.3436 +          YYMINORTYPE u2;
  1.3437 +          u2.YYERRSYMDT = 0;
  1.3438 +          yy_shift(yypParser,yyact,YYERRORSYMBOL,&u2);
  1.3439 +        }
  1.3440 +      }
  1.3441 +      yypParser->yyerrcnt = 3;
  1.3442 +      yyerrorhit = 1;
  1.3443 +#else  /* YYERRORSYMBOL is not defined */
  1.3444 +      /* This is what we do if the grammar does not define ERROR:
  1.3445 +      **
  1.3446 +      **  * Report an error message, and throw away the input token.
  1.3447 +      **
  1.3448 +      **  * If the input token is $, then fail the parse.
  1.3449 +      **
  1.3450 +      ** As before, subsequent error messages are suppressed until
  1.3451 +      ** three input tokens have been successfully shifted.
  1.3452 +      */
  1.3453 +      if( yypParser->yyerrcnt<=0 ){
  1.3454 +        yy_syntax_error(yypParser,yymajor,yyminorunion);
  1.3455 +      }
  1.3456 +      yypParser->yyerrcnt = 3;
  1.3457 +      yy_destructor(yypParser,yymajor,&yyminorunion);
  1.3458 +      if( yyendofinput ){
  1.3459 +        yy_parse_failed(yypParser);
  1.3460 +      }
  1.3461 +      yymajor = YYNOCODE;
  1.3462 +#endif
  1.3463 +    }
  1.3464 +  }while( yymajor!=YYNOCODE && yypParser->yyidx>=0 );
  1.3465 +  return;
  1.3466 +}