->AttachQueryTree(rnode);
107 env->ForgetPoolNodes(node1, node2);
124 env->ForgetPoolNodes(node, 0);
137 env->ForgetPoolNodes(node, 0);
143 #line 144 "query_parser_bison.tab.c" 151 #ifdef YYERROR_VERBOSE 152 # undef YYERROR_VERBOSE 153 # define YYERROR_VERBOSE 1 155 # define YYERROR_VERBOSE 0 159 #ifndef YYTOKEN_TABLE 160 # define YYTOKEN_TABLE 0 200 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED 202 # define YYSTYPE_IS_TRIVIAL 1 203 # define yystype YYSTYPE 204 # define YYSTYPE_IS_DECLARED 1 212 #line 213 "query_parser_bison.tab.c" 226 #elif (defined __STDC__ || defined __C99__FUNC__ \ 227 || defined __cplusplus || defined _MSC_VER) 246 # ifdef __SIZE_TYPE__ 247 # define YYSIZE_T __SIZE_TYPE__ 248 # elif defined size_t 249 # define YYSIZE_T size_t 250 # elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \ 251 || defined __cplusplus || defined _MSC_VER) 253 # define YYSIZE_T size_t 255 # define YYSIZE_T unsigned int 259 #define YYSIZE_MAXIMUM ((YYSIZE_T) -1) 264 # include <libintl.h> 265 # define YY_(msgid) dgettext ("bison-runtime", msgid)
269 # define YY_(msgid) msgid 274 #if ! defined lint || defined __GNUC__ 275 # define YYUSE(e) ((void) (e)) 284 #if (defined __STDC__ || defined __C99__FUNC__ \ 285 || defined __cplusplus || defined _MSC_VER) 298 #if ! defined yyoverflow || YYERROR_VERBOSE 302 # ifdef YYSTACK_USE_ALLOCA 303 # if YYSTACK_USE_ALLOCA 305 # define YYSTACK_ALLOC __builtin_alloca 306 # elif defined __BUILTIN_VA_ARG_INCR 309 # define YYSTACK_ALLOC __alloca 310 # elif defined _MSC_VER 312 # define alloca _alloca 314 # define YYSTACK_ALLOC alloca 315 # if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ 316 || defined __cplusplus || defined _MSC_VER) 326 # ifdef YYSTACK_ALLOC 328 # define YYSTACK_FREE(Ptr) do { ; } while (YYID (0)) 329 # ifndef YYSTACK_ALLOC_MAXIMUM 334 # define YYSTACK_ALLOC_MAXIMUM 4032 337 # define YYSTACK_ALLOC YYMALLOC 338 # define YYSTACK_FREE YYFREE 339 # ifndef YYSTACK_ALLOC_MAXIMUM 340 # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM 342 # if (defined __cplusplus && ! defined _STDLIB_H \ 343 && ! ((defined YYMALLOC || defined malloc) \ 344 && (defined YYFREE || defined free))) 351 # define YYMALLOC malloc 352 # if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ 353 || defined __cplusplus || defined _MSC_VER) 359 # if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ 360 || defined __cplusplus || defined _MSC_VER) 368 #if (! defined yyoverflow \ 369 && (! defined __cplusplus \ 370 || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) 380 # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) 384 # define YYSTACK_BYTES(N) \ 385 ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ 386 + YYSTACK_GAP_MAXIMUM) 391 # if defined __GNUC__ && 1 < __GNUC__ 392 # define YYCOPY(To, From, Count) \ 393 __builtin_memcpy (To, From, (Count) * sizeof (*(From))) 395 # define YYCOPY(To, From, Count) \ 399 for (yyi = 0; yyi < (Count); yyi++) \ 400 (To)[yyi] = (From)[yyi]; \ 411 # define YYSTACK_RELOCATE(Stack_alloc, Stack) \ 414 YYSIZE_T yynewbytes; \ 415 YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ 416 Stack = &yyptr->Stack_alloc; \ 417 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ 418 yyptr += yynewbytes / sizeof (*yyptr); \ 440 #define YYMAXUTOK 282 442 #define YYTRANSLATE(YYX) \ 443 ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) 4480, 2, 2, 2, 2, 2, 2, 2, 2, 2,
4492, 2, 2, 2, 2, 2, 2, 2, 2, 2,
4502, 2, 2, 2, 2, 2, 2, 2, 2, 2,
4512, 2, 2, 2, 2, 2, 2, 2, 2, 2,
45228, 29, 2, 2, 30, 2, 2, 2, 2, 2,
4532, 2, 2, 2, 2, 2, 2, 2, 2, 2,
4542, 2, 2, 2, 2, 2, 2, 2, 2, 2,
4552, 2, 2, 2, 2, 2, 2, 2, 2, 2,
4562, 2, 2, 2, 2, 2, 2, 2, 2, 2,
4572, 2, 2, 2, 2, 2, 2, 2, 2, 2,
4582, 2, 2, 2, 2, 2, 2, 2, 2, 2,
4592, 2, 2, 2, 2, 2, 2, 2, 2, 2,
4602, 2, 2, 2, 2, 2, 2, 2, 2, 2,
4612, 2, 2, 2, 2, 2, 2, 2, 2, 2,
4622, 2, 2, 2, 2, 2, 2, 2, 2, 2,
4632, 2, 2, 2, 2, 2, 2, 2, 2, 2,
4642, 2, 2, 2, 2, 2, 2, 2, 2, 2,
4652, 2, 2, 2, 2, 2, 2, 2, 2, 2,
4662, 2, 2, 2, 2, 2, 2, 2, 2, 2,
4672, 2, 2, 2, 2, 2, 2, 2, 2, 2,
4682, 2, 2, 2, 2, 2, 2, 2, 2, 2,
4692, 2, 2, 2, 2, 2, 2, 2, 2, 2,
4702, 2, 2, 2, 2, 2, 2, 2, 2, 2,
4712, 2, 2, 2, 2, 2, 2, 2, 2, 2,
4722, 2, 2, 2, 2, 2, 2, 2, 2, 2,
4732, 2, 2, 2, 2, 2, 1, 2, 3, 4,
4745, 6, 7, 8, 9, 10, 11, 12, 13, 14,
47515, 16, 17, 18, 19, 20, 21, 22, 23, 24,
4840, 0, 3, 5, 7, 13, 14, 17, 22, 26,
48528, 32, 34, 36, 38, 40, 42, 46, 48, 52,
48654, 56, 58, 60, 63, 66, 70, 74, 78, 82,
48786, 92, 98, 102, 106, 110, 116, 122, 126, 130,
488134, 138, 142, 146, 149, 152, 155, 158, 161, 165,
49532, 0, -1, 41, -1, 33, -1, 6, 36, 7,
49636, 34, -1, -1, 8, 41, -1, 9, 28, 39,
49729, -1, 9, 28, 29, -1, 37, -1, 36, 30,
49837, -1, 5, -1, 4, -1, 3, -1, 35, -1,
49937, -1, 38, 30, 37, -1, 41, -1, 39, 30,
50041, -1, 38, -1, 33, -1, 37, -1, 35, -1,
5014, 3, -1, 41, 41, -1, 28, 41, 29, -1,
50241, 10, 41, -1, 41, 13, 41, -1, 41, 12,
50341, -1, 41, 14, 41, -1, 37, 22, 37, 10,
50437, -1, 37, 23, 37, 10, 37, -1, 41, 15,
50541, -1, 37, 24, 37, -1, 37, 25, 37, -1,
50637, 26, 28, 40, 29, -1, 37, 27, 28, 40,
50729, -1, 41, 16, 41, -1, 41, 17, 41, -1,
50841, 18, 41, -1, 41, 19, 41, -1, 41, 20,
50941, -1, 41, 21, 41, -1, 11, 41, -1, 1,
5104, -1, 1, 3, -1, 1, 5, -1, 41, 1,
511-1, 28, 41, 1, -1, 41, 12, 1, -1, 41,
51214, 1, -1, 41, 11, 1, -1, 41, 10, 1,
5190, 128, 128, 129, 136, 176, 180, 190, 199, 210,
520214, 226, 231, 236, 240, 247, 251, 259, 263, 272,
521274, 278, 283, 288, 296, 307, 317, 322, 327, 332,
522337, 350, 364, 369, 374, 379, 390, 401, 406, 410,
523414, 418, 422, 433, 442, 451, 460, 469, 481, 491,
528 #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE 533 "$end",
"error",
"$undefined",
"IDENT",
"STRING",
"NUM_INT",
"SELECT",
534 "FROM",
"WHERE",
"FUNCTION",
"AND",
"NOT",
"OR",
"SUB",
"XOR",
"RANGE",
535 "EQ",
"NOTEQ",
"GT",
"GE",
"LT",
"LE",
"BETWEEN",
"NOT_BETWEEN",
"LIKE",
536 "NOT_LIKE",
"IN",
"NOT_IN",
"'('",
"')'",
"','",
"$accept",
"input",
537 "select_clause",
"opt_where",
"functional",
"obj_list",
"scalar_value",
538 "scalar_list",
"exp_list",
"in_sub_expr",
"exp", 0
5470, 256, 257, 258, 259, 260, 261, 262, 263, 264,
548265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
549275, 276, 277, 278, 279, 280, 281, 282, 40, 41,
5570, 31, 32, 32, 33, 34, 34, 35, 35, 36,
55836, 37, 37, 37, 37, 38, 38, 39, 39, 40,
55940, 41, 41, 41, 41, 41, 41, 41, 41, 41,
56041, 41, 41, 41, 41, 41, 41, 41, 41, 41,
56141, 41, 41, 41, 41, 41, 41, 41, 41, 41,
5680, 2, 1, 1, 5, 0, 2, 4, 3, 1,
5693, 1, 1, 1, 1, 1, 3, 1, 3, 1,
5701, 1, 1, 2, 2, 3, 3, 3, 3, 3,
5715, 5, 3, 3, 3, 5, 5, 3, 3, 3,
5723, 3, 3, 2, 2, 2, 2, 2, 3, 3,
5810, 0, 13, 12, 11, 0, 0, 0, 0, 0,
5823, 14, 21, 0, 45, 44, 46, 23, 12, 14,
5830, 9, 0, 0, 0, 1, 0, 0, 0, 0,
5840, 0, 47, 0, 0, 0, 0, 0, 0, 0,
5850, 0, 0, 0, 0, 0, 0, 0, 8, 0,
5860, 47, 25, 0, 0, 33, 34, 0, 0, 52,
5870, 51, 49, 0, 53, 0, 50, 0, 0, 0,
5880, 0, 0, 0, 0, 5, 10, 7, 0, 0,
5890, 20, 15, 19, 0, 0, 0, 4, 0, 30,
596-1, 9, 81, 87, 11, 20, 12, 83, 49, 84,
602 #define YYPACT_NINF -26 605503, 46, -26, -1, -26, 62, -19, 512, 512, 14,
606-26, -26, 71, 461, -26, -26, -26, -26, -26, -26,
607-6, -26, 59, 109, 482, -26, 62, 62, 62, 62,
608-11, -7, 46, 521, 532, 541, 550, 561, 512, 512,
609512, 512, 512, 512, 512, 131, 62, 62, -26, -25,
610395, 15, -26, 13, 16, -26, -26, 7, 7, 46,
611153, 46, 46, 175, 46, 197, 46, 219, 241, 263,
612285, 307, 329, 351, 373, -5, -26, -26, 512, 62,
61362, -26, -26, 2, 17, 27, 512, -26, 417, -26,
614-26, 62, -26, -26, 439, -26
620-26, -26, 57, -26, 1, 23, 26, -26, -26, 3,
628 #define YYTABLE_NINF -49 63113, 46, 17, 86, 77, 78, 19, 23, 24, 22,
6322, 18, 4, 5, 25, -48, 6, 57, 14, 15,
63316, 58, 50, 79, 47, 47, 80, 19, 19, 19,
63419, 21, 91, 60, 23, 63, 65, 67, 68, 69,
63570, 71, 72, 73, 74, -48, 92, 19, 19, 14,
63615, 16, 53, 54, 55, 56, 93, 10, 19, 19,
6371, 85, 2, 3, 4, 2, 18, 4, 6, 75,
6387, 6, 21, 76, 0, 0, 0, 0, 88, 0,
63919, 19, 0, 82, 82, 0, 94, 8, 48, 0,
6400, 0, 19, 26, 27, 28, 29, 30, 31, 0,
6410, 0, 0, 0, 0, 89, 90, 0, 0, -43,
64232, 0, 2, 3, 4, 0, 0, 95, 6, -43,
643-43, 35, 36, 37, 38, 39, 40, 41, 42, 43,
64444, -24, 32, 0, 2, 3, 4, 8, -43, -43,
6456, 33, 34, 35, 36, 37, 38, 39, 40, 41,
64642, 43, 44, -26, 32, 0, 2, 3, 4, 8,
647-24, -24, 6, -26, 34, 35, 36, 37, 38, 39,
64840, 41, 42, 43, 44, -28, 32, 0, 2, 3,
6494, 8, -26, -26, 6, -28, -28, -28, 36, 37,
65038, 39, 40, 41, 42, 43, 44, -27, 32, 0,
6512, 3, 4, 8, -28, -28, 6, -27, -27, -27,
652-27, 37, 38, 39, 40, 41, 42, 43, 44, -29,
65332, 0, 2, 3, 4, 8, -27, -27, 6, -29,
654-29, -29, -29, -29, 38, 39, 40, 41, 42, 43,
65544, -32, 32, 0, 2, 3, 4, 8, -29, -29,
6566, -32, -32, -32, -32, -32, -32, 39, 40, 41,
65742, 43, 44, -37, 32, 0, 2, 3, 4, 8,
658-32, -32, 6, -37, -37, -37, -37, -37, -37, -37,
65940, 41, 42, 43, 44, -38, 32, 0, 2, 3,
6604, 8, -37, -37, 6, -38, -38, -38, -38, -38,
661-38, -38, -38, 41, 42, 43, 44, -39, 32, 0,
6622, 3, 4, 8, -38, -38, 6, -39, -39, -39,
663-39, -39, -39, -39, -39, -39, 42, 43, 44, -40,
66432, 0, 2, 3, 4, 8, -39, -39, 6, -40,
665-40, -40, -40, -40, -40, -40, -40, -40, -40, 43,
66644, -41, 32, 0, 2, 3, 4, 8, -40, -40,
6676, -41, -41, -41, -41, -41, -41, -41, -41, -41,
668-41, -41, 44, -42, 32, 0, 2, 3, 4, 8,
669-41, -41, 6, -42, -42, -42, -42, -42, -42, -42,
670-42, -42, -42, -42, -42, 0, 32, 0, 2, 3,
6714, 8, -42, -42, 6, 33, 34, 35, 36, 37,
67238, 39, 40, 41, 42, 43, 44, 0, 32, 0,
6732, 3, 4, 8, -17, -17, 6, 33, 34, 35,
67436, 37, 38, 39, 40, 41, 42, 43, 44, -6,
67532, 0, 2, 3, 4, 8, -18, -18, 6, 33,
67634, 35, 36, 37, 38, 39, 40, 41, 42, 43,
67744, -2, 32, 0, 2, 3, 4, 8, -6, 0,
6786, 33, 34, 35, 36, 37, 38, 39, 40, 41,
67942, 43, 44, 51, 0, 2, 3, 4, 0, 8,
6800, 6, 33, 34, 35, 36, 37, 38, 39, 40,
68141, 42, 43, 44, 1, 0, 2, 3, 4, 5,
6828, 52, 6, 1, 7, 2, 3, 4, 0, 0,
6830, 6, 59, 7, 2, 3, 4, 0, 0, 0,
6846, 8, 7, 61, 0, 2, 3, 4, 0, 0,
6858, 6, 62, 7, 2, 3, 4, 0, 0, 8,
6866, 64, 7, 2, 3, 4, 0, 0, 0, 6,
6878, 7, 66, 0, 2, 3, 4, 0, 0, 8,
6886, 0, 7, 0, 0, 0, 0, 0, 8, 0,
6890, 0, 0, 0, 0, 0, 0, 0, 0, 8
6940, 7, 3, 8, 29, 30, 5, 7, 8, 28,
6953, 4, 5, 6, 0, 0, 9, 28, 3, 4,
6965, 28, 22, 10, 30, 30, 10, 26, 27, 28,
69729, 5, 30, 33, 34, 35, 36, 37, 38, 39,
69840, 41, 42, 43, 44, 30, 29, 46, 47, 3,
6994, 5, 26, 27, 28, 29, 29, 0, 57, 58,
7001, 58, 3, 4, 5, 3, 4, 5, 9, 46,
70111, 9, 46, 47, -1, -1, -1, -1, 78, -1,
70279, 80, -1, 57, 58, -1, 86, 28, 29, -1,
703-1, -1, 91, 22, 23, 24, 25, 26, 27, -1,
704-1, -1, -1, -1, -1, 79, 80, -1, -1, 0,
7051, -1, 3, 4, 5, -1, -1, 91, 9, 10,
70611, 12, 13, 14, 15, 16, 17, 18, 19, 20,
70721, 0, 1, -1, 3, 4, 5, 28, 29, 30,
7089, 10, 11, 12, 13, 14, 15, 16, 17, 18,
70919, 20, 21, 0, 1, -1, 3, 4, 5, 28,
71029, 30, 9, 10, 11, 12, 13, 14, 15, 16,
71117, 18, 19, 20, 21, 0, 1, -1, 3, 4,
7125, 28, 29, 30, 9, 10, 11, 12, 13, 14,
71315, 16, 17, 18, 19, 20, 21, 0, 1, -1,
7143, 4, 5, 28, 29, 30, 9, 10, 11, 12,
71513, 14, 15, 16, 17, 18, 19, 20, 21, 0,
7161, -1, 3, 4, 5, 28, 29, 30, 9, 10,
71711, 12, 13, 14, 15, 16, 17, 18, 19, 20,
71821, 0, 1, -1, 3, 4, 5, 28, 29, 30,
7199, 10, 11, 12, 13, 14, 15, 16, 17, 18,
72019, 20, 21, 0, 1, -1, 3, 4, 5, 28,
72129, 30, 9, 10, 11, 12, 13, 14, 15, 16,
72217, 18, 19, 20, 21, 0, 1, -1, 3, 4,
7235, 28, 29, 30, 9, 10, 11, 12, 13, 14,
72415, 16, 17, 18, 19, 20, 21, 0, 1, -1,
7253, 4, 5, 28, 29, 30, 9, 10, 11, 12,
72613, 14, 15, 16, 17, 18, 19, 20, 21, 0,
7271, -1, 3, 4, 5, 28, 29, 30, 9, 10,
72811, 12, 13, 14, 15, 16, 17, 18, 19, 20,
72921, 0, 1, -1, 3, 4, 5, 28, 29, 30,
7309, 10, 11, 12, 13, 14, 15, 16, 17, 18,
73119, 20, 21, 0, 1, -1, 3, 4, 5, 28,
73229, 30, 9, 10, 11, 12, 13, 14, 15, 16,
73317, 18, 19, 20, 21, -1, 1, -1, 3, 4,
7345, 28, 29, 30, 9, 10, 11, 12, 13, 14,
73515, 16, 17, 18, 19, 20, 21, -1, 1, -1,
7363, 4, 5, 28, 29, 30, 9, 10, 11, 12,
73713, 14, 15, 16, 17, 18, 19, 20, 21, 0,
7381, -1, 3, 4, 5, 28, 29, 30, 9, 10,
73911, 12, 13, 14, 15, 16, 17, 18, 19, 20,
74021, 0, 1, -1, 3, 4, 5, 28, 29, -1,
7419, 10, 11, 12, 13, 14, 15, 16, 17, 18,
74219, 20, 21, 1, -1, 3, 4, 5, -1, 28,
743-1, 9, 10, 11, 12, 13, 14, 15, 16, 17,
74418, 19, 20, 21, 1, -1, 3, 4, 5, 6,
74528, 29, 9, 1, 11, 3, 4, 5, -1, -1,
746-1, 9, 1, 11, 3, 4, 5, -1, -1, -1,
7479, 28, 11, 1, -1, 3, 4, 5, -1, -1,
74828, 9, 1, 11, 3, 4, 5, -1, -1, 28,
7499, 1, 11, 3, 4, 5, -1, -1, -1, 9,
75028, 11, 1, -1, 3, 4, 5, -1, -1, 28,
7519, -1, 11, -1, -1, -1, -1, -1, 28, -1,
752-1, -1, -1, -1, -1, -1, -1, -1, -1, 28
7590, 1, 3, 4, 5, 6, 9, 11, 28, 32,
76033, 35, 37, 41, 3, 4, 5, 3, 4, 35,
76136, 37, 28, 41, 41, 0, 22, 23, 24, 25,
76226, 27, 1, 10, 11, 12, 13, 14, 15, 16,
76317, 18, 19, 20, 21, 41, 7, 30, 29, 39,
76441, 1, 29, 37, 37, 37, 37, 28, 28, 1,
76541, 1, 1, 41, 1, 41, 1, 41, 41, 41,
76641, 41, 41, 41, 41, 36, 37, 29, 30, 10,
76710, 33, 37, 38, 40, 40, 8, 34, 41, 37,
76837, 30, 29, 29, 41, 37
771 #define yyerrok (yyerrstatus = 0) 772 #define yyclearin (yychar = YYEMPTY) 776 #define YYACCEPT goto yyacceptlab 777 #define YYABORT goto yyabortlab 778 #define YYERROR goto yyerrorlab 785 #define YYFAIL goto yyerrlab 787 #define YYRECOVERING() (!!yyerrstatus) 789 #define YYBACKUP(Token, Value) \ 791 if (yychar == YYEMPTY && yylen == 1) \ 795 yytoken = YYTRANSLATE (yychar); \ 801 yyerror (YY_("syntax error: cannot back up")); \
808 #define YYERRCODE 256 815 #define YYRHSLOC(Rhs, K) ((Rhs)[K]) 816 #ifndef YYLLOC_DEFAULT 817 # define YYLLOC_DEFAULT(Current, Rhs, N) \ 821 (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ 822 (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ 823 (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ 824 (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ 828 (Current).first_line = (Current).last_line = \ 829 YYRHSLOC (Rhs, 0).last_line; \ 830 (Current).first_column = (Current).last_column = \ 831 YYRHSLOC (Rhs, 0).last_column; \ 841 #ifndef YY_LOCATION_PRINT 842 # if YYLTYPE_IS_TRIVIAL 843 # define YY_LOCATION_PRINT(File, Loc) \ 844 fprintf (File, "%d.%d-%d.%d", \
845(Loc).first_line, (Loc).first_column, \
846(Loc).last_line, (Loc).last_column)
848 # define YY_LOCATION_PRINT(File, Loc) ((void) 0) 856 # define YYLEX yylex (&yylval, YYLEX_PARAM) 858 # define YYLEX yylex (&yylval) 866 # define YYFPRINTF fprintf 869 # define YYDPRINTF(Args) \ 875 # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ 879 YYFPRINTF (stderr, "%s ", Title); \
880yy_symbol_print (stderr, \
882YYFPRINTF (stderr, "\n"); \
892 #if (defined __STDC__ || defined __C99__FUNC__ \ 893 || defined __cplusplus || defined _MSC_VER) 908YYPRINT (yyoutput, yytoknum[yytype], *
yyvaluep);
924 #if (defined __STDC__ || defined __C99__FUNC__ \ 925 || defined __cplusplus || defined _MSC_VER) 950 #if (defined __STDC__ || defined __C99__FUNC__ \ 951 || defined __cplusplus || defined _MSC_VER) 962 for(; yybottom <= yytop; yybottom++)
964 intyybot = *yybottom;
970 # define YY_STACK_PRINT(Bottom, Top) \ 973 yy_stack_print ((Bottom), (Top)); \ 981 #if (defined __STDC__ || defined __C99__FUNC__ \ 982 || defined __cplusplus || defined _MSC_VER) 992 intyynrhs =
yyr2[yyrule];
994 unsigned long intyylno =
yyrline[yyrule];
995 YYFPRINTF(stderr,
"Reducing stack by rule %d (line %lu):\n",
998 for(yyi = 0; yyi < yynrhs; yyi++)
1000 YYFPRINTF(stderr,
" $%d = ", yyi + 1);
1002&(yyvsp[(yyi + 1) - (yynrhs)])
1008 # define YY_REDUCE_PRINT(Rule) \ 1011 yy_reduce_print (yyvsp, Rule); \ 1018 # define YYDPRINTF(Args) 1019 # define YY_SYMBOL_PRINT(Title, Type, Value, Location) 1020 # define YY_STACK_PRINT(Bottom, Top) 1021 # define YY_REDUCE_PRINT(Rule) 1027 # define YYINITDEPTH 200 1038 # define YYMAXDEPTH 10000 1046 # if defined __GLIBC__ && defined _STRING_H 1047 # define yystrlen strlen 1050 #if (defined __STDC__ || defined __C99__FUNC__ \ 1051 || defined __cplusplus || defined _MSC_VER) 1061 for(yylen = 0; yystr[yylen]; yylen++)
1069 # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE 1070 # define yystpcpy stpcpy 1074 #if (defined __STDC__ || defined __C99__FUNC__ \ 1075 || defined __cplusplus || defined _MSC_VER) 1077 yystpcpy(
char*yydest,
const char*yysrc)
1086 const char*yys = yysrc;
1088 while((*yyd++ = *yys++) !=
'\0')
1110 char const*yyp = yystr;
1117 gotodo_not_strip_quotes;
1120 if(*++yyp !=
'\\')
1121 gotodo_not_strip_quotes;
1134do_not_strip_quotes: ;
1140 return yystpcpy(yyres, yystr) - yyres;
1154 intyyn =
yypact[yystate];
1164 intyysize_overflow = 0;
1165 enum{ YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
1166 char const*yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
1172 YY_(
"syntax error, unexpected %s");
1173 YY_(
"syntax error, unexpected %s, expecting %s");
1174 YY_(
"syntax error, unexpected %s, expecting %s or %s");
1175 YY_(
"syntax error, unexpected %s, expecting %s or %s or %s");
1176 YY_(
"syntax error, unexpected %s, expecting %s or %s or %s or %s");
1180 static char constyyunexpected[] =
"syntax error, unexpected %s";
1181 static char constyyexpecting[] =
", expecting %s";
1182 static char constyyor[] =
" or %s";
1183 charyyformat[
sizeofyyunexpected
1184+
sizeofyyexpecting - 1
1185+ ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
1186* (
sizeofyyor - 1))];
1187 char const*yyprefix = yyexpecting;
1191 intyyxbegin = yyn < 0 ? -yyn : 0;
1194 intyychecklim =
YYLAST- yyn + 1;
1199yyfmt =
yystpcpy(yyformat, yyunexpected);
1201 for(yyx = yyxbegin; yyx < yyxend; ++yyx)
1204 if(yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
1208yyformat[
sizeofyyunexpected - 1] =
'\0';
1211yyarg[yycount++] =
yytname[yyx];
1213yysize_overflow |= (yysize1 < yysize);
1215yyfmt =
yystpcpy(yyfmt, yyprefix);
1219yyf =
YY_(yyformat);
1221yysize_overflow |= (yysize1 < yysize);
1224 if(yysize_overflow)
1232 char*yyp = yyresult;
1234 while((*yyp = *yyf) !=
'\0')
1236 if(*yyp ==
'%'&& yyf[1] ==
's'&& yyi < yycount)
1259 #if (defined __STDC__ || defined __C99__FUNC__ \ 1260 || defined __cplusplus || defined _MSC_VER) 1274yymsg =
"Deleting";
1286 #ifdef YYPARSE_PARAM 1287 #if defined __STDC__ || defined __cplusplus 1293 #if defined __STDC__ || defined __cplusplus 1308 #ifdef YYPARSE_PARAM 1309 #if (defined __STDC__ || defined __C99__FUNC__ \ 1310 || defined __cplusplus || defined _MSC_VER) 1319 #if (defined __STDC__ || defined __C99__FUNC__ \ 1320 || defined __cplusplus || defined _MSC_VER) 1373 char*yymsg = yymsgbuf;
1374 YYSIZE_Tyymsg_alloc =
sizeofyymsgbuf;
1377 #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) 1388 YYDPRINTF((stderr,
"Starting parse\n"));
1415 if(yyss + yystacksize - 1 <= yyssp)
1418 YYSIZE_Tyysize = yyssp - yyss + 1;
1432yyoverflow (
YY_(
"memory exhausted"),
1433&yyss1, yysize *
sizeof(*yyssp),
1434&yyvs1, yysize *
sizeof(*yyvsp),
1441 # ifndef YYSTACK_RELOCATE 1442 gotoyyexhaustedlab;
1446 gotoyyexhaustedlab;
1456 gotoyyexhaustedlab;
1459 # undef YYSTACK_RELOCATE 1466yyssp =
yyss+ yysize - 1;
1467yyvsp =
yyvs+ yysize - 1;
1469 YYDPRINTF((stderr,
"Stack size increased to %lu\n",
1470(
unsigned long int) yystacksize));
1472 if(
yyss+ yystacksize - 1 <= yyssp)
1476 YYDPRINTF((stderr,
"Entering state %d\n", yystate));
1501 YYDPRINTF((stderr,
"Reading a token: "));
1508 YYDPRINTF((stderr,
"Now at end of input.\n"));
1572yyval = yyvsp[1-yylen];
1581 #line 137 "query_parser_bison.y" 1596(yyvsp[(1) - (5)])->
AddNode((yyvsp[(3) - (5)]));
1597(yyvsp[(3) - (5)])->MoveSubnodes((yyvsp[(4) - (5)]));
1598(yyvsp[(3) - (5)])->InsertNode((yyvsp[(3) - (5)])->SubNodeBegin(), (yyvsp[(4) - (5)]));
1599 if((yyvsp[(5) - (5)])) {
1600(yyvsp[(1) - (5)])->
AddNode((yyvsp[(5) - (5)]));
1603 env->ForgetPoolNode((yyvsp[(1) - (5)]));
1604 env->ForgetPoolNode((yyvsp[(2) - (5)]));
1605 env->ForgetPoolNode((yyvsp[(3) - (5)]));
1606 env->ForgetPoolNode((yyvsp[(4) - (5)]));
1607 env->ForgetPoolNode((yyvsp[(5) - (5)]));
1609 env->SetSELECT_Context(0);
1610 env->SetContext(0);
1611 env->SetFROM_Context(0);
1613(yyval) = (yyvsp[(1) - (5)]);
1614 env->AttachQueryTree((yyval));
1622 #line 176 "query_parser_bison.y" 1631 #line 181 "query_parser_bison.y" 1634(yyvsp[(1) - (2)])->
AddNode((yyvsp[(2) - (2)]));
1635 env->ForgetPoolNode((yyvsp[(2) - (2)]));
1636(yyval) = (yyvsp[(1) - (2)]);
1643 #line 191 "query_parser_bison.y" 1645(yyval) = (yyvsp[(1) - (4)]);
1647 env->AttachQueryTree((yyval));
1648(yyval)->InsertNode((yyval)->SubNodeBegin(), (yyvsp[(3) - (4)]));
1649 env->SetContext(0);
1650 env->ForgetPoolNodes((yyvsp[(1) - (4)]), (yyvsp[(3) - (4)]));
1657 #line 200 "query_parser_bison.y" 1659(yyval) = (yyvsp[(1) - (3)]);
1661 env->AttachQueryTree((yyval));
1662 env->SetContext(0);
1663 env->ForgetPoolNode((yyvsp[(1) - (3)]));
1670 #line 211 "query_parser_bison.y" 1672(yyval) = (yyvsp[(1) - (1)]);
1679 #line 215 "query_parser_bison.y" 1681(yyval) = (yyvsp[(1) - (3)]);
1685 env->ForgetPoolNode((yyvsp[(3) - (3)]));
1692 #line 227 "query_parser_bison.y" 1694(yyval) = (yyvsp[(1) - (1)]);
1701 #line 232 "query_parser_bison.y" 1703(yyval) = (yyvsp[(1) - (1)]);
1710 #line 237 "query_parser_bison.y" 1712(yyval) = (yyvsp[(1) - (1)]);
1719 #line 241 "query_parser_bison.y" 1721(yyval) = (yyvsp[(1) - (1)]);
1728 #line 248 "query_parser_bison.y" 1730(yyval) = (yyvsp[(1) - (1)]);
1737 #line 252 "query_parser_bison.y" 1739(yyval) = (yyvsp[(1) - (3)]);
1747 #line 260 "query_parser_bison.y" 1749(yyval) = (yyvsp[(1) - (1)]);
1756 #line 264 "query_parser_bison.y" 1758(yyval) = (yyvsp[(1) - (3)]);
1766 #line 279 "query_parser_bison.y" 1768(yyval) = (yyvsp[(1) - (1)]);
1775 #line 284 "query_parser_bison.y" 1777(yyval) = (yyvsp[(1) - (1)]);
1784 #line 289 "query_parser_bison.y" 1788 env->AttachQueryTree((yyval));
1789 env->ForgetPoolNodes((yyvsp[(1) - (2)]), (yyvsp[(2) - (2)]));
1796 #line 297 "query_parser_bison.y" 1801(yyval)->GetValue().SetExplicit(
false);
1802 env->AttachQueryTree((yyval));
1803 env->ForgetPoolNodes((yyvsp[(1) - (2)]), (yyvsp[(2) - (2)]));
1810 #line 308 "query_parser_bison.y" 1812(yyval) = (yyvsp[(2) - (3)]);
1819 #line 318 "query_parser_bison.y" 1821 QTreeAddNode(parm, (yyval) = (yyvsp[(2) - (3)]), (yyvsp[(1) - (3)]), (yyvsp[(3) - (3)]));
1828 #line 323 "query_parser_bison.y" 1830 QTreeAddNode(parm, (yyval) = (yyvsp[(2) - (3)]), (yyvsp[(1) - (3)]), (yyvsp[(3) - (3)]));
1837 #line 328 "query_parser_bison.y" 1839 QTreeAddNode(parm, (yyval) = (yyvsp[(2) - (3)]), (yyvsp[(1) - (3)]), (yyvsp[(3) - (3)]));
1846 #line 333 "query_parser_bison.y" 1848 QTreeAddNode(parm, (yyval) = (yyvsp[(2) - (3)]), (yyvsp[(1) - (3)]), (yyvsp[(3) - (3)]));
1855 #line 338 "query_parser_bison.y" 1857(yyval) = (yyvsp[(2) - (5)]);
1858(yyval)->
AddNode((yyvsp[(1) - (5)]));
1859(yyval)->
AddNode((yyvsp[(3) - (5)]));
1860(yyval)->
AddNode((yyvsp[(5) - (5)]));
1863 env->AttachQueryTree((yyval));
1864 env->ForgetPoolNodes((yyvsp[(1) - (5)]), (yyvsp[(3) - (5)]));
1865 env->ForgetPoolNodes((yyvsp[(1) - (5)]), (yyvsp[(5) - (5)]));
1872 #line 351 "query_parser_bison.y" 1874(yyval) = (yyvsp[(2) - (5)]);
1875(yyval)->
AddNode((yyvsp[(1) - (5)]));
1876(yyval)->
AddNode((yyvsp[(3) - (5)]));
1877(yyval)->
AddNode((yyvsp[(5) - (5)]));
1880 env->AttachQueryTree((yyval));
1881 env->ForgetPoolNodes((yyvsp[(1) - (5)]), (yyvsp[(3) - (5)]));
1882 env->ForgetPoolNodes((yyvsp[(1) - (5)]), (yyvsp[(5) - (5)]));
1889 #line 365 "query_parser_bison.y" 1891 QTreeAddNode(parm, (yyval) = (yyvsp[(2) - (3)]), (yyvsp[(1) - (3)]), (yyvsp[(3) - (3)]));
1898 #line 370 "query_parser_bison.y" 1900 QTreeAddNode(parm, (yyval) = (yyvsp[(2) - (3)]), (yyvsp[(1) - (3)]), (yyvsp[(3) - (3)]));
1907 #line 375 "query_parser_bison.y" 1909 QTreeAddNode(parm, (yyval) = (yyvsp[(2) - (3)]), (yyvsp[(1) - (3)]), (yyvsp[(3) - (3)]));
1916 #line 380 "query_parser_bison.y" 1918(yyval) = (yyvsp[(2) - (5)]);
1920 env->AttachQueryTree((yyval));
1921 env->ForgetPoolNodes((yyvsp[(1) - (5)]), (yyvsp[(4) - (5)]));
1922(yyval)->InsertNode((yyval)->SubNodeBegin(), (yyvsp[(4) - (5)]));
1923(yyval)->InsertNode((yyval)->SubNodeBegin(), (yyvsp[(1) - (5)]));
1924 env->SetIN_Context(0);
1931 #line 391 "query_parser_bison.y" 1933(yyval) = (yyvsp[(2) - (5)]);
1935 env->AttachQueryTree((yyval));
1936 env->ForgetPoolNodes((yyvsp[(1) - (5)]), (yyvsp[(4) - (5)]));
1937(yyval)->InsertNode((yyval)->SubNodeBegin(), (yyvsp[(4) - (5)]));
1938(yyval)->InsertNode((yyval)->SubNodeBegin(), (yyvsp[(1) - (5)]));
1939 env->SetIN_Context(0);
1946 #line 402 "query_parser_bison.y" 1948 QTreeAddNode(parm, (yyval) = (yyvsp[(2) - (3)]), (yyvsp[(1) - (3)]), (yyvsp[(3) - (3)]));
1955 #line 407 "query_parser_bison.y" 1957 QTreeAddNode(parm, (yyval) = (yyvsp[(2) - (3)]), (yyvsp[(1) - (3)]), (yyvsp[(3) - (3)]));
1964 #line 411 "query_parser_bison.y" 1966 QTreeAddNode(parm, (yyval) = (yyvsp[(2) - (3)]), (yyvsp[(1) - (3)]), (yyvsp[(3) - (3)]));
1973 #line 415 "query_parser_bison.y" 1975 QTreeAddNode(parm, (yyval) = (yyvsp[(2) - (3)]), (yyvsp[(1) - (3)]), (yyvsp[(3) - (3)]));
1982 #line 419 "query_parser_bison.y" 1984 QTreeAddNode(parm, (yyval) = (yyvsp[(2) - (3)]), (yyvsp[(1) - (3)]), (yyvsp[(3) - (3)]));
1991 #line 423 "query_parser_bison.y" 1993 QTreeAddNode(parm, (yyval) = (yyvsp[(2) - (3)]), (yyvsp[(1) - (3)]), (yyvsp[(3) - (3)]));
2000 #line 434 "query_parser_bison.y" 2002 QTreeAddNode(parm, (yyval) = (yyvsp[(1) - (2)]), (yyvsp[(2) - (2)]), 0);
2009 #line 443 "query_parser_bison.y" 2016 QTreeAddNode(parm, (yyval) = (yyvsp[(2) - (2)]), 0, 0);
2023 #line 452 "query_parser_bison.y" 2030 QTreeAddNode(parm, (yyval) = (yyvsp[(2) - (2)]), 0, 0);
2037 #line 461 "query_parser_bison.y" 2044 QTreeAddNode(parm, (yyval) = (yyvsp[(2) - (2)]), 0, 0);
2051 #line 470 "query_parser_bison.y" 2058 QTreeAddNode(parm, (yyval) = (yyvsp[(1) - (2)]), 0, 0);
2065 #line 482 "query_parser_bison.y" 2071 "Syntax error. Unbalanced parenthesis");
2073 QTreeAddNode(parm, (yyval) = (yyvsp[(2) - (3)]), 0, 0);
2080 #line 492 "query_parser_bison.y" 2088 QTreeAddNode(parm, (yyval) = (yyvsp[(1) - (3)]), 0, 0);
2095 #line 502 "query_parser_bison.y" 2103 QTreeAddNode(parm, (yyval) = (yyvsp[(1) - (3)]), 0, 0);
2110 #line 512 "query_parser_bison.y" 2118 QTreeAddNode(parm, (yyval) = (yyvsp[(1) - (3)]), 0, 0);
2125 #line 522 "query_parser_bison.y" 2133 QTreeAddNode(parm, (yyval) = (yyvsp[(1) - (3)]), 0, 0);
2140 #line 532 "query_parser_bison.y" 2148 QTreeAddNode(parm, (yyval) = (yyvsp[(1) - (3)]), 0, 0);
2155 #line 2156 "query_parser_bison.tab.c" 2173 if(0 <= yystate && yystate <=
YYLAST&&
yycheck[yystate] == *yyssp)
2189 #if ! YYERROR_VERBOSE 2199 if(yymsg != yymsgbuf)
2207yymsg_alloc =
sizeofyymsgbuf;
2211 if(0 < yysize && yysize <= yymsg_alloc)
2220 gotoyyexhaustedlab;
2228 if(yyerrstatus == 3)
2298 yystos[yystate], yyvsp);
2328 #if !defined(yyoverflow) || YYERROR_VERBOSE 2340 yydestruct(
"Cleanup: discarding lookahead",
2346 while(yyssp !=
yyss)
2357 if(yymsg != yymsgbuf)
2361 return YYID(yyresult);
2367 #line 554 "query_parser_bison.y"Class passed to Lex/Bison (yylex/yyparse) functions.
definition of a Culling tree
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
@ eSyntaxCheck
Best possible check for errors.
TNodeList_CI SubNodeBegin(void) const
Return first const iterator on subnode list.
void AddNode(TTreeType *subnode)
Add new subnode.
void InsertNode(TNodeList_I it, TTreeType *subnode)
Insert new subnode before the specified location in the subnode list.
unsigned short int yytype_uint16
static const yytype_uint8 yyr1[]
#define YY_SYMBOL_PRINT(Title, Type, Value, Location)
static void yy_stack_print(yytype_int16 *yybottom, yytype_int16 *yytop)
static const yytype_uint8 yytranslate[]
static const yytype_int8 yycheck[]
static unsigned int yytnamerr(char *yyres, const char *yystr)
static void yy_symbol_value_print(FILE *yyoutput, int yytype, CQueryParseTree::TNode *const *const yyvaluep)
#define YY_REDUCE_PRINT(Rule)
static void AddIn_Arg(void *parm, CQueryParseTree::TNode *node)
static const yytype_int16 yypact[]
static const yytype_uint16 yyrline[]
static void AddFunc_Arg(void *parm, CQueryParseTree::TNode *node)
Add node to a list if parser environment is in the list parsing context.
unsigned char yytype_uint8
static char * yystpcpy(char *yydest, const char *yysrc)
#define YY_STACK_PRINT(Bottom, Top)
#define YYSTACK_ALLOC_MAXIMUM
static void QTreeAddNode(void *parm, CQueryParseTree::TNode *rnode, CQueryParseTree::TNode *node1, CQueryParseTree::TNode *node2)
Add child node(s) to the parent.
static const yytype_int8 yytable[]
static unsigned int yysyntax_error(char *yyresult, int yystate, int ncbi_q_char)
static unsigned int yystrlen(char *yystr) const
static const yytype_uint8 yyr2[]
static void yy_reduce_print(CQueryParseTree::TNode **yyvsp, int yyrule)
static const yytype_int8 yyrhs[]
static const yytype_uint8 yyprhs[]
static const char *const yytname[]
static const yytype_int8 yypgoto[]
static const yytype_uint8 yystos[]
static void yydestruct(char *yymsg, int yytype, CQueryParseTree::TNode **yyvaluep) const
static const yytype_int8 yydefgoto[]
#define YYSTACK_RELOCATE(Stack_alloc, Stack)
static const yytype_uint8 yydefact[]
static void yy_symbol_print(FILE *yyoutput, int yytype, CQueryParseTree::TNode *const *const yyvaluep)
static void AddNode(TaxonomyTreeMap *taxTree, const Sequence *seq, int taxid, const CTaxon2_data *taxData, int parent)
CQueryParseTree::TNode * yyvs_alloc
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4