51 #define YYBISON_VERSION "3.3.2" 54 #define YYSKELETON_NAME "yacc.c" 77 #define YYERROR_VERBOSE 1 82 # if defined __cplusplus 83 # if 201103L <= __cplusplus 84 # define YY_NULLPTR nullptr 89 # define YY_NULLPTR ((void*)0) 94 #ifdef YYERROR_VERBOSE 95 # undef YYERROR_VERBOSE 96 # define YYERROR_VERBOSE 1 98 # define YYERROR_VERBOSE 0 103 #ifndef YY_YY_SQLP_TAB_H_INCLUDED 104 # define YY_YY_SQLP_TAB_H_INCLUDED 158 #define COMPARISON_OPERATOR 258 182 #define NULL_VALUE 282 187 #define PRECISION 287 197 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED 209 #line 210 "sqlp.tab.c" 213 # define YYSTYPE_IS_TRIVIAL 1 214 # define YYSTYPE_IS_DECLARED 1 228 extern int yylex(
void);
231 #line 232 "sqlp.tab.c" 262 # ifdef __SIZE_TYPE__ 263 # define YYSIZE_T __SIZE_TYPE__ 264 # elif defined size_t 265 # define YYSIZE_T size_t 266 # elif ! defined YYSIZE_T 268 # define YYSIZE_T size_t 270 # define YYSIZE_T unsigned 274 #define YYSIZE_MAXIMUM ((YYSIZE_T) -1) 277 # if defined YYENABLE_NLS && YYENABLE_NLS 279 # include <libintl.h> 280 # define YY_(Msgid) dgettext ("bison-runtime", Msgid) 284 # define YY_(Msgid) Msgid 289 # if (defined __GNUC__ \ 290 && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \ 291 || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C 292 # define YY_ATTRIBUTE(Spec) __attribute__(Spec) 294 # define YY_ATTRIBUTE(Spec) 298 #ifndef YY_ATTRIBUTE_PURE 299 # define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) 302 #ifndef YY_ATTRIBUTE_UNUSED 303 # define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) 307 #if ! defined lint || defined __GNUC__ 308 # define YYUSE(E) ((void) (E)) 313 #if defined __GNUC__ && ! defined __ICC && 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 476 #define YYMAXUTOK 294 480 #define YYTRANSLATE(YYX) \ 481 ((unsigned) (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 *yyo,
int yytype,
YYSTYPE const *
const yyvaluep)
810 FILE *yyoutput = yyo;
816 YYPRINT (yyo, yytoknum[yytype], *yyvaluep);
827 yy_symbol_print (FILE *yyo,
int yytype,
YYSTYPE const *
const yyvaluep)
830 yytype <
YYNTOKENS ?
"token" :
"nterm", yytname[yytype]);
832 yy_symbol_value_print (yyo, 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 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;
997 do_not_strip_quotes: ;
1001 return yystrlen (yystr);
1003 return (
YYSIZE_T) (yystpcpy (yyres, yystr) - yyres);
1016 yysyntax_error (
YYSIZE_T *yymsg_alloc,
char **yymsg,
1021 enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
1025 char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
1055 int yyn = yypact[*yyssp];
1056 yyarg[yycount++] = yytname[yytoken];
1062 int yyxbegin = yyn < 0 ? -yyn : 0;
1064 int yychecklim =
YYLAST - yyn + 1;
1068 for (yyx = yyxbegin; yyx < yyxend; ++yyx)
1069 if (yycheck[yyx + yyn] == yyx && yyx !=
YYTERROR 1072 if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
1078 yyarg[yycount++] = yytname[yyx];
1092 # define YYCASE_(N, S) \ 1098 YYCASE_(1,
YY_(
"syntax error, unexpected %s"));
1099 YYCASE_(2,
YY_(
"syntax error, unexpected %s, expecting %s"));
1100 YYCASE_(3,
YY_(
"syntax error, unexpected %s, expecting %s or %s"));
1101 YYCASE_(4,
YY_(
"syntax error, unexpected %s, expecting %s or %s or %s"));
1102 YYCASE_(5,
YY_(
"syntax error, unexpected %s, expecting %s or %s or %s or %s"));
1107 YYSIZE_T yysize1 = yysize + yystrlen (yyformat);
1114 if (*yymsg_alloc < yysize)
1116 *yymsg_alloc = 2 * yysize;
1117 if (! (yysize <= *yymsg_alloc
1129 while ((*yyp = *yyformat) !=
'\0')
1130 if (*yyp ==
'%' && yyformat[1] ==
's' && yyi < yycount)
1132 yyp += yytnamerr (yyp, yyarg[yyi++]);
1150 yydestruct (
const char *yymsg,
int yytype,
YYSTYPE *yyvaluep)
1215 char *yymsg = yymsgbuf;
1216 YYSIZE_T yymsg_alloc =
sizeof yymsgbuf;
1219 #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) 1225 yyssp = yyss = yyssa;
1226 yyvsp = yyvs = yyvsa;
1229 YYDPRINTF ((stderr,
"Starting parse\n"));
1253 if (yyss + yystacksize - 1 <= yyssp)
1254 #if !defined yyoverflow && !defined YYSTACK_RELOCATE 1255 goto yyexhaustedlab;
1261 # if defined yyoverflow 1273 yyoverflow (
YY_(
"memory exhausted"),
1274 &yyss1, yysize *
sizeof (*yyssp),
1275 &yyvs1, yysize *
sizeof (*yyvsp),
1283 goto yyexhaustedlab;
1293 goto yyexhaustedlab;
1296 # undef YYSTACK_RELOCATE 1302 yyssp = yyss + yysize - 1;
1303 yyvsp = yyvs + yysize - 1;
1305 YYDPRINTF ((stderr,
"Stack size increased to %lu\n",
1306 (
unsigned long) yystacksize));
1308 if (yyss + yystacksize - 1 <= yyssp)
1313 YYDPRINTF ((stderr,
"Entering state %d\n", yystate));
1329 yyn = yypact[yystate];
1338 YYDPRINTF ((stderr,
"Reading a token: "));
1345 YYDPRINTF ((stderr,
"Now at end of input.\n"));
1356 if (yyn < 0 ||
YYLAST < yyn || yycheck[yyn] != yytoken)
1390 yyn = yydefact[yystate];
1411 yyval = yyvsp[1-yylen];
1420 #line 1421 "sqlp.tab.c" 1426 #line 1427 "sqlp.tab.c" 1432 #line 1433 "sqlp.tab.c" 1438 #line 1439 "sqlp.tab.c" 1444 #line 1445 "sqlp.tab.c" 1450 #line 1451 "sqlp.tab.c" 1456 #line 1457 "sqlp.tab.c" 1462 #line 1463 "sqlp.tab.c" 1468 #line 1469 "sqlp.tab.c" 1474 #line 1475 "sqlp.tab.c" 1480 #line 1481 "sqlp.tab.c" 1486 #line 1487 "sqlp.tab.c" 1492 #line 1493 "sqlp.tab.c" 1498 #line 1499 "sqlp.tab.c" 1504 #line 1505 "sqlp.tab.c" 1510 #line 1511 "sqlp.tab.c" 1516 #line 1517 "sqlp.tab.c" 1522 #line 1523 "sqlp.tab.c" 1528 #line 1529 "sqlp.tab.c" 1534 #line 1535 "sqlp.tab.c" 1540 #line 1541 "sqlp.tab.c" 1546 #line 1547 "sqlp.tab.c" 1552 #line 1553 "sqlp.tab.c" 1558 #line 1559 "sqlp.tab.c" 1564 #line 1565 "sqlp.tab.c" 1570 #line 1571 "sqlp.tab.c" 1576 #line 1577 "sqlp.tab.c" 1582 #line 1583 "sqlp.tab.c" 1588 #line 1589 "sqlp.tab.c" 1594 #line 1595 "sqlp.tab.c" 1600 #line 1601 "sqlp.tab.c" 1606 #line 1607 "sqlp.tab.c" 1612 #line 1613 "sqlp.tab.c" 1618 #line 1619 "sqlp.tab.c" 1624 #line 1625 "sqlp.tab.c" 1630 #line 1631 "sqlp.tab.c" 1636 #line 1637 "sqlp.tab.c" 1642 #line 1643 "sqlp.tab.c" 1648 #line 1649 "sqlp.tab.c" 1654 (yyval.node) = (yyvsp[0].node);
1657 #line 1658 "sqlp.tab.c" 1662 { (yyval.node) = (yyvsp[0].node); }
1663 #line 1664 "sqlp.tab.c" 1669 #line 1670 "sqlp.tab.c" 1674 { (yyval.node) = (yyvsp[0].node); }
1675 #line 1676 "sqlp.tab.c" 1681 #line 1682 "sqlp.tab.c" 1686 { (yyval.node) = (yyvsp[0].node); }
1687 #line 1688 "sqlp.tab.c" 1692 { (yyval.node) = (yyvsp[-1].node); }
1693 #line 1694 "sqlp.tab.c" 1699 #line 1700 "sqlp.tab.c" 1707 #line 1708 "sqlp.tab.c" 1715 #line 1716 "sqlp.tab.c" 1723 #line 1724 "sqlp.tab.c" 1731 #line 1732 "sqlp.tab.c" 1736 { (yyval.node) = (yyvsp[0].node); }
1737 #line 1738 "sqlp.tab.c" 1745 #line 1746 "sqlp.tab.c" 1753 #line 1754 "sqlp.tab.c" 1758 { (yyval.node) = (yyvsp[0].node); }
1759 #line 1760 "sqlp.tab.c" 1767 #line 1768 "sqlp.tab.c" 1775 #line 1776 "sqlp.tab.c" 1780 { (yyval.node) = (yyvsp[0].node); }
1781 #line 1782 "sqlp.tab.c" 1789 #line 1790 "sqlp.tab.c" 1794 { (yyval.node) = (yyvsp[0].node); }
1795 #line 1796 "sqlp.tab.c" 1800 { (yyval.node) = (yyvsp[0].node); }
1801 #line 1802 "sqlp.tab.c" 1806 { (yyval.node) = (yyvsp[-1].node); }
1807 #line 1808 "sqlp.tab.c" 1813 #line 1814 "sqlp.tab.c" 1819 #line 1820 "sqlp.tab.c" 1825 #line 1826 "sqlp.tab.c" 1831 #line 1832 "sqlp.tab.c" 1837 #line 1838 "sqlp.tab.c" 1843 #line 1844 "sqlp.tab.c" 1849 #line 1850 "sqlp.tab.c" 1853 #line 1854 "sqlp.tab.c" 1879 const int yylhs = yyr1[yyn] -
YYNTOKENS;
1880 const int yyi = yypgoto[yylhs] + *yyssp;
1881 yystate = (0 <= yyi && yyi <=
YYLAST && yycheck[yyi] == *yyssp
1883 : yydefgoto[yylhs]);
1901 #if ! YYERROR_VERBOSE 1904 # define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \ 1907 char const *yymsgp =
YY_(
"syntax error");
1908 int yysyntax_error_status;
1910 if (yysyntax_error_status == 0)
1912 else if (yysyntax_error_status == 1)
1914 if (yymsg != yymsgbuf)
1920 yymsg_alloc =
sizeof yymsgbuf;
1921 yysyntax_error_status = 2;
1930 if (yysyntax_error_status == 2)
1931 goto yyexhaustedlab;
1933 # undef YYSYNTAX_ERROR 1939 if (yyerrstatus == 3)
1952 yydestruct (
"Error: discarding",
1989 yyn = yypact[yystate];
2006 yydestruct (
"Error: popping",
2007 yystos[yystate], yyvsp);
2041 #if !defined yyoverflow || YYERROR_VERBOSE 2061 yydestruct (
"Cleanup: discarding lookahead",
2068 while (yyssp != yyss)
2070 yydestruct (
"Cleanup: popping",
2071 yystos[*yyssp], yyvsp);
2079 if (yymsg != yymsgbuf)
#define YY_STACK_PRINT(Bottom, Top)
void sqpAssignment(char *column, char *strval, int intval, double dblval, SQLPNODE *expr, int type)
void sqpColumn(char *column)
void sqpOrderColumn(char *col, int dir)
void sqpValue(char *strval, int intval, double dblval, int type)
#define YY_REDUCE_PRINT(Rule)
unsigned short yytype_uint16
#define yypact_value_is_default(Yystate)
#define YYSTACK_ALLOC_MAXIMUM
SQLPNODE * sqpNewColumnNode(char *name)
int sqpOperatorCode(char *)
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
#define yytable_value_is_error(Yytable_value)
#define YY_SYMBOL_PRINT(Title, Type, Value, Location)
void * yyalloc(yy_size_t)
#define YYSTACK_RELOCATE(Stack_alloc, Stack)
SQLPNODE * sqpNewExpressionNode(int oper, SQLPNODE *left, SQLPNODE *right)
void sqpTable(char *table)
void yyerror(const char *s)
#define COMPARISON_OPERATOR
void sqpCommand(int command)
unsigned char yytype_uint8
#define YY_IGNORE_MAYBE_UNINITIALIZED_END
SQLPNODE * sqpNewValueNode(char *strval, int intval, double dblval, int type)
void sqpColumnDef(char *column, int type, int width, int decimals)