47 #define YYBISON_VERSION "3.0.2"
50 #define YYSKELETON_NAME "yacc.c"
79 #define parse_type(ps) builtin_type (parse_gdbarch (ps))
80 #define parse_m2_type(ps) builtin_m2_type (parse_gdbarch (ps))
89 #define yymaxdepth m2_maxdepth
90 #define yyparse m2_parse_internal
92 #define yyerror m2_error
93 #define yylval m2_lval
94 #define yychar m2_char
95 #define yydebug m2_debug
96 #define yypact m2_pact
103 #define yyexca m2_exca
104 #define yyerrflag m2_errflag
105 #define yynerrs m2_nerrs
109 #define yy_yys m2_yys
110 #define yystate m2_state
113 #define yy_yyv m2_yyv
115 #define yylloc m2_lloc
116 #define yyreds m2_reds
117 #define yytoks m2_toks
118 #define yyname m2_name
119 #define yyrule m2_rule
120 #define yylhs m2_yylhs
121 #define yylen m2_yylen
122 #define yydefred m2_yydefred
123 #define yydgoto m2_yydgoto
124 #define yysindex m2_yysindex
125 #define yyrindex m2_yyrindex
126 #define yygindex m2_yygindex
127 #define yytable m2_yytable
128 #define yycheck m2_yycheck
130 #define yysslim m2_yysslim
131 #define yyssp m2_yyssp
132 #define yystacksize m2_yystacksize
134 #define yyvsp m2_yyvsp
140 #define YYFPRINTF parser_fprintf
149 static int yylex (
void);
162 # if defined __cplusplus && 201103L <= __cplusplus
163 # define YY_NULLPTR nullptr
165 # define YY_NULLPTR 0
170 #ifdef YYERROR_VERBOSE
171 # undef YYERROR_VERBOSE
172 # define YYERROR_VERBOSE 1
174 # define YYERROR_VERBOSE 0
251 #define BLOCKNAME 268
262 #define FLOAT_FUNC 279
272 #define COLONCOLON 289
273 #define INTERNAL_VAR 290
274 #define ABOVE_COMMA 291
281 #define LOGICAL_AND 298
290 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
313 # define YYSTYPE_IS_TRIVIAL 1
314 # define YYSTYPE_IS_DECLARED 1
357 # ifdef __SIZE_TYPE__
358 # define YYSIZE_T __SIZE_TYPE__
359 # elif defined size_t
360 # define YYSIZE_T size_t
361 # elif ! defined YYSIZE_T
363 # define YYSIZE_T size_t
365 # define YYSIZE_T unsigned int
369 #define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
372 # if defined YYENABLE_NLS && YYENABLE_NLS
374 # include <libintl.h>
375 # define YY_(Msgid) dgettext ("bison-runtime", Msgid)
379 # define YY_(Msgid) Msgid
384 # if (defined __GNUC__ \
385 && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \
386 || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C
387 # define YY_ATTRIBUTE(Spec) __attribute__(Spec)
389 # define YY_ATTRIBUTE(Spec)
393 #ifndef YY_ATTRIBUTE_PURE
394 # define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__))
397 #ifndef YY_ATTRIBUTE_UNUSED
398 # define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__))
401 #if !defined _Noreturn \
402 && (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112)
403 # if defined _MSC_VER && 1200 <= _MSC_VER
404 # define _Noreturn __declspec (noreturn)
406 # define _Noreturn YY_ATTRIBUTE ((__noreturn__))
411 #if ! defined lint || defined __GNUC__
412 # define YYUSE(E) ((void) (E))
417 #if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
419 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
420 _Pragma ("GCC diagnostic push") \
421 _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\
422 _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
423 # define YY_IGNORE_MAYBE_UNINITIALIZED_END \
424 _Pragma ("GCC diagnostic pop")
426 # define YY_INITIAL_VALUE(Value) Value
428 #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
429 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
430 # define YY_IGNORE_MAYBE_UNINITIALIZED_END
432 #ifndef YY_INITIAL_VALUE
433 # define YY_INITIAL_VALUE(Value)
437 #if ! defined yyoverflow || YYERROR_VERBOSE
441 # ifdef YYSTACK_USE_ALLOCA
442 # if YYSTACK_USE_ALLOCA
444 # define YYSTACK_ALLOC __builtin_alloca
445 # elif defined __BUILTIN_VA_ARG_INCR
448 # define YYSTACK_ALLOC __alloca
449 # elif defined _MSC_VER
450 # define alloca _alloca
452 # define YYSTACK_ALLOC alloca
453 # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
456 # ifndef EXIT_SUCCESS
457 # define EXIT_SUCCESS 0
464 # ifdef YYSTACK_ALLOC
466 # define YYSTACK_FREE(Ptr) do { ; } while (0)
467 # ifndef YYSTACK_ALLOC_MAXIMUM
472 # define YYSTACK_ALLOC_MAXIMUM 4032
475 # define YYSTACK_ALLOC YYMALLOC
476 # define YYSTACK_FREE YYFREE
477 # ifndef YYSTACK_ALLOC_MAXIMUM
478 # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
480 # if (defined __cplusplus && ! defined EXIT_SUCCESS \
481 && ! ((defined YYMALLOC || defined xmalloc) \
482 && (defined YYFREE || defined xfree)))
484 # ifndef EXIT_SUCCESS
485 # define EXIT_SUCCESS 0
489 # define YYMALLOC xmalloc
490 # if ! defined xmalloc && ! defined EXIT_SUCCESS
495 # define YYFREE xfree
496 # if ! defined xfree && ! defined EXIT_SUCCESS
504 #if (! defined yyoverflow \
505 && (! defined __cplusplus \
506 || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
516 # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
520 # define YYSTACK_BYTES(N) \
521 ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
522 + YYSTACK_GAP_MAXIMUM)
524 # define YYCOPY_NEEDED 1
531 # define YYSTACK_RELOCATE(Stack_alloc, Stack) \
534 YYSIZE_T yynewbytes; \
535 YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
536 Stack = &yyptr->Stack_alloc; \
537 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
538 yyptr += yynewbytes / sizeof (*yyptr); \
544 #if defined YYCOPY_NEEDED && YYCOPY_NEEDED
548 # if defined __GNUC__ && 1 < __GNUC__
549 # define YYCOPY(Dst, Src, Count) \
550 __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src)))
552 # define YYCOPY(Dst, Src, Count) \
556 for (yyi = 0; yyi < (Count); yyi++) \
557 (Dst)[yyi] = (Src)[yyi]; \
576 #define YYNSTATES 187
581 #define YYMAXUTOK 304
583 #define YYTRANSLATE(YYX) \
584 ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
590 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
591 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
592 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
593 2, 2, 2, 2, 2, 45, 2, 2, 49, 2,
594 61, 65, 53, 51, 36, 52, 2, 54, 2, 2,
595 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
596 39, 43, 40, 2, 50, 2, 2, 2, 2, 2,
597 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
598 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
599 2, 60, 2, 68, 58, 2, 2, 2, 2, 2,
600 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
601 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
602 2, 2, 2, 66, 2, 67, 63, 2, 2, 2,
603 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
604 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
605 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
606 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
607 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
608 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
609 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
610 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
611 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
612 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
613 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
614 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
615 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
616 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
617 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
618 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
619 35, 37, 38, 41, 42, 44, 46, 47, 48, 55,
627 0, 206, 206, 207, 210, 219, 224, 223, 230, 234,
628 238, 239, 242, 246, 250, 254, 258, 264, 270, 274,
629 280, 284, 288, 292, 296, 301, 305, 312, 316, 323,
630 329, 332, 336, 340, 344, 346, 356, 352, 364, 371,
631 368, 379, 382, 386, 391, 396, 401, 407, 413, 421,
632 425, 429, 433, 437, 441, 445, 449, 453, 455, 459,
633 463, 467, 471, 475, 479, 483, 490, 496, 502, 510,
634 521, 531, 540, 543, 552, 559, 563, 573, 585, 593,
639 #if YYDEBUG || YYERROR_VERBOSE || 0
644 "$end",
"error",
"$undefined",
"INT",
"HEX",
"ERROR",
"UINT",
"M2_TRUE",
645 "M2_FALSE",
"CHAR",
"FLOAT",
"STRING",
"NAME",
"BLOCKNAME",
"IDENT",
646 "VARNAME",
"TYPENAME",
"SIZE",
"CAP",
"ORD",
"HIGH",
"ABS",
"MIN_FUNC",
647 "MAX_FUNC",
"FLOAT_FUNC",
"VAL",
"CHR",
"ODD",
"TRUNC",
"TSIZE",
"INC",
648 "DEC",
"INCL",
"EXCL",
"COLONCOLON",
"INTERNAL_VAR",
"','",
649 "ABOVE_COMMA",
"ASSIGN",
"'<'",
"'>'",
"LEQ",
"GEQ",
"'='",
"NOTEQUAL",
650 "'#'",
"IN",
"OROR",
"LOGICAL_AND",
"'&'",
"'@'",
"'+'",
"'-'",
"'*'",
651 "'/'",
"DIV",
"MOD",
"UNARY",
"'^'",
"DOT",
"'['",
"'('",
"NOT",
"'~'",
652 "QID",
"')'",
"'{'",
"'}'",
"']'",
"$accept",
"start",
"type_exp",
"exp",
653 "$@1",
"not_exp",
"set",
"$@2",
"$@3",
"arglist",
"non_empty_arglist",
654 "block",
"fblock",
"variable",
"type",
YY_NULLPTR
661 static const yytype_uint16
yytoknum[] =
663 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
664 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
665 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
666 285, 286, 287, 288, 289, 290, 44, 291, 292, 60,
667 62, 293, 294, 61, 295, 35, 296, 297, 298, 38,
668 64, 43, 45, 42, 47, 299, 300, 301, 94, 302,
669 91, 40, 303, 126, 304, 41, 123, 125, 93
673 #define YYPACT_NINF -90
675 #define yypact_value_is_default(Yystate) \
676 (!!((Yystate) == (-90)))
678 #define YYTABLE_NINF -76
680 #define yytable_value_is_error(Yytable_value) \
681 (!!((Yytable_value) == (-76)))
687 163, -90, -90, -90, -90, -90, -90, -90, -90, -90,
688 -90, 224, -35, -28, -22, -18, 2, 8, 17, 28,
689 30, 31, 32, 34, 35, 36, 38, 39, -90, 163,
690 -90, 163, -90, -90, 163, 27, -90, 807, 163, -90,
691 -6, -4, -90, -21, 163, 7, -21, 163, 163, 163,
692 163, 85, 85, 163, 85, 163, 163, 163, 163, 163,
693 163, 163, 163, 7, 163, 309, 807, -32, -42, -90,
694 163, 163, 163, 163, 163, 163, 163, 163, -15, 163,
695 163, 163, 163, 163, 163, 163, 163, 163, -90, 90,
696 163, -90, 7, -5, 163, 163, -24, 337, 365, 393,
697 421, -19, 42, 449, 67, 477, 505, 533, 561, 253,
698 281, 757, 783, 7, -90, 163, -90, 163, 831, -38,
699 -38, -38, -38, -38, -38, -38, 163, -90, 43, 149,
700 210, 842, 851, 851, 7, 7, 7, 7, -90, 83,
701 163, 163, -90, -90, 589, -31, -90, -90, -90, -90,
702 -90, -90, -90, -90, 163, -90, -90, -90, -90, 163,
703 -90, 163, -90, 163, 163, 807, 7, -90, 807, -34,
704 -33, -90, -90, 617, 645, 673, 701, 729, 163, -90,
705 -90, -90, -90, -90, -90, -90, 807
713 0, 68, 69, 66, 67, 70, 71, 74, 81, 76,
714 82, 0, 0, 0, 0, 0, 0, 0, 0, 0,
715 0, 0, 0, 0, 0, 0, 0, 0, 79, 0,
716 6, 0, 10, 11, 41, 0, 3, 2, 0, 30,
717 0, 78, 72, 4, 0, 24, 0, 0, 0, 0,
718 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
719 0, 0, 0, 8, 0, 0, 42, 0, 0, 1,
720 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
721 0, 0, 0, 0, 0, 0, 0, 0, 5, 0,
722 0, 39, 9, 0, 0, 41, 0, 0, 0, 0,
723 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
724 0, 0, 0, 7, 48, 0, 34, 0, 65, 61,
725 62, 59, 60, 56, 57, 58, 41, 31, 0, 64,
726 63, 49, 54, 55, 50, 51, 52, 53, 29, 0,
727 0, 41, 80, 77, 0, 0, 73, 12, 13, 15,
728 14, 16, 17, 18, 0, 20, 21, 22, 23, 0,
729 25, 0, 27, 0, 0, 43, 46, 38, 44, 0,
730 0, 47, 35, 0, 0, 0, 0, 0, 0, 37,
731 40, 19, 26, 28, 32, 33, 45
737 -90, -90, -90, 0, -90, -90, 26, -90, -90, -89,
738 -90, -90, -90, -90, 54
744 -1, 35, 36, 66, 64, 38, 39, 140, 141, 67,
753 37, 10, 178, 115, 115, 115, 145, 142, 143, 79,
754 80, 45, 81, 82, 83, 84, 85, 86, 87, 94,
755 88, 89, 90, 91, 95, 117, 47, 69, 93, 63,
756 -75, 65, 180, 48, 179, 116, 172, 94, 92, 49,
757 94, 146, 95, 50, 65, 95, 151, 97, 98, 99,
758 100, 126, 170, 103, 43, 105, 106, 107, 108, 109,
759 110, 111, 112, 51, 113, 88, 89, 90, 91, 52,
760 118, 119, 120, 121, 122, 123, 124, 125, 53, 129,
761 130, 131, 132, 133, 134, 135, 136, 137, 68, 54,
762 139, 55, 56, 57, 144, 58, 59, 60, 96, 61,
763 62, 10, 138, 154, 127, 101, 102, 152, 104, 95,
764 0, 0, 0, 0, 0, 165, 0, 166, 0, 0,
765 0, 70, 71, 72, 73, 74, 75, 76, 77, 78,
766 79, 80, 128, 81, 82, 83, 84, 85, 86, 87,
767 168, 88, 89, 90, 91, 0, 0, 0, 0, 0,
768 0, 167, 0, 0, 173, 0, 0, 0, 0, 174,
769 0, 175, 0, 176, 177, 0, 1, 0, 0, 2,
770 3, 4, 5, 6, 7, 8, 9, 0, 186, 10,
771 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
772 21, 22, 23, 24, 25, 26, 27, 80, 28, 81,
773 82, 83, 84, 85, 86, 87, 0, 88, 89, 90,
774 91, 0, 0, 0, 29, 30, 0, 0, 0, 0,
775 0, 0, 0, 0, 31, 32, 33, 1, 0, 34,
776 2, 3, 4, 5, 6, 7, 8, 9, 0, 0,
777 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
778 20, 21, 22, 23, 24, 25, 26, 27, 0, 28,
779 81, 82, 83, 84, 85, 86, 87, 0, 88, 89,
780 90, 91, 0, 0, 0, 29, 30, 0, 0, 0,
781 0, 0, 0, 0, 0, 44, 32, 33, 0, 159,
782 34, 70, 71, 72, 73, 74, 75, 76, 77, 78,
783 79, 80, 0, 81, 82, 83, 84, 85, 86, 87,
784 0, 88, 89, 90, 91, 0, 0, 161, 160, 70,
785 71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
786 0, 81, 82, 83, 84, 85, 86, 87, 0, 88,
787 89, 90, 91, 0, 0, 0, 162, 70, 71, 72,
788 73, 74, 75, 76, 77, 78, 79, 80, 0, 81,
789 82, 83, 84, 85, 86, 87, 0, 88, 89, 90,
790 91, 0, 0, 0, 114, 70, 71, 72, 73, 74,
791 75, 76, 77, 78, 79, 80, 0, 81, 82, 83,
792 84, 85, 86, 87, 0, 88, 89, 90, 91, 0,
793 0, 0, 147, 70, 71, 72, 73, 74, 75, 76,
794 77, 78, 79, 80, 0, 81, 82, 83, 84, 85,
795 86, 87, 0, 88, 89, 90, 91, 0, 0, 0,
796 148, 70, 71, 72, 73, 74, 75, 76, 77, 78,
797 79, 80, 0, 81, 82, 83, 84, 85, 86, 87,
798 0, 88, 89, 90, 91, 0, 0, 0, 149, 70,
799 71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
800 0, 81, 82, 83, 84, 85, 86, 87, 0, 88,
801 89, 90, 91, 0, 0, 0, 150, 70, 71, 72,
802 73, 74, 75, 76, 77, 78, 79, 80, 0, 81,
803 82, 83, 84, 85, 86, 87, 0, 88, 89, 90,
804 91, 0, 0, 0, 153, 70, 71, 72, 73, 74,
805 75, 76, 77, 78, 79, 80, 0, 81, 82, 83,
806 84, 85, 86, 87, 0, 88, 89, 90, 91, 0,
807 0, 0, 155, 70, 71, 72, 73, 74, 75, 76,
808 77, 78, 79, 80, 0, 81, 82, 83, 84, 85,
809 86, 87, 0, 88, 89, 90, 91, 0, 0, 0,
810 156, 70, 71, 72, 73, 74, 75, 76, 77, 78,
811 79, 80, 0, 81, 82, 83, 84, 85, 86, 87,
812 0, 88, 89, 90, 91, 0, 0, 0, 157, 70,
813 71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
814 0, 81, 82, 83, 84, 85, 86, 87, 0, 88,
815 89, 90, 91, 0, 0, 0, 158, 70, 71, 72,
816 73, 74, 75, 76, 77, 78, 79, 80, 0, 81,
817 82, 83, 84, 85, 86, 87, 0, 88, 89, 90,
818 91, 0, 0, 0, 171, 70, 71, 72, 73, 74,
819 75, 76, 77, 78, 79, 80, 0, 81, 82, 83,
820 84, 85, 86, 87, 0, 88, 89, 90, 91, 0,
821 0, 0, 181, 70, 71, 72, 73, 74, 75, 76,
822 77, 78, 79, 80, 0, 81, 82, 83, 84, 85,
823 86, 87, 0, 88, 89, 90, 91, 0, 0, 0,
824 182, 70, 71, 72, 73, 74, 75, 76, 77, 78,
825 79, 80, 0, 81, 82, 83, 84, 85, 86, 87,
826 0, 88, 89, 90, 91, 0, 0, 0, 183, 70,
827 71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
828 0, 81, 82, 83, 84, 85, 86, 87, 0, 88,
829 89, 90, 91, 0, 0, 0, 184, 70, 71, 72,
830 73, 74, 75, 76, 77, 78, 79, 80, 0, 81,
831 82, 83, 84, 85, 86, 87, 0, 88, 89, 90,
832 91, 0, 0, 163, 185, 70, 71, 72, 73, 74,
833 75, 76, 77, 78, 79, 80, 0, 81, 82, 83,
834 84, 85, 86, 87, 0, 88, 89, 90, 91, 164,
835 0, 70, 71, 72, 73, 74, 75, 76, 77, 78,
836 79, 80, 0, 81, 82, 83, 84, 85, 86, 87,
837 0, 88, 89, 90, 91, 70, 71, 72, 73, 74,
838 75, 76, 77, 78, 79, 80, 0, 81, 82, 83,
839 84, 85, 86, 87, 0, 88, 89, 90, 91, -76,
840 71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
841 0, 81, 82, 83, 84, 85, 86, 87, 0, 88,
842 89, 90, 91, 82, 83, 84, 85, 86, 87, 0,
843 88, 89, 90, 91, 84, 85, 86, 87, 0, 88,
849 0, 16, 36, 36, 36, 36, 95, 12, 13, 47,
850 48, 11, 50, 51, 52, 53, 54, 55, 56, 61,
851 58, 59, 60, 61, 66, 67, 61, 0, 34, 29,
852 34, 31, 65, 61, 68, 67, 67, 61, 38, 61,
853 61, 65, 66, 61, 44, 66, 65, 47, 48, 49,
854 50, 66, 141, 53, 0, 55, 56, 57, 58, 59,
855 60, 61, 62, 61, 64, 58, 59, 60, 61, 61,
856 70, 71, 72, 73, 74, 75, 76, 77, 61, 79,
857 80, 81, 82, 83, 84, 85, 86, 87, 34, 61,
858 90, 61, 61, 61, 94, 61, 61, 61, 44, 61,
859 61, 16, 12, 36, 78, 51, 52, 65, 54, 66,
860 -1, -1, -1, -1, -1, 115, -1, 117, -1, -1,
861 -1, 38, 39, 40, 41, 42, 43, 44, 45, 46,
862 47, 48, 78, 50, 51, 52, 53, 54, 55, 56,
863 140, 58, 59, 60, 61, -1, -1, -1, -1, -1,
864 -1, 68, -1, -1, 154, -1, -1, -1, -1, 159,
865 -1, 161, -1, 163, 164, -1, 3, -1, -1, 6,
866 7, 8, 9, 10, 11, 12, 13, -1, 178, 16,
867 17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
868 27, 28, 29, 30, 31, 32, 33, 48, 35, 50,
869 51, 52, 53, 54, 55, 56, -1, 58, 59, 60,
870 61, -1, -1, -1, 51, 52, -1, -1, -1, -1,
871 -1, -1, -1, -1, 61, 62, 63, 3, -1, 66,
872 6, 7, 8, 9, 10, 11, 12, 13, -1, -1,
873 16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
874 26, 27, 28, 29, 30, 31, 32, 33, -1, 35,
875 50, 51, 52, 53, 54, 55, 56, -1, 58, 59,
876 60, 61, -1, -1, -1, 51, 52, -1, -1, -1,
877 -1, -1, -1, -1, -1, 61, 62, 63, -1, 36,
878 66, 38, 39, 40, 41, 42, 43, 44, 45, 46,
879 47, 48, -1, 50, 51, 52, 53, 54, 55, 56,
880 -1, 58, 59, 60, 61, -1, -1, 36, 65, 38,
881 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
882 -1, 50, 51, 52, 53, 54, 55, 56, -1, 58,
883 59, 60, 61, -1, -1, -1, 65, 38, 39, 40,
884 41, 42, 43, 44, 45, 46, 47, 48, -1, 50,
885 51, 52, 53, 54, 55, 56, -1, 58, 59, 60,
886 61, -1, -1, -1, 65, 38, 39, 40, 41, 42,
887 43, 44, 45, 46, 47, 48, -1, 50, 51, 52,
888 53, 54, 55, 56, -1, 58, 59, 60, 61, -1,
889 -1, -1, 65, 38, 39, 40, 41, 42, 43, 44,
890 45, 46, 47, 48, -1, 50, 51, 52, 53, 54,
891 55, 56, -1, 58, 59, 60, 61, -1, -1, -1,
892 65, 38, 39, 40, 41, 42, 43, 44, 45, 46,
893 47, 48, -1, 50, 51, 52, 53, 54, 55, 56,
894 -1, 58, 59, 60, 61, -1, -1, -1, 65, 38,
895 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
896 -1, 50, 51, 52, 53, 54, 55, 56, -1, 58,
897 59, 60, 61, -1, -1, -1, 65, 38, 39, 40,
898 41, 42, 43, 44, 45, 46, 47, 48, -1, 50,
899 51, 52, 53, 54, 55, 56, -1, 58, 59, 60,
900 61, -1, -1, -1, 65, 38, 39, 40, 41, 42,
901 43, 44, 45, 46, 47, 48, -1, 50, 51, 52,
902 53, 54, 55, 56, -1, 58, 59, 60, 61, -1,
903 -1, -1, 65, 38, 39, 40, 41, 42, 43, 44,
904 45, 46, 47, 48, -1, 50, 51, 52, 53, 54,
905 55, 56, -1, 58, 59, 60, 61, -1, -1, -1,
906 65, 38, 39, 40, 41, 42, 43, 44, 45, 46,
907 47, 48, -1, 50, 51, 52, 53, 54, 55, 56,
908 -1, 58, 59, 60, 61, -1, -1, -1, 65, 38,
909 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
910 -1, 50, 51, 52, 53, 54, 55, 56, -1, 58,
911 59, 60, 61, -1, -1, -1, 65, 38, 39, 40,
912 41, 42, 43, 44, 45, 46, 47, 48, -1, 50,
913 51, 52, 53, 54, 55, 56, -1, 58, 59, 60,
914 61, -1, -1, -1, 65, 38, 39, 40, 41, 42,
915 43, 44, 45, 46, 47, 48, -1, 50, 51, 52,
916 53, 54, 55, 56, -1, 58, 59, 60, 61, -1,
917 -1, -1, 65, 38, 39, 40, 41, 42, 43, 44,
918 45, 46, 47, 48, -1, 50, 51, 52, 53, 54,
919 55, 56, -1, 58, 59, 60, 61, -1, -1, -1,
920 65, 38, 39, 40, 41, 42, 43, 44, 45, 46,
921 47, 48, -1, 50, 51, 52, 53, 54, 55, 56,
922 -1, 58, 59, 60, 61, -1, -1, -1, 65, 38,
923 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
924 -1, 50, 51, 52, 53, 54, 55, 56, -1, 58,
925 59, 60, 61, -1, -1, -1, 65, 38, 39, 40,
926 41, 42, 43, 44, 45, 46, 47, 48, -1, 50,
927 51, 52, 53, 54, 55, 56, -1, 58, 59, 60,
928 61, -1, -1, 36, 65, 38, 39, 40, 41, 42,
929 43, 44, 45, 46, 47, 48, -1, 50, 51, 52,
930 53, 54, 55, 56, -1, 58, 59, 60, 61, 36,
931 -1, 38, 39, 40, 41, 42, 43, 44, 45, 46,
932 47, 48, -1, 50, 51, 52, 53, 54, 55, 56,
933 -1, 58, 59, 60, 61, 38, 39, 40, 41, 42,
934 43, 44, 45, 46, 47, 48, -1, 50, 51, 52,
935 53, 54, 55, 56, -1, 58, 59, 60, 61, 38,
936 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
937 -1, 50, 51, 52, 53, 54, 55, 56, -1, 58,
938 59, 60, 61, 51, 52, 53, 54, 55, 56, -1,
939 58, 59, 60, 61, 53, 54, 55, 56, -1, 58,
947 0, 3, 6, 7, 8, 9, 10, 11, 12, 13,
948 16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
949 26, 27, 28, 29, 30, 31, 32, 33, 35, 51,
950 52, 61, 62, 63, 66, 70, 71, 72, 74, 75,
951 80, 81, 82, 83, 61, 72, 83, 61, 61, 61,
952 61, 61, 61, 61, 61, 61, 61, 61, 61, 61,
953 61, 61, 61, 72, 73, 72, 72, 78, 83, 0,
954 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
955 48, 50, 51, 52, 53, 54, 55, 56, 58, 59,
956 60, 61, 72, 34, 61, 66, 83, 72, 72, 72,
957 72, 83, 83, 72, 83, 72, 72, 72, 72, 72,
958 72, 72, 72, 72, 65, 36, 67, 67, 72, 72,
959 72, 72, 72, 72, 72, 72, 66, 75, 83, 72,
960 72, 72, 72, 72, 72, 72, 72, 72, 12, 72,
961 76, 77, 12, 13, 72, 78, 65, 65, 65, 65,
962 65, 65, 65, 65, 36, 65, 65, 65, 65, 36,
963 65, 36, 65, 36, 36, 72, 72, 68, 72, 79,
964 78, 65, 67, 72, 72, 72, 72, 72, 36, 68,
965 65, 65, 65, 65, 65, 65, 72
969 static const yytype_uint8
yyr1[] =
971 0, 69, 70, 70, 71, 72, 73, 72, 72, 72,
972 74, 74, 72, 72, 72, 72, 72, 72, 72, 72,
973 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
974 72, 72, 72, 72, 75, 75, 76, 72, 72, 77,
975 72, 78, 78, 78, 79, 79, 72, 72, 72, 72,
976 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
977 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
978 72, 72, 72, 72, 72, 80, 81, 81, 82, 82,
983 static const yytype_uint8
yyr2[] =
985 0, 2, 1, 1, 1, 2, 0, 3, 2, 2,
986 1, 1, 4, 4, 4, 4, 4, 4, 4, 6,
987 4, 4, 4, 4, 2, 4, 6, 4, 6, 3,
988 1, 3, 6, 6, 3, 4, 0, 5, 4, 0,
989 5, 0, 1, 3, 1, 3, 4, 4, 3, 3,
990 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
991 3, 3, 3, 3, 3, 3, 1, 1, 1, 1,
992 1, 1, 1, 4, 1, 1, 1, 3, 1, 1,
997 #define yyerrok (yyerrstatus = 0)
998 #define yyclearin (yychar = YYEMPTY)
1002 #define YYACCEPT goto yyacceptlab
1003 #define YYABORT goto yyabortlab
1004 #define YYERROR goto yyerrorlab
1007 #define YYRECOVERING() (!!yyerrstatus)
1009 #define YYBACKUP(Token, Value) \
1011 if (yychar == YYEMPTY) \
1015 YYPOPSTACK (yylen); \
1021 yyerror (YY_("syntax error: cannot back up")); \
1028 #define YYERRCODE 256
1037 # define YYFPRINTF fprintf
1040 # define YYDPRINTF(Args) \
1047 #ifndef YY_LOCATION_PRINT
1048 # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
1052 # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
1056 YYFPRINTF (stderr, "%s ", Title); \
1057 yy_symbol_print (stderr, \
1059 YYFPRINTF (stderr, "\n"); \
1071 FILE *yyo = yyoutput;
1077 YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
1091 yytype <
YYNTOKENS ?
"token" :
"nterm", yytname[yytype]);
1106 for (; yybottom <= yytop; yybottom++)
1108 int yybot = *yybottom;
1114 # define YY_STACK_PRINT(Bottom, Top) \
1117 yy_stack_print ((Bottom), (Top)); \
1128 unsigned long int yylno = yyrline[
yyrule];
1129 int yynrhs = yyr2[
yyrule];
1131 YYFPRINTF (stderr,
"Reducing stack by rule %d (line %lu):\n",
1134 for (yyi = 0; yyi < yynrhs; yyi++)
1138 yystos[yyssp[yyi + 1 - yynrhs]],
1139 &(yyvsp[(yyi + 1) - (yynrhs)])
1145 # define YY_REDUCE_PRINT(Rule) \
1148 yy_reduce_print (yyssp, yyvsp, Rule); \
1155 # define YYDPRINTF(Args)
1156 # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
1157 # define YY_STACK_PRINT(Bottom, Top)
1158 # define YY_REDUCE_PRINT(Rule)
1164 # define YYINITDEPTH 200
1175 # define YYMAXDEPTH 10000
1182 # if defined __GLIBC__ && defined _STRING_H
1183 # define yystrlen strlen
1187 yystrlen (
const char *yystr)
1190 for (yylen = 0; yystr[
yylen]; yylen++)
1198 # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
1199 # define yystpcpy stpcpy
1204 yystpcpy (
char *yydest,
const char *yysrc)
1207 const char *yys = yysrc;
1209 while ((*yyd++ = *yys++) !=
'\0')
1226 yytnamerr (
char *yyres,
const char *yystr)
1231 char const *yyp = yystr;
1238 goto do_not_strip_quotes;
1242 goto do_not_strip_quotes;
1255 do_not_strip_quotes: ;
1259 return yystrlen (yystr);
1261 return yystpcpy (yyres, yystr) - yyres;
1274 yysyntax_error (
YYSIZE_T *yymsg_alloc,
char **yymsg,
1275 yytype_int16 *yyssp,
int yytoken)
1279 enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
1283 char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
1313 int yyn = yypact[*
yyssp];
1314 yyarg[yycount++] = yytname[yytoken];
1320 int yyxbegin = yyn < 0 ? -yyn : 0;
1322 int yychecklim =
YYLAST - yyn + 1;
1326 for (yyx = yyxbegin; yyx < yyxend; ++yyx)
1327 if (yycheck[yyx + yyn] == yyx && yyx !=
YYTERROR
1330 if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
1336 yyarg[yycount++] = yytname[yyx];
1339 if (! (yysize <= yysize1
1350 # define YYCASE_(N, S) \
1354 YYCASE_(0,
YY_(
"syntax error"));
1355 YYCASE_(1,
YY_(
"syntax error, unexpected %s"));
1356 YYCASE_(2,
YY_(
"syntax error, unexpected %s, expecting %s"));
1357 YYCASE_(3,
YY_(
"syntax error, unexpected %s, expecting %s or %s"));
1358 YYCASE_(4,
YY_(
"syntax error, unexpected %s, expecting %s or %s or %s"));
1359 YYCASE_(5,
YY_(
"syntax error, unexpected %s, expecting %s or %s or %s or %s"));
1364 YYSIZE_T yysize1 = yysize + yystrlen (yyformat);
1370 if (*yymsg_alloc < yysize)
1372 *yymsg_alloc = 2 * yysize;
1373 if (! (yysize <= *yymsg_alloc
1385 while ((*yyp = *yyformat) !=
'\0')
1386 if (*yyp ==
'%' && yyformat[1] ==
's' && yyi < yycount)
1388 yyp += yytnamerr (yyp, yyarg[yyi++]);
1451 yytype_int16 *
yyssp;
1471 char *yymsg = yymsgbuf;
1472 YYSIZE_T yymsg_alloc =
sizeof yymsgbuf;
1475 #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
1481 yyssp = yyss = yyssa;
1482 yyvsp = yyvs = yyvsa;
1485 YYDPRINTF ((stderr,
"Starting parse\n"));
1504 if (yyss + yystacksize - 1 <= yyssp)
1507 YYSIZE_T yysize = yyssp - yyss + 1;
1515 yytype_int16 *yyss1 =
yyss;
1521 yyoverflow (
YY_(
"memory exhausted"),
1522 &yyss1, yysize *
sizeof (*yyssp),
1523 &yyvs1, yysize *
sizeof (*yyvsp),
1530 # ifndef YYSTACK_RELOCATE
1531 goto yyexhaustedlab;
1535 goto yyexhaustedlab;
1541 yytype_int16 *yyss1 =
yyss;
1545 goto yyexhaustedlab;
1548 # undef YYSTACK_RELOCATE
1555 yyssp = yyss + yysize - 1;
1556 yyvsp = yyvs + yysize - 1;
1558 YYDPRINTF ((stderr,
"Stack size increased to %lu\n",
1559 (
unsigned long int) yystacksize));
1561 if (yyss + yystacksize - 1 <= yyssp)
1565 YYDPRINTF ((stderr,
"Entering state %d\n", yystate));
1590 YYDPRINTF ((stderr,
"Reading a token: "));
1594 if (yychar <=
YYEOF)
1596 yychar = yytoken =
YYEOF;
1597 YYDPRINTF ((stderr,
"Now at end of input.\n"));
1608 if (yyn < 0 ||
YYLAST < yyn || yycheck[yyn] != yytoken)
1663 yyval = yyvsp[1-
yylen];
1670 #line 211 "m2-exp.y"
1675 #line 1677 "m2-exp.c"
1679 #line 220 "m2-exp.y"
1681 #line 1683 "m2-exp.c"
1685 #line 224 "m2-exp.y"
1686 { number_sign = -1; }
1687 #line 1689 "m2-exp.c"
1691 #line 226 "m2-exp.y"
1694 #line 1696 "m2-exp.c"
1698 #line 231 "m2-exp.y"
1700 #line 1702 "m2-exp.c"
1704 #line 235 "m2-exp.y"
1706 #line 1708 "m2-exp.c"
1710 #line 243 "m2-exp.y"
1712 #line 1714 "m2-exp.c"
1716 #line 247 "m2-exp.y"
1718 #line 1720 "m2-exp.c"
1722 #line 251 "m2-exp.y"
1724 #line 1726 "m2-exp.c"
1728 #line 255 "m2-exp.y"
1730 #line 1732 "m2-exp.c"
1734 #line 259 "m2-exp.y"
1738 #line 1740 "m2-exp.c"
1742 #line 265 "m2-exp.y"
1746 #line 1748 "m2-exp.c"
1750 #line 271 "m2-exp.y"
1752 #line 1754 "m2-exp.c"
1756 #line 275 "m2-exp.y"
1760 #line 1762 "m2-exp.c"
1764 #line 281 "m2-exp.y"
1766 #line 1768 "m2-exp.c"
1770 #line 285 "m2-exp.y"
1772 #line 1774 "m2-exp.c"
1776 #line 289 "m2-exp.y"
1778 #line 1780 "m2-exp.c"
1782 #line 293 "m2-exp.y"
1784 #line 1786 "m2-exp.c"
1788 #line 297 "m2-exp.y"
1790 #line 1792 "m2-exp.c"
1794 #line 302 "m2-exp.y"
1796 #line 1798 "m2-exp.c"
1800 #line 306 "m2-exp.y"
1804 BINOP_ASSIGN_MODIFY); }
1805 #line 1807 "m2-exp.c"
1809 #line 313 "m2-exp.y"
1811 #line 1813 "m2-exp.c"
1815 #line 317 "m2-exp.y"
1819 BINOP_ASSIGN_MODIFY); }
1820 #line 1822 "m2-exp.c"
1824 #line 324 "m2-exp.y"
1828 #line 1830 "m2-exp.c"
1832 #line 333 "m2-exp.y"
1833 {
error (
_(
"Sets are not implemented."));}
1834 #line 1836 "m2-exp.c"
1838 #line 337 "m2-exp.y"
1839 {
error (
_(
"Sets are not implemented."));}
1840 #line 1842 "m2-exp.c"
1844 #line 341 "m2-exp.y"
1845 {
error (
_(
"Sets are not implemented."));}
1846 #line 1848 "m2-exp.c"
1850 #line 345 "m2-exp.y"
1851 {
error (
_(
"Sets are not implemented."));}
1852 #line 1854 "m2-exp.c"
1856 #line 347 "m2-exp.y"
1857 {
error (
_(
"Sets are not implemented."));}
1858 #line 1860 "m2-exp.c"
1862 #line 356 "m2-exp.y"
1864 #line 1866 "m2-exp.c"
1868 #line 358 "m2-exp.y"
1873 #line 1875 "m2-exp.c"
1877 #line 365 "m2-exp.y"
1879 #line 1881 "m2-exp.c"
1883 #line 371 "m2-exp.y"
1885 #line 1887 "m2-exp.c"
1889 #line 373 "m2-exp.y"
1894 #line 1896 "m2-exp.c"
1898 #line 383 "m2-exp.y"
1900 #line 1902 "m2-exp.c"
1904 #line 387 "m2-exp.y"
1906 #line 1908 "m2-exp.c"
1910 #line 392 "m2-exp.y"
1912 #line 1914 "m2-exp.c"
1916 #line 397 "m2-exp.y"
1918 #line 1920 "m2-exp.c"
1922 #line 402 "m2-exp.y"
1926 #line 1928 "m2-exp.c"
1930 #line 408 "m2-exp.y"
1934 #line 1936 "m2-exp.c"
1938 #line 414 "m2-exp.y"
1940 #line 1942 "m2-exp.c"
1944 #line 422 "m2-exp.y"
1946 #line 1948 "m2-exp.c"
1950 #line 426 "m2-exp.y"
1952 #line 1954 "m2-exp.c"
1956 #line 430 "m2-exp.y"
1958 #line 1960 "m2-exp.c"
1962 #line 434 "m2-exp.y"
1964 #line 1966 "m2-exp.c"
1968 #line 438 "m2-exp.y"
1970 #line 1972 "m2-exp.c"
1974 #line 442 "m2-exp.y"
1976 #line 1978 "m2-exp.c"
1980 #line 446 "m2-exp.y"
1982 #line 1984 "m2-exp.c"
1986 #line 450 "m2-exp.y"
1988 #line 1990 "m2-exp.c"
1992 #line 454 "m2-exp.y"
1994 #line 1996 "m2-exp.c"
1998 #line 456 "m2-exp.y"
2000 #line 2002 "m2-exp.c"
2004 #line 460 "m2-exp.y"
2006 #line 2008 "m2-exp.c"
2010 #line 464 "m2-exp.y"
2012 #line 2014 "m2-exp.c"
2016 #line 468 "m2-exp.y"
2018 #line 2020 "m2-exp.c"
2022 #line 472 "m2-exp.y"
2024 #line 2026 "m2-exp.c"
2028 #line 476 "m2-exp.y"
2030 #line 2032 "m2-exp.c"
2034 #line 480 "m2-exp.y"
2036 #line 2038 "m2-exp.c"
2040 #line 484 "m2-exp.y"
2042 #line 2044 "m2-exp.c"
2046 #line 491 "m2-exp.y"
2050 #line 2052 "m2-exp.c"
2054 #line 497 "m2-exp.y"
2058 #line 2060 "m2-exp.c"
2062 #line 503 "m2-exp.y"
2068 #line 2070 "m2-exp.c"
2072 #line 511 "m2-exp.y"
2081 #line 2083 "m2-exp.c"
2085 #line 522 "m2-exp.y"
2092 #line 2094 "m2-exp.c"
2096 #line 532 "m2-exp.y"
2103 #line 2105 "m2-exp.c"
2107 #line 544 "m2-exp.y"
2114 #line 2116 "m2-exp.c"
2118 #line 553 "m2-exp.y"
2122 #line 2124 "m2-exp.c"
2126 #line 560 "m2-exp.y"
2128 #line 2130 "m2-exp.c"
2132 #line 564 "m2-exp.y"
2138 #line 2140 "m2-exp.c"
2142 #line 574 "m2-exp.y"
2147 error (
_(
"No function \"%s\" in specified context."),
2151 #line 2153 "m2-exp.c"
2155 #line 586 "m2-exp.y"
2160 #line 2162 "m2-exp.c"
2164 #line 598 "m2-exp.y"
2169 error (
_(
"No symbol \"%s\" in specified context."),
2184 #line 2186 "m2-exp.c"
2188 #line 621 "m2-exp.y"
2195 &is_a_field_of_this);
2217 char *arg =
copy_name ((yyvsp[0].sval));
2221 if (msymbol.
minsym != NULL)
2224 error (
_(
"No symbol table is loaded. Use the \"symbol-file\" command."));
2226 error (
_(
"No symbol \"%s\" in current context."),
2230 #line 2232 "m2-exp.c"
2234 #line 666 "m2-exp.y"
2239 #line 2241 "m2-exp.c"
2243 #line 2245 "m2-exp.c"
2272 if (0 <= yystate && yystate <=
YYLAST && yycheck[yystate] == *yyssp)
2292 #if ! YYERROR_VERBOSE
2295 # define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \
2298 char const *yymsgp =
YY_(
"syntax error");
2299 int yysyntax_error_status;
2300 yysyntax_error_status = YYSYNTAX_ERROR;
2301 if (yysyntax_error_status == 0)
2303 else if (yysyntax_error_status == 1)
2305 if (yymsg != yymsgbuf)
2311 yymsg_alloc =
sizeof yymsgbuf;
2312 yysyntax_error_status = 2;
2316 yysyntax_error_status = YYSYNTAX_ERROR;
2321 if (yysyntax_error_status == 2)
2322 goto yyexhaustedlab;
2324 # undef YYSYNTAX_ERROR
2330 if (yyerrstatus == 3)
2335 if (yychar <=
YYEOF)
2338 if (yychar ==
YYEOF)
2400 yystos[yystate], yyvsp);
2432 #if !defined yyoverflow || YYERROR_VERBOSE
2455 while (yyssp != yyss)
2458 yystos[*yyssp], yyvsp);
2466 if (yymsg != yymsgbuf)
2471 #line 673 "m2-exp.y"
2489 int unsigned_p = number_sign == 1 ? 1 : 0;
2496 else if(p[len-1] ==
'C' || p[len-1] ==
'B')
2499 ischar = p[len-1] ==
'C';
2504 for (c = 0; c <
len; c++)
2506 if (p[c] ==
'.' && base == 10)
2513 if (p[c] ==
'.' && base != 10)
2514 error (
_(
"Floating point numbers must be base 10."));
2515 if (base == 10 && (p[c] <
'0' || p[c] >
'9'))
2516 error (
_(
"Invalid digit \'%c\' in number."),p[c]);
2523 if( base == 8 && (c ==
'8' || c ==
'9'))
2524 error (
_(
"Invalid digit \'%c\' in octal number."),c);
2525 if (c >=
'0' && c <=
'9')
2529 if (base == 16 && c >=
'A' && c <=
'F')
2537 if(!unsigned_p && number_sign == 1 && (prevn >= n))
2543 if((unsigned_p && (
unsigned)prevn >= (
unsigned)n) ||
2544 ((!unsigned_p && number_sign==-1) && -prevn <= -n))
2551 if(*p ==
'B' || *p ==
'C' || *p ==
'H')
2559 else if ( unsigned_p && number_sign == 1)
2564 else if((unsigned_p && (n<0))) {
2565 range_error (
_(
"Overflow on numeric constant -- number too large."));
2583 { {
'<',
'='},
LEQ },
2584 { {
'>',
'='},
GEQ },
2635 const char *tokstart;
2653 switch (c = *tokstart)
2715 for (namelen = 1; (c = tokstart[namelen]) != quote && c !=
'\0'; namelen++)
2718 c = tokstart[++namelen];
2719 if (c >=
'0' && c <=
'9')
2721 c = tokstart[++namelen];
2722 if (c >=
'0' && c <=
'9')
2723 c = tokstart[++namelen];
2727 error (
_(
"Unterminated string or character constant."));
2728 yylval.
sval.
ptr = tokstart + 1;
2734 yylval.
ulval = tokstart[1];
2744 if ((c >=
'0' && c <=
'9'))
2747 int got_dot = 0, got_e = 0;
2748 const char *p = tokstart;
2753 if (!got_e && (*p ==
'e' || *p ==
'E'))
2754 got_dot = got_e = 1;
2755 else if (!got_dot && *p ==
'.')
2757 else if (got_e && (p[-1] ==
'e' || p[-1] ==
'E')
2758 && (*p ==
'-' || *p ==
'+'))
2762 else if ((*p < '0' || *p >
'9') &&
2763 (*p < 'A' || *p >
'F') &&
2768 if (toktype ==
ERROR)
2770 char *err_copy = (
char *) alloca (p - tokstart + 1);
2772 memcpy (err_copy, tokstart, p - tokstart);
2773 err_copy[p - tokstart] = 0;
2774 error (
_(
"Invalid number \"%s\"."), err_copy);
2780 if (!(c ==
'_' || c ==
'$'
2781 || (c >=
'a' && c <=
'z') || (c >=
'A' && c <=
'Z')))
2783 error (
_(
"Invalid character '%c' in expression."), c);
2787 for (c = tokstart[namelen];
2788 (c ==
'_' || c ==
'$' || (c >=
'0' && c <=
'9')
2789 || (c >=
'a' && c <=
'z') || (c >=
'A' && c <=
'Z'));
2790 c = tokstart[++namelen])
2795 if (namelen == 2 && tokstart[0] ==
'i' && tokstart[1] ==
'f')
2803 for(i = 0 ; i < (
int) (
sizeof(keytab) /
sizeof(keytab[0])) ; i++)
2804 if (namelen == strlen (keytab[i].
keyw)
2805 && strncmp (tokstart, keytab[i].keyw, namelen) == 0)
2806 return keytab[i].
token;
2811 if (*tokstart ==
'$')
2861 error (
_(
"internal: Undefined class in m2lex()"));
2865 error (
_(
"internal: Unforseen case in m2lex()"));
2868 error (
_(
"unhandled token in m2lex()"));
2875 if (strncmp (tokstart,
"TRUE", 4) == 0)
2880 else if (strncmp (tokstart,
"FALSE", 5) == 0)
2914 error (
_(
"A %s in expression, near `%s'."), (msg ? msg :
"error"),
lexptr);
int m2_parse(struct parser_state *par_state)
struct internalvar * ivar
#define YYSTACK_RELOCATE(Stack_alloc, Stack)
#define YYSTACK_ALLOC_MAXIMUM
void write_exp_elt_sym(struct parser_state *ps, struct symbol *expelt)
#define parse_language(ps)
#define parse_gdbarch(ps)
#define YY_REDUCE_PRINT(Rule)
#define YY_SYMBOL_PRINT(Title, Type, Value, Location)
struct symtab * lookup_symtab(const char *name)
#define SYMBOL_CLASS(symbol)
const struct block * innermost_block
int have_partial_symbols(void)
static const yytype_uint8 yystos[]
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
#define YYPRINT(FILE, TYPE, VALUE)
static void yy_symbol_print(FILE *yyoutput, int yytype, YYSTYPE const *const yyvaluep)
static void yydestruct(const char *yymsg, int yytype, YYSTYPE *yyvaluep)
struct type * lookup_typename(const struct language_defn *language, struct gdbarch *gdbarch, const char *name, const struct block *block, int noerr)
void write_exp_elt_block(struct parser_state *ps, const struct block *b)
void write_exp_elt_longcst(struct parser_state *ps, LONGEST expelt)
static void yy_stack_print(yytype_int16 *yybottom, yytype_int16 *yytop)
static void yy_symbol_value_print(FILE *yyoutput, int yytype, YYSTYPE const *const yyvaluep)
int contained_in(const struct block *a, const struct block *b)
#define yytable_value_is_error(Yytable_value)
void range_error(const char *string,...)
static void yy_reduce_print(yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule)
#define parse_m2_type(ps)
unsigned char yytype_uint8
void write_exp_elt_dblcst(struct parser_state *ps, DOUBLEST expelt)
int symbol_read_needs_frame(struct symbol *sym)
static int parse_number(int)
#define yypact_value_is_default(Yystate)
const struct block * block_found
static const yytype_uint16 yytoknum[]
void write_dollar_variable(struct parser_state *ps, struct stoken str)
static const yytype_int8 yypgoto[]
struct cleanup * make_cleanup_clear_parser_state(struct parser_state **p)
static const char *const yytname[]
const struct block * bval
unsigned short int yytype_uint16
void write_exp_msymbol(struct parser_state *ps, struct bound_minimal_symbol bound_msym)
void write_exp_elt_opcode(struct parser_state *ps, enum exp_opcode expelt)
static const char * lexptr
const char const char int
static const yytype_int16 yydefgoto[]
#define SYMBOL_BLOCK_VALUE(symbol)
static struct @96 tokentab2[]
struct minimal_symbol * minsym
struct symbol * lookup_symbol(const char *name, const struct block *block, domain_enum domain, struct field_of_this_result *is_a_field_of_this)
struct bound_minimal_symbol lookup_bound_minimal_symbol(const char *name)
#define YY_IGNORE_MAYBE_UNINITIALIZED_END
int have_full_symbols(void)
const struct block * expression_context_block
unsigned long long ULONGEST
double atof(const char *)
static const yytype_uint16 yyrline[]
#define TYPE_LENGTH(thistype)
static const char * prev_lexptr
void write_exp_string(struct parser_state *ps, struct stoken str)
void write_exp_elt_type(struct parser_state *ps, struct type *expelt)
void error(const char *fmt,...)
void do_cleanups(struct cleanup *old_chain)
static const yytype_uint8 yytranslate[]
#define YY_STACK_PRINT(Bottom, Top)
char * copy_name(struct stoken token)
const ULONGEST const LONGEST len
static const yytype_uint8 yydefact[]