1 | /* A Bison parser, made by GNU Bison 3.5.1. */ 2 | 3 | /* Bison implementation for Yacc-like parsers in C 4 | 5 | Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2020 Free Software Foundation, 6 | Inc. 7 | 8 | This program is free software: you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation, either version 3 of the License, or 11 | (at your option) any later version. 12 | 13 | This program is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ 20 | 21 | /* As a special exception, you may create a larger work that contains 22 | part or all of the Bison parser skeleton and distribute that work 23 | under terms of your choice, so long as that work isn't itself a 24 | parser generator using the skeleton or a modified version thereof 25 | as a parser skeleton. Alternatively, if you modify or redistribute 26 | the parser skeleton itself, you may (at your option) remove this 27 | special exception, which will cause the skeleton and the resulting 28 | Bison output files to be licensed under the GNU General Public 29 | License without this special exception. 30 | 31 | This special exception was added by the Free Software Foundation in 32 | version 2.2 of Bison. */ 33 | 34 | /* C LALR(1) parser skeleton written by Richard Stallman, by 35 | simplifying the original so-called "semantic" parser. */ 36 | 37 | /* All symbols defined below should begin with yy or YY, to avoid 38 | infringing on user name space. This should be done even for local 39 | variables, as they might otherwise be expanded by user macros. 40 | There are some unavoidable exceptions within include files to 41 | define necessary library symbols; they are noted "INFRINGES ON 42 | USER NAME SPACE" below. */ 43 | 44 | /* Undocumented macros, especially those whose name start with YY_, 45 | are private implementation details. Do not rely on them. */ 46 | 47 | /* Identify Bison output. */ 48 | #define YYBISON 1 49 | 50 | /* Bison version. */ 51 | #define YYBISON_VERSION "3.5.1" 52 | 53 | /* Skeleton name. */ 54 | #define YYSKELETON_NAME "yacc.c" 55 | 56 | /* Pure parsers. */ 57 | #define YYPURE 0 58 | 59 | /* Push parsers. */ 60 | #define YYPUSH 0 61 | 62 | /* Pull parsers. */ 63 | #define YYPULL 1 64 | 65 | 66 | 67 | 68 | /* First part of user prologue. */ 69 | #line 1 "./parse.y" 70 | 71 | /*************************************** 72 | C Cross Referencing & Documentation tool. Version 1.6e. 73 | 74 | C parser. 75 | ******************/ /****************** 76 | Written by Andrew M. Bishop 77 | 78 | This file Copyright 1995-2013 Andrew M. Bishop 79 | It may be distributed under the GNU Public License, version 2, or 80 | any higher version. See section COPYING of the GNU Public license 81 | for conditions under which this file may be redistributed. 82 | ***************************************/ 83 | 84 | #include <string.h> 85 | #include "parse-yy.h" 86 | #include "cxref.h" 87 | #include "memory.h" 88 | 89 | /*+ A structure to hold the information about an object. +*/ 90 | typedef struct _stack 91 | { 92 | char *name; /*+ The name of the object. +*/ 93 | char *type; /*+ The type of the object. +*/ 94 | char *qual; /*+ The type qualifier of the object. +*/ 95 | } 96 | stack; 97 | 98 | #define yylex cxref_yylex 99 | 100 | static int cxref_yylex(void); 101 | 102 | static void yyerror(const char *s); 103 | 104 | /*+ When in a header file, some stuff can be skipped over quickly. +*/ 105 | extern int in_header; 106 | 107 | /*+ A flag that is set to true when typedef is seen in a statement. +*/ 108 | int in_typedef=0; 109 | 110 | /*+ The scope of the function / variable that is being examined. +*/ 111 | static int scope; 112 | 113 | /*+ The variable must be LOCAL or EXTERNAL or GLOBAL, so this checks and sets that. +*/ 114 | #define SCOPE ( scope&(LOCAL|EXTERNAL|EXTERN_H|EXTERN_F) ? scope : scope|GLOBAL ) 115 | 116 | /*+ When in a function or a function definition, the behaviour is different. +*/ 117 | static int in_function=0,in_funcdef=0,in_funcbody=0; 118 | 119 | /*+ The parsing stack +*/ 120 | static stack first={NULL,NULL,NULL}, /*+ first value. +*/ 121 | *list=NULL, /*+ list of all values. +*/ 122 | *current=&first; /*+ current values. +*/ 123 | 124 | /*+ The depth of the stack +*/ 125 | static int depth=0, /*+ currently in use. +*/ 126 | maxdepth=0; /*+ total malloced. +*/ 127 | 128 | /*+ Declarations that are in the same statement share this comment. +*/ 129 | static char* common_comment=NULL; 130 | 131 | /*+ When inside a struct / union / enum definition, this is the depth. +*/ 132 | static int in_structunion=0; 133 | 134 | /*+ When inside a struct / union definition, this is the component type. +*/ 135 | static char *comp_type=NULL; 136 | 137 | /*+ To solve the problem where a type name is used as an identifier. +*/ 138 | static int in_type_spec=0; 139 | 140 | 141 | /*++++++++++++++++++++++++++++++++++++++ 142 | Reset the current level on the stack. 143 | ++++++++++++++++++++++++++++++++++++++*/ 144 | 145 | static void reset(void) 146 | { 147 | current->name=NULL; 148 | current->type=NULL; 149 | current->qual=NULL; 150 | } 151 | 152 | 153 | /*++++++++++++++++++++++++++++++++++++++ 154 | Push a level onto the stack. 155 | ++++++++++++++++++++++++++++++++++++++*/ 156 | 157 | static void push(void) 158 | { 159 | if(list==NULL) 160 | { 161 | list=(stack*)Malloc(8*sizeof(struct _stack)); 162 | list[0]=first; 163 | maxdepth=8; 164 | } 165 | else if(depth==(maxdepth-1)) 166 | { 167 | list=Realloc(list,(maxdepth+8)*sizeof(struct _stack)); 168 | maxdepth+=8; 169 | } 170 | 171 | depth++; 172 | current=&list[depth]; 173 | 174 | reset(); 175 | } 176 | 177 | 178 | /*++++++++++++++++++++++++++++++++++++++ 179 | Pop a level from the stack. 180 | ++++++++++++++++++++++++++++++++++++++*/ 181 | 182 | static void pop(void) 183 | { 184 | reset(); 185 | 186 | depth--; 187 | current=&list[depth]; 188 | } 189 | 190 | 191 | /*++++++++++++++++++++++++++++++++++++++ 192 | Reset the Parser, ready for the next file. 193 | ++++++++++++++++++++++++++++++++++++++*/ 194 | 195 | void ResetParser(void) 196 | { 197 | in_typedef=0; 198 | scope=0; 199 | in_function=0; 200 | in_funcdef=0; 201 | in_funcbody=0; 202 | depth=0; 203 | maxdepth=0; 204 | if(list) Free(list); 205 | list=NULL; 206 | current=&first; 207 | reset(); 208 | common_comment=NULL; 209 | in_structunion=0; 210 | comp_type=NULL; 211 | in_type_spec=0; 212 | } 213 | 214 | 215 | #line 216 "y.tab.c" 216 | 217 | # ifndef YY_CAST 218 | # ifdef __cplusplus 219 | # define YY_CAST(Type, Val) static_cast<Type> (Val) 220 | # define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast<Type> (Val) 221 | # else 222 | # define YY_CAST(Type, Val) ((Type) (Val)) 223 | # define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val)) 224 | # endif 225 | # endif 226 | # ifndef YY_NULLPTR 227 | # if defined __cplusplus 228 | # if 201103L <= __cplusplus 229 | # define YY_NULLPTR nullptr 230 | # else 231 | # define YY_NULLPTR 0 232 | # endif 233 | # else 234 | # define YY_NULLPTR ((void*)0) 235 | # endif 236 | # endif 237 | 238 | /* Enabling verbose error messages. */ 239 | #ifdef YYERROR_VERBOSE 240 | # undef YYERROR_VERBOSE 241 | # define YYERROR_VERBOSE 1 242 | #else 243 | # define YYERROR_VERBOSE 0 244 | #endif 245 | 246 | /* Use api.header.include to #include this header 247 | instead of duplicating it here. */ 248 | #ifndef YY_YY_Y_TAB_H_INCLUDED 249 | # define YY_YY_Y_TAB_H_INCLUDED 250 | /* Debug traces. */ 251 | #ifndef YYDEBUG 252 | # define YYDEBUG 0 253 | #endif 254 | #if YYDEBUG 255 | extern int yydebug; 256 | #endif 257 | 258 | /* Token type. */ 259 | #ifndef YYTOKENTYPE 260 | # define YYTOKENTYPE 261 | enum yytokentype 262 | { 263 | IDENTIFIER = 258, 264 | TYPE_NAME = 259, 265 | LITERAL = 260, 266 | STRING_LITERAL = 261, 267 | ELLIPSES = 262, 268 | MUL_ASSIGN = 263, 269 | DIV_ASSIGN = 264, 270 | MOD_ASSIGN = 265, 271 | ADD_ASSIGN = 266, 272 | SUB_ASSIGN = 267, 273 | LEFT_ASSIGN = 268, 274 | RIGHT_ASSIGN = 269, 275 | AND_ASSIGN = 270, 276 | XOR_ASSIGN = 271, 277 | OR_ASSIGN = 272, 278 | EQ_OP = 273, 279 | NE_OP = 274, 280 | PTR_OP = 275, 281 | AND_OP = 276, 282 | OR_OP = 277, 283 | DEC_OP = 278, 284 | INC_OP = 279, 285 | LE_OP = 280, 286 | GE_OP = 281, 287 | LEFT_SHIFT = 282, 288 | RIGHT_SHIFT = 283, 289 | SIZEOF = 284, 290 | TYPEDEF = 285, 291 | EXTERN = 286, 292 | STATIC = 287, 293 | AUTO = 288, 294 | REGISTER = 289, 295 | CONST = 290, 296 | VOLATILE = 291, 297 | VOID = 292, 298 | INLINE = 293, 299 | CHAR = 294, 300 | SHORT = 295, 301 | INT = 296, 302 | LONG = 297, 303 | SIGNED = 298, 304 | UNSIGNED = 299, 305 | FLOAT = 300, 306 | DOUBLE = 301, 307 | BOOL = 302, 308 | STRUCT = 303, 309 | UNION = 304, 310 | ENUM = 305, 311 | CASE = 306, 312 | DEFAULT = 307, 313 | IF = 308, 314 | ELSE = 309, 315 | SWITCH = 310, 316 | WHILE = 311, 317 | DO = 312, 318 | FOR = 313, 319 | GOTO = 314, 320 | CONTINUE = 315, 321 | BREAK = 316, 322 | RETURN = 317, 323 | ASM = 318 324 | }; 325 | #endif 326 | /* Tokens. */ 327 | #define IDENTIFIER 258 328 | #define TYPE_NAME 259 329 | #define LITERAL 260 330 | #define STRING_LITERAL 261 331 | #define ELLIPSES 262 332 | #define MUL_ASSIGN 263 333 | #define DIV_ASSIGN 264 334 | #define MOD_ASSIGN 265 335 | #define ADD_ASSIGN 266 336 | #define SUB_ASSIGN 267 337 | #define LEFT_ASSIGN 268 338 | #define RIGHT_ASSIGN 269 339 | #define AND_ASSIGN 270 340 | #define XOR_ASSIGN 271 341 | #define OR_ASSIGN 272 342 | #define EQ_OP 273 343 | #define NE_OP 274 344 | #define PTR_OP 275 345 | #define AND_OP 276 346 | #define OR_OP 277 347 | #define DEC_OP 278 348 | #define INC_OP 279 349 | #define LE_OP 280 350 | #define GE_OP 281 351 | #define LEFT_SHIFT 282 352 | #define RIGHT_SHIFT 283 353 | #define SIZEOF 284 354 | #define TYPEDEF 285 355 | #define EXTERN 286 356 | #define STATIC 287 357 | #define AUTO 288 358 | #define REGISTER 289 359 | #define CONST 290 360 | #define VOLATILE 291 361 | #define VOID 292 362 | #define INLINE 293 363 | #define CHAR 294 364 | #define SHORT 295 365 | #define INT 296 366 | #define LONG 297 367 | #define SIGNED 298 368 | #define UNSIGNED 299 369 | #define FLOAT 300 370 | #define DOUBLE 301 371 | #define BOOL 302 372 | #define STRUCT 303 373 | #define UNION 304 374 | #define ENUM 305 375 | #define CASE 306 376 | #define DEFAULT 307 377 | #define IF 308 378 | #define ELSE 309 379 | #define SWITCH 310 380 | #define WHILE 311 381 | #define DO 312 382 | #define FOR 313 383 | #define GOTO 314 384 | #define CONTINUE 315 385 | #define BREAK 316 386 | #define RETURN 317 387 | #define ASM 318 388 | 389 | /* Value type. */ 390 | #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED 391 | typedef int YYSTYPE; 392 | # define YYSTYPE_IS_TRIVIAL 1 393 | # define YYSTYPE_IS_DECLARED 1 394 | #endif 395 | 396 | 397 | extern YYSTYPE yylval; 398 | 399 | int yyparse (void); 400 | 401 | #endif /* !YY_YY_Y_TAB_H_INCLUDED */ 402 | 403 | 404 | 405 | #ifdef short 406 | # undef short 407 | #endif 408 | 409 | /* On compilers that do not define __PTRDIFF_MAX__ etc., make sure 410 | <limits.h> and (if available) <stdint.h> are included 411 | so that the code can choose integer types of a good width. */ 412 | 413 | #ifndef __PTRDIFF_MAX__ 414 | # include <limits.h> /* INFRINGES ON USER NAME SPACE */ 415 | # if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__ 416 | # include <stdint.h> /* INFRINGES ON USER NAME SPACE */ 417 | # define YY_STDINT_H 418 | # endif 419 | #endif 420 | 421 | /* Narrow types that promote to a signed type and that can represent a 422 | signed or unsigned integer of at least N bits. In tables they can 423 | save space and decrease cache pressure. Promoting to a signed type 424 | helps avoid bugs in integer arithmetic. */ 425 | 426 | #ifdef __INT_LEAST8_MAX__ 427 | typedef __INT_LEAST8_TYPE__ yytype_int8; 428 | #elif defined YY_STDINT_H 429 | typedef int_least8_t yytype_int8; 430 | #else 431 | typedef signed char yytype_int8; 432 | #endif 433 | 434 | #ifdef __INT_LEAST16_MAX__ 435 | typedef __INT_LEAST16_TYPE__ yytype_int16; 436 | #elif defined YY_STDINT_H 437 | typedef int_least16_t yytype_int16; 438 | #else 439 | typedef short yytype_int16; 440 | #endif 441 | 442 | #if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__ 443 | typedef __UINT_LEAST8_TYPE__ yytype_uint8; 444 | #elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \ 445 | && UINT_LEAST8_MAX <= INT_MAX) 446 | typedef uint_least8_t yytype_uint8; 447 | #elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX 448 | typedef unsigned char yytype_uint8; 449 | #else 450 | typedef short yytype_uint8; 451 | #endif 452 | 453 | #if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__ 454 | typedef __UINT_LEAST16_TYPE__ yytype_uint16; 455 | #elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \ 456 | && UINT_LEAST16_MAX <= INT_MAX) 457 | typedef uint_least16_t yytype_uint16; 458 | #elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX 459 | typedef unsigned short yytype_uint16; 460 | #else 461 | typedef int yytype_uint16; 462 | #endif 463 | 464 | #ifndef YYPTRDIFF_T 465 | # if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__ 466 | # define YYPTRDIFF_T __PTRDIFF_TYPE__ 467 | # define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__ 468 | # elif defined PTRDIFF_MAX 469 | # ifndef ptrdiff_t 470 | # include <stddef.h> /* INFRINGES ON USER NAME SPACE */ 471 | # endif 472 | # define YYPTRDIFF_T ptrdiff_t 473 | # define YYPTRDIFF_MAXIMUM PTRDIFF_MAX 474 | # else 475 | # define YYPTRDIFF_T long 476 | # define YYPTRDIFF_MAXIMUM LONG_MAX 477 | # endif 478 | #endif 479 | 480 | #ifndef YYSIZE_T 481 | # ifdef __SIZE_TYPE__ 482 | # define YYSIZE_T __SIZE_TYPE__ 483 | # elif defined size_t 484 | # define YYSIZE_T size_t 485 | # elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__ 486 | # include <stddef.h> /* INFRINGES ON USER NAME SPACE */ 487 | # define YYSIZE_T size_t 488 | # else 489 | # define YYSIZE_T unsigned 490 | # endif 491 | #endif 492 | 493 | #define YYSIZE_MAXIMUM \ 494 | YY_CAST (YYPTRDIFF_T, \ 495 | (YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1) \ 496 | ? YYPTRDIFF_MAXIMUM \ 497 | : YY_CAST (YYSIZE_T, -1))) 498 | 499 | #define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X)) 500 | 501 | /* Stored state numbers (used for stacks). */ 502 | typedef yytype_int16 yy_state_t; 503 | 504 | /* State numbers in computations. */ 505 | typedef int yy_state_fast_t; 506 | 507 | #ifndef YY_ 508 | # if defined YYENABLE_NLS && YYENABLE_NLS 509 | # if ENABLE_NLS 510 | # include <libintl.h> /* INFRINGES ON USER NAME SPACE */ 511 | # define YY_(Msgid) dgettext ("bison-runtime", Msgid) 512 | # endif 513 | # endif 514 | # ifndef YY_ 515 | # define YY_(Msgid) Msgid 516 | # endif 517 | #endif 518 | 519 | #ifndef YY_ATTRIBUTE_PURE 520 | # if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__) 521 | # define YY_ATTRIBUTE_PURE __attribute__ ((__pure__)) 522 | # else 523 | # define YY_ATTRIBUTE_PURE 524 | # endif 525 | #endif 526 | 527 | #ifndef YY_ATTRIBUTE_UNUSED 528 | # if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__) 529 | # define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) 530 | # else 531 | # define YY_ATTRIBUTE_UNUSED 532 | # endif 533 | #endif 534 | 535 | /* Suppress unused-variable warnings by "using" E. */ 536 | #if ! defined lint || defined __GNUC__ 537 | # define YYUSE(E) ((void) (E)) 538 | #else 539 | # define YYUSE(E) /* empty */ 540 | #endif 541 | 542 | #if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ 543 | /* Suppress an incorrect diagnostic about yylval being uninitialized. */ 544 | # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ 545 | _Pragma ("GCC diagnostic push") \ 546 | _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \ 547 | _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") 548 | # define YY_IGNORE_MAYBE_UNINITIALIZED_END \ 549 | _Pragma ("GCC diagnostic pop") 550 | #else 551 | # define YY_INITIAL_VALUE(Value) Value 552 | #endif 553 | #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN 554 | # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN 555 | # define YY_IGNORE_MAYBE_UNINITIALIZED_END 556 | #endif 557 | #ifndef YY_INITIAL_VALUE 558 | # define YY_INITIAL_VALUE(Value) /* Nothing. */ 559 | #endif 560 | 561 | #if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__ 562 | # define YY_IGNORE_USELESS_CAST_BEGIN \ 563 | _Pragma ("GCC diagnostic push") \ 564 | _Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"") 565 | # define YY_IGNORE_USELESS_CAST_END \ 566 | _Pragma ("GCC diagnostic pop") 567 | #endif 568 | #ifndef YY_IGNORE_USELESS_CAST_BEGIN 569 | # define YY_IGNORE_USELESS_CAST_BEGIN 570 | # define YY_IGNORE_USELESS_CAST_END 571 | #endif 572 | 573 | 574 | #define YY_ASSERT(E) ((void) (0 && (E))) 575 | 576 | #if ! defined yyoverflow || YYERROR_VERBOSE 577 | 578 | /* The parser invokes alloca or malloc; define the necessary symbols. */ 579 | 580 | # ifdef YYSTACK_USE_ALLOCA 581 | # if YYSTACK_USE_ALLOCA 582 | # ifdef __GNUC__ 583 | # define YYSTACK_ALLOC __builtin_alloca 584 | # elif defined __BUILTIN_VA_ARG_INCR 585 | # include <alloca.h> /* INFRINGES ON USER NAME SPACE */ 586 | # elif defined _AIX 587 | # define YYSTACK_ALLOC __alloca 588 | # elif defined _MSC_VER 589 | # include <malloc.h> /* INFRINGES ON USER NAME SPACE */ 590 | # define alloca _alloca 591 | # else 592 | # define YYSTACK_ALLOC alloca 593 | # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS 594 | # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ 595 | /* Use EXIT_SUCCESS as a witness for stdlib.h. */ 596 | # ifndef EXIT_SUCCESS 597 | # define EXIT_SUCCESS 0 598 | # endif 599 | # endif 600 | # endif 601 | # endif 602 | # endif 603 | 604 | # ifdef YYSTACK_ALLOC 605 | /* Pacify GCC's 'empty if-body' warning. */ 606 | # define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) 607 | # ifndef YYSTACK_ALLOC_MAXIMUM 608 | /* The OS might guarantee only one guard page at the bottom of the stack, 609 | and a page size can be as small as 4096 bytes. So we cannot safely 610 | invoke alloca (N) if N exceeds 4096. Use a slightly smaller number 611 | to allow for a few compiler-allocated temporary stack slots. */ 612 | # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ 613 | # endif 614 | # else 615 | # define YYSTACK_ALLOC YYMALLOC 616 | # define YYSTACK_FREE YYFREE 617 | # ifndef YYSTACK_ALLOC_MAXIMUM 618 | # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM 619 | # endif 620 | # if (defined __cplusplus && ! defined EXIT_SUCCESS \ 621 | && ! ((defined YYMALLOC || defined malloc) \ 622 | && (defined YYFREE || defined free))) 623 | # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ 624 | # ifndef EXIT_SUCCESS 625 | # define EXIT_SUCCESS 0 626 | # endif 627 | # endif 628 | # ifndef YYMALLOC 629 | # define YYMALLOC malloc 630 | # if ! defined malloc && ! defined EXIT_SUCCESS 631 | void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ 632 | # endif 633 | # endif 634 | # ifndef YYFREE 635 | # define YYFREE free 636 | # if ! defined free && ! defined EXIT_SUCCESS 637 | void free (void *); /* INFRINGES ON USER NAME SPACE */ 638 | # endif 639 | # endif 640 | # endif 641 | #endif /* ! defined yyoverflow || YYERROR_VERBOSE */ 642 | 643 | 644 | #if (! defined yyoverflow \ 645 | && (! defined __cplusplus \ 646 | || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) 647 | 648 | /* A type that is properly aligned for any stack member. */ 649 | union yyalloc 650 | { 651 | yy_state_t yyss_alloc; 652 | YYSTYPE yyvs_alloc; 653 | }; 654 | 655 | /* The size of the maximum gap between one aligned stack and the next. */ 656 | # define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1) 657 | 658 | /* The size of an array large to enough to hold all stacks, each with 659 | N elements. */ 660 | # define YYSTACK_BYTES(N) \ 661 | ((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE)) \ 662 | + YYSTACK_GAP_MAXIMUM) 663 | 664 | # define YYCOPY_NEEDED 1 665 | 666 | /* Relocate STACK from its old location to the new one. The 667 | local variables YYSIZE and YYSTACKSIZE give the old and new number of 668 | elements in the stack, and YYPTR gives the new location of the 669 | stack. Advance YYPTR to a properly aligned location for the next 670 | stack. */ 671 | # define YYSTACK_RELOCATE(Stack_alloc, Stack) \ 672 | do \ 673 | { \ 674 | YYPTRDIFF_T yynewbytes; \ 675 | YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ 676 | Stack = &yyptr->Stack_alloc; \ 677 | yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \ 678 | yyptr += yynewbytes / YYSIZEOF (*yyptr); \ 679 | } \ 680 | while (0) 681 | 682 | #endif 683 | 684 | #if defined YYCOPY_NEEDED && YYCOPY_NEEDED 685 | /* Copy COUNT objects from SRC to DST. The source and destination do 686 | not overlap. */ 687 | # ifndef YYCOPY 688 | # if defined __GNUC__ && 1 < __GNUC__ 689 | # define YYCOPY(Dst, Src, Count) \ 690 | __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src))) 691 | # else 692 | # define YYCOPY(Dst, Src, Count) \ 693 | do \ 694 | { \ 695 | YYPTRDIFF_T yyi; \ 696 | for (yyi = 0; yyi < (Count); yyi++) \ 697 | (Dst)[yyi] = (Src)[yyi]; \ 698 | } \ 699 | while (0) 700 | # endif 701 | # endif 702 | #endif /* !YYCOPY_NEEDED */ 703 | 704 | /* YYFINAL -- State number of the termination state. */ 705 | #define YYFINAL 92 706 | /* YYLAST -- Last index in YYTABLE. */ 707 | #define YYLAST 1500 708 | 709 | /* YYNTOKENS -- Number of terminals. */ 710 | #define YYNTOKENS 88 711 | /* YYNNTS -- Number of nonterminals. */ 712 | #define YYNNTS 172 713 | /* YYNRULES -- Number of rules. */ 714 | #define YYNRULES 379 715 | /* YYNSTATES -- Number of states. */ 716 | #define YYNSTATES 572 717 | 718 | #define YYUNDEFTOK 2 719 | #define YYMAXUTOK 318 720 | 721 | 722 | /* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM 723 | as returned by yylex, with out-of-bounds checking. */ 724 | #define YYTRANSLATE(YYX) \ 725 | (0 <= (YYX) && (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) 726 | 727 | /* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM 728 | as returned by yylex. */ 729 | static const yytype_int8 yytranslate[] = 730 | { 731 | 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 732 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 733 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 734 | 2, 2, 2, 87, 2, 2, 2, 85, 79, 2, 735 | 73, 74, 75, 82, 65, 83, 70, 84, 2, 2, 736 | 2, 2, 2, 2, 2, 2, 2, 2, 69, 64, 737 | 80, 66, 81, 76, 2, 2, 2, 2, 2, 2, 738 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 739 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 740 | 2, 71, 2, 72, 78, 2, 2, 2, 2, 2, 741 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 742 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 743 | 2, 2, 2, 67, 77, 68, 86, 2, 2, 2, 744 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 745 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 746 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 747 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 748 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 749 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 750 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 751 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 752 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 753 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 754 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 755 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 756 | 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, 757 | 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 758 | 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 759 | 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 760 | 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 761 | 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 762 | 55, 56, 57, 58, 59, 60, 61, 62, 63 763 | }; 764 | 765 | #if YYDEBUG 766 | /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ 767 | static const yytype_int16 yyrline[] = 768 | { 769 | 0, 167, 167, 168, 172, 173, 177, 179, 181, 182, 770 | 188, 190, 196, 198, 203, 209, 210, 212, 214, 217, 771 | 218, 225, 226, 226, 230, 274, 275, 276, 277, 281, 772 | 285, 286, 290, 291, 292, 293, 297, 298, 299, 303, 773 | 304, 308, 309, 313, 314, 320, 321, 323, 327, 330, 774 | 332, 334, 336, 338, 340, 342, 344, 351, 353, 358, 775 | 359, 361, 363, 368, 369, 373, 374, 378, 385, 387, 776 | 387, 387, 394, 398, 400, 405, 407, 409, 413, 418, 777 | 419, 424, 426, 433, 438, 439, 440, 441, 442, 443, 778 | 444, 445, 449, 450, 451, 453, 458, 459, 461, 466, 779 | 467, 468, 469, 470, 471, 475, 479, 483, 487, 489, 780 | 496, 497, 502, 501, 515, 514, 530, 531, 535, 536, 781 | 541, 543, 548, 552, 557, 558, 564, 565, 570, 569, 782 | 583, 582, 598, 603, 604, 610, 611, 616, 615, 629, 783 | 628, 644, 649, 650, 656, 657, 661, 662, 667, 668, 784 | 671, 674, 679, 678, 683, 682, 687, 686, 693, 695, 785 | 701, 702, 706, 711, 713, 718, 722, 723, 732, 731, 786 | 738, 761, 762, 764, 765, 772, 777, 778, 779, 781, 787 | 787, 786, 797, 806, 808, 809, 813, 815, 821, 822, 788 | 828, 831, 837, 839, 841, 848, 849, 850, 851, 852, 789 | 853, 854, 855, 856, 857, 858, 859, 866, 868, 865, 790 | 873, 874, 878, 879, 883, 884, 891, 892, 896, 900, 791 | 906, 907, 908, 912, 917, 916, 923, 924, 925, 926, 792 | 927, 928, 929, 930, 934, 935, 937, 942, 948, 949, 793 | 950, 954, 955, 959, 963, 964, 970, 976, 980, 984, 794 | 988, 992, 996, 997, 1003, 1009, 1010, 1017, 1018, 1019, 795 | 1020, 1024, 1025, 1026, 1027, 1028, 1029, 1030, 1031, 1032, 796 | 1033, 1034, 1040, 1041, 1043, 1050, 1051, 1058, 1059, 1066, 797 | 1067, 1074, 1075, 1082, 1083, 1090, 1091, 1096, 1097, 1103, 798 | 1104, 1109, 1110, 1111, 1112, 1118, 1119, 1124, 1125, 1131, 799 | 1132, 1137, 1138, 1144, 1145, 1150, 1151, 1152, 1158, 1159, 800 | 1160, 1161, 1162, 1163, 1164, 1165, 1166, 1167, 1168, 1172, 801 | 1176, 1181, 1183, 1187, 1191, 1196, 1200, 1204, 1206, 1211, 802 | 1216, 1223, 1224, 1225, 1227, 1228, 1229, 1230, 1234, 1235, 803 | 1239, 1243, 1247, 1248, 1252, 1253, 1257, 1261, 1265, 1269, 804 | 1271, 1272, 1273, 1277, 1278, 1282, 1284, 1284, 1284, 1290, 805 | 1294, 1295, 1303, 1304, 1305, 1306, 1310, 1311, 1312, 1316, 806 | 1317, 1318, 1322, 1323, 1324, 1328, 1329, 1330, 1334, 1340 807 | }; 808 | #endif 809 | 810 | #if YYDEBUG || YYERROR_VERBOSE || 0 811 | /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. 812 | First, the terminals, then, starting at YYNTOKENS, nonterminals. */ 813 | static const char *const yytname[] = 814 | { 815 | "$end", "error", "$undefined", "IDENTIFIER", "TYPE_NAME", "LITERAL", 816 | "STRING_LITERAL", "ELLIPSES", "MUL_ASSIGN", "DIV_ASSIGN", "MOD_ASSIGN", 817 | "ADD_ASSIGN", "SUB_ASSIGN", "LEFT_ASSIGN", "RIGHT_ASSIGN", "AND_ASSIGN", 818 | "XOR_ASSIGN", "OR_ASSIGN", "EQ_OP", "NE_OP", "PTR_OP", "AND_OP", "OR_OP", 819 | "DEC_OP", "INC_OP", "LE_OP", "GE_OP", "LEFT_SHIFT", "RIGHT_SHIFT", 820 | "SIZEOF", "TYPEDEF", "EXTERN", "STATIC", "AUTO", "REGISTER", "CONST", 821 | "VOLATILE", "VOID", "INLINE", "CHAR", "SHORT", "INT", "LONG", "SIGNED", 822 | "UNSIGNED", "FLOAT", "DOUBLE", "BOOL", "STRUCT", "UNION", "ENUM", "CASE", 823 | "DEFAULT", "IF", "ELSE", "SWITCH", "WHILE", "DO", "FOR", "GOTO", 824 | "CONTINUE", "BREAK", "RETURN", "ASM", "';'", "','", "'='", "'{'", "'}'", 825 | "':'", "'.'", "'['", "']'", "'('", "')'", "'*'", "'?'", "'|'", "'^'", 826 | "'&'", "'<'", "'>'", "'+'", "'-'", "'/'", "'%'", "'~'", "'!'", "$accept", 827 | "file", "program", "top_level_declaration", "declaration_list", 828 | "declaration", "declaration_specifiers", "declaration_specifiers1", 829 | "initialized_declarator_list", "$@1", "initialized_declarator", 830 | "initialized_declarator1", "initializer_part", "initializer", 831 | "struct_initializer_list", "named_initializer", "designator", 832 | "designator_list", "named_initializer_index", "abstract_declarator", 833 | "direct_abstract_declarator", "declarator", "pointer", 834 | "direct_declarator", "simple_declarator", "array_declarator", "$@2", 835 | "$@3", "name", "storage_class_specifier", "type_qualifier_list", 836 | "type_qualifier", "type_specifier", "type_specifier1", 837 | "floating_type_specifier", "integer_type_specifier", 838 | "integer_type_specifier_part", "boolean_type_specifier", "typedef_name", 839 | "void_type_specifier", "type_name", "enumeration_type_specifier", 840 | "enumeration_type_definition", "$@4", "$@5", 841 | "enumeration_definition_list", "enumeration_definition_list1", 842 | "enumeration_constant_definition", "enumeration_constant", 843 | "enumeration_type_reference", "enumeration_tag", 844 | "structure_type_specifier", "structure_type_definition", "$@6", "$@7", 845 | "structure_type_reference", "structure_tag", "union_type_specifier", 846 | "union_type_definition", "$@8", "$@9", "union_type_reference", 847 | "union_tag", "field_list", "field_list1", "field_list2", 848 | "component_declaration", "$@10", "$@11", "$@12", 849 | "component_declarator_list", "component_declarator", "simple_component", 850 | "bit_field", "width", "component_name", "function_definition", "$@13", 851 | "function_specifier", "function_specifier1", "function_declarator", 852 | "function_declarator0", "function_direct_declarator", "$@14", 853 | "function_declarator1", "function_declarator2", "identifier_list", 854 | "parameter_type_list", "parameter_list", "parameter_declaration", 855 | "statement", "compound_statement", "$@15", "$@16", 856 | "compound_statement_body", "block_item_list", "block_item", 857 | "conditional_statement", "if_else_statement", "if_statement", 858 | "iterative_statement", "do_statement", "for_statement", "$@17", 859 | "for_expressions", "for_expression_or_declaration", "while_statement", 860 | "labeled_statement", "case_label", "default_label", "named_label", 861 | "switch_statement", "break_statement", "continue_statement", 862 | "expression_statement", "goto_statement", "null_statement", 863 | "return_statement", "expression", "comma_expression", 864 | "assignment_expression", "assignment_op", "conditional_expression", 865 | "logical_or_expression", "logical_and_expression", 866 | "bitwise_or_expression", "bitwise_xor_expression", 867 | "bitwise_and_expression", "equality_expression", "equality_op", 868 | "relational_expression", "relational_op", "shift_expression", "shift_op", 869 | "additive_expression", "add_op", "multiplicative_expression", "mult_op", 870 | "unary_expression", "address_expression", "bitwise_negation_expression", 871 | "cast_expression", "indirection_expression", 872 | "logical_negation_expression", "predecrement_expression", 873 | "preincrement_expression", "sizeof_expression", "unary_minus_expression", 874 | "unary_plus_expression", "postfix_expression", 875 | "component_selection_expression", "direct_component_selection", 876 | "indirect_component_selection", "function_call", "function_call_direct", 877 | "postdecrement_expression", "postincrement_expression", 878 | "subscript_expression", "primary_expression", "string_literal", 879 | "parenthesized_expression", "$@18", "$@19", "constant_expression", 880 | "expression_list", "asm_statement", "asm_type", "asm_inout_list", 881 | "asm_inout", "asm_clobber_list", "asm_label", "named_label_address", YY_NULLPTR 882 | }; 883 | #endif 884 | 885 | # ifdef YYPRINT 886 | /* YYTOKNUM[NUM] -- (External) token number corresponding to the 887 | (internal) symbol number NUM (which must be that of a token). */ 888 | static const yytype_int16 yytoknum[] = 889 | { 890 | 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, 891 | 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 892 | 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 893 | 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 894 | 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 895 | 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 896 | 315, 316, 317, 318, 59, 44, 61, 123, 125, 58, 897 | 46, 91, 93, 40, 41, 42, 63, 124, 94, 38, 898 | 60, 62, 43, 45, 47, 37, 126, 33 899 | }; 900 | # endif 901 | 902 | #define YYPACT_NINF (-406) 903 | 904 | #define yypact_value_is_default(Yyn) \ 905 | ((Yyn) == YYPACT_NINF) 906 | 907 | #define YYTABLE_NINF (-246) 908 | 909 | #define yytable_value_is_error(Yyn) \ 910 | 0 911 | 912 | /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing 913 | STATE-NUM. */ 914 | static const yytype_int16 yypact[] = 915 | { 916 | 1192, -406, -406, -406, -406, -406, -406, -406, -406, -1, 917 | -406, -406, -406, -406, -406, 21, -406, -406, -406, 36, 918 | -406, 53, 57, 61, 62, -406, 43, 120, 151, 1192, 919 | -406, -406, 19, -406, 14, 104, -406, -406, 1450, 1450, 920 | 1450, -406, -406, 386, 126, -406, -406, -406, -406, -406, 921 | -406, -406, -406, -406, -406, -406, -406, -406, -406, -406, 922 | 1450, -406, 332, 106, -406, -406, 117, -406, -406, -406, 923 | -406, -406, -406, 129, -406, -406, -406, 165, -406, -406, 924 | -406, 188, -406, 43, 130, 39, -3, 144, -406, -406, 925 | 120, -406, -406, -406, -406, 223, -406, -406, 78, 14, 926 | 1450, 43, 332, 152, -406, -406, -406, -406, -406, -406, 927 | 200, 1450, -406, 38, -406, 235, 417, -406, 417, -406, 928 | 248, -406, -406, -406, -3, -406, -406, -406, -406, -406, 929 | 187, 301, -406, 209, 1450, 205, -406, 1042, -406, -406, 930 | -406, 1382, -406, 30, -406, 1257, 126, 218, 220, 237, 931 | 417, -406, -406, 417, 251, 417, -406, 253, 264, -406, 932 | 273, 248, 43, 235, -406, -406, 287, 1107, 1107, 1132, 933 | 210, 636, 1107, 1107, 1107, 1107, 1107, 1107, -406, 281, 934 | -406, -406, 1, 325, 279, 284, 278, 276, 140, 275, 935 | 244, 103, 300, -406, -406, -406, -406, -406, -406, -406, 936 | -406, -406, -406, 174, -406, -406, -406, -406, -406, -406, 937 | -406, -406, -406, 353, -406, -406, -406, -406, -406, 306, 938 | -406, -406, 466, -406, 137, 299, 313, -406, 314, -406, 939 | -406, 68, 317, -406, 126, 11, -406, -406, -406, -406, 940 | 318, -406, 326, -406, 248, 1042, 338, -406, 41, -406, 941 | -406, -406, -406, -406, 636, -406, 316, -406, 328, 1042, 942 | -406, 32, -406, -406, 192, 324, 193, 308, 333, 200, 943 | -406, -406, -406, -406, -406, -406, 85, 1107, 755, 1107, 944 | 1107, 1107, 1107, -406, -406, 1107, -406, -406, -406, -406, 945 | 1107, -406, -406, 1107, -406, -406, 1107, -406, -406, -406, 946 | 1107, -406, -406, -406, -406, -406, -406, -406, -406, -406, 947 | -406, -406, 777, 328, -406, -406, 328, 1042, 802, 1042, 948 | 336, 341, 342, 1042, -406, 339, 343, 344, 684, -406, 949 | 415, 355, 359, 877, -406, -406, -406, -406, 466, -406, 950 | -406, -406, -406, -406, -406, -406, -406, -406, 362, 363, 951 | 364, -406, -406, -406, -406, -406, -406, -406, 371, -406, 952 | 899, 1240, -406, 169, -406, 52, -406, 433, 1403, 330, 953 | 28, 161, -406, -406, 11, 11, 1042, 368, 272, -406, 954 | -406, -406, -406, -406, -406, -406, -406, -406, 365, -406, 955 | -406, 369, 435, 210, -406, 301, -406, 301, 1287, -406, 956 | 199, 1085, -406, -406, -406, -406, 89, 325, -406, 1107, 957 | 374, 279, 284, 278, 276, 140, 275, 244, 103, -406, 958 | 210, -406, -406, -406, 372, -406, 109, -406, -406, 438, 959 | 1042, 1042, 1042, -1, 384, 375, 383, -406, -406, -406, 960 | 385, 382, -406, -406, -406, -406, -406, -406, 379, -406, 961 | 394, 399, 924, 1334, 169, -406, -406, -406, 402, 403, 962 | 1042, 68, 68, 412, 280, 286, -406, -406, 1042, -406, 963 | 11, 1085, -406, 1042, -406, -406, -406, 210, -406, 404, 964 | 1042, -406, -406, 1107, 157, -406, -406, 1042, 405, 406, 965 | 408, 410, 551, -406, -406, -406, -406, -406, -406, -406, 966 | 413, -406, 414, 235, 235, 418, -406, 185, -406, -406, 967 | -406, -406, -406, -406, 184, -406, -406, -406, -406, -406, 968 | 684, 684, 684, 1042, 995, 43, 446, 420, -406, -406, 969 | -406, 34, 46, -406, 235, 422, -406, 423, -406, -406, 970 | 457, 1042, 427, 467, 684, 1020, 1042, 1042, 353, 115, 971 | -406, 684, 470, -406, 1042, -406, 1042, 471, 462, 463, 972 | 235, 474, -406, -406, -406, -406, 1042, -406, -406, 353, 973 | -406, -406 974 | }; 975 | 976 | /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. 977 | Performed when YYTABLE does not specify something else to do. Zero 978 | means the default is an error. */ 979 | static const yytype_int16 yydefact[] = 980 | { 981 | 2, 67, 106, 77, 74, 76, 73, 75, 81, 82, 982 | 107, 78, 101, 102, 103, 104, 99, 100, 92, 93, 983 | 105, 0, 0, 0, 366, 251, 0, 59, 0, 3, 984 | 4, 6, 0, 14, 0, 182, 63, 65, 15, 19, 985 | 17, 83, 85, 86, 96, 87, 89, 91, 84, 110, 986 | 111, 88, 126, 127, 90, 135, 136, 7, 168, 170, 987 | 171, 175, 176, 0, 9, 8, 0, 368, 95, 94, 988 | 133, 134, 128, 132, 142, 143, 137, 141, 124, 125, 989 | 112, 123, 367, 0, 0, 0, 57, 66, 82, 61, 990 | 60, 79, 1, 5, 13, 0, 21, 24, 25, 0, 991 | 172, 0, 178, 69, 16, 20, 18, 104, 98, 97, 992 | 0, 173, 10, 0, 180, 0, 144, 130, 144, 139, 993 | 0, 114, 66, 64, 58, 177, 62, 80, 12, 22, 994 | 0, 0, 27, 26, 174, 66, 68, 0, 207, 169, 995 | 11, 183, 353, 0, 148, 0, 152, 126, 135, 0, 996 | 145, 146, 151, 144, 0, 144, 122, 0, 116, 118, 997 | 120, 0, 0, 0, 72, 350, 0, 0, 0, 0, 998 | 32, 356, 0, 0, 0, 0, 0, 0, 29, 349, 999 | 30, 257, 272, 275, 277, 279, 281, 283, 285, 289, 1000 | 295, 299, 303, 308, 309, 310, 311, 312, 313, 314, 1001 | 315, 316, 317, 318, 331, 338, 339, 332, 333, 334, 1002 | 335, 336, 337, 351, 352, 258, 28, 179, 359, 254, 1003 | 255, 70, 210, 186, 193, 0, 185, 184, 188, 190, 1004 | 354, 369, 0, 154, 156, 0, 149, 150, 129, 147, 1005 | 0, 138, 0, 113, 117, 0, 0, 23, 0, 244, 1006 | 245, 379, 325, 326, 356, 328, 72, 167, 0, 0, 1007 | 36, 0, 33, 41, 0, 0, 108, 0, 0, 0, 1008 | 323, 319, 330, 329, 320, 324, 0, 0, 0, 0, 1009 | 0, 0, 0, 287, 288, 0, 292, 294, 291, 293, 1010 | 0, 297, 298, 0, 301, 302, 0, 305, 306, 307, 1011 | 0, 262, 263, 264, 265, 266, 267, 268, 269, 270, 1012 | 271, 261, 0, 0, 346, 347, 0, 0, 0, 0, 1013 | 0, 72, 106, 0, 243, 0, 0, 0, 0, 224, 1014 | 0, 0, 0, 0, 215, 214, 196, 208, 211, 212, 1015 | 197, 217, 216, 198, 220, 221, 222, 199, 0, 0, 1016 | 0, 200, 201, 202, 203, 204, 205, 206, 0, 195, 1017 | 0, 0, 194, 47, 192, 45, 181, 0, 0, 0, 1018 | 0, 0, 370, 362, 0, 0, 0, 162, 0, 158, 1019 | 160, 161, 131, 140, 119, 121, 115, 378, 0, 166, 1020 | 39, 0, 43, 35, 31, 0, 42, 0, 0, 109, 1021 | 45, 0, 355, 357, 344, 360, 0, 276, 303, 0, 1022 | 0, 278, 280, 282, 284, 286, 290, 296, 300, 304, 1023 | 32, 259, 341, 340, 0, 342, 0, 256, 71, 241, 1024 | 0, 0, 0, 0, 0, 0, 0, 248, 247, 252, 1025 | 0, 0, 213, 238, 240, 239, 249, 49, 0, 53, 1026 | 0, 0, 0, 0, 46, 187, 189, 191, 0, 0, 1027 | 0, 0, 369, 0, 0, 0, 163, 165, 0, 153, 1028 | 0, 327, 40, 0, 34, 38, 37, 32, 321, 0, 1029 | 0, 345, 274, 0, 0, 348, 343, 0, 0, 0, 1030 | 0, 0, 0, 250, 253, 209, 51, 48, 55, 50, 1031 | 0, 54, 0, 0, 0, 0, 371, 0, 363, 155, 1032 | 157, 164, 159, 44, 0, 358, 361, 273, 260, 242, 1033 | 0, 0, 0, 0, 0, 236, 0, 0, 234, 52, 1034 | 56, 0, 0, 374, 375, 0, 322, 219, 246, 237, 1035 | 0, 226, 0, 235, 0, 0, 0, 0, 376, 0, 1036 | 364, 0, 0, 229, 228, 225, 227, 0, 0, 0, 1037 | 0, 0, 218, 223, 230, 231, 232, 372, 373, 377, 1038 | 365, 233 1039 | }; 1040 | 1041 | /* YYPGOTO[NTERM-NUM]. */ 1042 | static const yytype_int16 yypgoto[] = 1043 | { 1044 | -406, -406, -406, 511, 442, -52, 2, 5, 18, -406, 1045 | 388, -406, 411, -124, -405, 153, 283, -406, -406, -170, 1046 | -347, -32, 3, 4, -406, -406, -406, -406, -406, -406, 1047 | -11, 31, 93, -406, -406, -406, 508, -406, -406, -406, 1048 | 304, -406, -406, -406, -406, 398, -406, 319, -406, -406, 1049 | -406, -406, 222, -406, -406, -406, -406, -406, 249, -406, 1050 | -406, -406, -406, 64, -406, 416, -406, -406, -406, -406, 1051 | -22, 90, -406, -406, 94, -163, -406, -406, -406, -406, 1052 | 529, -406, 37, -406, -406, -406, -406, -135, -406, 196, 1053 | -315, -100, -406, -406, -406, -406, 227, -406, -406, -406, 1054 | -406, -406, -406, -406, -406, -406, -406, -406, -406, -406, 1055 | 401, -406, -406, -406, -406, -406, 50, -406, -132, -406, 1056 | -119, -406, -398, -406, 291, 290, 293, 289, 294, -406, 1057 | 292, -406, 288, -406, 309, -406, 307, -406, -148, -406, 1058 | -406, -406, -406, -406, -406, -406, -406, -406, -406, -406, 1059 | -406, -406, -406, -406, -406, -406, -406, -406, -406, -114, 1060 | -406, -406, -406, -250, 261, 76, -406, 142, 110, -406, 1061 | -406, -406 1062 | }; 1063 | 1064 | /* YYDEFGOTO[NTERM-NUM]. */ 1065 | static const yytype_int16 yydefgoto[] = 1066 | { 1067 | -1, 28, 29, 30, 111, 31, 113, 33, 95, 162, 1068 | 96, 97, 132, 260, 261, 262, 263, 264, 391, 450, 1069 | 363, 84, 85, 86, 36, 37, 137, 320, 179, 38, 1070 | 145, 39, 40, 41, 42, 43, 44, 45, 46, 47, 1071 | 267, 48, 49, 120, 161, 157, 158, 159, 160, 50, 1072 | 81, 51, 52, 116, 153, 53, 73, 54, 55, 118, 1073 | 155, 56, 77, 149, 150, 151, 152, 235, 374, 375, 1074 | 378, 379, 380, 381, 466, 265, 57, 110, 58, 59, 1075 | 60, 61, 122, 141, 63, 225, 226, 451, 228, 229, 1076 | 335, 336, 222, 441, 337, 338, 339, 340, 341, 342, 1077 | 343, 344, 345, 435, 526, 527, 346, 347, 348, 349, 1078 | 350, 351, 352, 353, 354, 355, 356, 357, 358, 219, 1079 | 220, 312, 181, 182, 183, 184, 185, 186, 187, 285, 1080 | 188, 290, 189, 293, 190, 296, 191, 300, 192, 193, 1081 | 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 1082 | 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 1083 | 214, 269, 479, 221, 406, 359, 66, 371, 372, 549, 1084 | 133, 215 1085 | }; 1086 | 1087 | /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If 1088 | positive, shift that token. If negative, reduce the rule whose 1089 | number is the opposite. If YYTABLE_NINF, syntax error. */ 1090 | static const yytype_int16 yytable[] = 1091 | { 1092 | 98, 143, 32, 34, 35, 218, 227, 178, 112, 392, 1093 | 139, 482, 180, 434, 1, 484, 90, 1, 454, 252, 1094 | 253, 255, 1, 277, 270, 271, 272, 273, 274, 275, 1095 | 89, 32, 34, 35, 230, 99, 230, 62, 35, 268, 1096 | 230, 1, 1, 104, 105, 106, 1, 230, 112, 248, 1097 | 64, 180, 230, 454, 362, 1, 70, 71, 91, 140, 1098 | 74, 75, 67, 87, 78, 79, 62, 68, 103, 62, 1099 | -182, 102, 514, 429, 142, 109, 65, 278, 69, 64, 1100 | 376, 98, 140, 94, 83, 517, 27, 101, 164, 124, 1101 | 165, 142, 26, 126, 27, 390, 399, 393, 82, 231, 1102 | 394, 460, 94, 124, 232, 65, 166, 546, 167, 168, 1103 | 448, 83, 83, 27, 169, 387, 83, 370, 27, 547, 1104 | 72, 127, 268, 360, 76, 361, 385, 218, 80, 408, 1105 | 98, 408, 408, 408, 408, 234, 102, 408, 135, 369, 1106 | 1, 130, 408, 224, 131, 408, 410, 91, 408, 91, 1107 | 422, 92, 419, 423, 480, 8, 88, 405, 171, 404, 1108 | 172, 8, 88, 481, 173, 286, 287, 174, 175, 403, 1109 | 334, 176, 177, 266, 480, 103, 127, 91, 297, 114, 1110 | 560, 91, 154, 486, 91, 424, 91, 298, 299, 561, 1111 | 115, 218, 364, 421, 313, 27, 117, 314, 315, 405, 1112 | 427, 440, 500, 377, 123, 537, 538, 539, 360, 146, 1113 | 361, 146, 27, 256, 257, 165, 142, 240, 125, 242, 1114 | 288, 289, 393, 513, 136, 518, 461, 365, 218, 555, 1115 | 462, 166, 119, 167, 168, 463, 562, 519, 233, 169, 1116 | 452, 142, 453, 146, 316, 317, 146, 318, 146, 393, 1117 | 461, 156, 536, 478, 534, 121, 266, 467, 395, 535, 1118 | 163, 408, 258, 259, 360, 127, 398, 138, 27, 400, 1119 | 360, 475, 398, 476, 180, 131, 180, 170, 180, 217, 1120 | 258, 259, 236, 171, 237, 172, 334, 128, 129, 173, 1121 | 249, 250, 174, 175, 283, 284, 176, 177, 488, 489, 1122 | 490, 180, 291, 292, 164, 238, 165, 142, 301, 302, 1123 | 303, 304, 305, 306, 307, 308, 309, 310, 502, 241, 1124 | 218, 243, 166, 478, 167, 168, 294, 295, 505, 244, 1125 | 169, 389, 257, 458, 459, 408, 469, 470, 147, 245, 1126 | 147, 218, 377, 377, 509, 470, 279, 370, 370, 467, 1127 | 510, 470, 464, 465, 276, 218, 280, 282, 180, 230, 1128 | 528, 516, 281, 224, 365, 148, 311, 148, 170, 124, 1129 | 224, 319, 147, 366, 171, 147, 172, 147, 367, 368, 1130 | 173, 373, 401, 174, 175, -166, 382, 176, 177, 531, 1131 | 532, 540, 542, 397, 383, -66, -66, -66, -66, 148, 1132 | 224, 400, 148, -66, 148, -66, 386, 402, 428, 553, 1133 | -244, -245, 430, 557, 558, 559, 431, 432, 436, 437, 1134 | 548, 2, 564, 438, 565, 12, 13, 14, 107, 16, 1135 | 17, 443, 444, 445, 571, 446, 455, 468, 377, 471, 1136 | 491, 472, 473, 483, 485, 487, 569, 493, 492, 494, 1137 | 495, 496, 8, 88, 10, 224, 12, 13, 14, 15, 1138 | 16, 17, 18, 19, 20, 21, 22, 23, 497, 321, 1139 | 322, 165, 142, 498, 503, 504, 508, 551, 515, 520, 1140 | 521, 144, 522, 523, 545, 529, 550, 166, 530, 167, 1141 | 168, 554, 533, 98, 525, 169, 3, 4, 5, 6, 1142 | 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 1143 | 17, 18, 19, 20, 21, 22, 23, 323, 324, 325, 1144 | 544, 326, 327, 328, 329, 330, 331, 332, 333, 24, 1145 | 25, 552, 129, 138, 563, 566, 567, 568, 570, 171, 1146 | 93, 172, 134, 543, 216, 173, 474, 396, 174, 175, 1147 | 247, 108, 176, 177, 164, 2, 165, 142, 388, 246, 1148 | 512, 100, 511, 384, 457, 442, 239, 251, 407, 411, 1149 | 413, 506, 166, 412, 167, 168, 414, 415, 416, 426, 1150 | 169, 3, 4, 5, 6, 7, 8, 88, 10, 11, 1151 | 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 1152 | 22, 23, 417, 418, 507, 0, 0, 0, 0, 0, 1153 | 0, 0, 0, 0, 0, 524, 0, 0, 0, 0, 1154 | 0, 0, 0, 0, 171, 0, 172, 0, 0, 0, 1155 | 173, 0, 0, 174, 175, 0, 0, 176, 177, 164, 1156 | 2, 165, 142, 0, 0, 0, 0, 0, 0, 0, 1157 | 0, 0, 0, 0, 0, 0, 0, 166, 0, 167, 1158 | 168, 0, 0, 0, 0, 169, 3, 4, 5, 6, 1159 | 7, 8, 88, 10, 11, 12, 13, 14, 15, 16, 1160 | 17, 18, 19, 20, 21, 22, 23, 321, 250, 165, 1161 | 142, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1162 | 0, 0, 0, 0, 0, 166, 0, 167, 168, 171, 1163 | 0, 172, 0, 169, 0, 173, 0, 0, 174, 175, 1164 | 433, 0, 176, 177, 0, 0, 0, 0, 0, 0, 1165 | 0, 0, 0, 0, 0, 323, 324, 325, 0, 326, 1166 | 327, 328, 329, 330, 331, 332, 333, 24, 25, 0, 1167 | 0, 138, 0, 0, 0, 0, 0, 171, 164, 172, 1168 | 165, 142, 0, 173, 0, 0, 174, 175, 0, 0, 1169 | 176, 177, 0, 0, 0, 0, 166, 0, 167, 168, 1170 | 164, 0, 165, 142, 169, 0, 0, 0, 0, 0, 1171 | 0, 0, 0, 0, 0, 0, 0, 0, 166, 0, 1172 | 167, 168, 0, 0, 0, 164, 169, 165, 142, 0, 1173 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1174 | 0, 0, 0, 166, 409, 167, 168, 0, 171, 0, 1175 | 172, 169, 0, 0, 173, 0, 0, 174, 175, 0, 1176 | 0, 176, 177, 0, 420, 0, 0, 0, 0, 0, 1177 | 171, 0, 172, 0, 0, 0, 173, 0, 0, 174, 1178 | 175, 0, 0, 176, 177, 0, 0, 0, 0, 0, 1179 | 0, 0, 0, 0, 0, 171, 425, 172, 0, 0, 1180 | 164, 173, 165, 142, 174, 175, 0, 0, 176, 177, 1181 | 0, 0, 0, 0, 0, 0, 0, 0, 166, 0, 1182 | 167, 168, 164, 0, 165, 142, 169, 0, 0, 0, 1183 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1184 | 166, 0, 167, 168, 0, 0, 0, 164, 169, 165, 1185 | 142, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1186 | 0, 439, 0, 0, 0, 166, 0, 167, 168, 0, 1187 | 171, 0, 172, 169, 0, 0, 173, 0, 0, 174, 1188 | 175, 0, 0, 176, 177, 0, 0, 0, 0, 0, 1189 | 0, 447, 171, 0, 172, 0, 0, 0, 173, 0, 1190 | 0, 174, 175, 0, 0, 176, 177, 0, 0, 0, 1191 | 0, 0, 0, 0, 0, 0, 499, 171, 164, 172, 1192 | 165, 142, 0, 173, 0, 0, 174, 175, 0, 0, 1193 | 176, 177, 0, 0, 0, 0, 166, 0, 167, 168, 1194 | 0, 0, 0, 164, 169, 165, 142, 0, 0, 0, 1195 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1196 | 0, 166, 0, 167, 168, 164, 0, 165, 142, 169, 1197 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 541, 1198 | 0, 0, 0, 166, 0, 167, 168, 0, 171, 0, 1199 | 172, 169, 0, 0, 173, 0, 0, 174, 175, 0, 1200 | 0, 176, 177, 0, 556, 0, 0, 0, 164, 0, 1201 | 165, 142, 0, 171, 0, 172, 0, 0, 0, 173, 1202 | 0, 0, 174, 175, 0, 0, 176, 177, 167, 168, 1203 | 164, 0, 165, 142, 169, 171, 0, 172, 0, 0, 1204 | 0, 173, 0, 0, 174, 175, 0, 0, 176, 177, 1205 | 167, 168, 0, 0, 0, 164, 169, 165, 142, 0, 1206 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1207 | 0, 0, 477, 0, 0, 167, 168, 0, 171, 0, 1208 | 172, 169, 0, 0, 173, 0, 0, 174, 175, 0, 1209 | 0, 176, 177, 0, 0, 0, 0, 0, 0, 0, 1210 | 171, 0, 172, 0, 0, 0, 173, 0, 0, 174, 1211 | 175, 0, 0, 176, 177, 1, 2, 0, 0, 0, 1212 | 0, 0, 0, 0, 0, 254, 0, 172, 0, 0, 1213 | 0, 173, 0, 0, 174, 175, 0, 0, 176, 177, 1214 | 0, 0, 3, 4, 5, 6, 7, 8, 9, 10, 1215 | 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 1216 | 21, 22, 23, 1, 2, 0, 0, 0, 0, 0, 1217 | 0, 0, 0, 0, 0, 24, 25, 0, 0, 0, 1218 | 0, 2, 0, 0, 0, 26, 0, 27, 0, 0, 1219 | 3, 4, 5, 6, 7, 8, 88, 10, 11, 12, 1220 | 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 1221 | 23, 2, 8, 88, 10, 0, 12, 13, 14, 15, 1222 | 16, 17, 18, 19, 20, 21, 22, 23, 0, 0, 1223 | 0, 360, 0, 361, 449, 27, 0, 3, 4, 5, 1224 | 6, 7, 8, 88, 10, 11, 12, 13, 14, 15, 1225 | 16, 17, 18, 19, 20, 21, 22, 23, 2, 0, 1226 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1227 | 0, 0, 0, 0, 0, 0, 0, 0, 360, 0, 1228 | 398, 449, 27, 0, 3, 4, 5, 6, 7, 8, 1229 | 88, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1230 | 19, 20, 21, 22, 23, 223, 2, 0, 0, 0, 1231 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1232 | 0, 0, 0, 0, 0, 0, 0, 2, 501, 0, 1233 | 456, 0, 3, 4, 5, 6, 7, 8, 88, 10, 1234 | 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 1235 | 21, 22, 23, 3, 4, 5, 6, 7, 8, 88, 1236 | 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 1237 | 20, 21, 22, 23, 2, 0, 0, 0, 0, 0, 1238 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1239 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1240 | 3, 4, 5, 6, 7, 8, 88, 10, 11, 12, 1241 | 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 1242 | 23 1243 | }; 1244 | 1245 | static const yytype_int16 yycheck[] = 1246 | { 1247 | 32, 115, 0, 0, 0, 137, 141, 131, 60, 259, 1248 | 110, 409, 131, 328, 3, 420, 27, 3, 365, 167, 1249 | 168, 169, 3, 22, 172, 173, 174, 175, 176, 177, 1250 | 27, 29, 29, 29, 6, 32, 6, 0, 34, 171, 1251 | 6, 3, 3, 38, 39, 40, 3, 6, 100, 163, 1252 | 0, 170, 6, 400, 224, 3, 3, 4, 27, 111, 1253 | 3, 4, 63, 26, 3, 4, 29, 46, 71, 32, 1254 | 73, 34, 477, 323, 6, 44, 0, 76, 42, 29, 1255 | 69, 113, 134, 64, 73, 483, 75, 73, 3, 85, 1256 | 5, 6, 73, 90, 75, 258, 266, 65, 36, 69, 1257 | 68, 73, 64, 99, 74, 29, 21, 73, 23, 24, 1258 | 360, 73, 73, 75, 29, 74, 73, 231, 75, 73, 1259 | 67, 90, 254, 71, 67, 73, 245, 259, 67, 277, 1260 | 162, 279, 280, 281, 282, 146, 99, 285, 101, 71, 1261 | 3, 63, 290, 141, 66, 293, 278, 116, 296, 118, 1262 | 313, 0, 300, 316, 65, 35, 36, 276, 73, 74, 1263 | 75, 35, 36, 74, 79, 25, 26, 82, 83, 269, 1264 | 222, 86, 87, 171, 65, 71, 145, 146, 75, 73, 1265 | 65, 150, 118, 74, 153, 317, 155, 84, 85, 74, 1266 | 73, 323, 224, 312, 20, 75, 67, 23, 24, 318, 1267 | 319, 333, 452, 235, 74, 520, 521, 522, 71, 116, 1268 | 73, 118, 75, 3, 4, 5, 6, 153, 74, 155, 1269 | 80, 81, 65, 473, 72, 68, 65, 224, 360, 544, 1270 | 69, 21, 67, 23, 24, 74, 551, 487, 145, 29, 1271 | 71, 6, 73, 150, 70, 71, 153, 73, 155, 65, 1272 | 65, 3, 68, 401, 69, 67, 254, 376, 66, 74, 1273 | 73, 409, 70, 71, 71, 234, 73, 67, 75, 266, 1274 | 71, 395, 73, 397, 393, 66, 395, 67, 397, 74, 1275 | 70, 71, 64, 73, 64, 75, 338, 64, 65, 79, 1276 | 3, 4, 82, 83, 18, 19, 86, 87, 430, 431, 1277 | 432, 420, 27, 28, 3, 68, 5, 6, 8, 9, 1278 | 10, 11, 12, 13, 14, 15, 16, 17, 453, 68, 1279 | 452, 68, 21, 471, 23, 24, 82, 83, 460, 65, 1280 | 29, 3, 4, 3, 4, 483, 64, 65, 116, 66, 1281 | 118, 473, 374, 375, 64, 65, 21, 461, 462, 468, 1282 | 64, 65, 374, 375, 73, 487, 77, 79, 477, 6, 1283 | 492, 480, 78, 361, 361, 116, 66, 118, 67, 365, 1284 | 368, 65, 150, 74, 73, 153, 75, 155, 65, 65, 1285 | 79, 64, 74, 82, 83, 69, 68, 86, 87, 503, 1286 | 504, 523, 524, 69, 68, 63, 64, 65, 66, 150, 1287 | 398, 398, 153, 71, 155, 73, 68, 74, 72, 541, 1288 | 69, 69, 73, 545, 546, 547, 73, 73, 3, 64, 1289 | 534, 4, 554, 64, 556, 39, 40, 41, 42, 43, 1290 | 44, 69, 69, 69, 566, 64, 3, 69, 470, 74, 1291 | 56, 72, 7, 69, 72, 7, 560, 64, 73, 64, 1292 | 68, 72, 35, 36, 37, 453, 39, 40, 41, 42, 1293 | 43, 44, 45, 46, 47, 48, 49, 50, 74, 3, 1294 | 4, 5, 6, 74, 72, 72, 64, 54, 74, 74, 1295 | 74, 64, 74, 73, 64, 72, 64, 21, 74, 23, 1296 | 24, 64, 74, 525, 492, 29, 30, 31, 32, 33, 1297 | 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 1298 | 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 1299 | 74, 55, 56, 57, 58, 59, 60, 61, 62, 63, 1300 | 64, 74, 65, 67, 64, 64, 74, 74, 64, 73, 1301 | 29, 75, 100, 525, 133, 79, 393, 264, 82, 83, 1302 | 162, 43, 86, 87, 3, 4, 5, 6, 254, 161, 1303 | 470, 32, 468, 244, 368, 338, 150, 166, 277, 279, 1304 | 281, 461, 21, 280, 23, 24, 282, 285, 290, 318, 1305 | 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 1306 | 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 1307 | 49, 50, 293, 296, 462, -1, -1, -1, -1, -1, 1308 | -1, -1, -1, -1, -1, 64, -1, -1, -1, -1, 1309 | -1, -1, -1, -1, 73, -1, 75, -1, -1, -1, 1310 | 79, -1, -1, 82, 83, -1, -1, 86, 87, 3, 1311 | 4, 5, 6, -1, -1, -1, -1, -1, -1, -1, 1312 | -1, -1, -1, -1, -1, -1, -1, 21, -1, 23, 1313 | 24, -1, -1, -1, -1, 29, 30, 31, 32, 33, 1314 | 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 1315 | 44, 45, 46, 47, 48, 49, 50, 3, 4, 5, 1316 | 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1317 | -1, -1, -1, -1, -1, 21, -1, 23, 24, 73, 1318 | -1, 75, -1, 29, -1, 79, -1, -1, 82, 83, 1319 | 36, -1, 86, 87, -1, -1, -1, -1, -1, -1, 1320 | -1, -1, -1, -1, -1, 51, 52, 53, -1, 55, 1321 | 56, 57, 58, 59, 60, 61, 62, 63, 64, -1, 1322 | -1, 67, -1, -1, -1, -1, -1, 73, 3, 75, 1323 | 5, 6, -1, 79, -1, -1, 82, 83, -1, -1, 1324 | 86, 87, -1, -1, -1, -1, 21, -1, 23, 24, 1325 | 3, -1, 5, 6, 29, -1, -1, -1, -1, -1, 1326 | -1, -1, -1, -1, -1, -1, -1, -1, 21, -1, 1327 | 23, 24, -1, -1, -1, 3, 29, 5, 6, -1, 1328 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1329 | -1, -1, -1, 21, 69, 23, 24, -1, 73, -1, 1330 | 75, 29, -1, -1, 79, -1, -1, 82, 83, -1, 1331 | -1, 86, 87, -1, 67, -1, -1, -1, -1, -1, 1332 | 73, -1, 75, -1, -1, -1, 79, -1, -1, 82, 1333 | 83, -1, -1, 86, 87, -1, -1, -1, -1, -1, 1334 | -1, -1, -1, -1, -1, 73, 74, 75, -1, -1, 1335 | 3, 79, 5, 6, 82, 83, -1, -1, 86, 87, 1336 | -1, -1, -1, -1, -1, -1, -1, -1, 21, -1, 1337 | 23, 24, 3, -1, 5, 6, 29, -1, -1, -1, 1338 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1339 | 21, -1, 23, 24, -1, -1, -1, 3, 29, 5, 1340 | 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1341 | -1, 64, -1, -1, -1, 21, -1, 23, 24, -1, 1342 | 73, -1, 75, 29, -1, -1, 79, -1, -1, 82, 1343 | 83, -1, -1, 86, 87, -1, -1, -1, -1, -1, 1344 | -1, 72, 73, -1, 75, -1, -1, -1, 79, -1, 1345 | -1, 82, 83, -1, -1, 86, 87, -1, -1, -1, 1346 | -1, -1, -1, -1, -1, -1, 72, 73, 3, 75, 1347 | 5, 6, -1, 79, -1, -1, 82, 83, -1, -1, 1348 | 86, 87, -1, -1, -1, -1, 21, -1, 23, 24, 1349 | -1, -1, -1, 3, 29, 5, 6, -1, -1, -1, 1350 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1351 | -1, 21, -1, 23, 24, 3, -1, 5, 6, 29, 1352 | -1, -1, -1, -1, -1, -1, -1, -1, -1, 64, 1353 | -1, -1, -1, 21, -1, 23, 24, -1, 73, -1, 1354 | 75, 29, -1, -1, 79, -1, -1, 82, 83, -1, 1355 | -1, 86, 87, -1, 64, -1, -1, -1, 3, -1, 1356 | 5, 6, -1, 73, -1, 75, -1, -1, -1, 79, 1357 | -1, -1, 82, 83, -1, -1, 86, 87, 23, 24, 1358 | 3, -1, 5, 6, 29, 73, -1, 75, -1, -1, 1359 | -1, 79, -1, -1, 82, 83, -1, -1, 86, 87, 1360 | 23, 24, -1, -1, -1, 3, 29, 5, 6, -1, 1361 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1362 | -1, -1, 67, -1, -1, 23, 24, -1, 73, -1, 1363 | 75, 29, -1, -1, 79, -1, -1, 82, 83, -1, 1364 | -1, 86, 87, -1, -1, -1, -1, -1, -1, -1, 1365 | 73, -1, 75, -1, -1, -1, 79, -1, -1, 82, 1366 | 83, -1, -1, 86, 87, 3, 4, -1, -1, -1, 1367 | -1, -1, -1, -1, -1, 73, -1, 75, -1, -1, 1368 | -1, 79, -1, -1, 82, 83, -1, -1, 86, 87, 1369 | -1, -1, 30, 31, 32, 33, 34, 35, 36, 37, 1370 | 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 1371 | 48, 49, 50, 3, 4, -1, -1, -1, -1, -1, 1372 | -1, -1, -1, -1, -1, 63, 64, -1, -1, -1, 1373 | -1, 4, -1, -1, -1, 73, -1, 75, -1, -1, 1374 | 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 1375 | 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 1376 | 50, 4, 35, 36, 37, -1, 39, 40, 41, 42, 1377 | 43, 44, 45, 46, 47, 48, 49, 50, -1, -1, 1378 | -1, 71, -1, 73, 74, 75, -1, 30, 31, 32, 1379 | 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 1380 | 43, 44, 45, 46, 47, 48, 49, 50, 4, -1, 1381 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1382 | -1, -1, -1, -1, -1, -1, -1, -1, 71, -1, 1383 | 73, 74, 75, -1, 30, 31, 32, 33, 34, 35, 1384 | 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 1385 | 46, 47, 48, 49, 50, 3, 4, -1, -1, -1, 1386 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1387 | -1, -1, -1, -1, -1, -1, -1, 4, 74, -1, 1388 | 7, -1, 30, 31, 32, 33, 34, 35, 36, 37, 1389 | 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 1390 | 48, 49, 50, 30, 31, 32, 33, 34, 35, 36, 1391 | 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 1392 | 47, 48, 49, 50, 4, -1, -1, -1, -1, -1, 1393 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1394 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1395 | 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 1396 | 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 1397 | 50 1398 | }; 1399 | 1400 | /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing 1401 | symbol of state STATE-NUM. */ 1402 | static const yytype_int16 yystos[] = 1403 | { 1404 | 0, 3, 4, 30, 31, 32, 33, 34, 35, 36, 1405 | 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 1406 | 47, 48, 49, 50, 63, 64, 73, 75, 89, 90, 1407 | 91, 93, 94, 95, 110, 111, 112, 113, 117, 119, 1408 | 120, 121, 122, 123, 124, 125, 126, 127, 129, 130, 1409 | 137, 139, 140, 143, 145, 146, 149, 164, 166, 167, 1410 | 168, 169, 170, 172, 204, 253, 254, 63, 46, 42, 1411 | 3, 4, 67, 144, 3, 4, 67, 150, 3, 4, 1412 | 67, 138, 36, 73, 109, 110, 111, 170, 36, 110, 1413 | 118, 119, 0, 91, 64, 96, 98, 99, 109, 110, 1414 | 168, 73, 170, 71, 95, 95, 95, 42, 124, 119, 1415 | 165, 92, 93, 94, 73, 73, 141, 67, 147, 67, 1416 | 131, 67, 170, 74, 111, 74, 110, 119, 64, 65, 1417 | 63, 66, 100, 258, 92, 170, 72, 114, 67, 179, 1418 | 93, 171, 6, 247, 64, 118, 120, 140, 146, 151, 1419 | 152, 153, 154, 142, 151, 148, 3, 133, 134, 135, 1420 | 136, 132, 97, 73, 3, 5, 21, 23, 24, 29, 1421 | 67, 73, 75, 79, 82, 83, 86, 87, 101, 116, 1422 | 208, 210, 211, 212, 213, 214, 215, 216, 218, 220, 1423 | 222, 224, 226, 227, 228, 229, 230, 231, 232, 233, 1424 | 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 1425 | 244, 245, 246, 247, 248, 259, 100, 74, 206, 207, 1426 | 208, 251, 180, 3, 94, 173, 174, 175, 176, 177, 1427 | 6, 69, 74, 120, 118, 155, 64, 64, 68, 153, 1428 | 151, 68, 151, 68, 65, 66, 133, 98, 247, 3, 1429 | 4, 198, 226, 226, 73, 226, 3, 4, 70, 71, 1430 | 101, 102, 103, 104, 105, 163, 94, 128, 206, 249, 1431 | 226, 226, 226, 226, 226, 226, 73, 22, 76, 21, 1432 | 77, 78, 79, 18, 19, 217, 25, 26, 80, 81, 1433 | 219, 27, 28, 221, 82, 83, 223, 75, 84, 85, 1434 | 225, 8, 9, 10, 11, 12, 13, 14, 15, 16, 1435 | 17, 66, 209, 20, 23, 24, 70, 71, 73, 65, 1436 | 115, 3, 4, 51, 52, 53, 55, 56, 57, 58, 1437 | 59, 60, 61, 62, 93, 178, 179, 182, 183, 184, 1438 | 185, 186, 187, 188, 189, 190, 194, 195, 196, 197, 1439 | 198, 199, 200, 201, 202, 203, 204, 205, 206, 253, 1440 | 71, 73, 107, 108, 109, 110, 74, 65, 65, 71, 1441 | 247, 255, 256, 64, 156, 157, 69, 109, 158, 159, 1442 | 160, 161, 68, 68, 135, 208, 68, 74, 128, 3, 1443 | 163, 106, 251, 65, 68, 66, 104, 69, 73, 107, 1444 | 110, 74, 74, 179, 74, 208, 252, 212, 226, 69, 1445 | 206, 213, 214, 215, 216, 218, 220, 222, 224, 226, 1446 | 67, 208, 163, 163, 206, 74, 252, 208, 72, 251, 1447 | 73, 73, 73, 36, 178, 191, 3, 64, 64, 64, 1448 | 206, 181, 184, 69, 69, 69, 64, 72, 251, 74, 1449 | 107, 175, 71, 73, 108, 3, 7, 177, 3, 4, 1450 | 73, 65, 69, 74, 158, 158, 162, 208, 69, 64, 1451 | 65, 74, 72, 7, 103, 101, 101, 67, 226, 250, 1452 | 65, 74, 210, 69, 102, 72, 74, 7, 206, 206, 1453 | 206, 56, 73, 64, 64, 68, 72, 74, 74, 72, 1454 | 251, 74, 175, 72, 72, 206, 256, 255, 64, 64, 1455 | 64, 162, 159, 251, 102, 74, 208, 210, 68, 251, 1456 | 74, 74, 74, 73, 64, 94, 192, 193, 206, 72, 1457 | 74, 247, 247, 74, 69, 74, 68, 178, 178, 178, 1458 | 206, 64, 206, 96, 74, 64, 73, 73, 247, 257, 1459 | 64, 54, 74, 206, 64, 178, 64, 206, 206, 206, 1460 | 65, 74, 178, 64, 206, 206, 64, 74, 74, 247, 1461 | 64, 206 1462 | }; 1463 | 1464 | /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ 1465 | static const yytype_int16 yyr1[] = 1466 | { 1467 | 0, 88, 89, 89, 90, 90, 91, 91, 91, 91, 1468 | 92, 92, 93, 93, 94, 95, 95, 95, 95, 95, 1469 | 95, 96, 97, 96, 98, 99, 99, 99, 99, 100, 1470 | 101, 101, 102, 102, 102, 102, 103, 103, 103, 104, 1471 | 104, 105, 105, 106, 106, 107, 107, 107, 108, 108, 1472 | 108, 108, 108, 108, 108, 108, 108, 109, 109, 110, 1473 | 110, 110, 110, 111, 111, 111, 111, 112, 113, 114, 1474 | 115, 113, 116, 117, 117, 117, 117, 117, 117, 118, 1475 | 118, 119, 119, 120, 121, 121, 121, 121, 121, 121, 1476 | 121, 121, 122, 122, 122, 122, 123, 123, 123, 124, 1477 | 124, 124, 124, 124, 124, 125, 126, 127, 128, 128, 1478 | 129, 129, 131, 130, 132, 130, 133, 133, 134, 134, 1479 | 135, 135, 136, 137, 138, 138, 139, 139, 141, 140, 1480 | 142, 140, 143, 144, 144, 145, 145, 147, 146, 148, 1481 | 146, 149, 150, 150, 151, 151, 152, 152, 153, 153, 1482 | 153, 153, 155, 154, 156, 154, 157, 154, 158, 158, 1483 | 159, 159, 160, 161, 161, 162, 163, 163, 165, 164, 1484 | 166, 167, 167, 167, 167, 168, 169, 169, 169, 169, 1485 | 171, 170, 172, 173, 173, 173, 174, 174, 175, 175, 1486 | 176, 176, 177, 177, 177, 178, 178, 178, 178, 178, 1487 | 178, 178, 178, 178, 178, 178, 178, 180, 181, 179, 1488 | 182, 182, 183, 183, 184, 184, 185, 185, 186, 187, 1489 | 188, 188, 188, 189, 191, 190, 192, 192, 192, 192, 1490 | 192, 192, 192, 192, 193, 193, 193, 194, 195, 195, 1491 | 195, 196, 196, 197, 198, 198, 199, 200, 201, 202, 1492 | 203, 204, 205, 205, 206, 207, 207, 208, 208, 208, 1493 | 208, 209, 209, 209, 209, 209, 209, 209, 209, 209, 1494 | 209, 209, 210, 210, 210, 211, 211, 212, 212, 213, 1495 | 213, 214, 214, 215, 215, 216, 216, 217, 217, 218, 1496 | 218, 219, 219, 219, 219, 220, 220, 221, 221, 222, 1497 | 222, 223, 223, 224, 224, 225, 225, 225, 226, 226, 1498 | 226, 226, 226, 226, 226, 226, 226, 226, 226, 227, 1499 | 228, 229, 229, 230, 231, 232, 233, 234, 234, 235, 1500 | 236, 237, 237, 237, 237, 237, 237, 237, 238, 238, 1501 | 239, 240, 241, 241, 242, 242, 243, 244, 245, 246, 1502 | 246, 246, 246, 247, 247, 248, 249, 250, 248, 251, 1503 | 252, 252, 253, 253, 253, 253, 254, 254, 254, 255, 1504 | 255, 255, 256, 256, 256, 257, 257, 257, 258, 259 1505 | }; 1506 | 1507 | /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */ 1508 | static const yytype_int8 yyr2[] = 1509 | { 1510 | 0, 2, 0, 1, 1, 2, 1, 1, 1, 1, 1511 | 1, 2, 3, 2, 1, 1, 2, 1, 2, 1, 1512 | 2, 1, 0, 4, 1, 1, 2, 2, 3, 2, 1513 | 1, 3, 0, 1, 3, 2, 1, 3, 3, 2, 1514 | 3, 1, 2, 1, 3, 1, 2, 1, 3, 2, 1515 | 3, 3, 4, 2, 3, 3, 4, 1, 2, 1, 1516 | 2, 2, 3, 1, 3, 1, 1, 1, 3, 0, 1517 | 0, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1518 | 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1519 | 1, 1, 1, 1, 2, 2, 1, 2, 2, 1, 1520 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1521 | 1, 1, 0, 5, 0, 6, 1, 2, 1, 3, 1522 | 1, 3, 1, 2, 1, 1, 1, 1, 0, 5, 1523 | 0, 6, 2, 1, 1, 1, 1, 0, 5, 0, 1524 | 6, 2, 1, 1, 0, 1, 1, 2, 1, 2, 1525 | 2, 1, 0, 4, 0, 5, 0, 5, 1, 3, 1526 | 1, 1, 1, 2, 3, 1, 1, 1, 0, 3, 1527 | 1, 1, 2, 2, 3, 1, 1, 3, 2, 4, 1528 | 0, 5, 1, 0, 1, 1, 1, 3, 1, 3, 1529 | 1, 3, 2, 1, 2, 1, 1, 1, 1, 1, 1530 | 1, 1, 1, 1, 1, 1, 1, 0, 0, 5, 1531 | 0, 1, 1, 2, 1, 1, 1, 1, 7, 5, 1532 | 1, 1, 1, 7, 0, 6, 2, 3, 3, 3, 1533 | 4, 4, 4, 5, 1, 2, 1, 5, 2, 2, 1534 | 2, 2, 4, 1, 1, 1, 5, 2, 2, 2, 1535 | 3, 1, 2, 3, 1, 1, 3, 1, 1, 3, 1536 | 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1537 | 1, 1, 1, 5, 4, 1, 3, 1, 3, 1, 1538 | 3, 1, 3, 1, 3, 1, 3, 1, 1, 1, 1539 | 3, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1540 | 3, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1541 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1542 | 2, 4, 6, 2, 2, 2, 2, 4, 2, 2, 1543 | 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1544 | 3, 3, 3, 4, 3, 4, 2, 2, 4, 1, 1545 | 1, 1, 1, 1, 2, 3, 0, 0, 5, 1, 1546 | 1, 3, 5, 7, 9, 11, 1, 2, 2, 0, 1547 | 1, 3, 7, 7, 4, 0, 1, 3, 4, 2 1548 | }; 1549 | 1550 | 1551 | #define yyerrok (yyerrstatus = 0) 1552 | #define yyclearin (yychar = YYEMPTY) 1553 | #define YYEMPTY (-2) 1554 | #define YYEOF 0 1555 | 1556 | #define YYACCEPT goto yyacceptlab 1557 | #define YYABORT goto yyabortlab 1558 | #define YYERROR goto yyerrorlab 1559 | 1560 | 1561 | #define YYRECOVERING() (!!yyerrstatus) 1562 | 1563 | #define YYBACKUP(Token, Value) \ 1564 | do \ 1565 | if (yychar == YYEMPTY) \ 1566 | { \ 1567 | yychar = (Token); \ 1568 | yylval = (Value); \ 1569 | YYPOPSTACK (yylen); \ 1570 | yystate = *yyssp; \ 1571 | goto yybackup; \ 1572 | } \ 1573 | else \ 1574 | { \ 1575 | yyerror (YY_("syntax error: cannot back up")); \ 1576 | YYERROR; \ 1577 | } \ 1578 | while (0) 1579 | 1580 | /* Error token number */ 1581 | #define YYTERROR 1 1582 | #define YYERRCODE 256 1583 | 1584 | 1585 | 1586 | /* Enable debugging if requested. */ 1587 | #if YYDEBUG 1588 | 1589 | # ifndef YYFPRINTF 1590 | # include <stdio.h> /* INFRINGES ON USER NAME SPACE */ 1591 | # define YYFPRINTF fprintf 1592 | # endif 1593 | 1594 | # define YYDPRINTF(Args) \ 1595 | do { \ 1596 | if (yydebug) \ 1597 | YYFPRINTF Args; \ 1598 | } while (0) 1599 | 1600 | /* This macro is provided for backward compatibility. */ 1601 | #ifndef YY_LOCATION_PRINT 1602 | # define YY_LOCATION_PRINT(File, Loc) ((void) 0) 1603 | #endif 1604 | 1605 | 1606 | # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ 1607 | do { \ 1608 | if (yydebug) \ 1609 | { \ 1610 | YYFPRINTF (stderr, "%s ", Title); \ 1611 | yy_symbol_print (stderr, \ 1612 | Type, Value); \ 1613 | YYFPRINTF (stderr, "\n"); \ 1614 | } \ 1615 | } while (0) 1616 | 1617 | 1618 | /*-----------------------------------. 1619 | | Print this symbol's value on YYO. | 1620 | `-----------------------------------*/ 1621 | 1622 | static void 1623 | yy_symbol_value_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep) 1624 | { 1625 | FILE *yyoutput = yyo; 1626 | YYUSE (yyoutput); 1627 | if (!yyvaluep) 1628 | return; 1629 | # ifdef YYPRINT 1630 | if (yytype < YYNTOKENS) 1631 | YYPRINT (yyo, yytoknum[yytype], *yyvaluep); 1632 | # endif 1633 | YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN 1634 | YYUSE (yytype); 1635 | YY_IGNORE_MAYBE_UNINITIALIZED_END 1636 | } 1637 | 1638 | 1639 | /*---------------------------. 1640 | | Print this symbol on YYO. | 1641 | `---------------------------*/ 1642 | 1643 | static void 1644 | yy_symbol_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep) 1645 | { 1646 | YYFPRINTF (yyo, "%s %s (", 1647 | yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]); 1648 | 1649 | yy_symbol_value_print (yyo, yytype, yyvaluep); 1650 | YYFPRINTF (yyo, ")"); 1651 | } 1652 | 1653 | /*------------------------------------------------------------------. 1654 | | yy_stack_print -- Print the state stack from its BOTTOM up to its | 1655 | | TOP (included). | 1656 | `------------------------------------------------------------------*/ 1657 | 1658 | static void 1659 | yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop) 1660 | { 1661 | YYFPRINTF (stderr, "Stack now"); 1662 | for (; yybottom <= yytop; yybottom++) 1663 | { 1664 | int yybot = *yybottom; 1665 | YYFPRINTF (stderr, " %d", yybot); 1666 | } 1667 | YYFPRINTF (stderr, "\n"); 1668 | } 1669 | 1670 | # define YY_STACK_PRINT(Bottom, Top) \ 1671 | do { \ 1672 | if (yydebug) \ 1673 | yy_stack_print ((Bottom), (Top)); \ 1674 | } while (0) 1675 | 1676 | 1677 | /*------------------------------------------------. 1678 | | Report that the YYRULE is going to be reduced. | 1679 | `------------------------------------------------*/ 1680 | 1681 | static void 1682 | yy_reduce_print (yy_state_t *yyssp, YYSTYPE *yyvsp, int yyrule) 1683 | { 1684 | int yylno = yyrline[yyrule]; 1685 | int yynrhs = yyr2[yyrule]; 1686 | int yyi; 1687 | YYFPRINTF (stderr, "Reducing stack by rule %d (line %d):\n", 1688 | yyrule - 1, yylno); 1689 | /* The symbols being reduced. */ 1690 | for (yyi = 0; yyi < yynrhs; yyi++) 1691 | { 1692 | YYFPRINTF (stderr, " $%d = ", yyi + 1); 1693 | yy_symbol_print (stderr, 1694 | yystos[+yyssp[yyi + 1 - yynrhs]], 1695 | &yyvsp[(yyi + 1) - (yynrhs)] 1696 | ); 1697 | YYFPRINTF (stderr, "\n"); 1698 | } 1699 | } 1700 | 1701 | # define YY_REDUCE_PRINT(Rule) \ 1702 | do { \ 1703 | if (yydebug) \ 1704 | yy_reduce_print (yyssp, yyvsp, Rule); \ 1705 | } while (0) 1706 | 1707 | /* Nonzero means print parse trace. It is left uninitialized so that 1708 | multiple parsers can coexist. */ 1709 | int yydebug; 1710 | #else /* !YYDEBUG */ 1711 | # define YYDPRINTF(Args) 1712 | # define YY_SYMBOL_PRINT(Title, Type, Value, Location) 1713 | # define YY_STACK_PRINT(Bottom, Top) 1714 | # define YY_REDUCE_PRINT(Rule) 1715 | #endif /* !YYDEBUG */ 1716 | 1717 | 1718 | /* YYINITDEPTH -- initial size of the parser's stacks. */ 1719 | #ifndef YYINITDEPTH 1720 | # define YYINITDEPTH 200 1721 | #endif 1722 | 1723 | /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only 1724 | if the built-in stack extension method is used). 1725 | 1726 | Do not make this value too large; the results are undefined if 1727 | YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH) 1728 | evaluated with infinite-precision integer arithmetic. */ 1729 | 1730 | #ifndef YYMAXDEPTH 1731 | # define YYMAXDEPTH 10000 1732 | #endif 1733 | 1734 | 1735 | #if YYERROR_VERBOSE 1736 | 1737 | # ifndef yystrlen 1738 | # if defined __GLIBC__ && defined _STRING_H 1739 | # define yystrlen(S) (YY_CAST (YYPTRDIFF_T, strlen (S))) 1740 | # else 1741 | /* Return the length of YYSTR. */ 1742 | static YYPTRDIFF_T 1743 | yystrlen (const char *yystr) 1744 | { 1745 | YYPTRDIFF_T yylen; 1746 | for (yylen = 0; yystr[yylen]; yylen++) 1747 | continue; 1748 | return yylen; 1749 | } 1750 | # endif 1751 | # endif 1752 | 1753 | # ifndef yystpcpy 1754 | # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE 1755 | # define yystpcpy stpcpy 1756 | # else 1757 | /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in 1758 | YYDEST. */ 1759 | static char * 1760 | yystpcpy (char *yydest, const char *yysrc) 1761 | { 1762 | char *yyd = yydest; 1763 | const char *yys = yysrc; 1764 | 1765 | while ((*yyd++ = *yys++) != '\0') 1766 | continue; 1767 | 1768 | return yyd - 1; 1769 | } 1770 | # endif 1771 | # endif 1772 | 1773 | # ifndef yytnamerr 1774 | /* Copy to YYRES the contents of YYSTR after stripping away unnecessary 1775 | quotes and backslashes, so that it's suitable for yyerror. The 1776 | heuristic is that double-quoting is unnecessary unless the string 1777 | contains an apostrophe, a comma, or backslash (other than 1778 | backslash-backslash). YYSTR is taken from yytname. If YYRES is 1779 | null, do not copy; instead, return the length of what the result 1780 | would have been. */ 1781 | static YYPTRDIFF_T 1782 | yytnamerr (char *yyres, const char *yystr) 1783 | { 1784 | if (*yystr == '"') 1785 | { 1786 | YYPTRDIFF_T yyn = 0; 1787 | char const *yyp = yystr; 1788 | 1789 | for (;;) 1790 | switch (*++yyp) 1791 | { 1792 | case '\'': 1793 | case ',': 1794 | goto do_not_strip_quotes; 1795 | 1796 | case '\\': 1797 | if (*++yyp != '\\') 1798 | goto do_not_strip_quotes; 1799 | else 1800 | goto append; 1801 | 1802 | append: 1803 | default: 1804 | if (yyres) 1805 | yyres[yyn] = *yyp; 1806 | yyn++; 1807 | break; 1808 | 1809 | case '"': 1810 | if (yyres) 1811 | yyres[yyn] = '\0'; 1812 | return yyn; 1813 | } 1814 | do_not_strip_quotes: ; 1815 | } 1816 | 1817 | if (yyres) 1818 | return yystpcpy (yyres, yystr) - yyres; 1819 | else 1820 | return yystrlen (yystr); 1821 | } 1822 | # endif 1823 | 1824 | /* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message 1825 | about the unexpected token YYTOKEN for the state stack whose top is 1826 | YYSSP. 1827 | 1828 | Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is 1829 | not large enough to hold the message. In that case, also set 1830 | *YYMSG_ALLOC to the required number of bytes. Return 2 if the 1831 | required number of bytes is too large to store. */ 1832 | static int 1833 | yysyntax_error (YYPTRDIFF_T *yymsg_alloc, char **yymsg, 1834 | yy_state_t *yyssp, int yytoken) 1835 | { 1836 | enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; 1837 | /* Internationalized format string. */ 1838 | const char *yyformat = YY_NULLPTR; 1839 | /* Arguments of yyformat: reported tokens (one for the "unexpected", 1840 | one per "expected"). */ 1841 | char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; 1842 | /* Actual size of YYARG. */ 1843 | int yycount = 0; 1844 | /* Cumulated lengths of YYARG. */ 1845 | YYPTRDIFF_T yysize = 0; 1846 | 1847 | /* There are many possibilities here to consider: 1848 | - If this state is a consistent state with a default action, then 1849 | the only way this function was invoked is if the default action 1850 | is an error action. In that case, don't check for expected 1851 | tokens because there are none. 1852 | - The only way there can be no lookahead present (in yychar) is if 1853 | this state is a consistent state with a default action. Thus, 1854 | detecting the absence of a lookahead is sufficient to determine 1855 | that there is no unexpected or expected token to report. In that 1856 | case, just report a simple "syntax error". 1857 | - Don't assume there isn't a lookahead just because this state is a 1858 | consistent state with a default action. There might have been a 1859 | previous inconsistent state, consistent state with a non-default 1860 | action, or user semantic action that manipulated yychar. 1861 | - Of course, the expected token list depends on states to have 1862 | correct lookahead information, and it depends on the parser not 1863 | to perform extra reductions after fetching a lookahead from the 1864 | scanner and before detecting a syntax error. Thus, state merging 1865 | (from LALR or IELR) and default reductions corrupt the expected 1866 | token list. However, the list is correct for canonical LR with 1867 | one exception: it will still contain any token that will not be 1868 | accepted due to an error action in a later state. 1869 | */ 1870 | if (yytoken != YYEMPTY) 1871 | { 1872 | int yyn = yypact[+*yyssp]; 1873 | YYPTRDIFF_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]); 1874 | yysize = yysize0; 1875 | yyarg[yycount++] = yytname[yytoken]; 1876 | if (!yypact_value_is_default (yyn)) 1877 | { 1878 | /* Start YYX at -YYN if negative to avoid negative indexes in 1879 | YYCHECK. In other words, skip the first -YYN actions for 1880 | this state because they are default actions. */ 1881 | int yyxbegin = yyn < 0 ? -yyn : 0; 1882 | /* Stay within bounds of both yycheck and yytname. */ 1883 | int yychecklim = YYLAST - yyn + 1; 1884 | int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; 1885 | int yyx; 1886 | 1887 | for (yyx = yyxbegin; yyx < yyxend; ++yyx) 1888 | if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR 1889 | && !yytable_value_is_error (yytable[yyx + yyn])) 1890 | { 1891 | if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) 1892 | { 1893 | yycount = 1; 1894 | yysize = yysize0; 1895 | break; 1896 | } 1897 | yyarg[yycount++] = yytname[yyx]; 1898 | { 1899 | YYPTRDIFF_T yysize1 1900 | = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]); 1901 | if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM) 1902 | yysize = yysize1; 1903 | else 1904 | return 2; 1905 | } 1906 | } 1907 | } 1908 | } 1909 | 1910 | switch (yycount) 1911 | { 1912 | # define YYCASE_(N, S) \ 1913 | case N: \ 1914 | yyformat = S; \ 1915 | break 1916 | default: /* Avoid compiler warnings. */ 1917 | YYCASE_(0, YY_("syntax error")); 1918 | YYCASE_(1, YY_("syntax error, unexpected %s")); 1919 | YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s")); 1920 | YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s")); 1921 | YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s")); 1922 | YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s")); 1923 | # undef YYCASE_ 1924 | } 1925 | 1926 | { 1927 | /* Don't count the "%s"s in the final size, but reserve room for 1928 | the terminator. */ 1929 | YYPTRDIFF_T yysize1 = yysize + (yystrlen (yyformat) - 2 * yycount) + 1; 1930 | if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM) 1931 | yysize = yysize1; 1932 | else 1933 | return 2; 1934 | } 1935 | 1936 | if (*yymsg_alloc < yysize) 1937 | { 1938 | *yymsg_alloc = 2 * yysize; 1939 | if (! (yysize <= *yymsg_alloc 1940 | && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM)) 1941 | *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM; 1942 | return 1; 1943 | } 1944 | 1945 | /* Avoid sprintf, as that infringes on the user's name space. 1946 | Don't have undefined behavior even if the translation 1947 | produced a string with the wrong number of "%s"s. */ 1948 | { 1949 | char *yyp = *yymsg; 1950 | int yyi = 0; 1951 | while ((*yyp = *yyformat) != '\0') 1952 | if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount) 1953 | { 1954 | yyp += yytnamerr (yyp, yyarg[yyi++]); 1955 | yyformat += 2; 1956 | } 1957 | else 1958 | { 1959 | ++yyp; 1960 | ++yyformat; 1961 | } 1962 | } 1963 | return 0; 1964 | } 1965 | #endif /* YYERROR_VERBOSE */ 1966 | 1967 | /*-----------------------------------------------. 1968 | | Release the memory associated to this symbol. | 1969 | `-----------------------------------------------*/ 1970 | 1971 | static void 1972 | yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep) 1973 | { 1974 | YYUSE (yyvaluep); 1975 | if (!yymsg) 1976 | yymsg = "Deleting"; 1977 | YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); 1978 | 1979 | YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN 1980 | YYUSE (yytype); 1981 | YY_IGNORE_MAYBE_UNINITIALIZED_END 1982 | } 1983 | 1984 | 1985 | 1986 | 1987 | /* The lookahead symbol. */ 1988 | int yychar; 1989 | 1990 | /* The semantic value of the lookahead symbol. */ 1991 | YYSTYPE yylval; 1992 | /* Number of syntax errors so far. */ 1993 | int yynerrs; 1994 | 1995 | 1996 | /*----------. 1997 | | yyparse. | 1998 | `----------*/ 1999 | 2000 | int 2001 | yyparse (void) 2002 | { 2003 | yy_state_fast_t yystate; 2004 | /* Number of tokens to shift before error messages enabled. */ 2005 | int yyerrstatus; 2006 | 2007 | /* The stacks and their tools: 2008 | 'yyss': related to states. 2009 | 'yyvs': related to semantic values. 2010 | 2011 | Refer to the stacks through separate pointers, to allow yyoverflow 2012 | to reallocate them elsewhere. */ 2013 | 2014 | /* The state stack. */ 2015 | yy_state_t yyssa[YYINITDEPTH]; 2016 | yy_state_t *yyss; 2017 | yy_state_t *yyssp; 2018 | 2019 | /* The semantic value stack. */ 2020 | YYSTYPE yyvsa[YYINITDEPTH]; 2021 | YYSTYPE *yyvs; 2022 | YYSTYPE *yyvsp; 2023 | 2024 | YYPTRDIFF_T yystacksize; 2025 | 2026 | int yyn; 2027 | int yyresult; 2028 | /* Lookahead token as an internal (translated) token number. */ 2029 | int yytoken = 0; 2030 | /* The variables used to return semantic value and location from the 2031 | action routines. */ 2032 | YYSTYPE yyval; 2033 | 2034 | #if YYERROR_VERBOSE 2035 | /* Buffer for error messages, and its allocated size. */ 2036 | char yymsgbuf[128]; 2037 | char *yymsg = yymsgbuf; 2038 | YYPTRDIFF_T yymsg_alloc = sizeof yymsgbuf; 2039 | #endif 2040 | 2041 | #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) 2042 | 2043 | /* The number of symbols on the RHS of the reduced rule. 2044 | Keep to zero when no symbol should be popped. */ 2045 | int yylen = 0; 2046 | 2047 | yyssp = yyss = yyssa; 2048 | yyvsp = yyvs = yyvsa; 2049 | yystacksize = YYINITDEPTH; 2050 | 2051 | YYDPRINTF ((stderr, "Starting parse\n")); 2052 | 2053 | yystate = 0; 2054 | yyerrstatus = 0; 2055 | yynerrs = 0; 2056 | yychar = YYEMPTY; /* Cause a token to be read. */ 2057 | goto yysetstate; 2058 | 2059 | 2060 | /*------------------------------------------------------------. 2061 | | yynewstate -- push a new state, which is found in yystate. | 2062 | `------------------------------------------------------------*/ 2063 | yynewstate: 2064 | /* In all cases, when you get here, the value and location stacks 2065 | have just been pushed. So pushing a state here evens the stacks. */ 2066 | yyssp++; 2067 | 2068 | 2069 | /*--------------------------------------------------------------------. 2070 | | yysetstate -- set current state (the top of the stack) to yystate. | 2071 | `--------------------------------------------------------------------*/ 2072 | yysetstate: 2073 | YYDPRINTF ((stderr, "Entering state %d\n", yystate)); 2074 | YY_ASSERT (0 <= yystate && yystate < YYNSTATES); 2075 | YY_IGNORE_USELESS_CAST_BEGIN 2076 | *yyssp = YY_CAST (yy_state_t, yystate); 2077 | YY_IGNORE_USELESS_CAST_END 2078 | 2079 | if (yyss + yystacksize - 1 <= yyssp) 2080 | #if !defined yyoverflow && !defined YYSTACK_RELOCATE 2081 | goto yyexhaustedlab; 2082 | #else 2083 | { 2084 | /* Get the current used size of the three stacks, in elements. */ 2085 | YYPTRDIFF_T yysize = yyssp - yyss + 1; 2086 | 2087 | # if defined yyoverflow 2088 | { 2089 | /* Give user a chance to reallocate the stack. Use copies of 2090 | these so that the &'s don't force the real ones into 2091 | memory. */ 2092 | yy_state_t *yyss1 = yyss; 2093 | YYSTYPE *yyvs1 = yyvs; 2094 | 2095 | /* Each stack pointer address is followed by the size of the 2096 | data in use in that stack, in bytes. This used to be a 2097 | conditional around just the two extra args, but that might 2098 | be undefined if yyoverflow is a macro. */ 2099 | yyoverflow (YY_("memory exhausted"), 2100 | &yyss1, yysize * YYSIZEOF (*yyssp), 2101 | &yyvs1, yysize * YYSIZEOF (*yyvsp), 2102 | &yystacksize); 2103 | yyss = yyss1; 2104 | yyvs = yyvs1; 2105 | } 2106 | # else /* defined YYSTACK_RELOCATE */ 2107 | /* Extend the stack our own way. */ 2108 | if (YYMAXDEPTH <= yystacksize) 2109 | goto yyexhaustedlab; 2110 | yystacksize *= 2; 2111 | if (YYMAXDEPTH < yystacksize) 2112 | yystacksize = YYMAXDEPTH; 2113 | 2114 | { 2115 | yy_state_t *yyss1 = yyss; 2116 | union yyalloc *yyptr = 2117 | YY_CAST (union yyalloc *, 2118 | YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize)))); 2119 | if (! yyptr) 2120 | goto yyexhaustedlab; 2121 | YYSTACK_RELOCATE (yyss_alloc, yyss); 2122 | YYSTACK_RELOCATE (yyvs_alloc, yyvs); 2123 | # undef YYSTACK_RELOCATE 2124 | if (yyss1 != yyssa) 2125 | YYSTACK_FREE (yyss1); 2126 | } 2127 | # endif 2128 | 2129 | yyssp = yyss + yysize - 1; 2130 | yyvsp = yyvs + yysize - 1; 2131 | 2132 | YY_IGNORE_USELESS_CAST_BEGIN 2133 | YYDPRINTF ((stderr, "Stack size increased to %ld\n", 2134 | YY_CAST (long, yystacksize))); 2135 | YY_IGNORE_USELESS_CAST_END 2136 | 2137 | if (yyss + yystacksize - 1 <= yyssp) 2138 | YYABORT; 2139 | } 2140 | #endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */ 2141 | 2142 | if (yystate == YYFINAL) 2143 | YYACCEPT; 2144 | 2145 | goto yybackup; 2146 | 2147 | 2148 | /*-----------. 2149 | | yybackup. | 2150 | `-----------*/ 2151 | yybackup: 2152 | /* Do appropriate processing given the current state. Read a 2153 | lookahead token if we need one and don't already have one. */ 2154 | 2155 | /* First try to decide what to do without reference to lookahead token. */ 2156 | yyn = yypact[yystate]; 2157 | if (yypact_value_is_default (yyn)) 2158 | goto yydefault; 2159 | 2160 | /* Not known => get a lookahead token if don't already have one. */ 2161 | 2162 | /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ 2163 | if (yychar == YYEMPTY) 2164 | { 2165 | YYDPRINTF ((stderr, "Reading a token: ")); 2166 | yychar = yylex (); 2167 | } 2168 | 2169 | if (yychar <= YYEOF) 2170 | { 2171 | yychar = yytoken = YYEOF; 2172 | YYDPRINTF ((stderr, "Now at end of input.\n")); 2173 | } 2174 | else 2175 | { 2176 | yytoken = YYTRANSLATE (yychar); 2177 | YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); 2178 | } 2179 | 2180 | /* If the proper action on seeing token YYTOKEN is to reduce or to 2181 | detect an error, take that action. */ 2182 | yyn += yytoken; 2183 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) 2184 | goto yydefault; 2185 | yyn = yytable[yyn]; 2186 | if (yyn <= 0) 2187 | { 2188 | if (yytable_value_is_error (yyn)) 2189 | goto yyerrlab; 2190 | yyn = -yyn; 2191 | goto yyreduce; 2192 | } 2193 | 2194 | /* Count tokens shifted since error; after three, turn off error 2195 | status. */ 2196 | if (yyerrstatus) 2197 | yyerrstatus--; 2198 | 2199 | /* Shift the lookahead token. */ 2200 | YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); 2201 | yystate = yyn; 2202 | YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN 2203 | *++yyvsp = yylval; 2204 | YY_IGNORE_MAYBE_UNINITIALIZED_END 2205 | 2206 | /* Discard the shifted token. */ 2207 | yychar = YYEMPTY; 2208 | goto yynewstate; 2209 | 2210 | 2211 | /*-----------------------------------------------------------. 2212 | | yydefault -- do the default action for the current state. | 2213 | `-----------------------------------------------------------*/ 2214 | yydefault: 2215 | yyn = yydefact[yystate]; 2216 | if (yyn == 0) 2217 | goto yyerrlab; 2218 | goto yyreduce; 2219 | 2220 | 2221 | /*-----------------------------. 2222 | | yyreduce -- do a reduction. | 2223 | `-----------------------------*/ 2224 | yyreduce: 2225 | /* yyn is the number of a rule to reduce with. */ 2226 | yylen = yyr2[yyn]; 2227 | 2228 | /* If YYLEN is nonzero, implement the default value of the action: 2229 | '$$ = $1'. 2230 | 2231 | Otherwise, the following line sets YYVAL to garbage. 2232 | This behavior is undocumented and Bison 2233 | users should not rely upon it. Assigning to YYVAL 2234 | unconditionally makes the parser a bit smaller, and it avoids a 2235 | GCC warning that YYVAL may be used uninitialized. */ 2236 | yyval = yyvsp[1-yylen]; 2237 | 2238 | 2239 | YY_REDUCE_PRINT (yyn); 2240 | switch (yyn) 2241 | { 2242 | case 6: 2243 | #line 178 "./parse.y" 2244 | { scope=0; reset(); common_comment=NULL; in_typedef=0; GetCurrentComment(); } 2245 | #line 2246 "y.tab.c" 2246 | break; 2247 | 2248 | case 7: 2249 | #line 180 "./parse.y" 2250 | { scope=0; reset(); common_comment=NULL; in_typedef=0; GetCurrentComment(); } 2251 | #line 2252 "y.tab.c" 2252 | break; 2253 | 2254 | case 10: 2255 | #line 189 "./parse.y" 2256 | { scope=0; reset(); common_comment=NULL; in_typedef=0; } 2257 | #line 2258 "y.tab.c" 2258 | break; 2259 | 2260 | case 11: 2261 | #line 191 "./parse.y" 2262 | { scope=0; reset(); common_comment=NULL; in_typedef=0; 2263 | yyval=yyvsp[0]; } 2264 | #line 2265 "y.tab.c" 2265 | break; 2266 | 2267 | case 12: 2268 | #line 197 "./parse.y" 2269 | { in_type_spec=0; } 2270 | #line 2271 "y.tab.c" 2271 | break; 2272 | 2273 | case 13: 2274 | #line 199 "./parse.y" 2275 | { in_type_spec=0; } 2276 | #line 2277 "y.tab.c" 2277 | break; 2278 | 2279 | case 14: 2280 | #line 204 "./parse.y" 2281 | { if(!in_structunion && !in_typedef && !in_function && !common_comment) 2282 | {common_comment=CopyString(GetCurrentComment()); SetCurrentComment(common_comment);} } 2283 | #line 2284 "y.tab.c" 2284 | break; 2285 | 2286 | case 16: 2287 | #line 211 "./parse.y" 2288 | { if(yyvsp[-1]) yyval=ConcatStrings(3,yyvsp[-1]," ",yyvsp[0]); else yyval=yyvsp[0]; } 2289 | #line 2290 "y.tab.c" 2290 | break; 2291 | 2292 | case 17: 2293 | #line 213 "./parse.y" 2294 | { if(!current->type) current->type=yyvsp[0]; } 2295 | #line 2296 "y.tab.c" 2296 | break; 2297 | 2298 | case 18: 2299 | #line 215 "./parse.y" 2300 | { if(!current->type) current->type=yyvsp[-1]; 2301 | yyval=ConcatStrings(3,yyvsp[-1]," ",yyvsp[0]); } 2302 | #line 2303 "y.tab.c" 2303 | break; 2304 | 2305 | case 20: 2306 | #line 219 "./parse.y" 2307 | { yyval=ConcatStrings(3,yyvsp[-1]," ",yyvsp[0]); } 2308 | #line 2309 "y.tab.c" 2309 | break; 2310 | 2311 | case 22: 2312 | #line 226 "./parse.y" 2313 | { in_type_spec=1; } 2314 | #line 2315 "y.tab.c" 2315 | break; 2316 | 2317 | case 24: 2318 | #line 231 "./parse.y" 2319 | { 2320 | if((in_function==0 || in_function==3) && !in_funcdef && !in_structunion) 2321 | { 2322 | char* specific_comment=GetCurrentComment(); 2323 | if(!common_comment) SetCurrentComment(specific_comment); else 2324 | if(!specific_comment) SetCurrentComment(common_comment); else 2325 | if(strcmp(common_comment,specific_comment)) SetCurrentComment(ConcatStrings(3,common_comment," ",specific_comment)); else 2326 | SetCurrentComment(common_comment); 2327 | } 2328 | 2329 | if(in_typedef) 2330 | { 2331 | char* vname=strstr(yyvsp[0],current->name); 2332 | SeenTypedefName(current->name,vname[strlen(current->name)]=='('?-1:1); 2333 | if(!in_header) 2334 | SeenTypedef(current->name,ConcatStrings(3,current->qual,current->type,yyvsp[0])); 2335 | if(in_function==3) 2336 | DownScope(); 2337 | } 2338 | else if(in_function==2) 2339 | SeenFunctionArg(current->name,ConcatStrings(3,current->qual,current->type,yyvsp[0])); 2340 | else 2341 | { 2342 | char* vname=strstr(yyvsp[0],current->name); 2343 | if(vname[strlen(current->name)]!='(' && IsATypeName(current->type)!='f') 2344 | { 2345 | if((in_funcbody==0 || scope&EXTERN_F) && !in_structunion && !(in_header==GLOBAL && scope&EXTERN_H)) 2346 | SeenVariableDefinition(current->name,ConcatStrings(3,current->qual,current->type,yyvsp[0]),SCOPE); 2347 | else 2348 | if(in_funcbody) 2349 | SeenScopeVariable(current->name); 2350 | } 2351 | else 2352 | SeenFunctionProto(current->name,in_funcbody); 2353 | if(in_function==3) 2354 | DownScope(); 2355 | } 2356 | 2357 | if(in_function==3 && !in_structunion) in_function=0; 2358 | } 2359 | #line 2360 "y.tab.c" 2360 | break; 2361 | 2362 | case 46: 2363 | #line 322 "./parse.y" 2364 | { yyval=ConcatStrings(2,yyvsp[-1],yyvsp[0]); } 2365 | #line 2366 "y.tab.c" 2366 | break; 2367 | 2368 | case 48: 2369 | #line 328 "./parse.y" 2370 | { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); 2371 | { int i=0; while(yyvsp[-1][i] && yyvsp[-1][i]=='*') i++; if(!yyvsp[-1][i]) in_type_spec=0; } } 2372 | #line 2373 "y.tab.c" 2373 | break; 2374 | 2375 | case 49: 2376 | #line 331 "./parse.y" 2377 | { yyval=ConcatStrings(2,yyvsp[-1],yyvsp[0]); } 2378 | #line 2379 "y.tab.c" 2379 | break; 2380 | 2381 | case 50: 2382 | #line 333 "./parse.y" 2383 | { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); } 2384 | #line 2385 "y.tab.c" 2385 | break; 2386 | 2387 | case 51: 2388 | #line 335 "./parse.y" 2389 | { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); } 2390 | #line 2391 "y.tab.c" 2391 | break; 2392 | 2393 | case 52: 2394 | #line 337 "./parse.y" 2395 | { yyval=ConcatStrings(4,yyvsp[-3],yyvsp[-2],yyvsp[-1],yyvsp[0]); } 2396 | #line 2397 "y.tab.c" 2397 | break; 2398 | 2399 | case 53: 2400 | #line 339 "./parse.y" 2401 | { yyval=ConcatStrings(2,yyvsp[-1],yyvsp[0]); } 2402 | #line 2403 "y.tab.c" 2403 | break; 2404 | 2405 | case 54: 2406 | #line 341 "./parse.y" 2407 | { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); } 2408 | #line 2409 "y.tab.c" 2409 | break; 2410 | 2411 | case 55: 2412 | #line 343 "./parse.y" 2413 | { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); } 2414 | #line 2415 "y.tab.c" 2415 | break; 2416 | 2417 | case 56: 2418 | #line 345 "./parse.y" 2419 | { yyval=ConcatStrings(4,yyvsp[-3],yyvsp[-2],yyvsp[-1],yyvsp[0]); } 2420 | #line 2421 "y.tab.c" 2421 | break; 2422 | 2423 | case 57: 2424 | #line 352 "./parse.y" 2425 | { in_type_spec=0; } 2426 | #line 2427 "y.tab.c" 2427 | break; 2428 | 2429 | case 58: 2430 | #line 354 "./parse.y" 2431 | { in_type_spec=0; yyval=ConcatStrings(2,yyvsp[-1],yyvsp[0]); } 2432 | #line 2433 "y.tab.c" 2433 | break; 2434 | 2435 | case 60: 2436 | #line 360 "./parse.y" 2437 | { yyval=ConcatStrings(3,yyvsp[-1]," ",yyvsp[0]); } 2438 | #line 2439 "y.tab.c" 2439 | break; 2440 | 2441 | case 61: 2442 | #line 362 "./parse.y" 2443 | { yyval=ConcatStrings(2,yyvsp[-1],yyvsp[0]); } 2444 | #line 2445 "y.tab.c" 2445 | break; 2446 | 2447 | case 62: 2448 | #line 364 "./parse.y" 2449 | { yyval=ConcatStrings(4,yyvsp[-2]," ",yyvsp[-1],yyvsp[0]); } 2450 | #line 2451 "y.tab.c" 2451 | break; 2452 | 2453 | case 64: 2454 | #line 370 "./parse.y" 2455 | { if(yyvsp[-1][0]=='*' && yyvsp[-1][1]==' ') { yyvsp[-1]=&yyvsp[-1][1]; yyvsp[-1][0]='*'; } 2456 | yyval=ConcatStrings(4," ",yyvsp[-2],yyvsp[-1],yyvsp[0]); 2457 | } 2458 | #line 2459 "y.tab.c" 2459 | break; 2460 | 2461 | case 67: 2462 | #line 379 "./parse.y" 2463 | { yyval=ConcatStrings(2," ",yyvsp[0]); current->name=yyvsp[0]; 2464 | if(!current->type) current->type="int"; 2465 | if(in_funcdef==1 && in_function!=3 && !in_structunion) SeenScopeVariable(yyvsp[0]); } 2466 | #line 2467 "y.tab.c" 2467 | break; 2468 | 2469 | case 68: 2470 | #line 386 "./parse.y" 2471 | { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); } 2472 | #line 2473 "y.tab.c" 2473 | break; 2474 | 2475 | case 69: 2476 | #line 387 "./parse.y" 2477 | { in_type_spec=0; } 2478 | #line 2479 "y.tab.c" 2479 | break; 2480 | 2481 | case 70: 2482 | #line 387 "./parse.y" 2483 | { in_type_spec=1; } 2484 | #line 2485 "y.tab.c" 2485 | break; 2486 | 2487 | case 71: 2488 | #line 388 "./parse.y" 2489 | { yyval=ConcatStrings(4,yyvsp[-5],yyvsp[-4],yyvsp[-2],yyvsp[0]); } 2490 | #line 2491 "y.tab.c" 2491 | break; 2492 | 2493 | case 73: 2494 | #line 399 "./parse.y" 2495 | { yyval=NULL; } 2496 | #line 2497 "y.tab.c" 2497 | break; 2498 | 2499 | case 74: 2500 | #line 401 "./parse.y" 2501 | { yyval=NULL; 2502 | if(in_funcbody) scope|=EXTERN_F; 2503 | else if(in_header) scope|=EXTERN_H; 2504 | else scope|=EXTERNAL; } 2505 | #line 2506 "y.tab.c" 2506 | break; 2507 | 2508 | case 75: 2509 | #line 406 "./parse.y" 2510 | { yyval=NULL; } 2511 | #line 2512 "y.tab.c" 2512 | break; 2513 | 2514 | case 76: 2515 | #line 408 "./parse.y" 2516 | { yyval=NULL; scope |= LOCAL; } 2517 | #line 2518 "y.tab.c" 2518 | break; 2519 | 2520 | case 77: 2521 | #line 410 "./parse.y" 2522 | { yyval=NULL; 2523 | in_typedef=1; if(!in_header) SeenTypedef(NULL,NULL); 2524 | common_comment=CopyString(GetCurrentComment()); } 2525 | #line 2526 "y.tab.c" 2526 | break; 2527 | 2528 | case 78: 2529 | #line 414 "./parse.y" 2530 | { yyval=NULL; scope |= INLINED; } 2531 | #line 2532 "y.tab.c" 2532 | break; 2533 | 2534 | case 80: 2535 | #line 420 "./parse.y" 2536 | { yyval=ConcatStrings(3,yyvsp[-1]," ",yyvsp[0]); } 2537 | #line 2538 "y.tab.c" 2538 | break; 2539 | 2540 | case 81: 2541 | #line 425 "./parse.y" 2542 | { if(!current->type) current->qual=ConcatStrings(3,current->qual,yyvsp[0]," "); } 2543 | #line 2544 "y.tab.c" 2544 | break; 2545 | 2546 | case 82: 2547 | #line 427 "./parse.y" 2548 | { if(!current->type) current->qual=ConcatStrings(3,current->qual,yyvsp[0]," "); } 2549 | #line 2550 "y.tab.c" 2550 | break; 2551 | 2552 | case 83: 2553 | #line 434 "./parse.y" 2554 | { in_type_spec=1; } 2555 | #line 2556 "y.tab.c" 2556 | break; 2557 | 2558 | case 94: 2559 | #line 452 "./parse.y" 2560 | { yyval=ConcatStrings(3,yyvsp[-1]," ",yyvsp[0]); } 2561 | #line 2562 "y.tab.c" 2562 | break; 2563 | 2564 | case 95: 2565 | #line 454 "./parse.y" 2566 | { yyval=ConcatStrings(3,yyvsp[-1]," ",yyvsp[0]); } 2567 | #line 2568 "y.tab.c" 2568 | break; 2569 | 2570 | case 97: 2571 | #line 460 "./parse.y" 2572 | { yyval=ConcatStrings(3,yyvsp[-1]," ",yyvsp[0]); } 2573 | #line 2574 "y.tab.c" 2574 | break; 2575 | 2576 | case 98: 2577 | #line 462 "./parse.y" 2578 | { yyval=ConcatStrings(3,yyvsp[-1]," ",yyvsp[0]); } 2579 | #line 2580 "y.tab.c" 2580 | break; 2581 | 2582 | case 108: 2583 | #line 488 "./parse.y" 2584 | { in_type_spec=0; } 2585 | #line 2586 "y.tab.c" 2586 | break; 2587 | 2588 | case 109: 2589 | #line 490 "./parse.y" 2590 | { in_type_spec=0; yyval=ConcatStrings(2,yyvsp[-1],yyvsp[0]); } 2591 | #line 2592 "y.tab.c" 2592 | break; 2593 | 2594 | case 112: 2595 | #line 502 "./parse.y" 2596 | { push(); 2597 | if(!in_header) 2598 | { 2599 | if(in_structunion) SeenStructUnionComp(yyvsp[-1],in_structunion); 2600 | else SeenStructUnionStart(yyvsp[-1]); 2601 | } 2602 | in_structunion++; } 2603 | #line 2604 "y.tab.c" 2604 | break; 2605 | 2606 | case 113: 2607 | #line 510 "./parse.y" 2608 | { pop(); in_structunion--; 2609 | if(!in_structunion && !current->type) current->type=ConcatStrings(2,yyvsp[-4]," {...}"); 2610 | if(!in_header && !in_structunion && in_typedef) SeenStructUnionEnd(); 2611 | yyval=ConcatStrings(5,yyvsp[-4]," ",yyvsp[-3],yyvsp[-1],yyvsp[0]); } 2612 | #line 2613 "y.tab.c" 2613 | break; 2614 | 2615 | case 114: 2616 | #line 515 "./parse.y" 2617 | { push(); 2618 | if(!in_header) 2619 | { 2620 | if(in_structunion) SeenStructUnionComp(ConcatStrings(3,yyvsp[-2]," ",yyvsp[-1]),in_structunion); 2621 | else SeenStructUnionStart(ConcatStrings(3,yyvsp[-2]," ",yyvsp[-1])); 2622 | } 2623 | in_structunion++; } 2624 | #line 2625 "y.tab.c" 2625 | break; 2626 | 2627 | case 115: 2628 | #line 523 "./parse.y" 2629 | { pop(); in_structunion--; 2630 | if(!in_structunion && !current->type) current->type=ConcatStrings(3,yyvsp[-5]," ",yyvsp[-4]); 2631 | if(!in_header && !in_structunion) SeenStructUnionEnd(); 2632 | yyval=ConcatStrings(7,yyvsp[-5]," ",yyvsp[-4]," ",yyvsp[-3],yyvsp[-1],yyvsp[0]); } 2633 | #line 2634 "y.tab.c" 2634 | break; 2635 | 2636 | case 119: 2637 | #line 537 "./parse.y" 2638 | { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); } 2639 | #line 2640 "y.tab.c" 2640 | break; 2641 | 2642 | case 120: 2643 | #line 542 "./parse.y" 2644 | { if(!in_header) SeenStructUnionComp(yyvsp[0],in_structunion); } 2645 | #line 2646 "y.tab.c" 2646 | break; 2647 | 2648 | case 121: 2649 | #line 544 "./parse.y" 2650 | { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); if(!in_header) SeenStructUnionComp(yyvsp[-2],in_structunion); } 2651 | #line 2652 "y.tab.c" 2652 | break; 2653 | 2654 | case 123: 2655 | #line 553 "./parse.y" 2656 | { yyval=ConcatStrings(3,yyvsp[-1]," ",yyvsp[0]); } 2657 | #line 2658 "y.tab.c" 2658 | break; 2659 | 2660 | case 128: 2661 | #line 570 "./parse.y" 2662 | { push(); 2663 | if(!in_header) 2664 | { 2665 | if(in_structunion) SeenStructUnionComp(yyvsp[-1],in_structunion); 2666 | else SeenStructUnionStart(yyvsp[-1]); 2667 | } 2668 | in_structunion++; } 2669 | #line 2670 "y.tab.c" 2670 | break; 2671 | 2672 | case 129: 2673 | #line 578 "./parse.y" 2674 | { pop(); in_structunion--; 2675 | if(!in_structunion && !current->type) current->type=ConcatStrings(2,yyvsp[-4]," {...}"); 2676 | if(!in_header && !in_structunion && in_typedef) SeenStructUnionEnd(); 2677 | yyval=ConcatStrings(5,yyvsp[-4]," ",yyvsp[-3],yyvsp[-1],yyvsp[0]); } 2678 | #line 2679 "y.tab.c" 2679 | break; 2680 | 2681 | case 130: 2682 | #line 583 "./parse.y" 2683 | { push(); 2684 | if(!in_header) 2685 | { 2686 | if(in_structunion) SeenStructUnionComp(ConcatStrings(3,yyvsp[-2]," ",yyvsp[-1]),in_structunion); 2687 | else SeenStructUnionStart(ConcatStrings(3,yyvsp[-2]," ",yyvsp[-1])); 2688 | } 2689 | in_structunion++; } 2690 | #line 2691 "y.tab.c" 2691 | break; 2692 | 2693 | case 131: 2694 | #line 591 "./parse.y" 2695 | { pop(); in_structunion--; 2696 | if(!in_structunion && !current->type) current->type=ConcatStrings(3,yyvsp[-5]," ",yyvsp[-4]); 2697 | if(!in_header && !in_structunion) SeenStructUnionEnd(); 2698 | yyval=ConcatStrings(7,yyvsp[-5]," ",yyvsp[-4]," ",yyvsp[-3],yyvsp[-1],yyvsp[0]); } 2699 | #line 2700 "y.tab.c" 2700 | break; 2701 | 2702 | case 132: 2703 | #line 599 "./parse.y" 2704 | { yyval=ConcatStrings(3,yyvsp[-1]," ",yyvsp[0]); } 2705 | #line 2706 "y.tab.c" 2706 | break; 2707 | 2708 | case 137: 2709 | #line 616 "./parse.y" 2710 | { push(); 2711 | if(!in_header) 2712 | { 2713 | if(in_structunion) SeenStructUnionComp(yyvsp[-1],in_structunion); 2714 | else SeenStructUnionStart(yyvsp[-1]); 2715 | } 2716 | in_structunion++; } 2717 | #line 2718 "y.tab.c" 2718 | break; 2719 | 2720 | case 138: 2721 | #line 624 "./parse.y" 2722 | { pop(); in_structunion--; 2723 | if(!in_structunion && !current->type) current->type=ConcatStrings(2,yyvsp[-4]," {...}"); 2724 | if(!in_header && !in_structunion && in_typedef) SeenStructUnionEnd(); 2725 | yyval=ConcatStrings(5,yyvsp[-4]," ",yyvsp[-3],yyvsp[-1],yyvsp[0]); } 2726 | #line 2727 "y.tab.c" 2727 | break; 2728 | 2729 | case 139: 2730 | #line 629 "./parse.y" 2731 | { push(); 2732 | if(!in_header) 2733 | { 2734 | if(in_structunion) SeenStructUnionComp(ConcatStrings(3,yyvsp[-2]," ",yyvsp[-1]),in_structunion); 2735 | else SeenStructUnionStart(ConcatStrings(3,yyvsp[-2]," ",yyvsp[-1])); 2736 | } 2737 | in_structunion++; } 2738 | #line 2739 "y.tab.c" 2739 | break; 2740 | 2741 | case 140: 2742 | #line 637 "./parse.y" 2743 | { pop(); in_structunion--; 2744 | if(!in_structunion && !current->type) current->type=ConcatStrings(3,yyvsp[-5]," ",yyvsp[-4]); 2745 | if(!in_header && !in_structunion) SeenStructUnionEnd(); 2746 | yyval=ConcatStrings(7,yyvsp[-5]," ",yyvsp[-4]," ",yyvsp[-3],yyvsp[-1],yyvsp[0]); } 2747 | #line 2748 "y.tab.c" 2748 | break; 2749 | 2750 | case 141: 2751 | #line 645 "./parse.y" 2752 | { yyval=ConcatStrings(3,yyvsp[-1]," ",yyvsp[0]); } 2753 | #line 2754 "y.tab.c" 2754 | break; 2755 | 2756 | case 147: 2757 | #line 663 "./parse.y" 2758 | { yyval=ConcatStrings(2,yyvsp[-1],yyvsp[0]); } 2759 | #line 2760 "y.tab.c" 2760 | break; 2761 | 2762 | case 149: 2763 | #line 669 "./parse.y" 2764 | { yyval = ConcatStrings(3, yyvsp[-1], " ", yyvsp[0]); 2765 | if(!in_header) SeenStructUnionComp(yyvsp[-1],in_structunion); } 2766 | #line 2767 "y.tab.c" 2767 | break; 2768 | 2769 | case 150: 2770 | #line 672 "./parse.y" 2771 | { yyval = ConcatStrings(3, yyvsp[-1], " ", yyvsp[0]); 2772 | if(!in_header) SeenStructUnionComp(yyvsp[-1],in_structunion); } 2773 | #line 2774 "y.tab.c" 2774 | break; 2775 | 2776 | case 152: 2777 | #line 679 "./parse.y" 2778 | { comp_type=yyvsp[0]; } 2779 | #line 2780 "y.tab.c" 2780 | break; 2781 | 2782 | case 153: 2783 | #line 681 "./parse.y" 2784 | { yyval=ConcatStrings(3,yyvsp[-3],yyvsp[-1],yyvsp[0]); reset(); in_type_spec=0; } 2785 | #line 2786 "y.tab.c" 2786 | break; 2787 | 2788 | case 154: 2789 | #line 683 "./parse.y" 2790 | { comp_type=ConcatStrings(3,yyvsp[-1]," ",yyvsp[0]); } 2791 | #line 2792 "y.tab.c" 2792 | break; 2793 | 2794 | case 155: 2795 | #line 685 "./parse.y" 2796 | { yyval=ConcatStrings(4,yyvsp[-4],yyvsp[-3],yyvsp[-1],yyvsp[0]); reset(); in_type_spec=0; } 2797 | #line 2798 "y.tab.c" 2798 | break; 2799 | 2800 | case 156: 2801 | #line 687 "./parse.y" 2802 | { comp_type=ConcatStrings(3,yyvsp[-1]," ",yyvsp[0]); } 2803 | #line 2804 "y.tab.c" 2804 | break; 2805 | 2806 | case 157: 2807 | #line 689 "./parse.y" 2808 | { yyval=ConcatStrings(4,yyvsp[-4],yyvsp[-3],yyvsp[-1],yyvsp[0]); reset(); in_type_spec=0; } 2809 | #line 2810 "y.tab.c" 2810 | break; 2811 | 2812 | case 158: 2813 | #line 694 "./parse.y" 2814 | { if(!in_header) SeenStructUnionComp(ConcatStrings(2,comp_type,yyvsp[0]),in_structunion); } 2815 | #line 2816 "y.tab.c" 2816 | break; 2817 | 2818 | case 159: 2819 | #line 696 "./parse.y" 2820 | { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); 2821 | if(!in_header) SeenStructUnionComp(ConcatStrings(2,comp_type,yyvsp[0]),in_structunion); } 2822 | #line 2823 "y.tab.c" 2823 | break; 2824 | 2825 | case 162: 2826 | #line 707 "./parse.y" 2827 | { if(in_function==2 && !in_structunion) { DownScope(); pop(); in_function=0; } } 2828 | #line 2829 "y.tab.c" 2829 | break; 2830 | 2831 | case 163: 2832 | #line 712 "./parse.y" 2833 | { yyval=ConcatStrings(2,yyvsp[-1],yyvsp[0]); } 2834 | #line 2835 "y.tab.c" 2835 | break; 2836 | 2837 | case 164: 2838 | #line 714 "./parse.y" 2839 | { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); } 2840 | #line 2841 "y.tab.c" 2841 | break; 2842 | 2843 | case 168: 2844 | #line 732 "./parse.y" 2845 | { pop(); in_funcbody=1; in_function=0; } 2846 | #line 2847 "y.tab.c" 2847 | break; 2848 | 2849 | case 169: 2850 | #line 734 "./parse.y" 2851 | { in_funcbody=in_function=0; DownScope(); SeenFunctionDefinition(NULL); } 2852 | #line 2853 "y.tab.c" 2853 | break; 2854 | 2855 | case 170: 2856 | #line 739 "./parse.y" 2857 | { char *func_type,*fname=strstr(yyvsp[0],(current-1)->name),*parenth=strstr(yyvsp[0],"("); 2858 | if(parenth>fname) 2859 | {parenth[0]=0;func_type=ConcatStrings(3,(current-1)->qual,(current-1)->type,yyvsp[0]);} 2860 | else 2861 | { 2862 | int open=1; 2863 | char *argbeg=strstr(&parenth[1],"("),*argend; 2864 | argbeg[1]=0; 2865 | for(argend=argbeg+2;*argend;argend++) 2866 | { 2867 | if(*argend=='(') open++; 2868 | if(*argend==')') open--; 2869 | if(!open) break; 2870 | } 2871 | func_type=ConcatStrings(4,(current-1)->qual,(current-1)->type,yyvsp[0],argend); 2872 | } 2873 | SeenFunctionDefinition(func_type); 2874 | common_comment=NULL; 2875 | } 2876 | #line 2877 "y.tab.c" 2877 | break; 2878 | 2879 | case 172: 2880 | #line 763 "./parse.y" 2881 | { yyval=ConcatStrings(3,current->qual,current->type,yyvsp[0]); } 2882 | #line 2883 "y.tab.c" 2883 | break; 2884 | 2885 | case 174: 2886 | #line 766 "./parse.y" 2887 | { yyval=ConcatStrings(3,current->qual,current->type,yyvsp[-1]); } 2888 | #line 2889 "y.tab.c" 2889 | break; 2890 | 2891 | case 175: 2892 | #line 773 "./parse.y" 2893 | { if(!in_structunion) { push(); in_function=2; } } 2894 | #line 2895 "y.tab.c" 2895 | break; 2896 | 2897 | case 178: 2898 | #line 780 "./parse.y" 2899 | { yyval=ConcatStrings(2,yyvsp[-1],yyvsp[0]); } 2900 | #line 2901 "y.tab.c" 2901 | break; 2902 | 2903 | case 179: 2904 | #line 782 "./parse.y" 2905 | { yyval=ConcatStrings(2,yyvsp[-3],yyvsp[-1]); } 2906 | #line 2907 "y.tab.c" 2907 | break; 2908 | 2909 | case 180: 2910 | #line 787 "./parse.y" 2911 | { if(!in_structunion) 2912 | { push(); if(in_function==0) UpScope(); 2913 | if(in_function==0 && !in_funcdef) in_function=1; if(in_function!=3) in_funcdef++; } } 2914 | #line 2915 "y.tab.c" 2915 | break; 2916 | 2917 | case 181: 2918 | #line 791 "./parse.y" 2919 | { if(!in_structunion) 2920 | { pop(); if(in_function!=3) in_funcdef--; if(in_funcdef==0) in_function=3; } 2921 | yyval=ConcatStrings(4,yyvsp[-4],yyvsp[-3],yyvsp[-1],yyvsp[0]); } 2922 | #line 2923 "y.tab.c" 2923 | break; 2924 | 2925 | case 182: 2926 | #line 798 "./parse.y" 2927 | { 2928 | if(!in_funcdef && !in_function && !in_funcbody && !in_structunion) SeenFunctionDeclaration(current->name,SCOPE); 2929 | in_type_spec=0; 2930 | } 2931 | #line 2932 "y.tab.c" 2932 | break; 2933 | 2934 | case 183: 2935 | #line 806 "./parse.y" 2936 | { if(in_function==1 && in_funcdef==1 && !in_structunion) SeenFunctionArg("void","void"); 2937 | if(in_structunion) yyval=NULL; else yyval="void"; } 2938 | #line 2939 "y.tab.c" 2939 | break; 2940 | 2941 | case 186: 2942 | #line 814 "./parse.y" 2943 | { if(in_function==1 && in_funcdef==1 && in_funcbody==0 && !in_structunion) { SeenFunctionArg(yyvsp[0],NULL); SeenScopeVariable(yyvsp[0]); } } 2944 | #line 2945 "y.tab.c" 2945 | break; 2946 | 2947 | case 187: 2948 | #line 816 "./parse.y" 2949 | { if(in_function==1 && in_funcdef==1 && in_funcbody==0 && !in_structunion) { SeenFunctionArg(yyvsp[0],NULL); SeenScopeVariable(yyvsp[0]); } 2950 | yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); } 2951 | #line 2952 "y.tab.c" 2952 | break; 2953 | 2954 | case 189: 2955 | #line 823 "./parse.y" 2956 | { if(in_function==1 && in_funcdef==1 && in_funcbody==0 && !in_structunion) SeenFunctionArg(yyvsp[0],yyvsp[0]); 2957 | yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); } 2958 | #line 2959 "y.tab.c" 2959 | break; 2960 | 2961 | case 190: 2962 | #line 829 "./parse.y" 2963 | { if(in_function==1 && in_funcdef==1 && in_funcbody==0 && !in_structunion) SeenFunctionArg(strcmp("void",yyvsp[0])?current->name:"void",yyvsp[0]); 2964 | in_type_spec=0; } 2965 | #line 2966 "y.tab.c" 2966 | break; 2967 | 2968 | case 191: 2969 | #line 832 "./parse.y" 2970 | { if(in_function==1 && in_funcdef==1 && in_funcbody==0 && !in_structunion) SeenFunctionArg(current->name,yyvsp[0]); 2971 | in_type_spec=0; yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); } 2972 | #line 2973 "y.tab.c" 2973 | break; 2974 | 2975 | case 192: 2976 | #line 838 "./parse.y" 2977 | { in_type_spec=0; yyval=ConcatStrings(2,yyvsp[-1],yyvsp[0]); } 2978 | #line 2979 "y.tab.c" 2979 | break; 2980 | 2981 | case 193: 2982 | #line 840 "./parse.y" 2983 | { in_type_spec=0; } 2984 | #line 2985 "y.tab.c" 2985 | break; 2986 | 2987 | case 194: 2988 | #line 842 "./parse.y" 2989 | { in_type_spec=0; yyval=ConcatStrings(2,yyvsp[-1],yyvsp[0]); } 2990 | #line 2991 "y.tab.c" 2991 | break; 2992 | 2993 | case 207: 2994 | #line 866 "./parse.y" 2995 | { UpScope(); reset(); } 2996 | #line 2997 "y.tab.c" 2997 | break; 2998 | 2999 | case 208: 3000 | #line 868 "./parse.y" 3001 | { DownScope(); } 3002 | #line 3003 "y.tab.c" 3003 | break; 3004 | 3005 | case 215: 3006 | #line 885 "./parse.y" 3007 | { scope=0; reset(); common_comment=NULL; in_typedef=0; } 3008 | #line 3009 "y.tab.c" 3009 | break; 3010 | 3011 | case 224: 3012 | #line 917 "./parse.y" 3013 | { UpScope(); reset(); } 3014 | #line 3015 "y.tab.c" 3015 | break; 3016 | 3017 | case 225: 3018 | #line 919 "./parse.y" 3019 | { DownScope(); } 3020 | #line 3021 "y.tab.c" 3021 | break; 3022 | 3023 | case 235: 3024 | #line 936 "./parse.y" 3025 | { in_type_spec=0; } 3026 | #line 3027 "y.tab.c" 3027 | break; 3028 | 3029 | case 236: 3030 | #line 938 "./parse.y" 3031 | { in_type_spec=0; } 3032 | #line 3033 "y.tab.c" 3033 | break; 3034 | 3035 | case 256: 3036 | #line 1011 "./parse.y" 3037 | { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); } 3038 | #line 3039 "y.tab.c" 3039 | break; 3040 | 3041 | case 273: 3042 | #line 1042 "./parse.y" 3043 | { yyval=ConcatStrings(5,yyvsp[-4],yyvsp[-3],yyvsp[-2],yyvsp[-1],yyvsp[0]); } 3044 | #line 3045 "y.tab.c" 3045 | break; 3046 | 3047 | case 274: 3048 | #line 1044 "./parse.y" 3049 | { yyval=ConcatStrings(4,yyvsp[-3],yyvsp[-2],yyvsp[-1],yyvsp[0]); } 3050 | #line 3051 "y.tab.c" 3051 | break; 3052 | 3053 | case 276: 3054 | #line 1052 "./parse.y" 3055 | { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); } 3056 | #line 3057 "y.tab.c" 3057 | break; 3058 | 3059 | case 278: 3060 | #line 1060 "./parse.y" 3061 | { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); } 3062 | #line 3063 "y.tab.c" 3063 | break; 3064 | 3065 | case 280: 3066 | #line 1068 "./parse.y" 3067 | { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); } 3068 | #line 3069 "y.tab.c" 3069 | break; 3070 | 3071 | case 282: 3072 | #line 1076 "./parse.y" 3073 | { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); } 3074 | #line 3075 "y.tab.c" 3075 | break; 3076 | 3077 | case 284: 3078 | #line 1084 "./parse.y" 3079 | { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); } 3080 | #line 3081 "y.tab.c" 3081 | break; 3082 | 3083 | case 286: 3084 | #line 1092 "./parse.y" 3085 | { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); } 3086 | #line 3087 "y.tab.c" 3087 | break; 3088 | 3089 | case 290: 3090 | #line 1105 "./parse.y" 3091 | { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); } 3092 | #line 3093 "y.tab.c" 3093 | break; 3094 | 3095 | case 296: 3096 | #line 1120 "./parse.y" 3097 | { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); } 3098 | #line 3099 "y.tab.c" 3099 | break; 3100 | 3101 | case 300: 3102 | #line 1133 "./parse.y" 3103 | { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); } 3104 | #line 3105 "y.tab.c" 3105 | break; 3106 | 3107 | case 304: 3108 | #line 1146 "./parse.y" 3109 | { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); } 3110 | #line 3111 "y.tab.c" 3111 | break; 3112 | 3113 | case 320: 3114 | #line 1177 "./parse.y" 3115 | { yyval=ConcatStrings(2,yyvsp[-1],yyvsp[0]); } 3116 | #line 3117 "y.tab.c" 3117 | break; 3118 | 3119 | case 321: 3120 | #line 1182 "./parse.y" 3121 | { yyval=ConcatStrings(4,yyvsp[-3],yyvsp[-2],yyvsp[-1],yyvsp[0]); } 3122 | #line 3123 "y.tab.c" 3123 | break; 3124 | 3125 | case 324: 3126 | #line 1192 "./parse.y" 3127 | { yyval=ConcatStrings(2,yyvsp[-1],yyvsp[0]); } 3128 | #line 3129 "y.tab.c" 3129 | break; 3130 | 3131 | case 327: 3132 | #line 1205 "./parse.y" 3133 | { yyval=ConcatStrings(4,yyvsp[-3],yyvsp[-2],yyvsp[-1],yyvsp[0]); } 3134 | #line 3135 "y.tab.c" 3135 | break; 3136 | 3137 | case 328: 3138 | #line 1207 "./parse.y" 3139 | { yyval=ConcatStrings(2,yyvsp[-1],yyvsp[0]); } 3140 | #line 3141 "y.tab.c" 3141 | break; 3142 | 3143 | case 329: 3144 | #line 1212 "./parse.y" 3145 | { yyval=ConcatStrings(2,yyvsp[-1],yyvsp[0]); } 3146 | #line 3147 "y.tab.c" 3147 | break; 3148 | 3149 | case 330: 3150 | #line 1217 "./parse.y" 3151 | { yyval=ConcatStrings(2,yyvsp[-1],yyvsp[0]); } 3152 | #line 3153 "y.tab.c" 3153 | break; 3154 | 3155 | case 333: 3156 | #line 1226 "./parse.y" 3157 | { if(!IsAScopeVariable(yyvsp[0])) SeenFunctionCall(yyvsp[0]); } 3158 | #line 3159 "y.tab.c" 3159 | break; 3160 | 3161 | case 349: 3162 | #line 1270 "./parse.y" 3163 | { CheckFunctionVariableRef(yyvsp[0],in_funcbody); } 3164 | #line 3165 "y.tab.c" 3165 | break; 3166 | 3167 | case 355: 3168 | #line 1283 "./parse.y" 3169 | { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); } 3170 | #line 3171 "y.tab.c" 3171 | break; 3172 | 3173 | case 356: 3174 | #line 1284 "./parse.y" 3175 | { push(); } 3176 | #line 3177 "y.tab.c" 3177 | break; 3178 | 3179 | case 357: 3180 | #line 1284 "./parse.y" 3181 | { pop(); } 3182 | #line 3183 "y.tab.c" 3183 | break; 3184 | 3185 | 3186 | #line 3187 "y.tab.c" 3187 | 3188 | default: break; 3189 | } 3190 | /* User semantic actions sometimes alter yychar, and that requires 3191 | that yytoken be updated with the new translation. We take the 3192 | approach of translating immediately before every use of yytoken. 3193 | One alternative is translating here after every semantic action, 3194 | but that translation would be missed if the semantic action invokes 3195 | YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or 3196 | if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an 3197 | incorrect destructor might then be invoked immediately. In the 3198 | case of YYERROR or YYBACKUP, subsequent parser actions might lead 3199 | to an incorrect destructor call or verbose syntax error message 3200 | before the lookahead is translated. */ 3201 | YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); 3202 | 3203 | YYPOPSTACK (yylen); 3204 | yylen = 0; 3205 | YY_STACK_PRINT (yyss, yyssp); 3206 | 3207 | *++yyvsp = yyval; 3208 | 3209 | /* Now 'shift' the result of the reduction. Determine what state 3210 | that goes to, based on the state we popped back to and the rule 3211 | number reduced by. */ 3212 | { 3213 | const int yylhs = yyr1[yyn] - YYNTOKENS; 3214 | const int yyi = yypgoto[yylhs] + *yyssp; 3215 | yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp 3216 | ? yytable[yyi] 3217 | : yydefgoto[yylhs]); 3218 | } 3219 | 3220 | goto yynewstate; 3221 | 3222 | 3223 | /*--------------------------------------. 3224 | | yyerrlab -- here on detecting error. | 3225 | `--------------------------------------*/ 3226 | yyerrlab: 3227 | /* Make sure we have latest lookahead translation. See comments at 3228 | user semantic actions for why this is necessary. */ 3229 | yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar); 3230 | 3231 | /* If not already recovering from an error, report this error. */ 3232 | if (!yyerrstatus) 3233 | { 3234 | ++yynerrs; 3235 | #if ! YYERROR_VERBOSE 3236 | yyerror (YY_("syntax error")); 3237 | #else 3238 | # define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \ 3239 | yyssp, yytoken) 3240 | { 3241 | char const *yymsgp = YY_("syntax error"); 3242 | int yysyntax_error_status; 3243 | yysyntax_error_status = YYSYNTAX_ERROR; 3244 | if (yysyntax_error_status == 0) 3245 | yymsgp = yymsg; 3246 | else if (yysyntax_error_status == 1) 3247 | { 3248 | if (yymsg != yymsgbuf) 3249 | YYSTACK_FREE (yymsg); 3250 | yymsg = YY_CAST (char *, YYSTACK_ALLOC (YY_CAST (YYSIZE_T, yymsg_alloc))); 3251 | if (!yymsg) 3252 | { 3253 | yymsg = yymsgbuf; 3254 | yymsg_alloc = sizeof yymsgbuf; 3255 | yysyntax_error_status = 2; 3256 | } 3257 | else 3258 | { 3259 | yysyntax_error_status = YYSYNTAX_ERROR; 3260 | yymsgp = yymsg; 3261 | } 3262 | } 3263 | yyerror (yymsgp); 3264 | if (yysyntax_error_status == 2) 3265 | goto yyexhaustedlab; 3266 | } 3267 | # undef YYSYNTAX_ERROR 3268 | #endif 3269 | } 3270 | 3271 | 3272 | 3273 | if (yyerrstatus == 3) 3274 | { 3275 | /* If just tried and failed to reuse lookahead token after an 3276 | error, discard it. */ 3277 | 3278 | if (yychar <= YYEOF) 3279 | { 3280 | /* Return failure if at end of input. */ 3281 | if (yychar == YYEOF) 3282 | YYABORT; 3283 | } 3284 | else 3285 | { 3286 | yydestruct ("Error: discarding", 3287 | yytoken, &yylval); 3288 | yychar = YYEMPTY; 3289 | } 3290 | } 3291 | 3292 | /* Else will try to reuse lookahead token after shifting the error 3293 | token. */ 3294 | goto yyerrlab1; 3295 | 3296 | 3297 | /*---------------------------------------------------. 3298 | | yyerrorlab -- error raised explicitly by YYERROR. | 3299 | `---------------------------------------------------*/ 3300 | yyerrorlab: 3301 | /* Pacify compilers when the user code never invokes YYERROR and the 3302 | label yyerrorlab therefore never appears in user code. */ 3303 | if (0) 3304 | YYERROR; 3305 | 3306 | /* Do not reclaim the symbols of the rule whose action triggered 3307 | this YYERROR. */ 3308 | YYPOPSTACK (yylen); 3309 | yylen = 0; 3310 | YY_STACK_PRINT (yyss, yyssp); 3311 | yystate = *yyssp; 3312 | goto yyerrlab1; 3313 | 3314 | 3315 | /*-------------------------------------------------------------. 3316 | | yyerrlab1 -- common code for both syntax error and YYERROR. | 3317 | `-------------------------------------------------------------*/ 3318 | yyerrlab1: 3319 | yyerrstatus = 3; /* Each real token shifted decrements this. */ 3320 | 3321 | for (;;) 3322 | { 3323 | yyn = yypact[yystate]; 3324 | if (!yypact_value_is_default (yyn)) 3325 | { 3326 | yyn += YYTERROR; 3327 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) 3328 | { 3329 | yyn = yytable[yyn]; 3330 | if (0 < yyn) 3331 | break; 3332 | } 3333 | } 3334 | 3335 | /* Pop the current state because it cannot handle the error token. */ 3336 | if (yyssp == yyss) 3337 | YYABORT; 3338 | 3339 | 3340 | yydestruct ("Error: popping", 3341 | yystos[yystate], yyvsp); 3342 | YYPOPSTACK (1); 3343 | yystate = *yyssp; 3344 | YY_STACK_PRINT (yyss, yyssp); 3345 | } 3346 | 3347 | YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN 3348 | *++yyvsp = yylval; 3349 | YY_IGNORE_MAYBE_UNINITIALIZED_END 3350 | 3351 | 3352 | /* Shift the error token. */ 3353 | YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp); 3354 | 3355 | yystate = yyn; 3356 | goto yynewstate; 3357 | 3358 | 3359 | /*-------------------------------------. 3360 | | yyacceptlab -- YYACCEPT comes here. | 3361 | `-------------------------------------*/ 3362 | yyacceptlab: 3363 | yyresult = 0; 3364 | goto yyreturn; 3365 | 3366 | 3367 | /*-----------------------------------. 3368 | | yyabortlab -- YYABORT comes here. | 3369 | `-----------------------------------*/ 3370 | yyabortlab: 3371 | yyresult = 1; 3372 | goto yyreturn; 3373 | 3374 | 3375 | #if !defined yyoverflow || YYERROR_VERBOSE 3376 | /*-------------------------------------------------. 3377 | | yyexhaustedlab -- memory exhaustion comes here. | 3378 | `-------------------------------------------------*/ 3379 | yyexhaustedlab: 3380 | yyerror (YY_("memory exhausted")); 3381 | yyresult = 2; 3382 | /* Fall through. */ 3383 | #endif 3384 | 3385 | 3386 | /*-----------------------------------------------------. 3387 | | yyreturn -- parsing is finished, return the result. | 3388 | `-----------------------------------------------------*/ 3389 | yyreturn: 3390 | if (yychar != YYEMPTY) 3391 | { 3392 | /* Make sure we have latest lookahead translation. See comments at 3393 | user semantic actions for why this is necessary. */ 3394 | yytoken = YYTRANSLATE (yychar); 3395 | yydestruct ("Cleanup: discarding lookahead", 3396 | yytoken, &yylval); 3397 | } 3398 | /* Do not reclaim the symbols of the rule whose action triggered 3399 | this YYABORT or YYACCEPT. */ 3400 | YYPOPSTACK (yylen); 3401 | YY_STACK_PRINT (yyss, yyssp); 3402 | while (yyssp != yyss) 3403 | { 3404 | yydestruct ("Cleanup: popping", 3405 | yystos[+*yyssp], yyvsp); 3406 | YYPOPSTACK (1); 3407 | } 3408 | #ifndef yyoverflow 3409 | if (yyss != yyssa) 3410 | YYSTACK_FREE (yyss); 3411 | #endif 3412 | #if YYERROR_VERBOSE 3413 | if (yymsg != yymsgbuf) 3414 | YYSTACK_FREE (yymsg); 3415 | #endif 3416 | return yyresult; 3417 | } 3418 | #line 1343 "./parse.y" 3419 | 3420 | 3421 | #if YYDEBUG 3422 | 3423 | static int last_yylex[11]; 3424 | static char *last_yylval[11]; 3425 | static int count=0,modcount=0; 3426 | 3427 | #endif /* YYDEBUG */ 3428 | 3429 | 3430 | /*++++++++++++++++++++++++++++++++++++++ 3431 | Stop parsing the current file, due to an error. 3432 | 3433 | char *s The error message to print out. 3434 | ++++++++++++++++++++++++++++++++++++++*/ 3435 | 3436 | static void yyerror( const char *s ) 3437 | { 3438 | #if YYDEBUG 3439 | int i; 3440 | #endif 3441 | 3442 | fflush(stdout); 3443 | fprintf(stderr,"%s:%d: cxref: %s\n\n",parse_file,parse_line,s); 3444 | 3445 | #if YYDEBUG 3446 | 3447 | fprintf(stderr,"The previous 10, current and next 10 symbols are:\n"); 3448 | 3449 | for(i=count>10?count-11:0,modcount=i%11;i<count-1;i++,modcount=i%11) 3450 | #ifdef YYBISON 3451 | fprintf(stderr,"%3d | %3d : %16s : %s\n",i+1-count,last_yylex[modcount],yytname[YYTRANSLATE(last_yylex[modcount])],last_yylval[modcount]); 3452 | #else 3453 | fprintf(stderr,"%3d | %3d : %s\n",i+1-count,last_yylex[modcount],last_yylval[modcount]); 3454 | #endif 3455 | 3456 | #ifdef YYBISON 3457 | fprintf(stderr," 0 | %3d : %16s : %s\n",yychar,yytname[YYTRANSLATE(yychar)],yylval); 3458 | #else 3459 | fprintf(stderr," 0 | %3d : %s\n",yychar,yylval); 3460 | #endif 3461 | 3462 | for(i=0;i<10;i++) 3463 | { 3464 | yychar=yylex(); 3465 | if(!yychar) 3466 | {fprintf(stderr,"END OF FILE\n");break;} 3467 | #ifdef YYBISON 3468 | fprintf(stderr,"%3d | %3d : %16s : %s\n",i+1,yychar,yytname[YYTRANSLATE(yychar)],yylval); 3469 | #else 3470 | fprintf(stderr,"%3d | %3d : %s\n",i+1,yychar,yylval); 3471 | #endif 3472 | } 3473 | 3474 | fprintf(stderr,"\n"); 3475 | 3476 | #endif /* YYDEBUG */ 3477 | 3478 | /* Finish off the input. */ 3479 | 3480 | #undef yylex 3481 | 3482 | if(yychar) 3483 | while((yychar=yylex())); 3484 | } 3485 | 3486 | 3487 | /*++++++++++++++++++++++++++++++++++++++ 3488 | Call the lexer, the feedback from the parser to the lexer is applied here. 3489 | 3490 | int cxref_yylex Returns the value from the lexer, modified due to parser feedback. 3491 | ++++++++++++++++++++++++++++++++++++++*/ 3492 | 3493 | static int cxref_yylex(void) 3494 | { 3495 | static int last_yyl=0; 3496 | int yyl=yylex(); 3497 | 3498 | if(yyl==TYPE_NAME) 3499 | if(in_type_spec || (in_structunion && last_yyl=='}') || last_yyl==TYPE_NAME || 3500 | last_yyl==GOTO || 3501 | last_yyl==CHAR || last_yyl==SHORT || last_yyl==INT || last_yyl==LONG || 3502 | last_yyl==SIGNED || last_yyl==UNSIGNED || 3503 | last_yyl==FLOAT || last_yyl==DOUBLE || 3504 | last_yyl==BOOL) 3505 | yyl=IDENTIFIER; 3506 | 3507 | last_yyl=yyl; 3508 | 3509 | #if YYDEBUG 3510 | 3511 | last_yylex [modcount]=yyl; 3512 | last_yylval[modcount]=yylval; 3513 | 3514 | if(yyl) 3515 | { 3516 | count++; 3517 | modcount=count%11; 3518 | } 3519 | else 3520 | { 3521 | count=0; 3522 | modcount=0; 3523 | } 3524 | 3525 | #if YYDEBUG == 2 3526 | 3527 | if(yyl) 3528 | #ifdef YYBISON 3529 | printf("#parse.y# %6d | %16s:%4d | %3d : %16s : %s\n",count,parse_file,parse_line,yyl,yytname[YYTRANSLATE(yyl)],yylval); 3530 | #else 3531 | printf("#parse.y# %6d | %16s:%4d | %3d : %s\n",count,parse_file,parse_line,yyl,yylval); 3532 | #endif /* YYBISON */ 3533 | else 3534 | printf("#parse.y# %6d | %16s:%4d | END OF FILE\n",count,parse_file,parse_line); 3535 | 3536 | fflush(stdout); 3537 | 3538 | #endif /* YYDEBUG==2 */ 3539 | 3540 | #endif /* YYDEBUG */ 3541 | 3542 | return(yyl); 3543 | }