52 #define YYBISON_VERSION "3.7.5"
55 #define YYSKELETON_NAME "yacc.c"
78 #define YYERROR_VERBOSE 1
85 # define YY_CAST(Type, Val) static_cast<Type> (Val)
86 # define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast<Type> (Val)
88 # define YY_CAST(Type, Val) ((Type) (Val))
89 # define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val))
93 # if defined __cplusplus
94 # if 201103L <= __cplusplus
95 # define YY_NULLPTR nullptr
100 # define YY_NULLPTR ((void*)0)
200 #line 201 "sqlp.tab.c"
211 #ifndef __PTRDIFF_MAX__
213 # if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
224 #ifdef __INT_LEAST8_MAX__
226 #elif defined YY_STDINT_H
232 #ifdef __INT_LEAST16_MAX__
234 #elif defined YY_STDINT_H
246 # undef UINT_LEAST8_MAX
247 # undef UINT_LEAST16_MAX
248 # define UINT_LEAST8_MAX 255
249 # define UINT_LEAST16_MAX 65535
252 #if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__
254 #elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \
255 && UINT_LEAST8_MAX <= INT_MAX)
257 #elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX
263 #if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__
265 #elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \
266 && UINT_LEAST16_MAX <= INT_MAX)
268 #elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX
275 # if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__
276 # define YYPTRDIFF_T __PTRDIFF_TYPE__
277 # define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__
278 # elif defined PTRDIFF_MAX
282 # define YYPTRDIFF_T ptrdiff_t
283 # define YYPTRDIFF_MAXIMUM PTRDIFF_MAX
285 # define YYPTRDIFF_T long
286 # define YYPTRDIFF_MAXIMUM LONG_MAX
291 # ifdef __SIZE_TYPE__
292 # define YYSIZE_T __SIZE_TYPE__
293 # elif defined size_t
294 # define YYSIZE_T size_t
295 # elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
297 # define YYSIZE_T size_t
299 # define YYSIZE_T unsigned
303 #define YYSIZE_MAXIMUM \
304 YY_CAST (YYPTRDIFF_T, \
305 (YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1) \
306 ? YYPTRDIFF_MAXIMUM \
307 : YY_CAST (YYSIZE_T, -1)))
309 #define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
319 # if defined YYENABLE_NLS && YYENABLE_NLS
321 # include <libintl.h>
322 # define YY_(Msgid) dgettext ("bison-runtime", Msgid)
326 # define YY_(Msgid) Msgid
331 #ifndef YY_ATTRIBUTE_PURE
332 # if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__)
333 # define YY_ATTRIBUTE_PURE __attribute__ ((__pure__))
335 # define YY_ATTRIBUTE_PURE
339 #ifndef YY_ATTRIBUTE_UNUSED
340 # if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__)
341 # define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__))
343 # define YY_ATTRIBUTE_UNUSED
348 #if ! defined lint || defined __GNUC__
349 # define YY_USE(E) ((void) (E))
354 #if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
356 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
357 _Pragma ("GCC diagnostic push") \
358 _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \
359 _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
360 # define YY_IGNORE_MAYBE_UNINITIALIZED_END \
361 _Pragma ("GCC diagnostic pop")
363 # define YY_INITIAL_VALUE(Value) Value
365 #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
366 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
367 # define YY_IGNORE_MAYBE_UNINITIALIZED_END
369 #ifndef YY_INITIAL_VALUE
370 # define YY_INITIAL_VALUE(Value)
373 #if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__
374 # define YY_IGNORE_USELESS_CAST_BEGIN \
375 _Pragma ("GCC diagnostic push") \
376 _Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"")
377 # define YY_IGNORE_USELESS_CAST_END \
378 _Pragma ("GCC diagnostic pop")
380 #ifndef YY_IGNORE_USELESS_CAST_BEGIN
381 # define YY_IGNORE_USELESS_CAST_BEGIN
382 # define YY_IGNORE_USELESS_CAST_END
386 #define YY_ASSERT(E) ((void) (0 && (E)))
388 #if !defined yyoverflow
392 # ifdef YYSTACK_USE_ALLOCA
393 # if YYSTACK_USE_ALLOCA
395 # define YYSTACK_ALLOC __builtin_alloca
396 # elif defined __BUILTIN_VA_ARG_INCR
399 # define YYSTACK_ALLOC __alloca
400 # elif defined _MSC_VER
402 # define alloca _alloca
404 # define YYSTACK_ALLOC alloca
405 # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
408 # ifndef EXIT_SUCCESS
409 # define EXIT_SUCCESS 0
416 # ifdef YYSTACK_ALLOC
418 # define YYSTACK_FREE(Ptr) do { ; } while (0)
419 # ifndef YYSTACK_ALLOC_MAXIMUM
424 # define YYSTACK_ALLOC_MAXIMUM 4032
427 # define YYSTACK_ALLOC YYMALLOC
428 # define YYSTACK_FREE YYFREE
429 # ifndef YYSTACK_ALLOC_MAXIMUM
430 # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
432 # if (defined __cplusplus && ! defined EXIT_SUCCESS \
433 && ! ((defined YYMALLOC || defined malloc) \
434 && (defined YYFREE || defined free)))
436 # ifndef EXIT_SUCCESS
437 # define EXIT_SUCCESS 0
441 # define YYMALLOC malloc
442 # if ! defined malloc && ! defined EXIT_SUCCESS
448 # if ! defined free && ! defined EXIT_SUCCESS
455 #if (! defined yyoverflow \
456 && (! defined __cplusplus \
457 || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
467 # define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)
471 # define YYSTACK_BYTES(N) \
472 ((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE)) \
473 + YYSTACK_GAP_MAXIMUM)
475 # define YYCOPY_NEEDED 1
482 # define YYSTACK_RELOCATE(Stack_alloc, Stack) \
485 YYPTRDIFF_T yynewbytes; \
486 YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
487 Stack = &yyptr->Stack_alloc; \
488 yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
489 yyptr += yynewbytes / YYSIZEOF (*yyptr); \
495 #if defined YYCOPY_NEEDED && YYCOPY_NEEDED
499 # if defined __GNUC__ && 1 < __GNUC__
500 # define YYCOPY(Dst, Src, Count) \
501 __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
503 # define YYCOPY(Dst, Src, Count) \
507 for (yyi = 0; yyi < (Count); yyi++) \
508 (Dst)[yyi] = (Src)[yyi]; \
527 #define YYNSTATES 157
530 #define YYMAXUTOK 294
535 #define YYTRANSLATE(YYX) \
536 (0 <= (YYX) && (YYX) <= YYMAXUTOK \
537 ? YY_CAST (yysymbol_kind_t, yytranslate[YYX]) \
544 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
545 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
546 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
547 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
548 41, 42, 44, 46, 43, 45, 2, 47, 2, 2,
549 2, 2, 2, 2, 2, 2, 2, 2, 2, 40,
550 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
551 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
552 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
553 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
554 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
555 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
556 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
557 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
558 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
559 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
560 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
561 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
562 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
563 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
564 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
565 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
566 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
567 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
568 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
569 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
570 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
571 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
572 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
580 0, 97, 97, 98, 99, 100, 101, 102, 103, 104,
581 108, 109, 110, 114, 118, 122, 123, 124, 125, 129,
582 130, 134, 135, 139, 140, 145, 146, 150, 151, 152,
583 153, 154, 155, 156, 160, 161, 165, 166, 170, 174,
584 178, 179, 180, 181, 182, 183, 184, 185, 186, 187,
585 188, 189, 193, 194, 198, 202, 206, 213, 214, 218,
586 219, 223, 224, 225, 230, 233, 236, 239, 246, 247,
587 250, 256, 257, 260, 266, 267, 273, 274, 275, 280,
588 281, 282, 287, 290, 290, 293, 294, 297
593 #define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State])
602 static const char *
const yytname[] =
604 "\"end of file\"",
"error",
"\"invalid token\"",
"COMPARISON_OPERATOR",
605 "NAME",
"STRING",
"INTNUM",
"FLOATNUM",
"ADD",
"DROP",
"COLUMN",
"EQUAL",
606 "SELECT",
"FROM",
"WHERE",
"DELETE",
"INSERT",
"INTO",
"VALUES",
607 "UPDATE",
"SET",
"AND",
"OR",
"NOT",
"ALTER",
"TABLE",
"CREATE",
608 "NULL_VALUE",
"VARCHAR",
"INT",
"INTEGER",
"DOUBLE",
"PRECISION",
"DATE",
609 "TIME",
"ORDER",
"BY",
"IS",
"ASC",
"DESC",
"';'",
"'('",
"')'",
"','",
610 "'*'",
"'-'",
"'+'",
"'/'",
"$accept",
"y_sql",
"y_alter",
"y_create",
611 "y_drop",
"y_select",
"y_delete",
"y_insert",
"y_update",
"y_columndefs",
612 "y_columndef",
"y_columns",
"y_column_list",
"y_table",
"y_values",
613 "y_value_list",
"y_assignments",
"y_assignment",
"y_condition",
614 "y_sub_condition",
"y_sub_condition2",
"y_boolean",
"y_comparison",
615 "y_expression",
"y_product",
"y_term",
"y_atom",
"y_value",
"y_column",
616 "y_order",
"y_order_asc",
"y_order_desc",
YY_NULLPTR
622 return yytname[yysymbol];
631 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
632 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
633 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
634 285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
635 59, 40, 41, 44, 42, 45, 43, 47
639 #define YYPACT_NINF (-52)
641 #define yypact_value_is_default(Yyn) \
642 ((Yyn) == YYPACT_NINF)
644 #define YYTABLE_NINF (-1)
646 #define yytable_value_is_error(Yyn) \
653 64, -8, 3, 11, 5, 32, 49, 57, 2, -52,
654 -52, -52, -52, -52, -52, -52, 32, -52, -52, 39,
655 41, 32, 32, -52, 102, 32, 32, -52, -52, -52,
656 32, 85, 109, 7, 95, 10, 83, 37, -52, 8,
657 84, 3, -52, 115, -10, -52, 6, 117, 124, 8,
658 93, -52, -52, -52, -52, 8, 8, 55, -52, 108,
659 110, -52, -52, 0, 31, -52, -52, -52, -52, 23,
660 90, 50, 8, 95, 79, 124, -52, 129, 24, -52,
661 99, 131, -52, -16, -2, 55, -52, 8, 8, 55,
662 55, 111, 113, 55, 55, 55, 55, -52, -52, -52,
663 -52, 80, 51, 118, -52, 59, -52, -52, 96, -52,
664 -52, 107, -52, -52, -52, -52, -52, 124, 105, 78,
665 -52, -52, -52, -52, -52, 69, 110, -52, 59, 59,
666 -52, -52, 31, 31, -52, -52, -52, -52, -52, 58,
667 -52, 136, -52, -52, 131, -52, -52, -52, -52, -52,
668 -52, 112, 101, -52, -52, -52, -52
676 0, 0, 0, 0, 0, 0, 0, 0, 0, 2,
677 3, 4, 6, 8, 5, 7, 0, 36, 34, 0,
678 35, 0, 0, 38, 0, 0, 0, 1, 9, 14,
679 0, 0, 19, 0, 0, 0, 0, 15, 37, 0,
680 0, 0, 21, 0, 23, 52, 0, 0, 0, 0,
681 0, 82, 79, 80, 81, 0, 0, 0, 20, 56,
682 57, 59, 61, 0, 68, 71, 74, 76, 77, 0,
683 0, 0, 0, 0, 0, 0, 11, 0, 0, 25,
684 16, 0, 63, 0, 0, 0, 75, 0, 0, 0,
685 0, 0, 0, 0, 0, 0, 0, 41, 42, 44,
686 40, 0, 0, 0, 54, 55, 24, 53, 0, 28,
687 29, 30, 32, 33, 10, 12, 13, 0, 0, 85,
688 17, 83, 84, 62, 78, 0, 58, 60, 65, 64,
689 67, 66, 70, 69, 72, 73, 43, 45, 39, 0,
690 22, 0, 31, 26, 0, 86, 87, 47, 48, 50,
691 46, 0, 0, 18, 49, 51, 27
697 -52, -52, -52, -52, -52, -52, -52, -52, -52, -52,
698 -48, 103, -52, 76, 42, -52, -52, 73, 9, 91,
699 61, -47, -52, -51, 27, -25, -52, -52, -52, 12,
706 0, 8, 9, 10, 11, 12, 13, 14, 15, 78,
707 76, 19, 20, 24, 42, 102, 44, 45, 58, 59,
708 60, 61, 62, 63, 64, 65, 66, 67, 68, 120,
717 79, 89, 27, 89, 72, 84, 87, 17, 82, 90,
718 74, 90, 51, 52, 53, 54, 75, 16, 46, 47,
719 105, 91, 22, 91, 21, 40, 123, 114, 97, 98,
720 99, 55, 86, 73, 125, 92, 23, 92, 128, 129,
721 124, 127, 28, 93, 94, 93, 94, 18, 41, 56,
722 100, 49, 30, 57, 51, 52, 53, 54, 80, 51,
723 52, 53, 54, 147, 148, 149, 116, 117, 101, 143,
724 134, 135, 50, 1, 25, 95, 2, 104, 96, 3,
725 4, 106, 26, 5, 31, 150, 136, 137, 6, 38,
726 7, 85, 29, 138, 139, 57, 85, 32, 33, 43,
727 57, 35, 36, 151, 93, 94, 37, 108, 109, 110,
728 111, 124, 112, 113, 93, 94, 145, 146, 154, 155,
729 132, 133, 34, 39, 48, 69, 71, 77, 74, 81,
730 87, 88, 103, 115, 118, 119, 40, 141, 130, 142,
731 131, 144, 152, 156, 70, 140, 107, 83, 126, 0,
732 0, 0, 0, 0, 0, 0, 153
737 48, 3, 0, 3, 14, 56, 22, 4, 55, 11,
738 4, 11, 4, 5, 6, 7, 10, 25, 8, 9,
739 71, 23, 17, 23, 13, 18, 42, 75, 5, 6,
740 7, 23, 57, 43, 85, 37, 4, 37, 89, 90,
741 42, 88, 40, 45, 46, 45, 46, 44, 41, 41,
742 27, 14, 13, 45, 4, 5, 6, 7, 49, 4,
743 5, 6, 7, 5, 6, 7, 42, 43, 45, 117,
744 95, 96, 35, 9, 25, 44, 12, 27, 47, 15,
745 16, 72, 25, 19, 43, 27, 6, 7, 24, 4,
746 26, 41, 16, 42, 43, 45, 41, 21, 22, 4,
747 45, 25, 26, 45, 45, 46, 30, 28, 29, 30,
748 31, 42, 33, 34, 45, 46, 38, 39, 6, 7,
749 93, 94, 20, 14, 41, 41, 11, 10, 4, 36,
750 22, 21, 42, 4, 35, 4, 18, 41, 27, 32,
751 27, 36, 6, 42, 41, 103, 73, 56, 87, -1,
752 -1, -1, -1, -1, -1, -1, 144
759 0, 9, 12, 15, 16, 19, 24, 26, 49, 50,
760 51, 52, 53, 54, 55, 56, 25, 4, 44, 59,
761 60, 13, 17, 4, 61, 25, 25, 0, 40, 61,
762 13, 43, 61, 61, 20, 61, 61, 61, 4, 14,
763 18, 41, 62, 4, 64, 65, 8, 9, 41, 14,
764 35, 4, 5, 6, 7, 23, 41, 45, 66, 67,
765 68, 69, 70, 71, 72, 73, 74, 75, 76, 41,
766 59, 11, 14, 43, 4, 10, 58, 10, 57, 58,
767 66, 36, 69, 67, 71, 41, 73, 22, 21, 3,
768 11, 23, 37, 45, 46, 44, 47, 5, 6, 7,
769 27, 45, 63, 42, 27, 71, 66, 65, 28, 29,
770 30, 31, 33, 34, 58, 4, 42, 43, 35, 4,
771 77, 78, 79, 42, 42, 71, 68, 69, 71, 71,
772 27, 27, 72, 72, 73, 73, 6, 7, 42, 43,
773 62, 41, 32, 58, 36, 38, 39, 5, 6, 7,
774 27, 45, 6, 77, 6, 7, 42
780 0, 48, 49, 49, 49, 49, 49, 49, 49, 49,
781 50, 50, 50, 51, 52, 53, 53, 53, 53, 54,
782 54, 55, 55, 56, 56, 57, 57, 58, 58, 58,
783 58, 58, 58, 58, 59, 59, 60, 60, 61, 62,
784 63, 63, 63, 63, 63, 63, 63, 63, 63, 63,
785 63, 63, 64, 64, 65, 65, 66, 67, 67, 68,
786 68, 69, 69, 69, 70, 70, 70, 70, 71, 71,
787 71, 72, 72, 72, 73, 73, 74, 74, 74, 75,
788 75, 75, 76, 77, 77, 78, 78, 79
794 0, 2, 1, 1, 1, 1, 1, 1, 1, 2,
795 6, 5, 6, 6, 3, 4, 6, 7, 9, 3,
796 5, 4, 7, 4, 6, 1, 3, 5, 2, 2,
797 2, 3, 2, 2, 1, 1, 1, 3, 1, 4,
798 1, 1, 1, 2, 1, 2, 3, 3, 3, 4,
799 3, 4, 1, 3, 3, 3, 1, 1, 3, 1,
800 3, 1, 3, 2, 3, 3, 3, 3, 1, 3,
801 3, 1, 3, 3, 1, 2, 1, 1, 3, 1,
802 1, 1, 1, 1, 1, 1, 2, 2
808 #define yyerrok (yyerrstatus = 0)
809 #define yyclearin (yychar = YYEMPTY)
811 #define YYACCEPT goto yyacceptlab
812 #define YYABORT goto yyabortlab
813 #define YYERROR goto yyerrorlab
816 #define YYRECOVERING() (!!yyerrstatus)
818 #define YYBACKUP(Token, Value) \
820 if (yychar == YYEMPTY) \
824 YYPOPSTACK (yylen); \
830 yyerror (YY_("syntax error: cannot back up")); \
837 #define YYERRCODE YYUNDEF
845 # define YYFPRINTF fprintf
848 # define YYDPRINTF(Args) \
855 # ifndef YY_LOCATION_PRINT
856 # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
860 # define YY_SYMBOL_PRINT(Title, Kind, Value, Location) \
864 YYFPRINTF (stderr, "%s ", Title); \
865 yy_symbol_print (stderr, \
867 YYFPRINTF (stderr, "\n"); \
877 yy_symbol_value_print (FILE *yyo,
880 FILE *yyoutput = yyo;
886 YYPRINT (yyo, yytoknum[yykind], *yyvaluep);
899 yy_symbol_print (FILE *yyo,
903 yykind <
YYNTOKENS ?
"token" :
"nterm", yysymbol_name (yykind));
905 yy_symbol_value_print (yyo, yykind, yyvaluep);
918 for (; yybottom <= yytop; yybottom++)
920 int yybot = *yybottom;
926 # define YY_STACK_PRINT(Bottom, Top) \
929 yy_stack_print ((Bottom), (Top)); \
941 int yylno = yyrline[yyrule];
942 int yynrhs = yyr2[yyrule];
944 YYFPRINTF (stderr,
"Reducing stack by rule %d (line %d):\n",
947 for (yyi = 0; yyi < yynrhs; yyi++)
950 yy_symbol_print (stderr,
952 &yyvsp[(yyi + 1) - (yynrhs)]);
957 # define YY_REDUCE_PRINT(Rule) \
960 yy_reduce_print (yyssp, yyvsp, Rule); \
967 # define YYDPRINTF(Args) ((void) 0)
968 # define YY_SYMBOL_PRINT(Title, Kind, Value, Location)
969 # define YY_STACK_PRINT(Bottom, Top)
970 # define YY_REDUCE_PRINT(Rule)
976 # define YYINITDEPTH 200
987 # define YYMAXDEPTH 10000
1000 yydestruct (
const char *yymsg,
1034 int yyerrstatus = 0;
1063 #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
1069 YYDPRINTF ((stderr,
"Starting parse\n"));
1088 YYDPRINTF ((stderr,
"Entering state %d\n", yystate));
1095 if (yyss + yystacksize - 1 <= yyssp)
1096 #if !defined yyoverflow && !defined YYSTACK_RELOCATE
1097 goto yyexhaustedlab;
1103 # if defined yyoverflow
1115 yyoverflow (
YY_(
"memory exhausted"),
1116 &yyss1, yysize *
YYSIZEOF (*yyssp),
1117 &yyvs1, yysize *
YYSIZEOF (*yyvsp),
1125 goto yyexhaustedlab;
1136 goto yyexhaustedlab;
1139 # undef YYSTACK_RELOCATE
1145 yyssp = yyss + yysize - 1;
1146 yyvsp = yyvs + yysize - 1;
1149 YYDPRINTF ((stderr,
"Stack size increased to %ld\n",
1150 YY_CAST (
long, yystacksize)));
1153 if (yyss + yystacksize - 1 <= yyssp)
1172 yyn = yypact[yystate];
1181 YYDPRINTF ((stderr,
"Reading a token\n"));
1189 YYDPRINTF ((stderr,
"Now at end of input.\n"));
1210 if (yyn < 0 ||
YYLAST < yyn || yycheck[yyn] != yytoken)
1242 yyn = yydefact[yystate];
1263 yyval = yyvsp[1-yylen];
1272 #line 1273 "sqlp.tab.c"
1278 #line 1279 "sqlp.tab.c"
1284 #line 1285 "sqlp.tab.c"
1290 #line 1291 "sqlp.tab.c"
1296 #line 1297 "sqlp.tab.c"
1302 #line 1303 "sqlp.tab.c"
1308 #line 1309 "sqlp.tab.c"
1314 #line 1315 "sqlp.tab.c"
1320 #line 1321 "sqlp.tab.c"
1326 #line 1327 "sqlp.tab.c"
1332 #line 1333 "sqlp.tab.c"
1338 #line 1339 "sqlp.tab.c"
1344 #line 1345 "sqlp.tab.c"
1350 #line 1351 "sqlp.tab.c"
1356 #line 1357 "sqlp.tab.c"
1362 #line 1363 "sqlp.tab.c"
1368 #line 1369 "sqlp.tab.c"
1374 #line 1375 "sqlp.tab.c"
1380 #line 1381 "sqlp.tab.c"
1386 #line 1387 "sqlp.tab.c"
1392 #line 1393 "sqlp.tab.c"
1398 #line 1399 "sqlp.tab.c"
1404 #line 1405 "sqlp.tab.c"
1410 #line 1411 "sqlp.tab.c"
1416 #line 1417 "sqlp.tab.c"
1422 #line 1423 "sqlp.tab.c"
1428 #line 1429 "sqlp.tab.c"
1434 #line 1435 "sqlp.tab.c"
1440 #line 1441 "sqlp.tab.c"
1446 #line 1447 "sqlp.tab.c"
1452 #line 1453 "sqlp.tab.c"
1458 #line 1459 "sqlp.tab.c"
1464 #line 1465 "sqlp.tab.c"
1470 #line 1471 "sqlp.tab.c"
1476 #line 1477 "sqlp.tab.c"
1482 #line 1483 "sqlp.tab.c"
1488 #line 1489 "sqlp.tab.c"
1494 #line 1495 "sqlp.tab.c"
1500 #line 1501 "sqlp.tab.c"
1506 (yyval.
node) = (yyvsp[0].node);
1509 #line 1510 "sqlp.tab.c"
1514 { (yyval.
node) = (yyvsp[0].node); }
1515 #line 1516 "sqlp.tab.c"
1521 #line 1522 "sqlp.tab.c"
1526 { (yyval.
node) = (yyvsp[0].node); }
1527 #line 1528 "sqlp.tab.c"
1533 #line 1534 "sqlp.tab.c"
1538 { (yyval.
node) = (yyvsp[0].node); }
1539 #line 1540 "sqlp.tab.c"
1544 { (yyval.
node) = (yyvsp[-1].node); }
1545 #line 1546 "sqlp.tab.c"
1551 #line 1552 "sqlp.tab.c"
1559 #line 1560 "sqlp.tab.c"
1567 #line 1568 "sqlp.tab.c"
1575 #line 1576 "sqlp.tab.c"
1583 #line 1584 "sqlp.tab.c"
1588 { (yyval.
node) = (yyvsp[0].node); }
1589 #line 1590 "sqlp.tab.c"
1597 #line 1598 "sqlp.tab.c"
1605 #line 1606 "sqlp.tab.c"
1610 { (yyval.
node) = (yyvsp[0].node); }
1611 #line 1612 "sqlp.tab.c"
1619 #line 1620 "sqlp.tab.c"
1627 #line 1628 "sqlp.tab.c"
1632 { (yyval.
node) = (yyvsp[0].node); }
1633 #line 1634 "sqlp.tab.c"
1641 #line 1642 "sqlp.tab.c"
1646 { (yyval.
node) = (yyvsp[0].node); }
1647 #line 1648 "sqlp.tab.c"
1652 { (yyval.
node) = (yyvsp[0].node); }
1653 #line 1654 "sqlp.tab.c"
1658 { (yyval.
node) = (yyvsp[-1].node); }
1659 #line 1660 "sqlp.tab.c"
1665 #line 1666 "sqlp.tab.c"
1671 #line 1672 "sqlp.tab.c"
1677 #line 1678 "sqlp.tab.c"
1683 #line 1684 "sqlp.tab.c"
1689 #line 1690 "sqlp.tab.c"
1695 #line 1696 "sqlp.tab.c"
1701 #line 1702 "sqlp.tab.c"
1705 #line 1706 "sqlp.tab.c"
1731 const int yylhs = yyr1[yyn] -
YYNTOKENS;
1732 const int yyi = yypgoto[yylhs] + *yyssp;
1733 yystate = (0 <= yyi && yyi <=
YYLAST && yycheck[yyi] == *yyssp
1735 : yydefgoto[yylhs]);
1755 if (yyerrstatus == 3)
1768 yydestruct (
"Error: discarding",
1806 yyn = yypact[yystate];
1823 yydestruct (
"Error: popping",
1858 #if !defined yyoverflow
1878 yydestruct (
"Cleanup: discarding lookahead",
1885 while (yyssp != yyss)
1887 yydestruct (
"Cleanup: popping",
SQLPNODE * sqpNewValueNode(char *strval, int intval, double dblval, int type)
void sqpValue(char *strval, int intval, double dblval, int type)
SQLPNODE * sqpNewExpressionNode(int oper, SQLPNODE *left, SQLPNODE *right)
int sqpOperatorCode(char *)
void sqpColumn(char *column)
void sqpCommand(int command)
SQLPNODE * sqpNewColumnNode(char *name)
void yyerror(const char *s)
void sqpColumnDef(char *column, int type, int width, int decimals)
void sqpOrderColumn(char *col, int dir)
void sqpTable(char *table)
void sqpAssignment(char *column, char *strval, int intval, double dblval, SQLPNODE *expr, int type)
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
@ YYSYMBOL_y_sub_condition2
@ YYSYMBOL_COMPARISON_OPERATOR
@ YYSYMBOL_y_sub_condition
#define YY_IGNORE_MAYBE_UNINITIALIZED_END
#define YY_IGNORE_USELESS_CAST_END
#define YY_REDUCE_PRINT(Rule)
#define YY_CAST(Type, Val)
#define YY_ACCESSING_SYMBOL(State)
#define YY_SYMBOL_PRINT(Title, Kind, Value, Location)
unsigned char yytype_uint8
#define YY_STACK_PRINT(Bottom, Top)
#define YY_IGNORE_USELESS_CAST_BEGIN
#define yytable_value_is_error(Yyn)
#define YY_ATTRIBUTE_UNUSED
unsigned short yytype_uint16
#define YYSTACK_RELOCATE(Stack_alloc, Stack)
#define yypact_value_is_default(Yyn)
void * yyalloc(yy_size_t)