| OLD | NEW |
| 1 /* A Bison parser, made by GNU Bison 1.875c. */ | 1 /* A Bison parser, made by GNU Bison 1.875c. */ |
| 2 | 2 |
| 3 /* Skeleton parser for Yacc-like parsing with Bison, | 3 /* Skeleton parser for Yacc-like parsing with Bison, |
| 4 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003 Free Software Foundati
on, Inc. | 4 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003 Free Software Foundati
on, Inc. |
| 5 | 5 |
| 6 This program is free software; you can redistribute it and/or modify | 6 This program is free software; you can redistribute it and/or modify |
| 7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
| 8 the Free Software Foundation; either version 2, or (at your option) | 8 the Free Software Foundation; either version 2, or (at your option) |
| 9 any later version. | 9 any later version. |
| 10 | 10 |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 #define yyrule java_rule /* With YYDEBUG defined */ | 179 #define yyrule java_rule /* With YYDEBUG defined */ |
| 180 #define yylhs java_yylhs | 180 #define yylhs java_yylhs |
| 181 #define yylen java_yylen | 181 #define yylen java_yylen |
| 182 #define yydefred java_yydefred | 182 #define yydefred java_yydefred |
| 183 #define yydgoto java_yydgoto | 183 #define yydgoto java_yydgoto |
| 184 #define yysindex java_yysindex | 184 #define yysindex java_yysindex |
| 185 #define yyrindex java_yyrindex | 185 #define yyrindex java_yyrindex |
| 186 #define yygindex java_yygindex | 186 #define yygindex java_yygindex |
| 187 #define yytable java_yytable | 187 #define yytable java_yytable |
| 188 #define yycheck java_yycheck | 188 #define yycheck java_yycheck |
| 189 #define yyss java_yyss |
| 190 #define yysslim java_yysslim |
| 191 #define yyssp java_yyssp |
| 192 #define yystacksize java_yystacksize |
| 193 #define yyvs java_yyvs |
| 194 #define yyvsp java_yyvsp |
| 189 | 195 |
| 190 #ifndef YYDEBUG | 196 #ifndef YYDEBUG |
| 191 #define YYDEBUG 1 /* Default to yydebug support */ | 197 #define YYDEBUG 1 /* Default to yydebug support */ |
| 192 #endif | 198 #endif |
| 193 | 199 |
| 194 #define YYFPRINTF parser_fprintf | 200 #define YYFPRINTF parser_fprintf |
| 195 | 201 |
| 196 int yyparse (void); | 202 int yyparse (void); |
| 197 | 203 |
| 198 static int yylex (void); | 204 static int yylex (void); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 215 | 221 |
| 216 /* Enabling verbose error messages. */ | 222 /* Enabling verbose error messages. */ |
| 217 #ifdef YYERROR_VERBOSE | 223 #ifdef YYERROR_VERBOSE |
| 218 # undef YYERROR_VERBOSE | 224 # undef YYERROR_VERBOSE |
| 219 # define YYERROR_VERBOSE 1 | 225 # define YYERROR_VERBOSE 1 |
| 220 #else | 226 #else |
| 221 # define YYERROR_VERBOSE 0 | 227 # define YYERROR_VERBOSE 0 |
| 222 #endif | 228 #endif |
| 223 | 229 |
| 224 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) | 230 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) |
| 225 #line 128 "jv-exp.y" | 231 #line 134 "jv-exp.y" |
| 226 typedef union YYSTYPE { | 232 typedef union YYSTYPE { |
| 227 LONGEST lval; | 233 LONGEST lval; |
| 228 struct { | 234 struct { |
| 229 LONGEST val; | 235 LONGEST val; |
| 230 struct type *type; | 236 struct type *type; |
| 231 } typed_val_int; | 237 } typed_val_int; |
| 232 struct { | 238 struct { |
| 233 DOUBLEST dval; | 239 DOUBLEST dval; |
| 234 struct type *type; | 240 struct type *type; |
| 235 } typed_val_float; | 241 } typed_val_float; |
| 236 struct symbol *sym; | 242 struct symbol *sym; |
| 237 struct type *tval; | 243 struct type *tval; |
| 238 struct stoken sval; | 244 struct stoken sval; |
| 239 struct ttype tsym; | 245 struct ttype tsym; |
| 240 struct symtoken ssym; | 246 struct symtoken ssym; |
| 241 struct block *bval; | 247 struct block *bval; |
| 242 enum exp_opcode opcode; | 248 enum exp_opcode opcode; |
| 243 struct internalvar *ivar; | 249 struct internalvar *ivar; |
| 244 int *ivec; | 250 int *ivec; |
| 245 } YYSTYPE; | 251 } YYSTYPE; |
| 246 /* Line 191 of yacc.c. */ | 252 /* Line 191 of yacc.c. */ |
| 247 #line 248 "jv-exp.c" | 253 #line 254 "jv-exp.c" |
| 248 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ | 254 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
| 249 # define YYSTYPE_IS_DECLARED 1 | 255 # define YYSTYPE_IS_DECLARED 1 |
| 250 # define YYSTYPE_IS_TRIVIAL 1 | 256 # define YYSTYPE_IS_TRIVIAL 1 |
| 251 #endif | 257 #endif |
| 252 | 258 |
| 253 | 259 |
| 254 | 260 |
| 255 /* Copy the second part of user declarations. */ | 261 /* Copy the second part of user declarations. */ |
| 256 #line 149 "jv-exp.y" | 262 #line 155 "jv-exp.y" |
| 257 | 263 |
| 258 /* YYSTYPE gets defined by %union */ | 264 /* YYSTYPE gets defined by %union */ |
| 259 static int parse_number (char *, int, int, YYSTYPE *); | 265 static int parse_number (char *, int, int, YYSTYPE *); |
| 260 | 266 |
| 261 | 267 |
| 262 /* Line 214 of yacc.c. */ | 268 /* Line 214 of yacc.c. */ |
| 263 #line 264 "jv-exp.c" | 269 #line 270 "jv-exp.c" |
| 264 | 270 |
| 265 #if ! defined (yyoverflow) || YYERROR_VERBOSE | 271 #if ! defined (yyoverflow) || YYERROR_VERBOSE |
| 266 | 272 |
| 267 # ifndef YYFREE | 273 # ifndef YYFREE |
| 268 # define YYFREE xfree | 274 # define YYFREE xfree |
| 269 # endif | 275 # endif |
| 270 # ifndef YYMALLOC | 276 # ifndef YYMALLOC |
| 271 # define YYMALLOC xmalloc | 277 # define YYMALLOC xmalloc |
| 272 # endif | 278 # endif |
| 273 | 279 |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 -1, 107, 27, 106, -1, 107, -1, 108, 26, 107, | 485 -1, 107, 27, 106, -1, 107, -1, 108, 26, 107, |
| 480 -1, 108, -1, 108, 25, 113, 55, 109, -1, 109, | 486 -1, 108, -1, 108, 25, 113, 55, 109, -1, 109, |
| 481 -1, 111, -1, 112, 24, 109, -1, 112, 20, 109, | 487 -1, 111, -1, 112, 24, 109, -1, 112, 20, 109, |
| 482 -1, 70, -1, 19, -1, 86, -1, 90, -1, 110, | 488 -1, 70, -1, 19, -1, 86, -1, 90, -1, 110, |
| 483 -1 | 489 -1 |
| 484 }; | 490 }; |
| 485 | 491 |
| 486 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ | 492 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ |
| 487 static const unsigned short yyrline[] = | 493 static const unsigned short yyrline[] = |
| 488 { | 494 { |
| 489 0, 205, 205, 206, 209, 218, 219, 223, 232, 237, | 495 0, 211, 211, 212, 215, 224, 225, 229, 238, 243, |
| 490 245, 250, 255, 266, 267, 272, 273, 277, 279, 281, | 496 251, 256, 261, 272, 273, 278, 279, 283, 285, 287, |
| 491 283, 285, 290, 292, 304, 309, 313, 315, 320, 321, | 497 289, 291, 296, 298, 310, 315, 319, 321, 326, 327, |
| 492 325, 326, 330, 331, 335, 358, 359, 364, 365, 369, | 498 331, 332, 336, 337, 341, 364, 365, 370, 371, 375, |
| 493 370, 371, 372, 373, 374, 375, 383, 388, 393, 399, | 499 376, 377, 378, 379, 380, 381, 389, 394, 399, 405, |
| 494 401, 407, 408, 412, 415, 421, 422, 426, 430, 432, | 500 407, 413, 414, 418, 421, 427, 428, 432, 436, 438, |
| 495 437, 439, 443, 445, 451, 457, 456, 462, 464, 469, | 501 443, 445, 449, 451, 457, 463, 462, 468, 470, 475, |
| 496 486, 488, 493, 494, 496, 498, 499, 503, 508, 513, | 502 492, 494, 499, 500, 502, 504, 505, 509, 514, 519, |
| 497 514, 515, 516, 518, 520, 524, 529, 534, 535, 537, | 503 520, 521, 522, 524, 526, 530, 535, 540, 541, 543, |
| 498 539, 543, 547, 567, 575, 576, 578, 580, 585, 586, | 504 545, 549, 553, 573, 581, 582, 584, 586, 591, 592, |
| 499 588, 593, 594, 596, 602, 603, 605, 607, 609, 615, | 505 594, 599, 600, 602, 608, 609, 611, 613, 615, 621, |
| 500 616, 618, 623, 624, 629, 630, 634, 635, 640, 641, | 506 622, 624, 629, 630, 635, 636, 640, 641, 646, 647, |
| 501 646, 647, 652, 653, 658, 659, 663, 665, 672, 674, | 507 652, 653, 658, 659, 664, 665, 669, 671, 678, 680, |
| 502 676, 677, 682 | 508 682, 683, 688 |
| 503 }; | 509 }; |
| 504 #endif | 510 #endif |
| 505 | 511 |
| 506 #if YYDEBUG || YYERROR_VERBOSE | 512 #if YYDEBUG || YYERROR_VERBOSE |
| 507 /* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. | 513 /* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. |
| 508 First, the terminals, then, starting at YYNTOKENS, nonterminals. */ | 514 First, the terminals, then, starting at YYNTOKENS, nonterminals. */ |
| 509 static const char *const yytname[] = | 515 static const char *const yytname[] = |
| 510 { | 516 { |
| 511 "$end", "error", "$undefined", "INTEGER_LITERAL", | 517 "$end", "error", "$undefined", "INTEGER_LITERAL", |
| 512 "FLOATING_POINT_LITERAL", "IDENTIFIER", "STRING_LITERAL", | 518 "FLOATING_POINT_LITERAL", "IDENTIFIER", "STRING_LITERAL", |
| (...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1380 | 1386 |
| 1381 /* If YYLEN is nonzero, implement the default value of the action: | 1387 /* If YYLEN is nonzero, implement the default value of the action: |
| 1382 `$$ = $1'. | 1388 `$$ = $1'. |
| 1383 | 1389 |
| 1384 Otherwise, the following line sets YYVAL to garbage. | 1390 Otherwise, the following line sets YYVAL to garbage. |
| 1385 This behavior is undocumented and Bison | 1391 This behavior is undocumented and Bison |
| 1386 users should not rely upon it. Assigning to YYVAL | 1392 users should not rely upon it. Assigning to YYVAL |
| 1387 unconditionally makes the parser a bit smaller, and it avoids a | 1393 unconditionally makes the parser a bit smaller, and it avoids a |
| 1388 GCC warning that YYVAL may be used uninitialized. */ | 1394 GCC warning that YYVAL may be used uninitialized. */ |
| 1389 yyval = yyvsp[1-yylen]; | 1395 yyval = yyvsp[1-yylen]; |
error: old chunk mismatch |
None
| OLD | NEW |