47 #define YYBISON_VERSION "3.0.2"
50 #define YYSKELETON_NAME "yacc.c"
81 #define parse_type(ps) builtin_type (parse_gdbarch (ps))
82 #define parse_java_type(ps) builtin_java_type (parse_gdbarch (ps))
91 #define yymaxdepth java_maxdepth
92 #define yyparse java_parse_internal
93 #define yylex java_lex
94 #define yyerror java_error
95 #define yylval java_lval
96 #define yychar java_char
97 #define yydebug java_debug
98 #define yypact java_pact
101 #define yydef java_def
102 #define yychk java_chk
103 #define yypgo java_pgo
104 #define yyact java_act
105 #define yyexca java_exca
106 #define yyerrflag java_errflag
107 #define yynerrs java_nerrs
111 #define yy_yys java_yys
112 #define yystate java_state
113 #define yytmp java_tmp
115 #define yy_yyv java_yyv
116 #define yyval java_val
117 #define yylloc java_lloc
118 #define yyreds java_reds
119 #define yytoks java_toks
120 #define yyname java_name
121 #define yyrule java_rule
122 #define yylhs java_yylhs
123 #define yylen java_yylen
124 #define yydefred java_yydefred
125 #define yydgoto java_yydgoto
126 #define yysindex java_yysindex
127 #define yyrindex java_yyrindex
128 #define yygindex java_yygindex
129 #define yytable java_yytable
130 #define yycheck java_yycheck
131 #define yyss java_yyss
132 #define yysslim java_yysslim
133 #define yyssp java_yyssp
134 #define yystacksize java_yystacksize
135 #define yyvs java_yyvs
136 #define yyvsp java_yyvsp
142 #define YYFPRINTF parser_fprintf
151 static int yylex (
void);
166 # if defined __cplusplus && 201103L <= __cplusplus
167 # define YY_NULLPTR nullptr
169 # define YY_NULLPTR 0
174 #ifdef YYERROR_VERBOSE
175 # undef YYERROR_VERBOSE
176 # define YYERROR_VERBOSE 1
178 # define YYERROR_VERBOSE 0
228 #define INTEGER_LITERAL 258
229 #define FLOATING_POINT_LITERAL 259
230 #define IDENTIFIER 260
231 #define STRING_LITERAL 261
232 #define BOOLEAN_LITERAL 262
234 #define NAME_OR_INT 264
245 #define ASSIGN_MODIFY 275
256 #define INCREMENT 286
257 #define DECREMENT 287
260 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
288 # define YYSTYPE_IS_TRIVIAL 1
289 # define YYSTYPE_IS_DECLARED 1
337 # ifdef __SIZE_TYPE__
338 # define YYSIZE_T __SIZE_TYPE__
339 # elif defined size_t
340 # define YYSIZE_T size_t
341 # elif ! defined YYSIZE_T
343 # define YYSIZE_T size_t
345 # define YYSIZE_T unsigned int
349 #define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
352 # if defined YYENABLE_NLS && YYENABLE_NLS
354 # include <libintl.h>
355 # define YY_(Msgid) dgettext ("bison-runtime", Msgid)
359 # define YY_(Msgid) Msgid
364 # if (defined __GNUC__ \
365 && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \
366 || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C
367 # define YY_ATTRIBUTE(Spec) __attribute__(Spec)
369 # define YY_ATTRIBUTE(Spec)
373 #ifndef YY_ATTRIBUTE_PURE
374 # define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__))
377 #ifndef YY_ATTRIBUTE_UNUSED
378 # define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__))
381 #if !defined _Noreturn \
382 && (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112)
383 # if defined _MSC_VER && 1200 <= _MSC_VER
384 # define _Noreturn __declspec (noreturn)
386 # define _Noreturn YY_ATTRIBUTE ((__noreturn__))
391 #if ! defined lint || defined __GNUC__
392 # define YYUSE(E) ((void) (E))
397 #if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
399 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
400 _Pragma ("GCC diagnostic push") \
401 _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\
402 _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
403 # define YY_IGNORE_MAYBE_UNINITIALIZED_END \
404 _Pragma ("GCC diagnostic pop")
406 # define YY_INITIAL_VALUE(Value) Value
408 #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
409 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
410 # define YY_IGNORE_MAYBE_UNINITIALIZED_END
412 #ifndef YY_INITIAL_VALUE
413 # define YY_INITIAL_VALUE(Value)
417 #if ! defined yyoverflow || YYERROR_VERBOSE
421 # ifdef YYSTACK_USE_ALLOCA
422 # if YYSTACK_USE_ALLOCA
424 # define YYSTACK_ALLOC __builtin_alloca
425 # elif defined __BUILTIN_VA_ARG_INCR
428 # define YYSTACK_ALLOC __alloca
429 # elif defined _MSC_VER
430 # define alloca _alloca
432 # define YYSTACK_ALLOC alloca
433 # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
436 # ifndef EXIT_SUCCESS
437 # define EXIT_SUCCESS 0
444 # ifdef YYSTACK_ALLOC
446 # define YYSTACK_FREE(Ptr) do { ; } while (0)
447 # ifndef YYSTACK_ALLOC_MAXIMUM
452 # define YYSTACK_ALLOC_MAXIMUM 4032
455 # define YYSTACK_ALLOC YYMALLOC
456 # define YYSTACK_FREE YYFREE
457 # ifndef YYSTACK_ALLOC_MAXIMUM
458 # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
460 # if (defined __cplusplus && ! defined EXIT_SUCCESS \
461 && ! ((defined YYMALLOC || defined xmalloc) \
462 && (defined YYFREE || defined xfree)))
464 # ifndef EXIT_SUCCESS
465 # define EXIT_SUCCESS 0
469 # define YYMALLOC xmalloc
470 # if ! defined xmalloc && ! defined EXIT_SUCCESS
475 # define YYFREE xfree
476 # if ! defined xfree && ! defined EXIT_SUCCESS
484 #if (! defined yyoverflow \
485 && (! defined __cplusplus \
486 || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
496 # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
500 # define YYSTACK_BYTES(N) \
501 ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
502 + YYSTACK_GAP_MAXIMUM)
504 # define YYCOPY_NEEDED 1
511 # define YYSTACK_RELOCATE(Stack_alloc, Stack) \
514 YYSIZE_T yynewbytes; \
515 YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
516 Stack = &yyptr->Stack_alloc; \
517 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
518 yyptr += yynewbytes / sizeof (*yyptr); \
524 #if defined YYCOPY_NEEDED && YYCOPY_NEEDED
528 # if defined __GNUC__ && 1 < __GNUC__
529 # define YYCOPY(Dst, Src, Count) \
530 __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src)))
532 # define YYCOPY(Dst, Src, Count) \
536 for (yyi = 0; yyi < (Count); yyi++) \
537 (Dst)[yyi] = (Src)[yyi]; \
556 #define YYNSTATES 209
561 #define YYMAXUTOK 287
563 #define YYTRANSLATE(YYX) \
564 ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
570 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
571 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
572 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
573 2, 2, 2, 54, 2, 2, 2, 43, 30, 2,
574 48, 49, 41, 39, 23, 40, 46, 42, 2, 2,
575 2, 2, 2, 2, 2, 2, 2, 2, 55, 2,
576 33, 24, 34, 25, 2, 2, 2, 2, 2, 2,
577 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
578 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
579 2, 47, 2, 52, 29, 2, 2, 2, 2, 2,
580 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
581 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
582 2, 2, 2, 50, 28, 51, 53, 2, 2, 2,
583 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
584 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
585 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
586 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
587 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
588 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
589 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
590 2, 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, 2, 2, 2, 2, 2,
594 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
595 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
596 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
597 15, 16, 17, 18, 19, 20, 21, 22, 26, 27,
598 31, 32, 35, 36, 37, 38, 44, 45
605 0, 217, 217, 218, 221, 230, 231, 235, 244, 249,
606 258, 263, 269, 280, 281, 286, 287, 291, 293, 295,
607 297, 299, 304, 306, 318, 323, 327, 329, 334, 335,
608 339, 340, 344, 345, 349, 375, 376, 381, 382, 386,
609 387, 388, 389, 390, 391, 392, 400, 405, 410, 416,
610 418, 424, 425, 429, 432, 438, 439, 443, 447, 449,
611 454, 456, 460, 462, 468, 474, 473, 479, 481, 486,
612 506, 508, 513, 514, 516, 518, 519, 523, 528, 533,
613 534, 535, 536, 538, 541, 545, 550, 555, 556, 558,
614 560, 564, 568, 592, 602, 603, 605, 607, 612, 613,
615 615, 620, 621, 623, 629, 630, 632, 634, 636, 642,
616 643, 645, 650, 651, 656, 657, 661, 662, 667, 668,
617 673, 674, 679, 680, 685, 686, 690, 692, 699, 701,
622 #if YYDEBUG || YYERROR_VERBOSE || 0
627 "$end",
"error",
"$undefined",
"INTEGER_LITERAL",
628 "FLOATING_POINT_LITERAL",
"IDENTIFIER",
"STRING_LITERAL",
629 "BOOLEAN_LITERAL",
"TYPENAME",
"NAME_OR_INT",
"ERROR",
"LONG",
"SHORT",
630 "BYTE",
"INT",
"CHAR",
"BOOLEAN",
"DOUBLE",
"FLOAT",
"VARIABLE",
631 "ASSIGN_MODIFY",
"SUPER",
"NEW",
"','",
"'='",
"'?'",
"OROR",
"ANDAND",
632 "'|'",
"'^'",
"'&'",
"EQUAL",
"NOTEQUAL",
"'<'",
"'>'",
"LEQ",
"GEQ",
633 "LSH",
"RSH",
"'+'",
"'-'",
"'*'",
"'/'",
"'%'",
"INCREMENT",
634 "DECREMENT",
"'.'",
"'['",
"'('",
"')'",
"'{'",
"'}'",
"']'",
"'~'",
635 "'!'",
"':'",
"$accept",
"start",
"type_exp",
"PrimitiveOrArrayType",
636 "StringLiteral",
"Literal",
"PrimitiveType",
"NumericType",
637 "IntegralType",
"FloatingPointType",
"ClassOrInterfaceType",
"ClassType",
638 "ArrayType",
"Name",
"ForcedName",
"SimpleName",
"QualifiedName",
"exp1",
639 "Primary",
"PrimaryNoNewArray",
"lcurly",
"rcurly",
640 "ClassInstanceCreationExpression",
"ArgumentList",
"ArgumentList_opt",
641 "ArrayCreationExpression",
"DimExprs",
"DimExpr",
"Dims",
"Dims_opt",
642 "FieldAccess",
"FuncStart",
"MethodInvocation",
"$@1",
"ArrayAccess",
643 "PostfixExpression",
"PostIncrementExpression",
644 "PostDecrementExpression",
"UnaryExpression",
"PreIncrementExpression",
645 "PreDecrementExpression",
"UnaryExpressionNotPlusMinus",
646 "CastExpression",
"MultiplicativeExpression",
"AdditiveExpression",
647 "ShiftExpression",
"RelationalExpression",
"EqualityExpression",
648 "AndExpression",
"ExclusiveOrExpression",
"InclusiveOrExpression",
649 "ConditionalAndExpression",
"ConditionalOrExpression",
650 "ConditionalExpression",
"AssignmentExpression",
"Assignment",
658 static const yytype_uint16
yytoknum[] =
660 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
661 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
662 275, 276, 277, 44, 61, 63, 278, 279, 124, 94,
663 38, 280, 281, 60, 62, 282, 283, 284, 285, 43,
664 45, 42, 47, 37, 286, 287, 46, 91, 40, 41,
665 123, 125, 93, 126, 33, 58
669 #define YYPACT_NINF -145
671 #define yypact_value_is_default(Yystate) \
672 (!!((Yystate) == (-145)))
674 #define YYTABLE_NINF -132
676 #define yytable_value_is_error(Yytable_value) \
683 215, -145, -145, -5, -145, -145, 1, -145, -145, -145,
684 -145, -145, -145, -145, -145, -7, -19, 279, 50, 50,
685 50, 50, 50, 215, -145, 50, 50, 46, -145, -145,
686 -145, -145, -9, -145, -145, -145, -145, 87, -145, -145,
687 12, 44, 5, 16, 319, -145, -145, 28, -145, -145,
688 38, 29, -145, -145, -145, -145, -145, -145, -145, 99,
689 53, 85, 52, 94, 66, 41, 71, 74, 122, -145,
690 -145, -145, 40, -145, 26, 319, 26, -145, 59, 59,
691 67, 82, -145, -145, 111, 107, -145, -145, -145, -145,
692 -145, -145, -145, -9, 87, 68, -145, -145, -145, 79,
693 91, 26, 267, -145, 91, 319, 26, 319, -18, -145,
694 319, -145, -145, 50, 50, 50, 50, 50, 50, 50,
695 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
696 319, 50, 50, 50, -145, -145, -145, 112, 126, 319,
697 128, -145, 128, 319, 319, 91, 127, -31, 193, -145,
698 125, -145, 129, -145, 131, 130, 319, -145, -145, 157,
699 135, -145, -145, -145, 99, 99, 53, 53, 85, 85,
700 85, 85, 52, 52, 94, 66, 41, 71, 132, 74,
701 -145, -145, -145, 319, 134, 267, -145, -145, -145, 139,
702 50, 193, -145, -145, -145, 319, -145, -145, -145, 50,
703 141, -145, -145, -145, -145, 144, -145, -145, -145
711 0, 8, 10, 28, 7, 11, 9, 20, 18, 17,
712 19, 21, 14, 23, 22, 74, 0, 0, 0, 0,
713 0, 0, 0, 0, 46, 0, 0, 0, 3, 4,
714 12, 39, 5, 13, 15, 16, 6, 73, 128, 30,
715 29, 2, 72, 37, 0, 41, 38, 42, 65, 43,
716 44, 87, 75, 76, 94, 79, 80, 84, 90, 98,
717 101, 104, 109, 112, 114, 116, 118, 120, 122, 124,
718 132, 125, 0, 35, 0, 0, 0, 28, 0, 25,
719 0, 24, 29, 9, 74, 73, 42, 44, 81, 82,
720 83, 85, 86, 61, 73, 0, 88, 89, 1, 0,
721 26, 0, 0, 64, 27, 0, 0, 0, 0, 49,
722 51, 77, 78, 0, 0, 0, 0, 0, 0, 0,
723 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
724 0, 0, 0, 0, 32, 33, 63, 0, 0, 0,
725 61, 55, 61, 51, 0, 60, 0, 0, 40, 58,
726 0, 34, 0, 36, 62, 0, 0, 47, 45, 52,
727 0, 95, 96, 97, 99, 100, 102, 103, 105, 106,
728 107, 108, 110, 111, 113, 115, 117, 119, 0, 121,
729 127, 126, 70, 51, 0, 0, 56, 53, 54, 0,
730 0, 0, 92, 59, 69, 51, 71, 50, 66, 0,
731 0, 57, 48, 91, 93, 0, 123, 68, 67
737 -145, -145, -145, -145, -145, -145, -3, -145, -145, -145,
738 -145, -145, -145, 11, -145, -64, 0, -145, -145, -145,
739 -145, -145, -145, 150, -134, -145, 124, -116, -29, -99,
740 6, -145, -145, -145, 22, -145, -145, -145, 58, -145,
741 -145, -144, -145, 43, 49, -2, 45, 78, 81, 83,
742 77, 92, -145, -131, -145, -145, -145, 7
748 -1, 27, 28, 29, 30, 31, 32, 33, 34, 35,
749 79, 80, 36, 85, 38, 39, 82, 41, 42, 43,
750 44, 158, 45, 159, 160, 46, 140, 141, 145, 146,
751 86, 48, 49, 110, 87, 51, 52, 53, 54, 55,
752 56, 57, 58, 59, 60, 61, 62, 63, 64, 65,
753 66, 67, 68, 69, 70, 71, 72, 109
761 40, 180, 181, 100, 192, 156, 47, 73, 104, 189,
762 136, 37, 138, -129, 78, -32, 150, -129, 191, -32,
763 93, -33, 50, 40, 186, -33, 186, 76, 81, 47,
764 95, 134, -31, 157, 94, 135, -31, 151, 99, 74,
765 75, 187, 154, 188, 40, 50, 98, 204, -130, 200,
766 47, 106, -130, 1, 2, 77, 4, 5, -131, 83,
767 132, 205, -131, 107, 133, 147, 50, 105, 206, 84,
768 127, 16, 17, 111, 112, 40, 88, 89, 90, 91,
769 92, 47, 137, 96, 97, 120, 121, 122, 123, 18,
770 19, 20, 116, 117, 21, 22, 126, 50, 23, 128,
771 24, 129, 40, 25, 26, 40, 139, 40, 47, 152,
772 40, 47, 153, 47, 155, 143, 47, 148, 168, 169,
773 170, 171, 118, 119, 50, 124, 125, 50, 101, 50,
774 40, 149, 50, 101, 102, 103, 47, 178, 150, 40,
775 113, 114, 115, 40, 40, 47, 184, 130, 131, 47,
776 47, 152, 50, 101, 144, 103, 40, 74, 75, 164,
777 165, 50, 47, 197, 182, 50, 50, 166, 167, 172,
778 173, 161, 162, 163, 183, 185, 190, 193, 50, 195,
779 156, 194, 196, 40, 198, 40, 201, 199, 202, 47,
780 207, 47, 184, 208, 108, 40, 1, 2, 77, 4,
781 5, 47, 83, 142, 174, 50, 177, 50, 175, 0,
782 0, 176, 84, 0, 16, 17, 0, 50, 1, 2,
783 3, 4, 5, 179, 6, 0, 7, 8, 9, 10,
784 11, 12, 13, 14, 15, 0, 16, 17, 0, 0,
785 0, 23, 0, 24, 0, 0, 25, 26, 203, 0,
786 0, 0, 0, 0, 18, 19, 20, 0, 0, 21,
787 22, 0, 0, 23, 0, 24, 0, 0, 25, 26,
788 1, 2, 3, 4, 5, 0, 6, 0, 0, 0,
789 0, 0, 0, 0, 77, 0, 15, 0, 16, 17,
790 7, 8, 9, 10, 11, 12, 13, 14, 0, 0,
791 0, 0, 0, 0, 0, 0, 18, 19, 20, 0,
792 0, 21, 22, 0, 0, 23, 0, 24, 0, 149,
793 25, 26, 1, 2, 3, 4, 5, 0, 6, 0,
794 0, 0, 0, 0, 0, 0, 0, 0, 15, 0,
795 16, 17, 0, 0, 0, 0, 0, 0, 0, 0,
796 0, 0, 0, 0, 0, 0, 0, 0, 18, 19,
797 20, 0, 0, 21, 22, 0, 0, 23, 0, 24,
803 0, 132, 133, 32, 148, 23, 0, 0, 37, 143,
804 74, 0, 76, 20, 17, 20, 47, 24, 49, 24,
805 23, 20, 0, 23, 140, 24, 142, 46, 17, 23,
806 23, 5, 20, 51, 23, 9, 24, 101, 47, 46,
807 47, 140, 106, 142, 44, 23, 0, 191, 20, 183,
808 44, 46, 24, 3, 4, 5, 6, 7, 20, 9,
809 20, 195, 24, 47, 24, 94, 44, 23, 199, 19,
810 29, 21, 22, 44, 45, 75, 18, 19, 20, 21,
811 22, 75, 75, 25, 26, 33, 34, 35, 36, 39,
812 40, 41, 39, 40, 44, 45, 30, 75, 48, 28,
813 50, 27, 102, 53, 54, 105, 47, 107, 102, 102,
814 110, 105, 105, 107, 107, 48, 110, 49, 120, 121,
815 122, 123, 37, 38, 102, 31, 32, 105, 46, 107,
816 130, 52, 110, 46, 47, 48, 130, 130, 47, 139,
817 41, 42, 43, 143, 144, 139, 139, 25, 26, 143,
818 144, 144, 130, 46, 47, 48, 156, 46, 47, 116,
819 117, 139, 156, 156, 52, 143, 144, 118, 119, 124,
820 125, 113, 114, 115, 48, 47, 49, 52, 156, 48,
821 23, 52, 52, 183, 49, 185, 52, 55, 49, 183,
822 49, 185, 185, 49, 44, 195, 3, 4, 5, 6,
823 7, 195, 9, 79, 126, 183, 129, 185, 127, -1,
824 -1, 128, 19, -1, 21, 22, -1, 195, 3, 4,
825 5, 6, 7, 131, 9, -1, 11, 12, 13, 14,
826 15, 16, 17, 18, 19, -1, 21, 22, -1, -1,
827 -1, 48, -1, 50, -1, -1, 53, 54, 190, -1,
828 -1, -1, -1, -1, 39, 40, 41, -1, -1, 44,
829 45, -1, -1, 48, -1, 50, -1, -1, 53, 54,
830 3, 4, 5, 6, 7, -1, 9, -1, -1, -1,
831 -1, -1, -1, -1, 5, -1, 19, -1, 21, 22,
832 11, 12, 13, 14, 15, 16, 17, 18, -1, -1,
833 -1, -1, -1, -1, -1, -1, 39, 40, 41, -1,
834 -1, 44, 45, -1, -1, 48, -1, 50, -1, 52,
835 53, 54, 3, 4, 5, 6, 7, -1, 9, -1,
836 -1, -1, -1, -1, -1, -1, -1, -1, 19, -1,
837 21, 22, -1, -1, -1, -1, -1, -1, -1, -1,
838 -1, -1, -1, -1, -1, -1, -1, -1, 39, 40,
839 41, -1, -1, 44, 45, -1, -1, 48, -1, 50,
847 0, 3, 4, 5, 6, 7, 9, 11, 12, 13,
848 14, 15, 16, 17, 18, 19, 21, 22, 39, 40,
849 41, 44, 45, 48, 50, 53, 54, 57, 58, 59,
850 60, 61, 62, 63, 64, 65, 68, 69, 70, 71,
851 72, 73, 74, 75, 76, 78, 81, 86, 87, 88,
852 90, 91, 92, 93, 94, 95, 96, 97, 98, 99,
853 100, 101, 102, 103, 104, 105, 106, 107, 108, 109,
854 110, 111, 112, 113, 46, 47, 46, 5, 62, 66,
855 67, 69, 72, 9, 19, 69, 86, 90, 94, 94,
856 94, 94, 94, 62, 69, 113, 94, 94, 0, 47,
857 84, 46, 47, 48, 84, 23, 46, 47, 79, 113,
858 89, 44, 45, 41, 42, 43, 39, 40, 37, 38,
859 33, 34, 35, 36, 31, 32, 30, 29, 28, 27,
860 25, 26, 20, 24, 5, 9, 71, 113, 71, 47,
861 82, 83, 82, 48, 47, 84, 85, 84, 49, 52,
862 47, 71, 113, 113, 71, 113, 23, 51, 77, 79,
863 80, 94, 94, 94, 99, 99, 100, 100, 101, 101,
864 101, 101, 102, 102, 103, 104, 105, 106, 113, 107,
865 109, 109, 52, 48, 113, 47, 83, 85, 85, 80,
866 49, 49, 97, 52, 52, 48, 52, 113, 49, 55,
867 80, 52, 49, 94, 97, 80, 109, 49, 49
871 static const yytype_uint8
yyr1[] =
873 0, 56, 57, 57, 58, 59, 59, 60, 61, 61,
874 61, 61, 61, 62, 62, 63, 63, 64, 64, 64,
875 64, 64, 65, 65, 66, 67, 68, 68, 69, 69,
876 70, 70, 71, 71, 72, 73, 73, 74, 74, 75,
877 75, 75, 75, 75, 75, 75, 76, 77, 78, 79,
878 79, 80, 80, 81, 81, 82, 82, 83, 84, 84,
879 85, 85, 86, 86, 87, 89, 88, 88, 88, 90,
880 90, 90, 91, 91, 91, 91, 91, 92, 93, 94,
881 94, 94, 94, 94, 94, 95, 96, 97, 97, 97,
882 97, 98, 98, 98, 99, 99, 99, 99, 100, 100,
883 100, 101, 101, 101, 102, 102, 102, 102, 102, 103,
884 103, 103, 104, 104, 105, 105, 106, 106, 107, 107,
885 108, 108, 109, 109, 110, 110, 111, 111, 112, 112,
890 static const yytype_uint8
yyr2[] =
892 0, 2, 1, 1, 1, 1, 1, 1, 1, 1,
893 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
894 1, 1, 1, 1, 1, 1, 2, 2, 1, 1,
895 1, 1, 1, 1, 3, 1, 3, 1, 1, 1,
896 3, 1, 1, 1, 1, 3, 1, 1, 5, 1,
897 3, 0, 1, 4, 4, 1, 2, 3, 2, 3,
898 1, 0, 3, 3, 2, 0, 4, 6, 6, 4,
899 4, 4, 1, 1, 1, 1, 1, 2, 2, 1,
900 1, 2, 2, 2, 1, 2, 2, 1, 2, 2,
901 1, 5, 4, 5, 1, 3, 3, 3, 1, 3,
902 3, 1, 3, 3, 1, 3, 3, 3, 3, 1,
903 3, 3, 1, 3, 1, 3, 1, 3, 1, 3,
904 1, 3, 1, 5, 1, 1, 3, 3, 1, 1,
909 #define yyerrok (yyerrstatus = 0)
910 #define yyclearin (yychar = YYEMPTY)
914 #define YYACCEPT goto yyacceptlab
915 #define YYABORT goto yyabortlab
916 #define YYERROR goto yyerrorlab
919 #define YYRECOVERING() (!!yyerrstatus)
921 #define YYBACKUP(Token, Value) \
923 if (yychar == YYEMPTY) \
927 YYPOPSTACK (yylen); \
933 yyerror (YY_("syntax error: cannot back up")); \
940 #define YYERRCODE 256
949 # define YYFPRINTF fprintf
952 # define YYDPRINTF(Args) \
959 #ifndef YY_LOCATION_PRINT
960 # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
964 # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
968 YYFPRINTF (stderr, "%s ", Title); \
969 yy_symbol_print (stderr, \
971 YYFPRINTF (stderr, "\n"); \
983 FILE *yyo = yyoutput;
989 YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
1003 yytype <
YYNTOKENS ?
"token" :
"nterm", yytname[yytype]);
1018 for (; yybottom <= yytop; yybottom++)
1020 int yybot = *yybottom;
1026 # define YY_STACK_PRINT(Bottom, Top) \
1029 yy_stack_print ((Bottom), (Top)); \
1040 unsigned long int yylno = yyrline[
yyrule];
1041 int yynrhs = yyr2[
yyrule];
1043 YYFPRINTF (stderr,
"Reducing stack by rule %d (line %lu):\n",
1046 for (yyi = 0; yyi < yynrhs; yyi++)
1050 yystos[yyssp[yyi + 1 - yynrhs]],
1051 &(yyvsp[(yyi + 1) - (yynrhs)])
1057 # define YY_REDUCE_PRINT(Rule) \
1060 yy_reduce_print (yyssp, yyvsp, Rule); \
1067 # define YYDPRINTF(Args)
1068 # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
1069 # define YY_STACK_PRINT(Bottom, Top)
1070 # define YY_REDUCE_PRINT(Rule)
1076 # define YYINITDEPTH 200
1087 # define YYMAXDEPTH 10000
1094 # if defined __GLIBC__ && defined _STRING_H
1095 # define yystrlen strlen
1099 yystrlen (
const char *yystr)
1102 for (yylen = 0; yystr[
yylen]; yylen++)
1110 # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
1111 # define yystpcpy stpcpy
1116 yystpcpy (
char *yydest,
const char *yysrc)
1119 const char *yys = yysrc;
1121 while ((*yyd++ = *yys++) !=
'\0')
1138 yytnamerr (
char *yyres,
const char *yystr)
1143 char const *yyp = yystr;
1150 goto do_not_strip_quotes;
1154 goto do_not_strip_quotes;
1167 do_not_strip_quotes: ;
1171 return yystrlen (yystr);
1173 return yystpcpy (yyres, yystr) - yyres;
1186 yysyntax_error (
YYSIZE_T *yymsg_alloc,
char **yymsg,
1187 yytype_int16 *yyssp,
int yytoken)
1191 enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
1195 char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
1225 int yyn = yypact[*
yyssp];
1226 yyarg[yycount++] = yytname[yytoken];
1232 int yyxbegin = yyn < 0 ? -yyn : 0;
1234 int yychecklim =
YYLAST - yyn + 1;
1238 for (yyx = yyxbegin; yyx < yyxend; ++yyx)
1239 if (yycheck[yyx + yyn] == yyx && yyx !=
YYTERROR
1242 if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
1248 yyarg[yycount++] = yytname[yyx];
1251 if (! (yysize <= yysize1
1262 # define YYCASE_(N, S) \
1266 YYCASE_(0,
YY_(
"syntax error"));
1267 YYCASE_(1,
YY_(
"syntax error, unexpected %s"));
1268 YYCASE_(2,
YY_(
"syntax error, unexpected %s, expecting %s"));
1269 YYCASE_(3,
YY_(
"syntax error, unexpected %s, expecting %s or %s"));
1270 YYCASE_(4,
YY_(
"syntax error, unexpected %s, expecting %s or %s or %s"));
1271 YYCASE_(5,
YY_(
"syntax error, unexpected %s, expecting %s or %s or %s or %s"));
1276 YYSIZE_T yysize1 = yysize + yystrlen (yyformat);
1282 if (*yymsg_alloc < yysize)
1284 *yymsg_alloc = 2 * yysize;
1285 if (! (yysize <= *yymsg_alloc
1297 while ((*yyp = *yyformat) !=
'\0')
1298 if (*yyp ==
'%' && yyformat[1] ==
's' && yyi < yycount)
1300 yyp += yytnamerr (yyp, yyarg[yyi++]);
1363 yytype_int16 *
yyssp;
1383 char *yymsg = yymsgbuf;
1384 YYSIZE_T yymsg_alloc =
sizeof yymsgbuf;
1387 #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
1393 yyssp = yyss = yyssa;
1394 yyvsp = yyvs = yyvsa;
1397 YYDPRINTF ((stderr,
"Starting parse\n"));
1416 if (yyss + yystacksize - 1 <= yyssp)
1419 YYSIZE_T yysize = yyssp - yyss + 1;
1427 yytype_int16 *yyss1 =
yyss;
1433 yyoverflow (
YY_(
"memory exhausted"),
1434 &yyss1, yysize *
sizeof (*yyssp),
1435 &yyvs1, yysize *
sizeof (*yyvsp),
1442 # ifndef YYSTACK_RELOCATE
1443 goto yyexhaustedlab;
1447 goto yyexhaustedlab;
1453 yytype_int16 *yyss1 =
yyss;
1457 goto yyexhaustedlab;
1460 # undef YYSTACK_RELOCATE
1467 yyssp = yyss + yysize - 1;
1468 yyvsp = yyvs + yysize - 1;
1470 YYDPRINTF ((stderr,
"Stack size increased to %lu\n",
1471 (
unsigned long int) yystacksize));
1473 if (yyss + yystacksize - 1 <= yyssp)
1477 YYDPRINTF ((stderr,
"Entering state %d\n", yystate));
1502 YYDPRINTF ((stderr,
"Reading a token: "));
1506 if (yychar <=
YYEOF)
1508 yychar = yytoken =
YYEOF;
1509 YYDPRINTF ((stderr,
"Now at end of input.\n"));
1520 if (yyn < 0 ||
YYLAST < yyn || yycheck[yyn] != yytoken)
1575 yyval = yyvsp[1-
yylen];
1582 #line 222 "jv-exp.y"
1588 #line 1590 "jv-exp.c"
1592 #line 236 "jv-exp.y"
1598 #line 1600 "jv-exp.c"
1602 #line 245 "jv-exp.y"
1607 #line 1609 "jv-exp.c"
1611 #line 250 "jv-exp.y"
1613 parse_number (pstate, (yyvsp[0].sval).ptr, (yyvsp[0].sval).length, 0, &val);
1620 #line 1622 "jv-exp.c"
1624 #line 259 "jv-exp.y"
1629 #line 1631 "jv-exp.c"
1633 #line 264 "jv-exp.y"
1639 #line 1641 "jv-exp.c"
1643 #line 282 "jv-exp.y"
1645 #line 1647 "jv-exp.c"
1649 #line 292 "jv-exp.y"
1651 #line 1653 "jv-exp.c"
1655 #line 294 "jv-exp.y"
1657 #line 1659 "jv-exp.c"
1661 #line 296 "jv-exp.y"
1663 #line 1665 "jv-exp.c"
1667 #line 298 "jv-exp.y"
1669 #line 1671 "jv-exp.c"
1673 #line 300 "jv-exp.y"
1675 #line 1677 "jv-exp.c"
1679 #line 305 "jv-exp.y"
1681 #line 1683 "jv-exp.c"
1685 #line 307 "jv-exp.y"
1687 #line 1689 "jv-exp.c"
1691 #line 319 "jv-exp.y"
1693 #line 1695 "jv-exp.c"
1697 #line 328 "jv-exp.y"
1699 #line 1701 "jv-exp.c"
1703 #line 330 "jv-exp.y"
1705 #line 1707 "jv-exp.c"
1709 #line 350 "jv-exp.y"
1710 { (yyval.
sval).length = (yyvsp[-2].sval).
length + (yyvsp[0].sval).length + 1;
1711 if ((yyvsp[-2].sval).ptr + (yyvsp[-2].sval).length + 1 == (yyvsp[0].sval).ptr
1712 && (yyvsp[-2].sval).ptr[(yyvsp[-2].sval).length] ==
'.')
1713 (yyval.
sval).ptr = (yyvsp[-2].sval).ptr;
1720 sprintf (buf,
"%.*s.%.*s",
1721 (yyvsp[-2].sval).length, (yyvsp[-2].sval).ptr, (yyvsp[0].sval).length, (yyvsp[0].sval).ptr);
1722 (yyval.
sval).ptr = buf;
1724 #line 1726 "jv-exp.c"
1728 #line 377 "jv-exp.y"
1730 #line 1732 "jv-exp.c"
1734 #line 393 "jv-exp.y"
1739 #line 1741 "jv-exp.c"
1743 #line 401 "jv-exp.y"
1745 #line 1747 "jv-exp.c"
1749 #line 406 "jv-exp.y"
1751 #line 1753 "jv-exp.c"
1755 #line 411 "jv-exp.y"
1757 _(
"FIXME - ClassInstanceCreationExpression")); }
1758 #line 1760 "jv-exp.c"
1762 #line 417 "jv-exp.y"
1764 #line 1766 "jv-exp.c"
1768 #line 419 "jv-exp.y"
1770 #line 1772 "jv-exp.c"
1774 #line 424 "jv-exp.y"
1776 #line 1778 "jv-exp.c"
1780 #line 430 "jv-exp.y"
1782 _(
"FIXME - ArrayCreationExpression")); }
1783 #line 1785 "jv-exp.c"
1787 #line 433 "jv-exp.y"
1789 _(
"FIXME - ArrayCreationExpression")); }
1790 #line 1792 "jv-exp.c"
1794 #line 448 "jv-exp.y"
1795 { (yyval.
lval) = 1; }
1796 #line 1798 "jv-exp.c"
1800 #line 450 "jv-exp.y"
1801 { (yyval.
lval) = (yyvsp[-2].lval) + 1; }
1802 #line 1804 "jv-exp.c"
1806 #line 456 "jv-exp.y"
1807 { (yyval.
lval) = 0; }
1808 #line 1810 "jv-exp.c"
1812 #line 461 "jv-exp.y"
1814 #line 1816 "jv-exp.c"
1818 #line 463 "jv-exp.y"
1820 #line 1822 "jv-exp.c"
1824 #line 469 "jv-exp.y"
1826 #line 1828 "jv-exp.c"
1830 #line 474 "jv-exp.y"
1832 #line 1834 "jv-exp.c"
1836 #line 476 "jv-exp.y"
1840 #line 1842 "jv-exp.c"
1844 #line 480 "jv-exp.y"
1845 {
error (
_(
"Form of method invocation not implemented")); }
1846 #line 1848 "jv-exp.c"
1850 #line 482 "jv-exp.y"
1851 {
error (
_(
"Form of method invocation not implemented")); }
1852 #line 1854 "jv-exp.c"
1856 #line 487 "jv-exp.y"
1876 #line 1878 "jv-exp.c"
1880 #line 507 "jv-exp.y"
1882 #line 1884 "jv-exp.c"
1886 #line 509 "jv-exp.y"
1888 #line 1890 "jv-exp.c"
1892 #line 515 "jv-exp.y"
1894 #line 1896 "jv-exp.c"
1898 #line 524 "jv-exp.y"
1900 #line 1902 "jv-exp.c"
1904 #line 529 "jv-exp.y"
1906 #line 1908 "jv-exp.c"
1910 #line 537 "jv-exp.y"
1912 #line 1914 "jv-exp.c"
1916 #line 539 "jv-exp.y"
1919 #line 1921 "jv-exp.c"
1923 #line 546 "jv-exp.y"
1925 #line 1927 "jv-exp.c"
1929 #line 551 "jv-exp.y"
1931 #line 1933 "jv-exp.c"
1935 #line 557 "jv-exp.y"
1937 #line 1939 "jv-exp.c"
1941 #line 559 "jv-exp.y"
1943 #line 1945 "jv-exp.c"
1947 #line 565 "jv-exp.y"
1951 #line 1953 "jv-exp.c"
1955 #line 569 "jv-exp.y"
1961 int base = pstate->
expout_ptr - last_exp_size - 3;
1965 error (
_(
"Invalid cast expression"));
1969 for (i = 0; i < last_exp_size; i++)
1979 #line 1981 "jv-exp.c"
1983 #line 593 "jv-exp.y"
1987 ((yyvsp[-3].sval)), (yyvsp[-2].lval)));
1989 #line 1991 "jv-exp.c"
1993 #line 604 "jv-exp.y"
1995 #line 1997 "jv-exp.c"
1999 #line 606 "jv-exp.y"
2001 #line 2003 "jv-exp.c"
2005 #line 608 "jv-exp.y"
2007 #line 2009 "jv-exp.c"
2011 #line 614 "jv-exp.y"
2013 #line 2015 "jv-exp.c"
2017 #line 616 "jv-exp.y"
2019 #line 2021 "jv-exp.c"
2023 #line 622 "jv-exp.y"
2025 #line 2027 "jv-exp.c"
2029 #line 624 "jv-exp.y"
2031 #line 2033 "jv-exp.c"
2035 #line 631 "jv-exp.y"
2037 #line 2039 "jv-exp.c"
2041 #line 633 "jv-exp.y"
2043 #line 2045 "jv-exp.c"
2047 #line 635 "jv-exp.y"
2049 #line 2051 "jv-exp.c"
2053 #line 637 "jv-exp.y"
2055 #line 2057 "jv-exp.c"
2059 #line 644 "jv-exp.y"
2061 #line 2063 "jv-exp.c"
2065 #line 646 "jv-exp.y"
2067 #line 2069 "jv-exp.c"
2071 #line 652 "jv-exp.y"
2073 #line 2075 "jv-exp.c"
2077 #line 658 "jv-exp.y"
2079 #line 2081 "jv-exp.c"
2083 #line 663 "jv-exp.y"
2085 #line 2087 "jv-exp.c"
2089 #line 669 "jv-exp.y"
2091 #line 2093 "jv-exp.c"
2095 #line 675 "jv-exp.y"
2097 #line 2099 "jv-exp.c"
2101 #line 681 "jv-exp.y"
2103 #line 2105 "jv-exp.c"
2107 #line 691 "jv-exp.y"
2109 #line 2111 "jv-exp.c"
2113 #line 693 "jv-exp.y"
2117 #line 2119 "jv-exp.c"
2121 #line 700 "jv-exp.y"
2123 #line 2125 "jv-exp.c"
2127 #line 2129 "jv-exp.c"
2156 if (0 <= yystate && yystate <=
YYLAST && yycheck[yystate] == *yyssp)
2176 #if ! YYERROR_VERBOSE
2179 # define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \
2182 char const *yymsgp =
YY_(
"syntax error");
2183 int yysyntax_error_status;
2184 yysyntax_error_status = YYSYNTAX_ERROR;
2185 if (yysyntax_error_status == 0)
2187 else if (yysyntax_error_status == 1)
2189 if (yymsg != yymsgbuf)
2195 yymsg_alloc =
sizeof yymsgbuf;
2196 yysyntax_error_status = 2;
2200 yysyntax_error_status = YYSYNTAX_ERROR;
2205 if (yysyntax_error_status == 2)
2206 goto yyexhaustedlab;
2208 # undef YYSYNTAX_ERROR
2214 if (yyerrstatus == 3)
2219 if (yychar <=
YYEOF)
2222 if (yychar ==
YYEOF)
2284 yystos[yystate], yyvsp);
2316 #if !defined yyoverflow || YYERROR_VERBOSE
2339 while (yyssp != yyss)
2342 yystos[*yyssp], yyvsp);
2350 if (yymsg != yymsgbuf)
2355 #line 712 "jv-exp.y"
2365 const char *p,
int len,
int parsed_float,
YYSTYPE *putithere)
2383 suffix_len = p + len - suffix;
2385 if (suffix_len == 0)
2388 else if (suffix_len == 1)
2391 if (tolower (*suffix) ==
'f')
2394 else if (tolower (*suffix) ==
'd')
2440 limit = ((limit << 16) << 16) | limit;
2441 if (c ==
'l' || c ==
'L')
2450 limit_div_base = limit / (
ULONGEST) base;
2455 if (c >=
'0' && c <=
'9')
2457 else if (c >=
'A' && c <=
'Z')
2459 else if (c >=
'a' && c <=
'z')
2465 if (n > limit_div_base
2466 || (n *= base) > limit - c)
2467 error (
_(
"Numeric constant too large"));
2479 type =
parse_type (par_state)->builtin_uint64;
2512 {
"&&",
ANDAND, BINOP_END},
2513 {
"||",
OROR, BINOP_END},
2514 {
"<<",
LSH, BINOP_END},
2515 {
">>",
RSH, BINOP_END},
2516 {
"==",
EQUAL, BINOP_END},
2518 {
"<=",
LEQ, BINOP_END},
2519 {
">=",
GEQ, BINOP_END}
2530 const char *tokstart;
2542 for (i = 0; i <
sizeof tokentab3 /
sizeof tokentab3[0]; i++)
2543 if (strncmp (tokstart, tokentab3[i].
oper, 3) == 0)
2547 return tokentab3[i].
token;
2551 for (i = 0; i <
sizeof tokentab2 /
sizeof tokentab2[0]; i++)
2552 if (strncmp (tokstart, tokentab2[i].oper, 2) == 0)
2556 return tokentab2[i].
token;
2559 switch (c = *tokstart)
2579 error (
_(
"Empty character constant"));
2590 lexptr = tokstart + namelen;
2592 error (
_(
"Unmatched single quote"));
2597 error (
_(
"Invalid character constant"));
2637 int got_dot = 0, got_e = 0, toktype;
2638 const char *p = tokstart;
2641 if (c ==
'0' && (p[1] ==
'x' || p[1] ==
'X'))
2646 else if (c ==
'0' && (p[1]==
't' || p[1]==
'T' || p[1]==
'd' || p[1]==
'D'))
2657 if (!hex && !got_e && (*p ==
'e' || *p ==
'E'))
2658 got_dot = got_e = 1;
2661 else if (!got_dot && *p ==
'.')
2663 else if (got_e && (p[-1] ==
'e' || p[-1] ==
'E')
2664 && (*p ==
'-' || *p ==
'+'))
2670 else if ((*p < '0' || *p >
'9')
2671 && ((*p < 'a' || *p >
'z')
2672 && (*p < 'A' || *p >
'Z')))
2675 toktype =
parse_number (pstate, tokstart, p - tokstart,
2676 got_dot|got_e, &yylval);
2677 if (toktype ==
ERROR)
2679 char *err_copy = (
char *) alloca (p - tokstart + 1);
2681 memcpy (err_copy, tokstart, p - tokstart);
2682 err_copy[p - tokstart] = 0;
2683 error (
_(
"Invalid number \"%s\""), err_copy);
2723 tokptr = ++tokstart;
2729 if (tempbufindex + 1 >= tempbufsize)
2731 tempbuf = (
char *)
xrealloc (tempbuf, tempbufsize += 64);
2746 tempbuf[tempbufindex++] = c;
2749 tempbuf[tempbufindex++] = *tokptr++;
2752 }
while ((*tokptr !=
'"') && (*tokptr !=
'\0'));
2753 if (*tokptr++ !=
'"')
2755 error (
_(
"Unterminated string in expression"));
2764 if (!(c ==
'_' || c ==
'$'
2765 || (c >=
'a' && c <=
'z') || (c >=
'A' && c <=
'Z')))
2767 error (
_(
"Invalid character '%c' in expression"), c);
2771 for (c = tokstart[namelen];
2774 || (c >=
'0' && c <=
'9')
2775 || (c >=
'a' && c <=
'z')
2776 || (c >=
'A' && c <=
'Z')
2783 while (tokstart[++i] && tokstart[i] !=
'>');
2784 if (tokstart[i] ==
'>')
2787 c = tokstart[++namelen];
2792 if (namelen == 2 && tokstart[0] ==
'i' && tokstart[1] ==
'f')
2805 if (strncmp (tokstart,
"boolean", 7) == 0)
2809 if (strncmp (tokstart,
"double", 6) == 0)
2813 if (strncmp (tokstart,
"short", 5) == 0)
2815 if (strncmp (tokstart,
"false", 5) == 0)
2820 if (strncmp (tokstart,
"super", 5) == 0)
2822 if (strncmp (tokstart,
"float", 5) == 0)
2826 if (strncmp (tokstart,
"long", 4) == 0)
2828 if (strncmp (tokstart,
"byte", 4) == 0)
2830 if (strncmp (tokstart,
"char", 4) == 0)
2832 if (strncmp (tokstart,
"true", 4) == 0)
2839 if (strncmp (tokstart,
"int", 3) == 0)
2841 if (strncmp (tokstart,
"new", 3) == 0)
2851 if (*tokstart ==
'$')
2860 if (((tokstart[0] >=
'a' && tokstart[0] <
'a' +
input_radix - 10) ||
2861 (tokstart[0] >=
'A' && tokstart[0] <
'A' +
input_radix - 10)))
2864 int hextype =
parse_number (pstate, tokstart, namelen, 0, &newlval);
2899 static struct type *
2905 error (
_(
"No class named `%s'"), tmp);
2920 &is_a_field_of_this);
2938 if (is_a_field_of_this.
type != NULL)
2967 if (i == name.
length || name.
ptr[i] ==
'.')
2993 token.
length = dot_index;
2997 token.
ptr = name.
ptr + dot_index + 1;
3006 token.
length = dot_index;
3011 if (dot_index == name.
length)
3019 name.
ptr += dot_index;
3020 name.
length -= dot_index;
3022 while (dot_index < name.
length && name.
ptr[dot_index] !=
'.')
3025 token.
length = dot_index;
3030 if (dot_index < name.
length)
3033 name.
ptr += dot_index;
3034 name.
length -= dot_index;
3039 else if (dot_index >= name.
length)
3042 while (dot_index < name.
length && name.
ptr[dot_index] !=
'.')
3058 for (i = 0; i < name.
length; i++)
3060 if (name.
ptr[i] ==
'.')
3085 if (msymbol.minsym != NULL)
3088 error (
_(
"No symbol table is loaded. Use the \"file\" command"));
3090 error (
_(
"No symbol \"%s\" in current context."), tmp);
3122 int newlen = newobj->
nelts;
3129 for (i = par_state->
expout_ptr - 1; i >= pos; i--)
#define YYSTACK_ALLOC_MAXIMUM
struct internalvar * ivar
static struct type * java_type_from_name(struct stoken)
union exp_element elts[1]
static int parse_number(struct parser_state *, const char *, int, int, YYSTYPE *)
void write_exp_elt_sym(struct parser_state *ps, struct symbol *expelt)
#define parse_gdbarch(ps)
struct type * java_array_type(struct type *type, int dims)
#define parse_java_type(ps)
static const yytype_uint8 yytranslate[]
static void push_expression_name(struct parser_state *, struct stoken)
#define SYMBOL_CLASS(symbol)
void internal_error(const char *file, int line, const char *fmt,...)
const struct language_defn * language_defn
#define yytable_value_is_error(Yytable_value)
const struct block * innermost_block
int have_partial_symbols(void)
#define YYPRINT(FILE, TYPE, VALUE)
static int push_variable(struct parser_state *par_state, struct stoken name)
void write_exp_elt_block(struct parser_state *ps, const struct block *b)
void write_exp_elt_longcst(struct parser_state *ps, LONGEST expelt)
int contained_in(const struct block *a, const struct block *b)
void increase_expout_size(struct parser_state *ps, size_t lenelt)
static void yy_stack_print(yytype_int16 *yybottom, yytype_int16 *yytop)
const char * skip_quoted(const char *str)
static struct obstack tempbuf
struct YYSTYPE::@2 typed_val_float
static void push_qualified_expression_name(struct parser_state *par_state, struct stoken name, int dot_index)
void write_exp_elt_dblcst(struct parser_state *ps, DOUBLEST expelt)
int symbol_read_needs_frame(struct symbol *sym)
static const yytype_uint8 yystos[]
struct cleanup * make_cleanup(make_cleanup_ftype *function, void *arg)
int length_of_subexp(struct expression *expr, int endpos)
static void yydestruct(const char *yymsg, int yytype, YYSTYPE *yyvaluep)
const struct block * block_found
static void push_fieldnames(struct parser_state *, struct stoken)
static const yytype_uint16 yytoknum[]
void write_dollar_variable(struct parser_state *ps, struct stoken str)
#define YY_STACK_PRINT(Bottom, Top)
struct cleanup * make_cleanup_clear_parser_state(struct parser_state **p)
struct expression * expout
const struct block * bval
static const char *const yytname[]
#define FLOATING_POINT_LITERAL
#define EXP_ELEM_TO_BYTES(elements)
void write_exp_msymbol(struct parser_state *ps, struct bound_minimal_symbol bound_msym)
int parse_escape(struct gdbarch *gdbarch, const char **string_ptr)
unsigned short int yytype_uint16
unsigned char yytype_uint8
PTR xrealloc(PTR ptr, size_t size)
void write_exp_elt_opcode(struct parser_state *ps, enum exp_opcode expelt)
static const char * lexptr
struct YYSTYPE::@34 typed_val_int
#define TYPE_CODE(thistype)
static struct expression * copy_exp(struct expression *, int)
#define YY_REDUCE_PRINT(Rule)
struct type * java_lookup_class(char *name)
static void yy_symbol_print(FILE *yyoutput, int yytype, YYSTYPE const *const yyvaluep)
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)
static const yytype_int16 yypgoto[]
#define YY_IGNORE_MAYBE_UNINITIALIZED_END
static void yy_symbol_value_print(FILE *yyoutput, int yytype, YYSTYPE const *const yyvaluep)
int have_full_symbols(void)
#define YYSTACK_RELOCATE(Stack_alloc, Stack)
const struct block * expression_context_block
unsigned long long ULONGEST
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
static void yy_reduce_print(yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule)
static void insert_exp(struct parser_state *, int, struct expression *)
static const yytype_int16 yydefgoto[]
#define yypact_value_is_default(Yystate)
static const char * prev_lexptr
#define YY_SYMBOL_PRINT(Title, Type, Value, Location)
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,...)
struct type * lookup_pointer_type(struct type *type)
int java_parse(struct parser_state *par_state)
void do_cleanups(struct cleanup *old_chain)
static const yytype_uint8 yydefact[]
char * copy_name(struct stoken token)
const ULONGEST const LONGEST len
static const yytype_uint16 yyrline[]
int parse_float(const char *p, int len, DOUBLEST *d, const char **suffix)