47 #define YYBISON_VERSION "3.0.2"
50 #define YYSKELETON_NAME "yacc.c"
65 #line 1 "yacc_parser.yacc"
88 size_t numBytesToRead = maxBytesToRead;
91 if (numBytesToRead > bytesRemaining) numBytesToRead = bytesRemaining;
93 *numBytesRead = numBytesToRead;
98 #line 99 "yacc_parser.cpp"
101 # if defined __cplusplus && 201103L <= __cplusplus
102 # define YY_NULLPTR nullptr
104 # define YY_NULLPTR 0
109 #ifdef YYERROR_VERBOSE
110 # undef YYERROR_VERBOSE
111 # define YYERROR_VERBOSE 1
113 # define YYERROR_VERBOSE 0
118 #ifndef YY_YY_YACC_PARSER_HPP_INCLUDED
119 # define YY_YY_YACC_PARSER_HPP_INCLUDED
158 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
162 #line 35 "yacc_parser.yacc"
168 #line 169 "yacc_parser.cpp"
170 # define YYSTYPE_IS_TRIVIAL 1
171 # define YYSTYPE_IS_DECLARED 1
183 #line 184 "yacc_parser.cpp"
214 # ifdef __SIZE_TYPE__
215 # define YYSIZE_T __SIZE_TYPE__
216 # elif defined size_t
217 # define YYSIZE_T size_t
218 # elif ! defined YYSIZE_T
220 # define YYSIZE_T size_t
222 # define YYSIZE_T unsigned int
226 #define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
229 # if defined YYENABLE_NLS && YYENABLE_NLS
231 # include <libintl.h>
232 # define YY_(Msgid) dgettext ("bison-runtime", Msgid)
236 # define YY_(Msgid) Msgid
241 # if (defined __GNUC__ \
242 && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \
243 || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C
244 # define YY_ATTRIBUTE(Spec) __attribute__(Spec)
246 # define YY_ATTRIBUTE(Spec)
250 #ifndef YY_ATTRIBUTE_PURE
251 # define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__))
254 #ifndef YY_ATTRIBUTE_UNUSED
255 # define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__))
258 #if !defined _Noreturn \
259 && (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112)
260 # if defined _MSC_VER && 1200 <= _MSC_VER
261 # define _Noreturn __declspec (noreturn)
263 # define _Noreturn YY_ATTRIBUTE ((__noreturn__))
268 #if ! defined lint || defined __GNUC__
269 # define YYUSE(E) ((void) (E))
274 #if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
276 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
277 _Pragma ("GCC diagnostic push") \
278 _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\
279 _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
280 # define YY_IGNORE_MAYBE_UNINITIALIZED_END \
281 _Pragma ("GCC diagnostic pop")
283 # define YY_INITIAL_VALUE(Value) Value
285 #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
286 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
287 # define YY_IGNORE_MAYBE_UNINITIALIZED_END
289 #ifndef YY_INITIAL_VALUE
290 # define YY_INITIAL_VALUE(Value)
294 #if ! defined yyoverflow || YYERROR_VERBOSE
298 # ifdef YYSTACK_USE_ALLOCA
299 # if YYSTACK_USE_ALLOCA
301 # define YYSTACK_ALLOC __builtin_alloca
302 # elif defined __BUILTIN_VA_ARG_INCR
305 # define YYSTACK_ALLOC __alloca
306 # elif defined _MSC_VER
308 # define alloca _alloca
310 # define YYSTACK_ALLOC alloca
311 # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
314 # ifndef EXIT_SUCCESS
315 # define EXIT_SUCCESS 0
322 # ifdef YYSTACK_ALLOC
324 # define YYSTACK_FREE(Ptr) do { ; } while (0)
325 # ifndef YYSTACK_ALLOC_MAXIMUM
330 # define YYSTACK_ALLOC_MAXIMUM 4032
333 # define YYSTACK_ALLOC YYMALLOC
334 # define YYSTACK_FREE YYFREE
335 # ifndef YYSTACK_ALLOC_MAXIMUM
336 # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
338 # if (defined __cplusplus && ! defined EXIT_SUCCESS \
339 && ! ((defined YYMALLOC || defined malloc) \
340 && (defined YYFREE || defined free)))
342 # ifndef EXIT_SUCCESS
343 # define EXIT_SUCCESS 0
347 # define YYMALLOC malloc
348 # if ! defined malloc && ! defined EXIT_SUCCESS
354 # if ! defined free && ! defined EXIT_SUCCESS
362 #if (! defined yyoverflow \
363 && (! defined __cplusplus \
364 || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
374 # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
378 # define YYSTACK_BYTES(N) \
379 ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
380 + YYSTACK_GAP_MAXIMUM)
382 # define YYCOPY_NEEDED 1
389 # define YYSTACK_RELOCATE(Stack_alloc, Stack) \
392 YYSIZE_T yynewbytes; \
393 YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
394 Stack = &yyptr->Stack_alloc; \
395 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
396 yyptr += yynewbytes / sizeof (*yyptr); \
402 #if defined YYCOPY_NEEDED && YYCOPY_NEEDED
406 # if defined __GNUC__ && 1 < __GNUC__
407 # define YYCOPY(Dst, Src, Count) \
408 __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src)))
410 # define YYCOPY(Dst, Src, Count) \
414 for (yyi = 0; yyi < (Count); yyi++) \
415 (Dst)[yyi] = (Src)[yyi]; \
434 #define YYNSTATES 138
439 #define YYMAXUTOK 278
441 #define YYTRANSLATE(YYX) \
442 ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
448 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
449 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
450 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
451 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
452 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
453 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
454 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
455 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
456 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
457 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
458 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
459 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
460 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
461 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
462 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
463 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
464 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
465 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
466 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
467 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
468 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
469 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
470 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
471 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
472 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
473 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
474 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
475 15, 16, 17, 18, 19, 20, 21, 22, 23
482 0, 63, 63, 64, 68, 69, 70, 71, 72, 73,
483 74, 75, 76, 77, 78, 79, 80, 81, 82, 83,
484 84, 88, 89, 90, 91, 92, 93, 94, 95, 96,
485 97, 98, 99, 100, 101, 102, 103, 104, 105, 106,
486 107, 108, 109, 110, 111, 112, 113, 114, 115, 116,
487 117, 118, 119, 120, 121, 122, 123, 124, 125, 126,
488 127, 128, 129, 130, 131
492 #if YYDEBUG || YYERROR_VERBOSE || 0
495 static const char *
const yytname[] =
497 "$end",
"error",
"$undefined",
"NUMBER",
"VAR",
"ID",
"AVERAGE",
"PLUS",
498 "MINUS",
"TIMES",
"DIVIDE",
"POWER",
"EQ",
"LT",
"GT",
"LE",
"GE",
"NE",
499 "LEFT_PARENTHESIS",
"RIGHT_PARENTHESIS",
"QUESTION_MARK",
"COLON",
"END",
500 "NEG",
"$accept",
"Line",
"Expression",
"Field_expr",
YY_NULLPTR
509 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
510 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
515 #define YYPACT_NINF -14
517 #define yypact_value_is_default(Yystate) \
518 (!!((Yystate) == (-14)))
520 #define YYTABLE_NINF -1
522 #define yytable_value_is_error(Yytable_value) \
523 (!!((Yytable_value) == (-1)))
529 73, -14, -14, -13, -14, 124, 124, -14, 39, 304,
530 104, 124, 34, 36, 220, 234, -14, 124, 124, 124,
531 124, 133, 124, 124, 124, 124, 124, 124, 124, 124,
532 124, 124, 124, 124, 124, 124, 124, 124, 124, 124,
533 124, -14, 248, 262, -14, -14, -7, 27, -7, 27,
534 34, 36, 34, 36, 30, 133, 133, 34, 0, 75,
535 0, 75, 0, 75, 0, 75, 0, 75, 0, 75,
536 145, 160, -7, 27, -7, 27, 34, 36, 34, 36,
537 34, 36, 0, 75, 0, 75, 0, 75, 0, 75,
538 0, 75, 0, 75, 175, 190, -14, -14, 133, 34,
539 276, 133, 133, 133, 133, 133, 133, 133, 133, 133,
540 133, 133, 124, 124, 124, 124, 290, 33, 33, 34,
541 34, 360, 360, 360, 360, 360, 360, 205, 318, 332,
542 318, 332, 318, 332, 318, 332, 133, 346
550 0, 4, 5, 21, 22, 0, 0, 2, 0, 0,
551 0, 0, 10, 27, 0, 0, 1, 0, 0, 0,
552 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
553 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
554 0, 3, 0, 0, 19, 35, 6, 44, 7, 46,
555 8, 48, 9, 50, 0, 0, 0, 11, 12, 53,
556 13, 55, 14, 57, 15, 59, 16, 61, 17, 63,
557 0, 0, 43, 23, 45, 24, 47, 25, 49, 26,
558 51, 28, 52, 29, 54, 30, 56, 31, 58, 32,
559 60, 33, 62, 34, 0, 0, 20, 64, 0, 10,
560 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
561 0, 0, 0, 0, 0, 0, 0, 6, 7, 8,
562 9, 12, 13, 14, 15, 16, 17, 0, 18, 36,
563 37, 38, 39, 40, 41, 42, 0, 18
583 12, 14, 19, 20, 21, 11, 42, 17, 18, 19,
584 20, 21, 46, 48, 50, 52, 57, 58, 60, 62,
585 64, 66, 68, 70, 72, 74, 76, 78, 80, 82,
586 84, 86, 88, 90, 92, 94, 31, 32, 33, 16,
587 13, 15, 103, 104, 21, 21, 43, 33, 98, 0,
588 99, 100, 47, 49, 51, 53, 0, 59, 61, 63,
589 65, 67, 69, 71, 73, 75, 77, 79, 81, 83,
590 85, 87, 89, 91, 93, 95, 1, 2, 3, 4,
591 0, 5, 29, 30, 31, 32, 33, 0, 0, 0,
592 0, 6, 0, 116, 0, 7, 117, 118, 119, 120,
593 121, 122, 123, 124, 125, 126, 127, 128, 130, 132,
594 134, 29, 30, 31, 32, 33, 34, 35, 36, 37,
595 38, 39, 0, 0, 40, 0, 41, 1, 2, 3,
596 4, 137, 5, 0, 0, 0, 1, 2, 54, 0,
597 0, 55, 6, 0, 0, 0, 0, 129, 131, 133,
598 135, 56, 17, 18, 19, 20, 21, 22, 23, 24,
599 25, 26, 27, 0, 0, 28, 112, 29, 30, 31,
600 32, 33, 34, 35, 36, 37, 38, 39, 0, 0,
601 40, 113, 17, 18, 19, 20, 21, 22, 23, 24,
602 25, 26, 27, 0, 0, 28, 114, 29, 30, 31,
603 32, 33, 34, 35, 36, 37, 38, 39, 0, 0,
604 40, 115, 101, 102, 103, 104, 21, 105, 106, 107,
605 108, 109, 110, 0, 0, 111, 136, 17, 18, 19,
606 20, 21, 22, 23, 24, 25, 26, 27, 0, 44,
607 28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
608 38, 39, 0, 45, 40, 17, 18, 19, 20, 21,
609 22, 23, 24, 25, 26, 27, 0, 96, 28, 29,
610 30, 31, 32, 33, 34, 35, 36, 37, 38, 39,
611 0, 97, 40, 101, 102, 103, 104, 21, 105, 106,
612 107, 108, 109, 110, 0, 44, 111, 101, 102, 103,
613 104, 21, 105, 106, 107, 108, 109, 110, 0, 96,
614 111, 17, 18, 19, 20, 21, 22, 23, 24, 25,
615 26, 27, 0, 0, 28, 17, 18, 19, 20, 21,
616 22, 23, 24, 25, 26, 27, 0, 0, -1, 29,
617 30, 31, 32, 33, 34, 35, 36, 37, 38, 39,
618 0, 0, -1, 101, 102, 103, 104, 21, 105, 106,
619 107, 108, 109, 110, 0, 0, -1, 101, 102, 103,
625 5, 6, 9, 10, 11, 18, 11, 7, 8, 9,
626 10, 11, 17, 18, 19, 20, 21, 22, 23, 24,
627 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
628 35, 36, 37, 38, 39, 40, 9, 10, 11, 0,
629 5, 6, 9, 10, 11, 11, 11, 11, 18, -1,
630 55, 56, 17, 18, 19, 20, -1, 22, 23, 24,
631 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
632 35, 36, 37, 38, 39, 40, 3, 4, 5, 6,
633 -1, 8, 7, 8, 9, 10, 11, -1, -1, -1,
634 -1, 18, -1, 98, -1, 22, 101, 102, 103, 104,
635 105, 106, 107, 108, 109, 110, 111, 112, 113, 114,
636 115, 7, 8, 9, 10, 11, 12, 13, 14, 15,
637 16, 17, -1, -1, 20, -1, 22, 3, 4, 5,
638 6, 136, 8, -1, -1, -1, 3, 4, 5, -1,
639 -1, 8, 18, -1, -1, -1, -1, 112, 113, 114,
640 115, 18, 7, 8, 9, 10, 11, 12, 13, 14,
641 15, 16, 17, -1, -1, 20, 21, 7, 8, 9,
642 10, 11, 12, 13, 14, 15, 16, 17, -1, -1,
643 20, 21, 7, 8, 9, 10, 11, 12, 13, 14,
644 15, 16, 17, -1, -1, 20, 21, 7, 8, 9,
645 10, 11, 12, 13, 14, 15, 16, 17, -1, -1,
646 20, 21, 7, 8, 9, 10, 11, 12, 13, 14,
647 15, 16, 17, -1, -1, 20, 21, 7, 8, 9,
648 10, 11, 12, 13, 14, 15, 16, 17, -1, 19,
649 20, 7, 8, 9, 10, 11, 12, 13, 14, 15,
650 16, 17, -1, 19, 20, 7, 8, 9, 10, 11,
651 12, 13, 14, 15, 16, 17, -1, 19, 20, 7,
652 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
653 -1, 19, 20, 7, 8, 9, 10, 11, 12, 13,
654 14, 15, 16, 17, -1, 19, 20, 7, 8, 9,
655 10, 11, 12, 13, 14, 15, 16, 17, -1, 19,
656 20, 7, 8, 9, 10, 11, 12, 13, 14, 15,
657 16, 17, -1, -1, 20, 7, 8, 9, 10, 11,
658 12, 13, 14, 15, 16, 17, -1, -1, 20, 7,
659 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
660 -1, -1, 20, 7, 8, 9, 10, 11, 12, 13,
661 14, 15, 16, 17, -1, -1, 20, 7, 8, 9,
669 0, 3, 4, 5, 6, 8, 18, 22, 25, 26,
670 27, 18, 26, 27, 26, 27, 0, 7, 8, 9,
671 10, 11, 12, 13, 14, 15, 16, 17, 20, 7,
672 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
673 20, 22, 26, 27, 19, 19, 26, 27, 26, 27,
674 26, 27, 26, 27, 5, 8, 18, 26, 26, 27,
675 26, 27, 26, 27, 26, 27, 26, 27, 26, 27,
676 26, 27, 26, 27, 26, 27, 26, 27, 26, 27,
677 26, 27, 26, 27, 26, 27, 26, 27, 26, 27,
678 26, 27, 26, 27, 26, 27, 19, 19, 18, 26,
679 26, 7, 8, 9, 10, 12, 13, 14, 15, 16,
680 17, 20, 21, 21, 21, 21, 26, 26, 26, 26,
681 26, 26, 26, 26, 26, 26, 26, 26, 26, 27,
682 26, 27, 26, 27, 26, 27, 21, 26
688 0, 24, 25, 25, 26, 26, 26, 26, 26, 26,
689 26, 26, 26, 26, 26, 26, 26, 26, 26, 26,
690 26, 27, 27, 27, 27, 27, 27, 27, 27, 27,
691 27, 27, 27, 27, 27, 27, 27, 27, 27, 27,
692 27, 27, 27, 27, 27, 27, 27, 27, 27, 27,
693 27, 27, 27, 27, 27, 27, 27, 27, 27, 27,
700 0, 2, 1, 2, 1, 1, 3, 3, 3, 3,
701 2, 3, 3, 3, 3, 3, 3, 3, 5, 3,
702 4, 1, 1, 3, 3, 3, 3, 2, 3, 3,
703 3, 3, 3, 3, 3, 3, 5, 5, 5, 5,
704 5, 5, 5, 3, 3, 3, 3, 3, 3, 3,
705 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
710 #define yyerrok (yyerrstatus = 0)
711 #define yyclearin (yychar = YYEMPTY)
715 #define YYACCEPT goto yyacceptlab
716 #define YYABORT goto yyabortlab
717 #define YYERROR goto yyerrorlab
720 #define YYRECOVERING() (!!yyerrstatus)
722 #define YYBACKUP(Token, Value) \
724 if (yychar == YYEMPTY) \
728 YYPOPSTACK (yylen); \
734 yyerror (YY_("syntax error: cannot back up")); \
741 #define YYERRCODE 256
750 # define YYFPRINTF fprintf
753 # define YYDPRINTF(Args) \
760 #ifndef YY_LOCATION_PRINT
761 # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
765 # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
769 YYFPRINTF (stderr, "%s ", Title); \
770 yy_symbol_print (stderr, \
772 YYFPRINTF (stderr, "\n"); \
782 yy_symbol_value_print (FILE *yyoutput,
int yytype,
YYSTYPE const *
const yyvaluep)
784 FILE *yyo = yyoutput;
790 YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
801 yy_symbol_print (FILE *yyoutput,
int yytype,
YYSTYPE const *
const yyvaluep)
803 YYFPRINTF (yyoutput,
"%s %s (",
804 yytype <
YYNTOKENS ?
"token" :
"nterm", yytname[yytype]);
806 yy_symbol_value_print (yyoutput, yytype, yyvaluep);
807 YYFPRINTF (yyoutput,
")");
818 YYFPRINTF (stderr,
"Stack now");
819 for (; yybottom <= yytop; yybottom++)
821 int yybot = *yybottom;
822 YYFPRINTF (stderr,
" %d", yybot);
824 YYFPRINTF (stderr,
"\n");
827 # define YY_STACK_PRINT(Bottom, Top) \
830 yy_stack_print ((Bottom), (Top)); \
841 unsigned long int yylno = yyrline[yyrule];
842 int yynrhs =
yyr2[yyrule];
844 YYFPRINTF (stderr,
"Reducing stack by rule %d (line %lu):\n",
847 for (yyi = 0; yyi < yynrhs; yyi++)
849 YYFPRINTF (stderr,
" $%d = ", yyi + 1);
850 yy_symbol_print (stderr,
851 yystos[yyssp[yyi + 1 - yynrhs]],
852 &(yyvsp[(yyi + 1) - (yynrhs)])
854 YYFPRINTF (stderr,
"\n");
858 # define YY_REDUCE_PRINT(Rule) \
861 yy_reduce_print (yyssp, yyvsp, Rule); \
868 # define YYDPRINTF(Args)
869 # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
870 # define YY_STACK_PRINT(Bottom, Top)
871 # define YY_REDUCE_PRINT(Rule)
877 # define YYINITDEPTH 200
888 # define YYMAXDEPTH 10000
895 # if defined __GLIBC__ && defined _STRING_H
896 # define yystrlen strlen
900 yystrlen (
const char *yystr)
903 for (yylen = 0; yystr[yylen]; yylen++)
911 # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
912 # define yystpcpy stpcpy
917 yystpcpy (
char *yydest,
const char *yysrc)
920 const char *yys = yysrc;
922 while ((*yyd++ = *yys++) !=
'\0')
939 yytnamerr (
char *yyres,
const char *yystr)
944 char const *yyp = yystr;
951 goto do_not_strip_quotes;
955 goto do_not_strip_quotes;
968 do_not_strip_quotes: ;
972 return yystrlen (yystr);
974 return yystpcpy (yyres, yystr) - yyres;
987 yysyntax_error (
YYSIZE_T *yymsg_alloc,
char **yymsg,
992 enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
996 char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
1026 int yyn =
yypact[*yyssp];
1027 yyarg[yycount++] = yytname[yytoken];
1033 int yyxbegin = yyn < 0 ? -yyn : 0;
1035 int yychecklim =
YYLAST - yyn + 1;
1039 for (yyx = yyxbegin; yyx < yyxend; ++yyx)
1043 if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
1049 yyarg[yycount++] = yytname[yyx];
1052 if (! (yysize <= yysize1
1063 # define YYCASE_(N, S) \
1067 YYCASE_(0,
YY_(
"syntax error"));
1068 YYCASE_(1,
YY_(
"syntax error, unexpected %s"));
1069 YYCASE_(2,
YY_(
"syntax error, unexpected %s, expecting %s"));
1070 YYCASE_(3,
YY_(
"syntax error, unexpected %s, expecting %s or %s"));
1071 YYCASE_(4,
YY_(
"syntax error, unexpected %s, expecting %s or %s or %s"));
1072 YYCASE_(5,
YY_(
"syntax error, unexpected %s, expecting %s or %s or %s or %s"));
1077 YYSIZE_T yysize1 = yysize + yystrlen (yyformat);
1083 if (*yymsg_alloc < yysize)
1085 *yymsg_alloc = 2 * yysize;
1086 if (! (yysize <= *yymsg_alloc
1098 while ((*yyp = *yyformat) !=
'\0')
1099 if (*yyp ==
'%' && yyformat[1] ==
's' && yyi < yycount)
1101 yyp += yytnamerr (yyp, yyarg[yyi++]);
1184 char *yymsg = yymsgbuf;
1185 YYSIZE_T yymsg_alloc =
sizeof yymsgbuf;
1188 #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
1194 yyssp = yyss = yyssa;
1195 yyvsp = yyvs = yyvsa;
1198 YYDPRINTF ((stderr,
"Starting parse\n"));
1217 if (yyss + yystacksize - 1 <= yyssp)
1220 YYSIZE_T yysize = yyssp - yyss + 1;
1234 yyoverflow (
YY_(
"memory exhausted"),
1235 &yyss1, yysize *
sizeof (*yyssp),
1236 &yyvs1, yysize *
sizeof (*yyvsp),
1243 # ifndef YYSTACK_RELOCATE
1244 goto yyexhaustedlab;
1248 goto yyexhaustedlab;
1258 goto yyexhaustedlab;
1261 # undef YYSTACK_RELOCATE
1268 yyssp = yyss + yysize - 1;
1269 yyvsp = yyvs + yysize - 1;
1271 YYDPRINTF ((stderr,
"Stack size increased to %lu\n",
1272 (
unsigned long int) yystacksize));
1274 if (yyss + yystacksize - 1 <= yyssp)
1278 YYDPRINTF ((stderr,
"Entering state %d\n", yystate));
1303 YYDPRINTF ((stderr,
"Reading a token: "));
1310 YYDPRINTF ((stderr,
"Now at end of input.\n"));
1376 yyval = yyvsp[1-yylen];
1383 #line 63 "yacc_parser.yacc"
1385 #line 1386 "yacc_parser.cpp"
1389 #line 64 "yacc_parser.yacc"
1390 {
parsed = (yyvsp[-1].filterNode); }
1391 #line 1392 "yacc_parser.cpp"
1395 #line 68 "yacc_parser.yacc"
1397 #line 1398 "yacc_parser.cpp"
1401 #line 69 "yacc_parser.yacc"
1403 #line 1404 "yacc_parser.cpp"
1407 #line 70 "yacc_parser.yacc"
1409 #line 1410 "yacc_parser.cpp"
1413 #line 71 "yacc_parser.yacc"
1415 #line 1416 "yacc_parser.cpp"
1419 #line 72 "yacc_parser.yacc"
1421 #line 1422 "yacc_parser.cpp"
1425 #line 73 "yacc_parser.yacc"
1427 #line 1428 "yacc_parser.cpp"
1431 #line 74 "yacc_parser.yacc"
1433 #line 1434 "yacc_parser.cpp"
1437 #line 75 "yacc_parser.yacc"
1439 #line 1440 "yacc_parser.cpp"
1443 #line 76 "yacc_parser.yacc"
1445 #line 1446 "yacc_parser.cpp"
1449 #line 77 "yacc_parser.yacc"
1451 #line 1452 "yacc_parser.cpp"
1455 #line 78 "yacc_parser.yacc"
1457 #line 1458 "yacc_parser.cpp"
1461 #line 79 "yacc_parser.yacc"
1463 #line 1464 "yacc_parser.cpp"
1467 #line 80 "yacc_parser.yacc"
1469 #line 1470 "yacc_parser.cpp"
1473 #line 81 "yacc_parser.yacc"
1475 #line 1476 "yacc_parser.cpp"
1479 #line 82 "yacc_parser.yacc"
1481 #line 1482 "yacc_parser.cpp"
1485 #line 83 "yacc_parser.yacc"
1486 { (yyval.
scalarNode) = (yyvsp[-1].scalarNode); }
1487 #line 1488 "yacc_parser.cpp"
1491 #line 84 "yacc_parser.yacc"
1493 #line 1494 "yacc_parser.cpp"
1497 #line 88 "yacc_parser.yacc"
1499 #line 1500 "yacc_parser.cpp"
1503 #line 89 "yacc_parser.yacc"
1505 #line 1506 "yacc_parser.cpp"
1509 #line 90 "yacc_parser.yacc"
1511 #line 1512 "yacc_parser.cpp"
1515 #line 91 "yacc_parser.yacc"
1517 #line 1518 "yacc_parser.cpp"
1521 #line 92 "yacc_parser.yacc"
1523 #line 1524 "yacc_parser.cpp"
1527 #line 93 "yacc_parser.yacc"
1529 #line 1530 "yacc_parser.cpp"
1533 #line 94 "yacc_parser.yacc"
1535 #line 1536 "yacc_parser.cpp"
1539 #line 95 "yacc_parser.yacc"
1541 #line 1542 "yacc_parser.cpp"
1545 #line 96 "yacc_parser.yacc"
1547 #line 1548 "yacc_parser.cpp"
1551 #line 97 "yacc_parser.yacc"
1553 #line 1554 "yacc_parser.cpp"
1557 #line 98 "yacc_parser.yacc"
1559 #line 1560 "yacc_parser.cpp"
1563 #line 99 "yacc_parser.yacc"
1565 #line 1566 "yacc_parser.cpp"
1569 #line 100 "yacc_parser.yacc"
1571 #line 1572 "yacc_parser.cpp"
1575 #line 101 "yacc_parser.yacc"
1577 #line 1578 "yacc_parser.cpp"
1581 #line 102 "yacc_parser.yacc"
1582 { (yyval.
filterNode) = (yyvsp[-1].filterNode); }
1583 #line 1584 "yacc_parser.cpp"
1587 #line 103 "yacc_parser.yacc"
1589 #line 1590 "yacc_parser.cpp"
1593 #line 104 "yacc_parser.yacc"
1595 #line 1596 "yacc_parser.cpp"
1599 #line 105 "yacc_parser.yacc"
1601 #line 1602 "yacc_parser.cpp"
1605 #line 106 "yacc_parser.yacc"
1607 #line 1608 "yacc_parser.cpp"
1611 #line 107 "yacc_parser.yacc"
1613 #line 1614 "yacc_parser.cpp"
1617 #line 108 "yacc_parser.yacc"
1619 #line 1620 "yacc_parser.cpp"
1623 #line 109 "yacc_parser.yacc"
1625 #line 1626 "yacc_parser.cpp"
1629 #line 110 "yacc_parser.yacc"
1631 #line 1632 "yacc_parser.cpp"
1635 #line 111 "yacc_parser.yacc"
1637 #line 1638 "yacc_parser.cpp"
1641 #line 112 "yacc_parser.yacc"
1643 #line 1644 "yacc_parser.cpp"
1647 #line 113 "yacc_parser.yacc"
1649 #line 1650 "yacc_parser.cpp"
1653 #line 114 "yacc_parser.yacc"
1655 #line 1656 "yacc_parser.cpp"
1659 #line 115 "yacc_parser.yacc"
1661 #line 1662 "yacc_parser.cpp"
1665 #line 116 "yacc_parser.yacc"
1667 #line 1668 "yacc_parser.cpp"
1671 #line 117 "yacc_parser.yacc"
1673 #line 1674 "yacc_parser.cpp"
1677 #line 118 "yacc_parser.yacc"
1679 #line 1680 "yacc_parser.cpp"
1683 #line 119 "yacc_parser.yacc"
1685 #line 1686 "yacc_parser.cpp"
1689 #line 120 "yacc_parser.yacc"
1691 #line 1692 "yacc_parser.cpp"
1695 #line 121 "yacc_parser.yacc"
1697 #line 1698 "yacc_parser.cpp"
1701 #line 122 "yacc_parser.yacc"
1703 #line 1704 "yacc_parser.cpp"
1707 #line 123 "yacc_parser.yacc"
1709 #line 1710 "yacc_parser.cpp"
1713 #line 124 "yacc_parser.yacc"
1715 #line 1716 "yacc_parser.cpp"
1719 #line 125 "yacc_parser.yacc"
1721 #line 1722 "yacc_parser.cpp"
1725 #line 126 "yacc_parser.yacc"
1727 #line 1728 "yacc_parser.cpp"
1731 #line 127 "yacc_parser.yacc"
1733 #line 1734 "yacc_parser.cpp"
1737 #line 128 "yacc_parser.yacc"
1739 #line 1740 "yacc_parser.cpp"
1743 #line 129 "yacc_parser.yacc"
1745 #line 1746 "yacc_parser.cpp"
1749 #line 130 "yacc_parser.yacc"
1751 #line 1752 "yacc_parser.cpp"
1755 #line 131 "yacc_parser.yacc"
1757 #line 1758 "yacc_parser.cpp"
1761 #line 1762 "yacc_parser.cpp"
1790 if (0 <= yystate && yystate <=
YYLAST &&
yycheck[yystate] == *yyssp)
1810 #if ! YYERROR_VERBOSE
1813 # define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \
1816 char const *yymsgp =
YY_(
"syntax error");
1817 int yysyntax_error_status;
1818 yysyntax_error_status = YYSYNTAX_ERROR;
1819 if (yysyntax_error_status == 0)
1821 else if (yysyntax_error_status == 1)
1823 if (yymsg != yymsgbuf)
1829 yymsg_alloc =
sizeof yymsgbuf;
1830 yysyntax_error_status = 2;
1834 yysyntax_error_status = YYSYNTAX_ERROR;
1839 if (yysyntax_error_status == 2)
1840 goto yyexhaustedlab;
1842 # undef YYSYNTAX_ERROR
1848 if (yyerrstatus == 3)
1950 #if !defined yyoverflow || YYERROR_VERBOSE
1973 while (yyssp != yyss)
1984 if (yymsg != yymsgbuf)
1989 #line 133 "yacc_parser.yacc"
1996 ERROR(
"int yyerror(const char *s)", <<
"Parsing error: " << s << endl);
static const yytype_int16 yytable[]
#define yytable_value_is_error(Yytable_value)
#define YYSTACK_ALLOC_MAXIMUM
#define YY_STACK_PRINT(Bottom, Top)
xios::IScalarExprNode * scalarNode
#define yypact_value_is_default(Yystate)
Expression node corresponding to a binary operation on two scalars.
static const yytype_uint8 yyr2[]
xios::IFilterExprNode * filterNode
IFilterExprNode * parseExpr(const std::string &strExpr)
Expression node corresponding to a ternary operation on a field-scalar-scalar.
std::string globalInputText
Expression node corresponding to a unary operation on a scalar.
#define YY_REDUCE_PRINT(Rule)
Expression node corresponding to a binary operation on a field and a scalar.
unsigned short int yytype_uint16
Expression node corresponding to a binary operation on two fields.
int yyerror(const char *s)
Interface implemented by all the nodes of a tree representing an expression which can be reduced to a...
Expression node corresponding to a binary operation on a scalar and a field.
static const yytype_int8 yydefgoto[]
unsigned char yytype_uint8
Expression node corresponding to a unary operation on a field.
int readInputForLexer(char *buffer, size_t *numBytesRead, size_t maxBytesToRead)
Expression node corresponding to a ternary operation on a field-field-scalar.
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
#define YY_SYMBOL_PRINT(Title, Type, Value, Location)
Interface implemented by all the nodes of a tree representing an expression which can be transformed ...
static const yytype_int8 yypgoto[]
static const yytype_uint8 yystos[]
Expression node corresponding to a field.
#define YYSTACK_RELOCATE(Stack_alloc, Stack)
Expression node corresponding to a ternary operation on a scalar-scalar-field.
Expression node corresponding to a field for which the result of the temporal operation is requested ...
#define YY_IGNORE_MAYBE_UNINITIALIZED_END
static void yydestruct(const char *yymsg, int yytype, YYSTYPE *yyvaluep)
Expression node corresponding to a scalar variable.
static const yytype_int16 yypact[]
Expression node corresponding to a ternary operation on a scalar-field-field.
Expression node corresponding to a ternary operation on a field-scalar-field.
static const yytype_uint8 yydefact[]
Expression node corresponding to a ternary operation on a field-field-field.
Expression node corresponding to a ternary operation on a scalar-field-scalar.
Expression node corresponding to a scalar value.
static const yytype_uint8 yytranslate[]
static const yytype_uint8 yyr1[]
static const yytype_int16 yycheck[]