47 #define YYBISON_VERSION "3.0.2"
50 #define YYSKELETON_NAME "yacc.c"
70 #include <grass/sqlp.h>
73 #define YYERROR_VERBOSE 1
79 # if defined __cplusplus && 201103L <= __cplusplus
80 # define YY_NULLPTR nullptr
87 #ifdef YYERROR_VERBOSE
88 # undef YYERROR_VERBOSE
89 # define YYERROR_VERBOSE 1
91 # define YYERROR_VERBOSE 0
96 #ifndef YY_YY_Y_TAB_H_INCLUDED
97 # define YY_YY_Y_TAB_H_INCLUDED
151 #define COMPARISON_OPERATOR 258
175 #define NULL_VALUE 282
180 #define PRECISION 287
190 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
204 # define YYSTYPE_IS_TRIVIAL 1
205 # define YYSTYPE_IS_DECLARED 1
219 extern int yylex(
void);
253 # ifdef __SIZE_TYPE__
254 # define YYSIZE_T __SIZE_TYPE__
255 # elif defined size_t
256 # define YYSIZE_T size_t
257 # elif ! defined YYSIZE_T
259 # define YYSIZE_T size_t
261 # define YYSIZE_T unsigned int
265 #define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
268 # if defined YYENABLE_NLS && YYENABLE_NLS
270 # include <libintl.h>
271 # define YY_(Msgid) dgettext ("bison-runtime", Msgid)
275 # define YY_(Msgid) Msgid
280 # if (defined __GNUC__ \
281 && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \
282 || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C
283 # define YY_ATTRIBUTE(Spec) __attribute__(Spec)
285 # define YY_ATTRIBUTE(Spec)
289 #ifndef YY_ATTRIBUTE_PURE
290 # define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__))
293 #ifndef YY_ATTRIBUTE_UNUSED
294 # define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__))
297 #if !defined _Noreturn \
298 && (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112)
299 # if defined _MSC_VER && 1200 <= _MSC_VER
300 # define _Noreturn __declspec (noreturn)
302 # define _Noreturn YY_ATTRIBUTE ((__noreturn__))
307 #if ! defined lint || defined __GNUC__
308 # define YYUSE(E) ((void) (E))
313 #if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
315 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
316 _Pragma ("GCC diagnostic push") \
317 _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\
318 _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
319 # define YY_IGNORE_MAYBE_UNINITIALIZED_END \
320 _Pragma ("GCC diagnostic pop")
322 # define YY_INITIAL_VALUE(Value) Value
324 #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
325 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
326 # define YY_IGNORE_MAYBE_UNINITIALIZED_END
328 #ifndef YY_INITIAL_VALUE
329 # define YY_INITIAL_VALUE(Value)
333 #if ! defined yyoverflow || YYERROR_VERBOSE
337 # ifdef YYSTACK_USE_ALLOCA
338 # if YYSTACK_USE_ALLOCA
340 # define YYSTACK_ALLOC __builtin_alloca
341 # elif defined __BUILTIN_VA_ARG_INCR
344 # define YYSTACK_ALLOC __alloca
345 # elif defined _MSC_VER
347 # define alloca _alloca
349 # define YYSTACK_ALLOC alloca
350 # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
353 # ifndef EXIT_SUCCESS
354 # define EXIT_SUCCESS 0
361 # ifdef YYSTACK_ALLOC
363 # define YYSTACK_FREE(Ptr) do { ; } while (0)
364 # ifndef YYSTACK_ALLOC_MAXIMUM
369 # define YYSTACK_ALLOC_MAXIMUM 4032
372 # define YYSTACK_ALLOC YYMALLOC
373 # define YYSTACK_FREE YYFREE
374 # ifndef YYSTACK_ALLOC_MAXIMUM
375 # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
377 # if (defined __cplusplus && ! defined EXIT_SUCCESS \
378 && ! ((defined YYMALLOC || defined malloc) \
379 && (defined YYFREE || defined free)))
381 # ifndef EXIT_SUCCESS
382 # define EXIT_SUCCESS 0
386 # define YYMALLOC malloc
387 # if ! defined malloc && ! defined EXIT_SUCCESS
393 # if ! defined free && ! defined EXIT_SUCCESS
401 #if (! defined yyoverflow \
402 && (! defined __cplusplus \
403 || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
413 # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
417 # define YYSTACK_BYTES(N) \
418 ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
419 + YYSTACK_GAP_MAXIMUM)
421 # define YYCOPY_NEEDED 1
428 # define YYSTACK_RELOCATE(Stack_alloc, Stack) \
431 YYSIZE_T yynewbytes; \
432 YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
433 Stack = &yyptr->Stack_alloc; \
434 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
435 yyptr += yynewbytes / sizeof (*yyptr); \
441 #if defined YYCOPY_NEEDED && YYCOPY_NEEDED
445 # if defined __GNUC__ && 1 < __GNUC__
446 # define YYCOPY(Dst, Src, Count) \
447 __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src)))
449 # define YYCOPY(Dst, Src, Count) \
453 for (yyi = 0; yyi < (Count); yyi++) \
454 (Dst)[yyi] = (Src)[yyi]; \
473 #define YYNSTATES 157
478 #define YYMAXUTOK 294
480 #define YYTRANSLATE(YYX) \
481 ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
487 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
488 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
489 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
490 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
491 41, 42, 44, 46, 43, 45, 2, 47, 2, 2,
492 2, 2, 2, 2, 2, 2, 2, 2, 2, 40,
493 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
494 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
495 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
496 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
497 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
498 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
499 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
500 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
501 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
502 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
503 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
504 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
505 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
506 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
507 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
508 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
509 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
510 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
511 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
512 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
513 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
514 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
515 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
523 0, 97, 97, 98, 99, 100, 101, 102, 103, 104,
524 108, 109, 110, 114, 118, 122, 123, 124, 125, 129,
525 130, 134, 135, 139, 140, 145, 146, 150, 151, 152,
526 153, 154, 155, 156, 160, 161, 165, 166, 170, 174,
527 178, 179, 180, 181, 182, 183, 184, 185, 186, 187,
528 188, 189, 193, 194, 198, 202, 206, 213, 214, 218,
529 219, 223, 224, 225, 230, 233, 236, 239, 246, 247,
530 250, 256, 257, 260, 266, 267, 273, 274, 275, 280,
531 281, 282, 287, 290, 290, 293, 294, 297
535 #if YYDEBUG || YYERROR_VERBOSE || 0
538 static const char *
const yytname[] =
540 "$end",
"error",
"$undefined",
"COMPARISON_OPERATOR",
"NAME",
"STRING",
541 "INTNUM",
"FLOATNUM",
"ADD",
"DROP",
"COLUMN",
"EQUAL",
"SELECT",
"FROM",
542 "WHERE",
"DELETE",
"INSERT",
"INTO",
"VALUES",
"UPDATE",
"SET",
"AND",
543 "OR",
"NOT",
"ALTER",
"TABLE",
"CREATE",
"NULL_VALUE",
"VARCHAR",
"INT",
544 "INTEGER",
"DOUBLE",
"PRECISION",
"DATE",
"TIME",
"ORDER",
"BY",
"IS",
545 "ASC",
"DESC",
"';'",
"'('",
"')'",
"','",
"'*'",
"'-'",
"'+'",
"'/'",
546 "$accept",
"y_sql",
"y_alter",
"y_create",
"y_drop",
"y_select",
547 "y_delete",
"y_insert",
"y_update",
"y_columndefs",
"y_columndef",
548 "y_columns",
"y_column_list",
"y_table",
"y_values",
"y_value_list",
549 "y_assignments",
"y_assignment",
"y_condition",
"y_sub_condition",
550 "y_sub_condition2",
"y_boolean",
"y_comparison",
"y_expression",
551 "y_product",
"y_term",
"y_atom",
"y_value",
"y_column",
"y_order",
561 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
562 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
563 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
564 285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
565 59, 40, 41, 44, 42, 45, 43, 47
569 #define YYPACT_NINF -52
571 #define yypact_value_is_default(Yystate) \
572 (!!((Yystate) == (-52)))
574 #define YYTABLE_NINF -1
576 #define yytable_value_is_error(Yytable_value) \
583 64, -8, 3, 11, 5, 32, 49, 57, 2, -52,
584 -52, -52, -52, -52, -52, -52, 32, -52, -52, 39,
585 41, 32, 32, -52, 102, 32, 32, -52, -52, -52,
586 32, 85, 109, 7, 95, 10, 83, 37, -52, 8,
587 84, 3, -52, 115, -10, -52, 6, 117, 124, 8,
588 93, -52, -52, -52, -52, 8, 8, 55, -52, 108,
589 110, -52, -52, 0, 31, -52, -52, -52, -52, 23,
590 90, 50, 8, 95, 79, 124, -52, 129, 24, -52,
591 99, 131, -52, -16, -2, 55, -52, 8, 8, 55,
592 55, 111, 113, 55, 55, 55, 55, -52, -52, -52,
593 -52, 80, 51, 118, -52, 59, -52, -52, 96, -52,
594 -52, 107, -52, -52, -52, -52, -52, 124, 105, 78,
595 -52, -52, -52, -52, -52, 69, 110, -52, 59, 59,
596 -52, -52, 31, 31, -52, -52, -52, -52, -52, 58,
597 -52, 136, -52, -52, 131, -52, -52, -52, -52, -52,
598 -52, 112, 101, -52, -52, -52, -52
606 0, 0, 0, 0, 0, 0, 0, 0, 0, 2,
607 3, 4, 6, 8, 5, 7, 0, 36, 34, 0,
608 35, 0, 0, 38, 0, 0, 0, 1, 9, 14,
609 0, 0, 19, 0, 0, 0, 0, 15, 37, 0,
610 0, 0, 21, 0, 23, 52, 0, 0, 0, 0,
611 0, 82, 79, 80, 81, 0, 0, 0, 20, 56,
612 57, 59, 61, 0, 68, 71, 74, 76, 77, 0,
613 0, 0, 0, 0, 0, 0, 11, 0, 0, 25,
614 16, 0, 63, 0, 0, 0, 75, 0, 0, 0,
615 0, 0, 0, 0, 0, 0, 0, 41, 42, 44,
616 40, 0, 0, 0, 54, 55, 24, 53, 0, 28,
617 29, 30, 32, 33, 10, 12, 13, 0, 0, 85,
618 17, 83, 84, 62, 78, 0, 58, 60, 65, 64,
619 67, 66, 70, 69, 72, 73, 43, 45, 39, 0,
620 22, 0, 31, 26, 0, 86, 87, 47, 48, 50,
621 46, 0, 0, 18, 49, 51, 27
627 -52, -52, -52, -52, -52, -52, -52, -52, -52, -52,
628 -48, 103, -52, 76, 42, -52, -52, 73, 9, 91,
629 61, -47, -52, -51, 27, -25, -52, -52, -52, 12,
636 -1, 8, 9, 10, 11, 12, 13, 14, 15, 78,
637 76, 19, 20, 24, 42, 102, 44, 45, 58, 59,
638 60, 61, 62, 63, 64, 65, 66, 67, 68, 120,
647 79, 89, 27, 89, 72, 84, 87, 17, 82, 90,
648 74, 90, 51, 52, 53, 54, 75, 16, 46, 47,
649 105, 91, 22, 91, 21, 40, 123, 114, 97, 98,
650 99, 55, 86, 73, 125, 92, 23, 92, 128, 129,
651 124, 127, 28, 93, 94, 93, 94, 18, 41, 56,
652 100, 49, 30, 57, 51, 52, 53, 54, 80, 51,
653 52, 53, 54, 147, 148, 149, 116, 117, 101, 143,
654 134, 135, 50, 1, 25, 95, 2, 104, 96, 3,
655 4, 106, 26, 5, 31, 150, 136, 137, 6, 38,
656 7, 85, 29, 138, 139, 57, 85, 32, 33, 43,
657 57, 35, 36, 151, 93, 94, 37, 108, 109, 110,
658 111, 124, 112, 113, 93, 94, 145, 146, 154, 155,
659 132, 133, 34, 39, 48, 69, 71, 77, 74, 81,
660 87, 88, 103, 115, 118, 119, 40, 141, 130, 142,
661 131, 144, 152, 156, 70, 140, 107, 83, 126, 0,
662 0, 0, 0, 0, 0, 0, 153
667 48, 3, 0, 3, 14, 56, 22, 4, 55, 11,
668 4, 11, 4, 5, 6, 7, 10, 25, 8, 9,
669 71, 23, 17, 23, 13, 18, 42, 75, 5, 6,
670 7, 23, 57, 43, 85, 37, 4, 37, 89, 90,
671 42, 88, 40, 45, 46, 45, 46, 44, 41, 41,
672 27, 14, 13, 45, 4, 5, 6, 7, 49, 4,
673 5, 6, 7, 5, 6, 7, 42, 43, 45, 117,
674 95, 96, 35, 9, 25, 44, 12, 27, 47, 15,
675 16, 72, 25, 19, 43, 27, 6, 7, 24, 4,
676 26, 41, 16, 42, 43, 45, 41, 21, 22, 4,
677 45, 25, 26, 45, 45, 46, 30, 28, 29, 30,
678 31, 42, 33, 34, 45, 46, 38, 39, 6, 7,
679 93, 94, 20, 14, 41, 41, 11, 10, 4, 36,
680 22, 21, 42, 4, 35, 4, 18, 41, 27, 32,
681 27, 36, 6, 42, 41, 103, 73, 56, 87, -1,
682 -1, -1, -1, -1, -1, -1, 144
689 0, 9, 12, 15, 16, 19, 24, 26, 49, 50,
690 51, 52, 53, 54, 55, 56, 25, 4, 44, 59,
691 60, 13, 17, 4, 61, 25, 25, 0, 40, 61,
692 13, 43, 61, 61, 20, 61, 61, 61, 4, 14,
693 18, 41, 62, 4, 64, 65, 8, 9, 41, 14,
694 35, 4, 5, 6, 7, 23, 41, 45, 66, 67,
695 68, 69, 70, 71, 72, 73, 74, 75, 76, 41,
696 59, 11, 14, 43, 4, 10, 58, 10, 57, 58,
697 66, 36, 69, 67, 71, 41, 73, 22, 21, 3,
698 11, 23, 37, 45, 46, 44, 47, 5, 6, 7,
699 27, 45, 63, 42, 27, 71, 66, 65, 28, 29,
700 30, 31, 33, 34, 58, 4, 42, 43, 35, 4,
701 77, 78, 79, 42, 42, 71, 68, 69, 71, 71,
702 27, 27, 72, 72, 73, 73, 6, 7, 42, 43,
703 62, 41, 32, 58, 36, 38, 39, 5, 6, 7,
704 27, 45, 6, 77, 6, 7, 42
710 0, 48, 49, 49, 49, 49, 49, 49, 49, 49,
711 50, 50, 50, 51, 52, 53, 53, 53, 53, 54,
712 54, 55, 55, 56, 56, 57, 57, 58, 58, 58,
713 58, 58, 58, 58, 59, 59, 60, 60, 61, 62,
714 63, 63, 63, 63, 63, 63, 63, 63, 63, 63,
715 63, 63, 64, 64, 65, 65, 66, 67, 67, 68,
716 68, 69, 69, 69, 70, 70, 70, 70, 71, 71,
717 71, 72, 72, 72, 73, 73, 74, 74, 74, 75,
718 75, 75, 76, 77, 77, 78, 78, 79
724 0, 2, 1, 1, 1, 1, 1, 1, 1, 2,
725 6, 5, 6, 6, 3, 4, 6, 7, 9, 3,
726 5, 4, 7, 4, 6, 1, 3, 5, 2, 2,
727 2, 3, 2, 2, 1, 1, 1, 3, 1, 4,
728 1, 1, 1, 2, 1, 2, 3, 3, 3, 4,
729 3, 4, 1, 3, 3, 3, 1, 1, 3, 1,
730 3, 1, 3, 2, 3, 3, 3, 3, 1, 3,
731 3, 1, 3, 3, 1, 2, 1, 1, 3, 1,
732 1, 1, 1, 1, 1, 1, 2, 2
736 #define yyerrok (yyerrstatus = 0)
737 #define yyclearin (yychar = YYEMPTY)
741 #define YYACCEPT goto yyacceptlab
742 #define YYABORT goto yyabortlab
743 #define YYERROR goto yyerrorlab
746 #define YYRECOVERING() (!!yyerrstatus)
748 #define YYBACKUP(Token, Value) \
750 if (yychar == YYEMPTY) \
754 YYPOPSTACK (yylen); \
760 yyerror (YY_("syntax error: cannot back up")); \
767 #define YYERRCODE 256
776 # define YYFPRINTF fprintf
779 # define YYDPRINTF(Args) \
786 #ifndef YY_LOCATION_PRINT
787 # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
791 # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
795 YYFPRINTF (stderr, "%s ", Title); \
796 yy_symbol_print (stderr, \
798 YYFPRINTF (stderr, "\n"); \
808 yy_symbol_value_print (FILE *yyoutput,
int yytype,
YYSTYPE const *
const yyvaluep)
810 FILE *yyo = yyoutput;
816 YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
827 yy_symbol_print (FILE *yyoutput,
int yytype,
YYSTYPE const *
const yyvaluep)
830 yytype <
YYNTOKENS ?
"token" :
"nterm", yytname[yytype]);
832 yy_symbol_value_print (yyoutput, yytype, yyvaluep);
845 for (; yybottom <= yytop; yybottom++)
847 int yybot = *yybottom;
853 # define YY_STACK_PRINT(Bottom, Top) \
856 yy_stack_print ((Bottom), (Top)); \
867 unsigned long int yylno = yyrline[yyrule];
868 int yynrhs = yyr2[yyrule];
870 YYFPRINTF (stderr,
"Reducing stack by rule %d (line %lu):\n",
873 for (yyi = 0; yyi < yynrhs; yyi++)
876 yy_symbol_print (stderr,
877 yystos[yyssp[yyi + 1 - yynrhs]],
878 &(yyvsp[(yyi + 1) - (yynrhs)])
884 # define YY_REDUCE_PRINT(Rule) \
887 yy_reduce_print (yyssp, yyvsp, Rule); \
894 # define YYDPRINTF(Args)
895 # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
896 # define YY_STACK_PRINT(Bottom, Top)
897 # define YY_REDUCE_PRINT(Rule)
903 # define YYINITDEPTH 200
914 # define YYMAXDEPTH 10000
921 # if defined __GLIBC__ && defined _STRING_H
922 # define yystrlen strlen
926 yystrlen (
const char *yystr)
929 for (yylen = 0; yystr[yylen]; yylen++)
937 # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
938 # define yystpcpy stpcpy
943 yystpcpy (
char *yydest,
const char *yysrc)
946 const char *yys = yysrc;
948 while ((*yyd++ = *yys++) !=
'\0')
965 yytnamerr (
char *yyres,
const char *yystr)
970 char const *yyp = yystr;
977 goto do_not_strip_quotes;
981 goto do_not_strip_quotes;
994 do_not_strip_quotes: ;
998 return yystrlen (yystr);
1000 return yystpcpy (yyres, yystr) - yyres;
1013 yysyntax_error (
YYSIZE_T *yymsg_alloc,
char **yymsg,
1018 enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
1022 char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
1052 int yyn = yypact[*yyssp];
1053 yyarg[yycount++] = yytname[yytoken];
1059 int yyxbegin = yyn < 0 ? -yyn : 0;
1061 int yychecklim =
YYLAST - yyn + 1;
1065 for (yyx = yyxbegin; yyx < yyxend; ++yyx)
1066 if (yycheck[yyx + yyn] == yyx && yyx !=
YYTERROR
1069 if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
1075 yyarg[yycount++] = yytname[yyx];
1078 if (! (yysize <= yysize1
1089 # define YYCASE_(N, S) \
1094 YYCASE_(1,
YY_(
"syntax error, unexpected %s"));
1095 YYCASE_(2,
YY_(
"syntax error, unexpected %s, expecting %s"));
1096 YYCASE_(3,
YY_(
"syntax error, unexpected %s, expecting %s or %s"));
1097 YYCASE_(4,
YY_(
"syntax error, unexpected %s, expecting %s or %s or %s"));
1098 YYCASE_(5,
YY_(
"syntax error, unexpected %s, expecting %s or %s or %s or %s"));
1103 YYSIZE_T yysize1 = yysize + yystrlen (yyformat);
1109 if (*yymsg_alloc < yysize)
1111 *yymsg_alloc = 2 * yysize;
1112 if (! (yysize <= *yymsg_alloc
1124 while ((*yyp = *yyformat) !=
'\0')
1125 if (*yyp ==
'%' && yyformat[1] ==
's' && yyi < yycount)
1127 yyp += yytnamerr (yyp, yyarg[yyi++]);
1145 yydestruct (
const char *yymsg,
int yytype,
YYSTYPE *yyvaluep)
1210 char *yymsg = yymsgbuf;
1211 YYSIZE_T yymsg_alloc =
sizeof yymsgbuf;
1214 #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
1220 yyssp = yyss = yyssa;
1221 yyvsp = yyvs = yyvsa;
1224 YYDPRINTF ((stderr,
"Starting parse\n"));
1243 if (yyss + yystacksize - 1 <= yyssp)
1246 YYSIZE_T yysize = yyssp - yyss + 1;
1260 yyoverflow (
YY_(
"memory exhausted"),
1261 &yyss1, yysize *
sizeof (*yyssp),
1262 &yyvs1, yysize *
sizeof (*yyvsp),
1269 # ifndef YYSTACK_RELOCATE
1270 goto yyexhaustedlab;
1274 goto yyexhaustedlab;
1284 goto yyexhaustedlab;
1287 # undef YYSTACK_RELOCATE
1294 yyssp = yyss + yysize - 1;
1295 yyvsp = yyvs + yysize - 1;
1297 YYDPRINTF ((stderr,
"Stack size increased to %lu\n",
1298 (
unsigned long int) yystacksize));
1300 if (yyss + yystacksize - 1 <= yyssp)
1304 YYDPRINTF ((stderr,
"Entering state %d\n", yystate));
1320 yyn = yypact[yystate];
1329 YYDPRINTF ((stderr,
"Reading a token: "));
1333 if (yychar <=
YYEOF)
1335 yychar = yytoken =
YYEOF;
1336 YYDPRINTF ((stderr,
"Now at end of input.\n"));
1347 if (yyn < 0 ||
YYLAST < yyn || yycheck[yyn] != yytoken)
1381 yyn = yydefact[yystate];
1402 yyval = yyvsp[1-yylen];
1411 #line 1412 "y.tab.c"
1417 #line 1418 "y.tab.c"
1423 #line 1424 "y.tab.c"
1429 #line 1430 "y.tab.c"
1435 #line 1436 "y.tab.c"
1441 #line 1442 "y.tab.c"
1447 #line 1448 "y.tab.c"
1453 #line 1454 "y.tab.c"
1459 #line 1460 "y.tab.c"
1465 #line 1466 "y.tab.c"
1471 #line 1472 "y.tab.c"
1477 #line 1478 "y.tab.c"
1483 #line 1484 "y.tab.c"
1489 #line 1490 "y.tab.c"
1495 #line 1496 "y.tab.c"
1500 {
sqpColumnDef( (yyvsp[-4].strval), SQLP_VARCHAR, (yyvsp[-1].intval), 0 ); }
1501 #line 1502 "y.tab.c"
1506 {
sqpColumnDef( (yyvsp[-1].strval), SQLP_INTEGER, 0, 0 ); }
1507 #line 1508 "y.tab.c"
1512 {
sqpColumnDef( (yyvsp[-1].strval), SQLP_INTEGER, 0, 0 ); }
1513 #line 1514 "y.tab.c"
1518 {
sqpColumnDef( (yyvsp[-1].strval), SQLP_DOUBLE, 0, 0 ); }
1519 #line 1520 "y.tab.c"
1524 {
sqpColumnDef( (yyvsp[-2].strval), SQLP_DOUBLE, 0, 0 ); }
1525 #line 1526 "y.tab.c"
1530 {
sqpColumnDef( (yyvsp[-1].strval), SQLP_DATE, 0, 0 ); }
1531 #line 1532 "y.tab.c"
1536 {
sqpColumnDef( (yyvsp[-1].strval), SQLP_TIME, 0, 0 ); }
1537 #line 1538 "y.tab.c"
1543 #line 1544 "y.tab.c"
1549 #line 1550 "y.tab.c"
1555 #line 1556 "y.tab.c"
1561 #line 1562 "y.tab.c"
1566 {
sqpValue( (yyvsp[0].strval), 0, 0.0, SQLP_S ); }
1567 #line 1568 "y.tab.c"
1573 #line 1574 "y.tab.c"
1579 #line 1580 "y.tab.c"
1585 #line 1586 "y.tab.c"
1591 #line 1592 "y.tab.c"
1597 #line 1598 "y.tab.c"
1602 {
sqpValue( (yyvsp[0].strval), 0, 0.0, SQLP_S ); }
1603 #line 1604 "y.tab.c"
1609 #line 1610 "y.tab.c"
1615 #line 1616 "y.tab.c"
1621 #line 1622 "y.tab.c"
1627 #line 1628 "y.tab.c"
1633 #line 1634 "y.tab.c"
1638 {
sqpAssignment( (yyvsp[-2].strval),
NULL, 0, 0.0, (yyvsp[0].node), SQLP_EXPR ); }
1639 #line 1640 "y.tab.c"
1645 (yyval.
node) = (yyvsp[0].node);
1646 sqlpStmt->upperNodeptr = (yyval.
node);
1648 #line 1649 "y.tab.c"
1653 { (yyval.
node) = (yyvsp[0].node); }
1654 #line 1655 "y.tab.c"
1660 #line 1661 "y.tab.c"
1665 { (yyval.
node) = (yyvsp[0].node); }
1666 #line 1667 "y.tab.c"
1672 #line 1673 "y.tab.c"
1677 { (yyval.
node) = (yyvsp[0].node); }
1678 #line 1679 "y.tab.c"
1683 { (yyval.
node) = (yyvsp[-1].node); }
1684 #line 1685 "y.tab.c"
1690 #line 1691 "y.tab.c"
1698 #line 1699 "y.tab.c"
1706 #line 1707 "y.tab.c"
1714 #line 1715 "y.tab.c"
1722 #line 1723 "y.tab.c"
1727 { (yyval.
node) = (yyvsp[0].node); }
1728 #line 1729 "y.tab.c"
1736 #line 1737 "y.tab.c"
1744 #line 1745 "y.tab.c"
1749 { (yyval.
node) = (yyvsp[0].node); }
1750 #line 1751 "y.tab.c"
1758 #line 1759 "y.tab.c"
1766 #line 1767 "y.tab.c"
1771 { (yyval.
node) = (yyvsp[0].node); }
1772 #line 1773 "y.tab.c"
1780 #line 1781 "y.tab.c"
1785 { (yyval.
node) = (yyvsp[0].node); }
1786 #line 1787 "y.tab.c"
1791 { (yyval.
node) = (yyvsp[0].node); }
1792 #line 1793 "y.tab.c"
1797 { (yyval.
node) = (yyvsp[-1].node); }
1798 #line 1799 "y.tab.c"
1804 #line 1805 "y.tab.c"
1810 #line 1811 "y.tab.c"
1816 #line 1817 "y.tab.c"
1822 #line 1823 "y.tab.c"
1828 #line 1829 "y.tab.c"
1834 #line 1835 "y.tab.c"
1840 #line 1841 "y.tab.c"
1844 #line 1845 "y.tab.c"
1872 yystate = yypgoto[yyn -
YYNTOKENS] + *yyssp;
1873 if (0 <= yystate && yystate <=
YYLAST && yycheck[yystate] == *yyssp)
1874 yystate = yytable[yystate];
1893 #if ! YYERROR_VERBOSE
1894 yyerror (
YY_(
"syntax error"));
1896 # define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \
1899 char const *yymsgp =
YY_(
"syntax error");
1900 int yysyntax_error_status;
1902 if (yysyntax_error_status == 0)
1904 else if (yysyntax_error_status == 1)
1906 if (yymsg != yymsgbuf)
1912 yymsg_alloc =
sizeof yymsgbuf;
1913 yysyntax_error_status = 2;
1922 if (yysyntax_error_status == 2)
1923 goto yyexhaustedlab;
1925 # undef YYSYNTAX_ERROR
1931 if (yyerrstatus == 3)
1936 if (yychar <=
YYEOF)
1939 if (yychar ==
YYEOF)
1944 yydestruct (
"Error: discarding",
1983 yyn = yypact[yystate];
2000 yydestruct (
"Error: popping",
2001 yystos[yystate], yyvsp);
2033 #if !defined yyoverflow || YYERROR_VERBOSE
2038 yyerror (
YY_(
"memory exhausted"));
2049 yydestruct (
"Cleanup: discarding lookahead",
2056 while (yyssp != yyss)
2058 yydestruct (
"Cleanup: popping",
2059 yystos[*yyssp], yyvsp);
2067 if (yymsg != yymsgbuf)
#define YYSTACK_ALLOC_MAXIMUM
#define YY_IGNORE_MAYBE_UNINITIALIZED_END
void sqpColumn(char *col)
SQLPNODE * sqpNewColumnNode(char *name)
void sqpColumnDef(char *col, int type, int width, int decimals)
unsigned char yytype_uint8
int sqpOperatorCode(char *oper)
SQLPNODE * sqpNewValueNode(char *strval, int intval, double dblval, int type)
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
#define YY_REDUCE_PRINT(Rule)
void sqpOrderColumn(char *col, int dir)
#define YYSTACK_RELOCATE(Stack_alloc, Stack)
#define YY_STACK_PRINT(Bottom, Top)
#define yypact_value_is_default(Yystate)
SQLPNODE * sqpNewExpressionNode(int oper, SQLPNODE *left, SQLPNODE *right)
#define YY_SYMBOL_PRINT(Title, Type, Value, Location)
void sqpAssignment(char *col, char *strval, int intval, double dblval, SQLPNODE *expval, int type)
#define COMPARISON_OPERATOR
unsigned short int yytype_uint16
void sqpValue(char *strval, int intval, double dblval, int type)
#define yytable_value_is_error(Yytable_value)
void sqpCommand(int command)