2 /* A Bison parser, made by GNU Bison 2.4.1. */
4 /* Skeleton implementation for Bison's Yacc-like parsers in C
6 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
7 Free Software Foundation, Inc.
9 This program is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program. If not, see <http://www.gnu.org/licenses/>. */
22 /* As a special exception, you may create a larger work that contains
23 part or all of the Bison parser skeleton and distribute that work
24 under terms of your choice, so long as that work isn't itself a
25 parser generator using the skeleton or a modified version thereof
26 as a parser skeleton. Alternatively, if you modify or redistribute
27 the parser skeleton itself, you may (at your option) remove this
28 special exception, which will cause the skeleton and the resulting
29 Bison output files to be licensed under the GNU General Public
30 License without this special exception.
32 This special exception was added by the Free Software Foundation in
33 version 2.2 of Bison. */
35 /* C LALR(1) parser skeleton written by Richard Stallman, by
36 simplifying the original so-called "semantic" parser. */
38 /* All symbols defined below should begin with yy or YY, to avoid
39 infringing on user name space. This should be done even for local
40 variables, as they might otherwise be expanded by user macros.
41 There are some unavoidable exceptions within include files to
42 define necessary library symbols; they are noted "INFRINGES ON
43 USER NAME SPACE" below. */
45 /* Identify Bison output. */
49 #define YYBISON_VERSION "2.4.1"
52 #define YYSKELETON_NAME "yacc.c"
63 /* Using locations. */
64 #define YYLSP_NEEDED 0
68 /* Copy the first part of user declarations. */
70 /* Line 189 of yacc.c */
71 #line 24 "scripts/genksyms/parse.y"
79 static int is_typedef;
81 static char *current_name;
82 static struct string_list *decl_spec;
84 static void yyerror(const char *);
87 remove_node(struct string_list **p)
89 struct string_list *node = *p;
95 remove_list(struct string_list **pb, struct string_list **pe)
97 struct string_list *b = *pb, *e = *pe;
104 /* Line 189 of yacc.c */
105 #line 106 "scripts/genksyms/parse.c"
107 /* Enabling traces. */
112 /* Enabling verbose error messages. */
113 #ifdef YYERROR_VERBOSE
114 # undef YYERROR_VERBOSE
115 # define YYERROR_VERBOSE 1
117 # define YYERROR_VERBOSE 0
120 /* Enabling the token table. */
121 #ifndef YYTOKEN_TABLE
122 # define YYTOKEN_TABLE 0
129 /* Put the tokens into the symbol table, so that GDB and other debuggers
133 ATTRIBUTE_KEYW = 259,
141 EXTENSION_KEYW = 267,
158 EXPORT_SYMBOL_KEYW = 284,
160 ATTRIBUTE_PHRASE = 286,
162 BRACKET_PHRASE = 288,
163 EXPRESSION_PHRASE = 289,
178 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
180 # define YYSTYPE_IS_TRIVIAL 1
181 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
182 # define YYSTYPE_IS_DECLARED 1
186 /* Copy the second part of user declarations. */
189 /* Line 264 of yacc.c */
190 #line 191 "scripts/genksyms/parse.c"
197 typedef YYTYPE_UINT8 yytype_uint8;
199 typedef unsigned char yytype_uint8;
203 typedef YYTYPE_INT8 yytype_int8;
204 #elif (defined __STDC__ || defined __C99__FUNC__ \
205 || defined __cplusplus || defined _MSC_VER)
206 typedef signed char yytype_int8;
208 typedef short int yytype_int8;
212 typedef YYTYPE_UINT16 yytype_uint16;
214 typedef unsigned short int yytype_uint16;
218 typedef YYTYPE_INT16 yytype_int16;
220 typedef short int yytype_int16;
224 # ifdef __SIZE_TYPE__
225 # define YYSIZE_T __SIZE_TYPE__
226 # elif defined size_t
227 # define YYSIZE_T size_t
228 # elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
229 || defined __cplusplus || defined _MSC_VER)
230 # include <stddef.h> /* INFRINGES ON USER NAME SPACE */
231 # define YYSIZE_T size_t
233 # define YYSIZE_T unsigned int
237 #define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
242 # include <libintl.h> /* INFRINGES ON USER NAME SPACE */
243 # define YY_(msgid) dgettext ("bison-runtime", msgid)
247 # define YY_(msgid) msgid
251 /* Suppress unused-variable warnings by "using" E. */
252 #if ! defined lint || defined __GNUC__
253 # define YYUSE(e) ((void) (e))
255 # define YYUSE(e) /* empty */
258 /* Identity function, used to suppress warnings about constant conditions. */
262 #if (defined __STDC__ || defined __C99__FUNC__ \
263 || defined __cplusplus || defined _MSC_VER)
276 #if ! defined yyoverflow || YYERROR_VERBOSE
278 /* The parser invokes alloca or malloc; define the necessary symbols. */
280 # ifdef YYSTACK_USE_ALLOCA
281 # if YYSTACK_USE_ALLOCA
283 # define YYSTACK_ALLOC __builtin_alloca
284 # elif defined __BUILTIN_VA_ARG_INCR
285 # include <alloca.h> /* INFRINGES ON USER NAME SPACE */
287 # define YYSTACK_ALLOC __alloca
288 # elif defined _MSC_VER
289 # include <malloc.h> /* INFRINGES ON USER NAME SPACE */
290 # define alloca _alloca
292 # define YYSTACK_ALLOC alloca
293 # if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
294 || defined __cplusplus || defined _MSC_VER)
295 # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
304 # ifdef YYSTACK_ALLOC
305 /* Pacify GCC's `empty if-body' warning. */
306 # define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
307 # ifndef YYSTACK_ALLOC_MAXIMUM
308 /* The OS might guarantee only one guard page at the bottom of the stack,
309 and a page size can be as small as 4096 bytes. So we cannot safely
310 invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
311 to allow for a few compiler-allocated temporary stack slots. */
312 # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
315 # define YYSTACK_ALLOC YYMALLOC
316 # define YYSTACK_FREE YYFREE
317 # ifndef YYSTACK_ALLOC_MAXIMUM
318 # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
320 # if (defined __cplusplus && ! defined _STDLIB_H \
321 && ! ((defined YYMALLOC || defined malloc) \
322 && (defined YYFREE || defined free)))
323 # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
329 # define YYMALLOC malloc
330 # if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
331 || defined __cplusplus || defined _MSC_VER)
332 void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
337 # if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
338 || defined __cplusplus || defined _MSC_VER)
339 void free (void *); /* INFRINGES ON USER NAME SPACE */
343 #endif /* ! defined yyoverflow || YYERROR_VERBOSE */
346 #if (! defined yyoverflow \
347 && (! defined __cplusplus \
348 || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
350 /* A type that is properly aligned for any stack member. */
353 yytype_int16 yyss_alloc;
357 /* The size of the maximum gap between one aligned stack and the next. */
358 # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
360 /* The size of an array large to enough to hold all stacks, each with
362 # define YYSTACK_BYTES(N) \
363 ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
364 + YYSTACK_GAP_MAXIMUM)
366 /* Copy COUNT objects from FROM to TO. The source and destination do
369 # if defined __GNUC__ && 1 < __GNUC__
370 # define YYCOPY(To, From, Count) \
371 __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
373 # define YYCOPY(To, From, Count) \
377 for (yyi = 0; yyi < (Count); yyi++) \
378 (To)[yyi] = (From)[yyi]; \
384 /* Relocate STACK from its old location to the new one. The
385 local variables YYSIZE and YYSTACKSIZE give the old and new number of
386 elements in the stack, and YYPTR gives the new location of the
387 stack. Advance YYPTR to a properly aligned location for the next
389 # define YYSTACK_RELOCATE(Stack_alloc, Stack) \
392 YYSIZE_T yynewbytes; \
393 YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
394 Stack = &yyptr->Stack_alloc; \
395 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
396 yyptr += yynewbytes / sizeof (*yyptr); \
402 /* YYFINAL -- State number of the termination state. */
404 /* YYLAST -- Last index in YYTABLE. */
407 /* YYNTOKENS -- Number of terminals. */
409 /* YYNNTS -- Number of nonterminals. */
411 /* YYNRULES -- Number of rules. */
413 /* YYNRULES -- Number of states. */
414 #define YYNSTATES 188
416 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
418 #define YYMAXUTOK 298
420 #define YYTRANSLATE(YYX) \
421 ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
423 /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
424 static const yytype_uint8 yytranslate[] =
426 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
427 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
428 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
429 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
430 47, 49, 48, 2, 46, 2, 2, 2, 2, 2,
431 2, 2, 2, 2, 2, 2, 2, 2, 52, 44,
432 2, 50, 2, 2, 2, 2, 2, 2, 2, 2,
433 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
434 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
435 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
436 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
437 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
438 2, 2, 2, 51, 2, 45, 2, 2, 2, 2,
439 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
440 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
441 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
442 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
443 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
444 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
445 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
446 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
447 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
448 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
449 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
450 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
451 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
452 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
453 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
454 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
455 35, 36, 37, 38, 39, 40, 41, 42, 43
459 /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
461 static const yytype_uint16 yyprhs[] =
463 0, 0, 3, 5, 8, 9, 12, 13, 18, 19,
464 23, 25, 27, 29, 31, 34, 37, 41, 42, 44,
465 46, 50, 55, 56, 58, 60, 63, 65, 67, 69,
466 71, 73, 75, 77, 79, 81, 87, 92, 95, 98,
467 101, 105, 109, 113, 116, 119, 122, 124, 126, 128,
468 130, 132, 134, 136, 138, 140, 142, 144, 147, 148,
469 150, 152, 155, 157, 159, 161, 163, 166, 168, 170,
470 175, 180, 183, 187, 191, 194, 196, 198, 200, 205,
471 210, 213, 217, 221, 224, 226, 230, 231, 233, 235,
472 239, 242, 245, 247, 248, 250, 252, 257, 262, 265,
473 269, 273, 277, 278, 280, 283, 287, 291, 292, 294,
474 296, 299, 303, 306, 307, 309, 311, 315, 318, 321,
475 323, 326, 327, 330, 334, 339, 341, 345, 347, 351,
479 /* YYRHS -- A `-1'-separated list of the rules' RHS. */
480 static const yytype_int8 yyrhs[] =
482 54, 0, -1, 55, -1, 54, 55, -1, -1, 56,
483 57, -1, -1, 12, 23, 58, 60, -1, -1, 23,
484 59, 60, -1, 60, -1, 84, -1, 99, -1, 101,
485 -1, 1, 44, -1, 1, 45, -1, 64, 61, 44,
486 -1, -1, 62, -1, 63, -1, 62, 46, 63, -1,
487 74, 100, 95, 85, -1, -1, 65, -1, 66, -1,
488 65, 66, -1, 67, -1, 68, -1, 5, -1, 17,
489 -1, 21, -1, 11, -1, 14, -1, 69, -1, 73,
490 -1, 28, 47, 65, 48, 49, -1, 28, 47, 65,
491 49, -1, 22, 37, -1, 24, 37, -1, 10, 37,
492 -1, 22, 37, 87, -1, 24, 37, 87, -1, 10,
493 37, 96, -1, 10, 96, -1, 22, 87, -1, 24,
494 87, -1, 7, -1, 19, -1, 15, -1, 16, -1,
495 20, -1, 25, -1, 13, -1, 9, -1, 26, -1,
496 6, -1, 41, -1, 48, 71, -1, -1, 72, -1,
497 73, -1, 72, 73, -1, 8, -1, 27, -1, 31,
498 -1, 18, -1, 70, 74, -1, 75, -1, 37, -1,
499 75, 47, 78, 49, -1, 75, 47, 1, 49, -1,
500 75, 33, -1, 47, 74, 49, -1, 47, 1, 49,
501 -1, 70, 76, -1, 77, -1, 37, -1, 41, -1,
502 77, 47, 78, 49, -1, 77, 47, 1, 49, -1,
503 77, 33, -1, 47, 76, 49, -1, 47, 1, 49,
504 -1, 79, 36, -1, 79, -1, 80, 46, 36, -1,
505 -1, 80, -1, 81, -1, 80, 46, 81, -1, 65,
506 82, -1, 70, 82, -1, 83, -1, -1, 37, -1,
507 41, -1, 83, 47, 78, 49, -1, 83, 47, 1,
508 49, -1, 83, 33, -1, 47, 82, 49, -1, 47,
509 1, 49, -1, 64, 74, 32, -1, -1, 86, -1,
510 50, 34, -1, 51, 88, 45, -1, 51, 1, 45,
511 -1, -1, 89, -1, 90, -1, 89, 90, -1, 64,
512 91, 44, -1, 1, 44, -1, -1, 92, -1, 93,
513 -1, 92, 46, 93, -1, 76, 95, -1, 37, 94,
514 -1, 94, -1, 52, 34, -1, -1, 95, 31, -1,
515 51, 97, 45, -1, 51, 97, 46, 45, -1, 98,
516 -1, 97, 46, 98, -1, 37, -1, 37, 50, 34,
517 -1, 30, 44, -1, -1, 30, -1, 29, 47, 37,
521 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */
522 static const yytype_uint16 yyrline[] =
524 0, 104, 104, 105, 109, 109, 115, 115, 117, 117,
525 119, 120, 121, 122, 123, 124, 128, 142, 143, 147,
526 155, 168, 174, 175, 179, 180, 184, 190, 194, 195,
527 196, 197, 198, 202, 203, 204, 205, 209, 211, 213,
528 217, 224, 231, 241, 244, 245, 249, 250, 251, 252,
529 253, 254, 255, 256, 257, 258, 259, 263, 268, 269,
530 273, 274, 278, 278, 278, 279, 287, 288, 292, 301,
531 303, 305, 307, 309, 316, 317, 321, 322, 323, 325,
532 327, 329, 331, 336, 337, 338, 342, 343, 347, 348,
533 353, 358, 360, 364, 365, 373, 377, 379, 381, 383,
534 385, 390, 399, 400, 405, 410, 411, 415, 416, 420,
535 421, 425, 427, 432, 433, 437, 438, 442, 443, 444,
536 448, 452, 453, 457, 458, 462, 463, 466, 471, 479,
541 #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
542 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
543 First, the terminals, then, starting at YYNTOKENS, nonterminals. */
544 static const char *const yytname[] =
546 "$end", "error", "$undefined", "ASM_KEYW", "ATTRIBUTE_KEYW",
547 "AUTO_KEYW", "BOOL_KEYW", "CHAR_KEYW", "CONST_KEYW", "DOUBLE_KEYW",
548 "ENUM_KEYW", "EXTERN_KEYW", "EXTENSION_KEYW", "FLOAT_KEYW",
549 "INLINE_KEYW", "INT_KEYW", "LONG_KEYW", "REGISTER_KEYW", "RESTRICT_KEYW",
550 "SHORT_KEYW", "SIGNED_KEYW", "STATIC_KEYW", "STRUCT_KEYW",
551 "TYPEDEF_KEYW", "UNION_KEYW", "UNSIGNED_KEYW", "VOID_KEYW",
552 "VOLATILE_KEYW", "TYPEOF_KEYW", "EXPORT_SYMBOL_KEYW", "ASM_PHRASE",
553 "ATTRIBUTE_PHRASE", "BRACE_PHRASE", "BRACKET_PHRASE",
554 "EXPRESSION_PHRASE", "CHAR", "DOTS", "IDENT", "INT", "REAL", "STRING",
555 "TYPE", "OTHER", "FILENAME", "';'", "'}'", "','", "'('", "'*'", "')'",
556 "'='", "'{'", "':'", "$accept", "declaration_seq", "declaration", "$@1",
557 "declaration1", "$@2", "$@3", "simple_declaration",
558 "init_declarator_list_opt", "init_declarator_list", "init_declarator",
559 "decl_specifier_seq_opt", "decl_specifier_seq", "decl_specifier",
560 "storage_class_specifier", "type_specifier", "simple_type_specifier",
561 "ptr_operator", "cvar_qualifier_seq_opt", "cvar_qualifier_seq",
562 "cvar_qualifier", "declarator", "direct_declarator", "nested_declarator",
563 "direct_nested_declarator", "parameter_declaration_clause",
564 "parameter_declaration_list_opt", "parameter_declaration_list",
565 "parameter_declaration", "m_abstract_declarator",
566 "direct_m_abstract_declarator", "function_definition", "initializer_opt",
567 "initializer", "class_body", "member_specification_opt",
568 "member_specification", "member_declaration",
569 "member_declarator_list_opt", "member_declarator_list",
570 "member_declarator", "member_bitfield_declarator", "attribute_opt",
571 "enum_body", "enumerator_list", "enumerator", "asm_definition",
572 "asm_phrase_opt", "export_definition", 0
577 /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
579 static const yytype_uint16 yytoknum[] =
581 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
582 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
583 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
584 285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
585 295, 296, 297, 298, 59, 125, 44, 40, 42, 41,
590 /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
591 static const yytype_uint8 yyr1[] =
593 0, 53, 54, 54, 56, 55, 58, 57, 59, 57,
594 57, 57, 57, 57, 57, 57, 60, 61, 61, 62,
595 62, 63, 64, 64, 65, 65, 66, 66, 67, 67,
596 67, 67, 67, 68, 68, 68, 68, 68, 68, 68,
597 68, 68, 68, 68, 68, 68, 69, 69, 69, 69,
598 69, 69, 69, 69, 69, 69, 69, 70, 71, 71,
599 72, 72, 73, 73, 73, 73, 74, 74, 75, 75,
600 75, 75, 75, 75, 76, 76, 77, 77, 77, 77,
601 77, 77, 77, 78, 78, 78, 79, 79, 80, 80,
602 81, 82, 82, 83, 83, 83, 83, 83, 83, 83,
603 83, 84, 85, 85, 86, 87, 87, 88, 88, 89,
604 89, 90, 90, 91, 91, 92, 92, 93, 93, 93,
605 94, 95, 95, 96, 96, 97, 97, 98, 98, 99,
609 /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
610 static const yytype_uint8 yyr2[] =
612 0, 2, 1, 2, 0, 2, 0, 4, 0, 3,
613 1, 1, 1, 1, 2, 2, 3, 0, 1, 1,
614 3, 4, 0, 1, 1, 2, 1, 1, 1, 1,
615 1, 1, 1, 1, 1, 5, 4, 2, 2, 2,
616 3, 3, 3, 2, 2, 2, 1, 1, 1, 1,
617 1, 1, 1, 1, 1, 1, 1, 2, 0, 1,
618 1, 2, 1, 1, 1, 1, 2, 1, 1, 4,
619 4, 2, 3, 3, 2, 1, 1, 1, 4, 4,
620 2, 3, 3, 2, 1, 3, 0, 1, 1, 3,
621 2, 2, 1, 0, 1, 1, 4, 4, 2, 3,
622 3, 3, 0, 1, 2, 3, 3, 0, 1, 1,
623 2, 3, 2, 0, 1, 1, 3, 2, 2, 1,
624 2, 0, 2, 3, 4, 1, 3, 1, 3, 2,
628 /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
629 STATE-NUM when YYTABLE doesn't specify something else to do. Zero
630 means the default is an error. */
631 static const yytype_uint8 yydefact[] =
633 4, 4, 2, 0, 1, 3, 0, 28, 55, 46,
634 62, 53, 0, 31, 0, 52, 32, 48, 49, 29,
635 65, 47, 50, 30, 0, 8, 0, 51, 54, 63,
636 0, 0, 0, 64, 56, 5, 10, 17, 23, 24,
637 26, 27, 33, 34, 11, 12, 13, 14, 15, 39,
638 0, 43, 6, 37, 0, 44, 22, 38, 45, 0,
639 0, 129, 68, 0, 58, 0, 18, 19, 0, 130,
640 67, 25, 42, 127, 0, 125, 22, 40, 0, 113,
641 0, 0, 109, 9, 17, 41, 0, 0, 0, 0,
642 57, 59, 60, 16, 0, 66, 131, 101, 121, 71,
643 0, 0, 123, 0, 7, 112, 106, 76, 77, 0,
644 0, 0, 121, 75, 0, 114, 115, 119, 105, 0,
645 110, 130, 0, 36, 0, 73, 72, 61, 20, 102,
646 0, 93, 0, 84, 87, 88, 128, 124, 126, 118,
647 0, 76, 0, 120, 74, 117, 80, 0, 111, 0,
648 35, 132, 122, 0, 21, 103, 70, 94, 56, 0,
649 93, 90, 92, 69, 83, 0, 82, 81, 0, 0,
650 116, 104, 0, 95, 0, 91, 98, 0, 85, 89,
651 79, 78, 100, 99, 0, 0, 97, 96
654 /* YYDEFGOTO[NTERM-NUM]. */
655 static const yytype_int16 yydefgoto[] =
657 -1, 1, 2, 3, 35, 76, 56, 36, 65, 66,
658 67, 79, 38, 39, 40, 41, 42, 68, 90, 91,
659 43, 121, 70, 112, 113, 132, 133, 134, 135, 161,
660 162, 44, 154, 155, 55, 80, 81, 82, 114, 115,
661 116, 117, 129, 51, 74, 75, 45, 98, 46
664 /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
666 #define YYPACT_NINF -135
667 static const yytype_int16 yypact[] =
669 -135, 20, -135, 321, -135, -135, 30, -135, -135, -135,
670 -135, -135, -28, -135, 2, -135, -135, -135, -135, -135,
671 -135, -135, -135, -135, -6, -135, 9, -135, -135, -135,
672 -5, 15, -17, -135, -135, -135, -135, 18, 491, -135,
673 -135, -135, -135, -135, -135, -135, -135, -135, -135, -22,
674 31, -135, -135, 19, 106, -135, 491, 19, -135, 491,
675 50, -135, -135, 11, -3, 51, 57, -135, 18, -14,
676 14, -135, -135, 48, 46, -135, 491, -135, 33, 32,
677 59, 154, -135, -135, 18, -135, 365, 56, 60, 61,
678 -135, -3, -135, -135, 18, -135, -135, -135, -135, -135,
679 202, 74, -135, -23, -135, -135, -135, 77, -135, 16,
680 101, 49, -135, 34, 92, 93, -135, -135, -135, 94,
681 -135, 110, 95, -135, 97, -135, -135, -135, -135, -20,
682 96, 410, 99, 113, 100, -135, -135, -135, -135, -135,
683 103, -135, 107, -135, -135, 111, -135, 239, -135, 32,
684 -135, -135, -135, 123, -135, -135, -135, -135, -135, 3,
685 52, -135, 38, -135, -135, 454, -135, -135, 117, 128,
686 -135, -135, 134, -135, 135, -135, -135, 276, -135, -135,
687 -135, -135, -135, -135, 137, 138, -135, -135
690 /* YYPGOTO[NTERM-NUM]. */
691 static const yytype_int16 yypgoto[] =
693 -135, -135, 187, -135, -135, -135, -135, -50, -135, -135,
694 98, 0, -59, -37, -135, -135, -135, -77, -135, -135,
695 -54, -30, -135, -90, -135, -134, -135, -135, 24, -58,
696 -135, -135, -135, -135, -18, -135, -135, 109, -135, -135,
697 44, 87, 84, 148, -135, 102, -135, -135, -135
700 /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
701 positive, shift that token. If negative, reduce the rule which
702 number is the opposite. If zero, do what YYDEFACT says.
703 If YYTABLE_NINF, syntax error. */
704 #define YYTABLE_NINF -109
705 static const yytype_int16 yytable[] =
707 86, 71, 111, 37, 172, 10, 83, 69, 58, 49,
708 92, 152, 88, 169, 73, 20, 96, 140, 97, 142,
709 4, 144, 137, 50, 29, 52, 104, 61, 33, 50,
710 153, 53, 111, 89, 111, 77, -93, 127, 95, 85,
711 157, 131, 59, 185, 173, 54, 57, 99, 62, 71,
712 159, 64, -93, 141, 160, 62, 84, 108, 63, 64,
713 54, 100, 60, 109, 64, 63, 64, 146, 73, 107,
714 54, 176, 111, 108, 47, 48, 84, 105, 106, 109,
715 64, 147, 160, 160, 110, 177, 141, 87, 131, 157,
716 108, 102, 103, 173, 71, 93, 109, 64, 101, 159,
717 64, 174, 175, 94, 118, 124, 131, 78, 136, 125,
718 126, 7, 8, 9, 10, 11, 12, 13, 131, 15,
719 16, 17, 18, 19, 20, 21, 22, 23, 24, 110,
720 26, 27, 28, 29, 30, 143, 148, 33, 105, 149,
721 96, 151, 152, -22, 150, 156, 165, 34, 163, 164,
722 -22, -107, 166, -22, -22, 119, 167, 171, -22, 7,
723 8, 9, 10, 11, 12, 13, 180, 15, 16, 17,
724 18, 19, 20, 21, 22, 23, 24, 181, 26, 27,
725 28, 29, 30, 182, 183, 33, 186, 187, 5, 179,
726 120, -22, 128, 170, 139, 34, 145, 72, -22, -108,
727 0, -22, -22, 130, 0, 138, -22, 7, 8, 9,
728 10, 11, 12, 13, 0, 15, 16, 17, 18, 19,
729 20, 21, 22, 23, 24, 0, 26, 27, 28, 29,
730 30, 0, 0, 33, 0, 0, 0, 0, -86, 0,
731 168, 0, 0, 34, 7, 8, 9, 10, 11, 12,
732 13, -86, 15, 16, 17, 18, 19, 20, 21, 22,
733 23, 24, 0, 26, 27, 28, 29, 30, 0, 0,
734 33, 0, 0, 0, 0, -86, 0, 184, 0, 0,
735 34, 7, 8, 9, 10, 11, 12, 13, -86, 15,
736 16, 17, 18, 19, 20, 21, 22, 23, 24, 0,
737 26, 27, 28, 29, 30, 0, 0, 33, 0, 0,
738 0, 0, -86, 0, 0, 0, 0, 34, 0, 0,
739 0, 0, 6, 0, 0, -86, 7, 8, 9, 10,
740 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
741 21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
742 31, 32, 33, 0, 0, 0, 0, 0, -22, 0,
743 0, 0, 34, 0, 0, -22, 0, 0, -22, -22,
744 7, 8, 9, 10, 11, 12, 13, 0, 15, 16,
745 17, 18, 19, 20, 21, 22, 23, 24, 0, 26,
746 27, 28, 29, 30, 0, 0, 33, 0, 0, 0,
747 0, 0, 0, 0, 0, 0, 34, 0, 0, 0,
748 0, 0, 0, 122, 123, 7, 8, 9, 10, 11,
749 12, 13, 0, 15, 16, 17, 18, 19, 20, 21,
750 22, 23, 24, 0, 26, 27, 28, 29, 30, 0,
751 0, 33, 0, 0, 0, 0, 0, 157, 0, 0,
752 0, 158, 0, 0, 0, 0, 0, 159, 64, 7,
753 8, 9, 10, 11, 12, 13, 0, 15, 16, 17,
754 18, 19, 20, 21, 22, 23, 24, 0, 26, 27,
755 28, 29, 30, 0, 0, 33, 0, 0, 0, 0,
756 178, 0, 0, 0, 0, 34, 7, 8, 9, 10,
757 11, 12, 13, 0, 15, 16, 17, 18, 19, 20,
758 21, 22, 23, 24, 0, 26, 27, 28, 29, 30,
759 0, 0, 33, 0, 0, 0, 0, 0, 0, 0,
763 static const yytype_int16 yycheck[] =
765 59, 38, 79, 3, 1, 8, 56, 37, 26, 37,
766 64, 31, 1, 147, 37, 18, 30, 1, 32, 109,
767 0, 111, 45, 51, 27, 23, 76, 44, 31, 51,
768 50, 37, 109, 63, 111, 53, 33, 91, 68, 57,
769 37, 100, 47, 177, 41, 51, 37, 33, 37, 86,
770 47, 48, 49, 37, 131, 37, 56, 41, 47, 48,
771 51, 47, 47, 47, 48, 47, 48, 33, 37, 37,
772 51, 33, 149, 41, 44, 45, 76, 44, 45, 47,
773 48, 47, 159, 160, 52, 47, 37, 37, 147, 37,
774 41, 45, 46, 41, 131, 44, 47, 48, 50, 47,
775 48, 159, 160, 46, 45, 49, 165, 1, 34, 49,
776 49, 5, 6, 7, 8, 9, 10, 11, 177, 13,
777 14, 15, 16, 17, 18, 19, 20, 21, 22, 52,
778 24, 25, 26, 27, 28, 34, 44, 31, 44, 46,
779 30, 44, 31, 37, 49, 49, 46, 41, 49, 36,
780 44, 45, 49, 47, 48, 1, 49, 34, 52, 5,
781 6, 7, 8, 9, 10, 11, 49, 13, 14, 15,
782 16, 17, 18, 19, 20, 21, 22, 49, 24, 25,
783 26, 27, 28, 49, 49, 31, 49, 49, 1, 165,
784 81, 37, 94, 149, 107, 41, 112, 49, 44, 45,
785 -1, 47, 48, 1, -1, 103, 52, 5, 6, 7,
786 8, 9, 10, 11, -1, 13, 14, 15, 16, 17,
787 18, 19, 20, 21, 22, -1, 24, 25, 26, 27,
788 28, -1, -1, 31, -1, -1, -1, -1, 36, -1,
789 1, -1, -1, 41, 5, 6, 7, 8, 9, 10,
790 11, 49, 13, 14, 15, 16, 17, 18, 19, 20,
791 21, 22, -1, 24, 25, 26, 27, 28, -1, -1,
792 31, -1, -1, -1, -1, 36, -1, 1, -1, -1,
793 41, 5, 6, 7, 8, 9, 10, 11, 49, 13,
794 14, 15, 16, 17, 18, 19, 20, 21, 22, -1,
795 24, 25, 26, 27, 28, -1, -1, 31, -1, -1,
796 -1, -1, 36, -1, -1, -1, -1, 41, -1, -1,
797 -1, -1, 1, -1, -1, 49, 5, 6, 7, 8,
798 9, 10, 11, 12, 13, 14, 15, 16, 17, 18,
799 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
800 29, 30, 31, -1, -1, -1, -1, -1, 37, -1,
801 -1, -1, 41, -1, -1, 44, -1, -1, 47, 48,
802 5, 6, 7, 8, 9, 10, 11, -1, 13, 14,
803 15, 16, 17, 18, 19, 20, 21, 22, -1, 24,
804 25, 26, 27, 28, -1, -1, 31, -1, -1, -1,
805 -1, -1, -1, -1, -1, -1, 41, -1, -1, -1,
806 -1, -1, -1, 48, 49, 5, 6, 7, 8, 9,
807 10, 11, -1, 13, 14, 15, 16, 17, 18, 19,
808 20, 21, 22, -1, 24, 25, 26, 27, 28, -1,
809 -1, 31, -1, -1, -1, -1, -1, 37, -1, -1,
810 -1, 41, -1, -1, -1, -1, -1, 47, 48, 5,
811 6, 7, 8, 9, 10, 11, -1, 13, 14, 15,
812 16, 17, 18, 19, 20, 21, 22, -1, 24, 25,
813 26, 27, 28, -1, -1, 31, -1, -1, -1, -1,
814 36, -1, -1, -1, -1, 41, 5, 6, 7, 8,
815 9, 10, 11, -1, 13, 14, 15, 16, 17, 18,
816 19, 20, 21, 22, -1, 24, 25, 26, 27, 28,
817 -1, -1, 31, -1, -1, -1, -1, -1, -1, -1,
821 /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
822 symbol of state STATE-NUM. */
823 static const yytype_uint8 yystos[] =
825 0, 54, 55, 56, 0, 55, 1, 5, 6, 7,
826 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
827 18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
828 28, 29, 30, 31, 41, 57, 60, 64, 65, 66,
829 67, 68, 69, 73, 84, 99, 101, 44, 45, 37,
830 51, 96, 23, 37, 51, 87, 59, 37, 87, 47,
831 47, 44, 37, 47, 48, 61, 62, 63, 70, 74,
832 75, 66, 96, 37, 97, 98, 58, 87, 1, 64,
833 88, 89, 90, 60, 64, 87, 65, 37, 1, 74,
834 71, 72, 73, 44, 46, 74, 30, 32, 100, 33,
835 47, 50, 45, 46, 60, 44, 45, 37, 41, 47,
836 52, 70, 76, 77, 91, 92, 93, 94, 45, 1,
837 90, 74, 48, 49, 49, 49, 49, 73, 63, 95,
838 1, 65, 78, 79, 80, 81, 34, 45, 98, 94,
839 1, 37, 76, 34, 76, 95, 33, 47, 44, 46,
840 49, 44, 31, 50, 85, 86, 49, 37, 41, 47,
841 70, 82, 83, 49, 36, 46, 49, 49, 1, 78,
842 93, 34, 1, 41, 82, 82, 33, 47, 36, 81,
843 49, 49, 49, 49, 1, 78, 49, 49
846 #define yyerrok (yyerrstatus = 0)
847 #define yyclearin (yychar = YYEMPTY)
851 #define YYACCEPT goto yyacceptlab
852 #define YYABORT goto yyabortlab
853 #define YYERROR goto yyerrorlab
856 /* Like YYERROR except do call yyerror. This remains here temporarily
857 to ease the transition to the new meaning of YYERROR, for GCC.
858 Once GCC version 2 has supplanted version 1, this can go. */
860 #define YYFAIL goto yyerrlab
862 #define YYRECOVERING() (!!yyerrstatus)
864 #define YYBACKUP(Token, Value) \
866 if (yychar == YYEMPTY && yylen == 1) \
870 yytoken = YYTRANSLATE (yychar); \
876 yyerror (YY_("syntax error: cannot back up")); \
883 #define YYERRCODE 256
886 /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
887 If N is 0, then set CURRENT to the empty location which ends
888 the previous symbol: RHS[0] (always defined). */
890 #define YYRHSLOC(Rhs, K) ((Rhs)[K])
891 #ifndef YYLLOC_DEFAULT
892 # define YYLLOC_DEFAULT(Current, Rhs, N) \
896 (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
897 (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
898 (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
899 (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
903 (Current).first_line = (Current).last_line = \
904 YYRHSLOC (Rhs, 0).last_line; \
905 (Current).first_column = (Current).last_column = \
906 YYRHSLOC (Rhs, 0).last_column; \
912 /* YY_LOCATION_PRINT -- Print the location on the stream.
913 This macro was not mandated originally: define only if we know
914 we won't break user code: when these are the locations we know. */
916 #ifndef YY_LOCATION_PRINT
917 # if YYLTYPE_IS_TRIVIAL
918 # define YY_LOCATION_PRINT(File, Loc) \
919 fprintf (File, "%d.%d-%d.%d", \
920 (Loc).first_line, (Loc).first_column, \
921 (Loc).last_line, (Loc).last_column)
923 # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
928 /* YYLEX -- calling `yylex' with the right arguments. */
931 # define YYLEX yylex (YYLEX_PARAM)
933 # define YYLEX yylex ()
936 /* Enable debugging if requested. */
940 # include <stdio.h> /* INFRINGES ON USER NAME SPACE */
941 # define YYFPRINTF fprintf
944 # define YYDPRINTF(Args) \
950 # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
954 YYFPRINTF (stderr, "%s ", Title); \
955 yy_symbol_print (stderr, \
957 YYFPRINTF (stderr, "\n"); \
962 /*--------------------------------.
963 | Print this symbol on YYOUTPUT. |
964 `--------------------------------*/
967 #if (defined __STDC__ || defined __C99__FUNC__ \
968 || defined __cplusplus || defined _MSC_VER)
970 yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
973 yy_symbol_value_print (yyoutput, yytype, yyvaluep)
976 YYSTYPE const * const yyvaluep;
982 if (yytype < YYNTOKENS)
983 YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
995 /*--------------------------------.
996 | Print this symbol on YYOUTPUT. |
997 `--------------------------------*/
999 #if (defined __STDC__ || defined __C99__FUNC__ \
1000 || defined __cplusplus || defined _MSC_VER)
1002 yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
1005 yy_symbol_print (yyoutput, yytype, yyvaluep)
1008 YYSTYPE const * const yyvaluep;
1011 if (yytype < YYNTOKENS)
1012 YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
1014 YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
1016 yy_symbol_value_print (yyoutput, yytype, yyvaluep);
1017 YYFPRINTF (yyoutput, ")");
1020 /*------------------------------------------------------------------.
1021 | yy_stack_print -- Print the state stack from its BOTTOM up to its |
1023 `------------------------------------------------------------------*/
1025 #if (defined __STDC__ || defined __C99__FUNC__ \
1026 || defined __cplusplus || defined _MSC_VER)
1028 yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
1031 yy_stack_print (yybottom, yytop)
1032 yytype_int16 *yybottom;
1033 yytype_int16 *yytop;
1036 YYFPRINTF (stderr, "Stack now");
1037 for (; yybottom <= yytop; yybottom++)
1039 int yybot = *yybottom;
1040 YYFPRINTF (stderr, " %d", yybot);
1042 YYFPRINTF (stderr, "\n");
1045 # define YY_STACK_PRINT(Bottom, Top) \
1048 yy_stack_print ((Bottom), (Top)); \
1052 /*------------------------------------------------.
1053 | Report that the YYRULE is going to be reduced. |
1054 `------------------------------------------------*/
1056 #if (defined __STDC__ || defined __C99__FUNC__ \
1057 || defined __cplusplus || defined _MSC_VER)
1059 yy_reduce_print (YYSTYPE *yyvsp, int yyrule)
1062 yy_reduce_print (yyvsp, yyrule)
1067 int yynrhs = yyr2[yyrule];
1069 unsigned long int yylno = yyrline[yyrule];
1070 YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
1072 /* The symbols being reduced. */
1073 for (yyi = 0; yyi < yynrhs; yyi++)
1075 YYFPRINTF (stderr, " $%d = ", yyi + 1);
1076 yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
1077 &(yyvsp[(yyi + 1) - (yynrhs)])
1079 YYFPRINTF (stderr, "\n");
1083 # define YY_REDUCE_PRINT(Rule) \
1086 yy_reduce_print (yyvsp, Rule); \
1089 /* Nonzero means print parse trace. It is left uninitialized so that
1090 multiple parsers can coexist. */
1092 #else /* !YYDEBUG */
1093 # define YYDPRINTF(Args)
1094 # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
1095 # define YY_STACK_PRINT(Bottom, Top)
1096 # define YY_REDUCE_PRINT(Rule)
1097 #endif /* !YYDEBUG */
1100 /* YYINITDEPTH -- initial size of the parser's stacks. */
1102 # define YYINITDEPTH 200
1105 /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
1106 if the built-in stack extension method is used).
1108 Do not make this value too large; the results are undefined if
1109 YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
1110 evaluated with infinite-precision integer arithmetic. */
1113 # define YYMAXDEPTH 10000
1121 # if defined __GLIBC__ && defined _STRING_H
1122 # define yystrlen strlen
1124 /* Return the length of YYSTR. */
1125 #if (defined __STDC__ || defined __C99__FUNC__ \
1126 || defined __cplusplus || defined _MSC_VER)
1128 yystrlen (const char *yystr)
1136 for (yylen = 0; yystr[yylen]; yylen++)
1144 # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
1145 # define yystpcpy stpcpy
1147 /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
1149 #if (defined __STDC__ || defined __C99__FUNC__ \
1150 || defined __cplusplus || defined _MSC_VER)
1152 yystpcpy (char *yydest, const char *yysrc)
1155 yystpcpy (yydest, yysrc)
1161 const char *yys = yysrc;
1163 while ((*yyd++ = *yys++) != '\0')
1172 /* Copy to YYRES the contents of YYSTR after stripping away unnecessary
1173 quotes and backslashes, so that it's suitable for yyerror. The
1174 heuristic is that double-quoting is unnecessary unless the string
1175 contains an apostrophe, a comma, or backslash (other than
1176 backslash-backslash). YYSTR is taken from yytname. If YYRES is
1177 null, do not copy; instead, return the length of what the result
1180 yytnamerr (char *yyres, const char *yystr)
1185 char const *yyp = yystr;
1192 goto do_not_strip_quotes;
1196 goto do_not_strip_quotes;
1209 do_not_strip_quotes: ;
1213 return yystrlen (yystr);
1215 return yystpcpy (yyres, yystr) - yyres;
1219 /* Copy into YYRESULT an error message about the unexpected token
1220 YYCHAR while in state YYSTATE. Return the number of bytes copied,
1221 including the terminating null byte. If YYRESULT is null, do not
1222 copy anything; just return the number of bytes that would be
1223 copied. As a special case, return 0 if an ordinary "syntax error"
1224 message will do. Return YYSIZE_MAXIMUM if overflow occurs during
1225 size calculation. */
1227 yysyntax_error (char *yyresult, int yystate, int yychar)
1229 int yyn = yypact[yystate];
1231 if (! (YYPACT_NINF < yyn && yyn <= YYLAST))
1235 int yytype = YYTRANSLATE (yychar);
1236 YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
1237 YYSIZE_T yysize = yysize0;
1239 int yysize_overflow = 0;
1240 enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
1241 char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
1245 /* This is so xgettext sees the translatable formats that are
1246 constructed on the fly. */
1247 YY_("syntax error, unexpected %s");
1248 YY_("syntax error, unexpected %s, expecting %s");
1249 YY_("syntax error, unexpected %s, expecting %s or %s");
1250 YY_("syntax error, unexpected %s, expecting %s or %s or %s");
1251 YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
1255 static char const yyunexpected[] = "syntax error, unexpected %s";
1256 static char const yyexpecting[] = ", expecting %s";
1257 static char const yyor[] = " or %s";
1258 char yyformat[sizeof yyunexpected
1259 + sizeof yyexpecting - 1
1260 + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
1261 * (sizeof yyor - 1))];
1262 char const *yyprefix = yyexpecting;
1264 /* Start YYX at -YYN if negative to avoid negative indexes in
1266 int yyxbegin = yyn < 0 ? -yyn : 0;
1268 /* Stay within bounds of both yycheck and yytname. */
1269 int yychecklim = YYLAST - yyn + 1;
1270 int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
1273 yyarg[0] = yytname[yytype];
1274 yyfmt = yystpcpy (yyformat, yyunexpected);
1276 for (yyx = yyxbegin; yyx < yyxend; ++yyx)
1277 if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
1279 if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
1283 yyformat[sizeof yyunexpected - 1] = '\0';
1286 yyarg[yycount++] = yytname[yyx];
1287 yysize1 = yysize + yytnamerr (0, yytname[yyx]);
1288 yysize_overflow |= (yysize1 < yysize);
1290 yyfmt = yystpcpy (yyfmt, yyprefix);
1294 yyf = YY_(yyformat);
1295 yysize1 = yysize + yystrlen (yyf);
1296 yysize_overflow |= (yysize1 < yysize);
1299 if (yysize_overflow)
1300 return YYSIZE_MAXIMUM;
1304 /* Avoid sprintf, as that infringes on the user's name space.
1305 Don't have undefined behavior even if the translation
1306 produced a string with the wrong number of "%s"s. */
1307 char *yyp = yyresult;
1309 while ((*yyp = *yyf) != '\0')
1311 if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
1313 yyp += yytnamerr (yyp, yyarg[yyi++]);
1326 #endif /* YYERROR_VERBOSE */
1329 /*-----------------------------------------------.
1330 | Release the memory associated to this symbol. |
1331 `-----------------------------------------------*/
1334 #if (defined __STDC__ || defined __C99__FUNC__ \
1335 || defined __cplusplus || defined _MSC_VER)
1337 yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
1340 yydestruct (yymsg, yytype, yyvaluep)
1350 YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
1360 /* Prevent warnings from -Wmissing-prototypes. */
1361 #ifdef YYPARSE_PARAM
1362 #if defined __STDC__ || defined __cplusplus
1363 int yyparse (void *YYPARSE_PARAM);
1367 #else /* ! YYPARSE_PARAM */
1368 #if defined __STDC__ || defined __cplusplus
1373 #endif /* ! YYPARSE_PARAM */
1376 /* The lookahead symbol. */
1379 /* The semantic value of the lookahead symbol. */
1382 /* Number of syntax errors so far. */
1387 /*-------------------------.
1388 | yyparse or yypush_parse. |
1389 `-------------------------*/
1391 #ifdef YYPARSE_PARAM
1392 #if (defined __STDC__ || defined __C99__FUNC__ \
1393 || defined __cplusplus || defined _MSC_VER)
1395 yyparse (void *YYPARSE_PARAM)
1398 yyparse (YYPARSE_PARAM)
1399 void *YYPARSE_PARAM;
1401 #else /* ! YYPARSE_PARAM */
1402 #if (defined __STDC__ || defined __C99__FUNC__ \
1403 || defined __cplusplus || defined _MSC_VER)
1416 /* Number of tokens to shift before error messages enabled. */
1419 /* The stacks and their tools:
1420 `yyss': related to states.
1421 `yyvs': related to semantic values.
1423 Refer to the stacks thru separate pointers, to allow yyoverflow
1424 to reallocate them elsewhere. */
1426 /* The state stack. */
1427 yytype_int16 yyssa[YYINITDEPTH];
1429 yytype_int16 *yyssp;
1431 /* The semantic value stack. */
1432 YYSTYPE yyvsa[YYINITDEPTH];
1436 YYSIZE_T yystacksize;
1440 /* Lookahead token as an internal (translated) token number. */
1442 /* The variables used to return semantic value and location from the
1447 /* Buffer for error messages, and its allocated size. */
1449 char *yymsg = yymsgbuf;
1450 YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
1453 #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
1455 /* The number of symbols on the RHS of the reduced rule.
1456 Keep to zero when no symbol should be popped. */
1462 yystacksize = YYINITDEPTH;
1464 YYDPRINTF ((stderr, "Starting parse\n"));
1469 yychar = YYEMPTY; /* Cause a token to be read. */
1471 /* Initialize stack pointers.
1472 Waste one element of value and location stack
1473 so that they stay on the same level as the state stack.
1474 The wasted elements are never initialized. */
1480 /*------------------------------------------------------------.
1481 | yynewstate -- Push a new state, which is found in yystate. |
1482 `------------------------------------------------------------*/
1484 /* In all cases, when you get here, the value and location stacks
1485 have just been pushed. So pushing a state here evens the stacks. */
1491 if (yyss + yystacksize - 1 <= yyssp)
1493 /* Get the current used size of the three stacks, in elements. */
1494 YYSIZE_T yysize = yyssp - yyss + 1;
1498 /* Give user a chance to reallocate the stack. Use copies of
1499 these so that the &'s don't force the real ones into
1501 YYSTYPE *yyvs1 = yyvs;
1502 yytype_int16 *yyss1 = yyss;
1504 /* Each stack pointer address is followed by the size of the
1505 data in use in that stack, in bytes. This used to be a
1506 conditional around just the two extra args, but that might
1507 be undefined if yyoverflow is a macro. */
1508 yyoverflow (YY_("memory exhausted"),
1509 &yyss1, yysize * sizeof (*yyssp),
1510 &yyvs1, yysize * sizeof (*yyvsp),
1516 #else /* no yyoverflow */
1517 # ifndef YYSTACK_RELOCATE
1518 goto yyexhaustedlab;
1520 /* Extend the stack our own way. */
1521 if (YYMAXDEPTH <= yystacksize)
1522 goto yyexhaustedlab;
1524 if (YYMAXDEPTH < yystacksize)
1525 yystacksize = YYMAXDEPTH;
1528 yytype_int16 *yyss1 = yyss;
1529 union yyalloc *yyptr =
1530 (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
1532 goto yyexhaustedlab;
1533 YYSTACK_RELOCATE (yyss_alloc, yyss);
1534 YYSTACK_RELOCATE (yyvs_alloc, yyvs);
1535 # undef YYSTACK_RELOCATE
1537 YYSTACK_FREE (yyss1);
1540 #endif /* no yyoverflow */
1542 yyssp = yyss + yysize - 1;
1543 yyvsp = yyvs + yysize - 1;
1545 YYDPRINTF ((stderr, "Stack size increased to %lu\n",
1546 (unsigned long int) yystacksize));
1548 if (yyss + yystacksize - 1 <= yyssp)
1552 YYDPRINTF ((stderr, "Entering state %d\n", yystate));
1554 if (yystate == YYFINAL)
1564 /* Do appropriate processing given the current state. Read a
1565 lookahead token if we need one and don't already have one. */
1567 /* First try to decide what to do without reference to lookahead token. */
1568 yyn = yypact[yystate];
1569 if (yyn == YYPACT_NINF)
1572 /* Not known => get a lookahead token if don't already have one. */
1574 /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
1575 if (yychar == YYEMPTY)
1577 YYDPRINTF ((stderr, "Reading a token: "));
1581 if (yychar <= YYEOF)
1583 yychar = yytoken = YYEOF;
1584 YYDPRINTF ((stderr, "Now at end of input.\n"));
1588 yytoken = YYTRANSLATE (yychar);
1589 YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
1592 /* If the proper action on seeing token YYTOKEN is to reduce or to
1593 detect an error, take that action. */
1595 if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
1600 if (yyn == 0 || yyn == YYTABLE_NINF)
1606 /* Count tokens shifted since error; after three, turn off error
1611 /* Shift the lookahead token. */
1612 YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
1614 /* Discard the shifted token. */
1623 /*-----------------------------------------------------------.
1624 | yydefault -- do the default action for the current state. |
1625 `-----------------------------------------------------------*/
1627 yyn = yydefact[yystate];
1633 /*-----------------------------.
1634 | yyreduce -- Do a reduction. |
1635 `-----------------------------*/
1637 /* yyn is the number of a rule to reduce with. */
1640 /* If YYLEN is nonzero, implement the default value of the action:
1643 Otherwise, the following line sets YYVAL to garbage.
1644 This behavior is undocumented and Bison
1645 users should not rely upon it. Assigning to YYVAL
1646 unconditionally makes the parser a bit smaller, and it avoids a
1647 GCC warning that YYVAL may be used uninitialized. */
1648 yyval = yyvsp[1-yylen];
1651 YY_REDUCE_PRINT (yyn);
1656 /* Line 1455 of yacc.c */
1657 #line 109 "scripts/genksyms/parse.y"
1658 { is_typedef = 0; is_extern = 0; current_name = NULL; decl_spec = NULL; ;}
1663 /* Line 1455 of yacc.c */
1664 #line 111 "scripts/genksyms/parse.y"
1665 { free_list(*(yyvsp[(2) - (2)]), NULL); *(yyvsp[(2) - (2)]) = NULL; ;}
1670 /* Line 1455 of yacc.c */
1671 #line 115 "scripts/genksyms/parse.y"
1672 { is_typedef = 1; ;}
1677 /* Line 1455 of yacc.c */
1678 #line 116 "scripts/genksyms/parse.y"
1679 { (yyval) = (yyvsp[(4) - (4)]); ;}
1684 /* Line 1455 of yacc.c */
1685 #line 117 "scripts/genksyms/parse.y"
1686 { is_typedef = 1; ;}
1691 /* Line 1455 of yacc.c */
1692 #line 118 "scripts/genksyms/parse.y"
1693 { (yyval) = (yyvsp[(3) - (3)]); ;}
1698 /* Line 1455 of yacc.c */
1699 #line 123 "scripts/genksyms/parse.y"
1700 { (yyval) = (yyvsp[(2) - (2)]); ;}
1705 /* Line 1455 of yacc.c */
1706 #line 124 "scripts/genksyms/parse.y"
1707 { (yyval) = (yyvsp[(2) - (2)]); ;}
1712 /* Line 1455 of yacc.c */
1713 #line 129 "scripts/genksyms/parse.y"
1714 { if (current_name) {
1715 struct string_list *decl = (*(yyvsp[(3) - (3)]))->next;
1716 (*(yyvsp[(3) - (3)]))->next = NULL;
1717 add_symbol(current_name,
1718 is_typedef ? SYM_TYPEDEF : SYM_NORMAL,
1720 current_name = NULL;
1722 (yyval) = (yyvsp[(3) - (3)]);
1728 /* Line 1455 of yacc.c */
1729 #line 142 "scripts/genksyms/parse.y"
1730 { (yyval) = NULL; ;}
1735 /* Line 1455 of yacc.c */
1736 #line 148 "scripts/genksyms/parse.y"
1737 { struct string_list *decl = *(yyvsp[(1) - (1)]);
1738 *(yyvsp[(1) - (1)]) = NULL;
1739 add_symbol(current_name,
1740 is_typedef ? SYM_TYPEDEF : SYM_NORMAL, decl, is_extern);
1741 current_name = NULL;
1742 (yyval) = (yyvsp[(1) - (1)]);
1748 /* Line 1455 of yacc.c */
1749 #line 156 "scripts/genksyms/parse.y"
1750 { struct string_list *decl = *(yyvsp[(3) - (3)]);
1751 *(yyvsp[(3) - (3)]) = NULL;
1752 free_list(*(yyvsp[(2) - (3)]), NULL);
1753 *(yyvsp[(2) - (3)]) = decl_spec;
1754 add_symbol(current_name,
1755 is_typedef ? SYM_TYPEDEF : SYM_NORMAL, decl, is_extern);
1756 current_name = NULL;
1757 (yyval) = (yyvsp[(3) - (3)]);
1763 /* Line 1455 of yacc.c */
1764 #line 169 "scripts/genksyms/parse.y"
1765 { (yyval) = (yyvsp[(4) - (4)]) ? (yyvsp[(4) - (4)]) : (yyvsp[(3) - (4)]) ? (yyvsp[(3) - (4)]) : (yyvsp[(2) - (4)]) ? (yyvsp[(2) - (4)]) : (yyvsp[(1) - (4)]); ;}
1770 /* Line 1455 of yacc.c */
1771 #line 174 "scripts/genksyms/parse.y"
1772 { decl_spec = NULL; ;}
1777 /* Line 1455 of yacc.c */
1778 #line 179 "scripts/genksyms/parse.y"
1779 { decl_spec = *(yyvsp[(1) - (1)]); ;}
1784 /* Line 1455 of yacc.c */
1785 #line 180 "scripts/genksyms/parse.y"
1786 { decl_spec = *(yyvsp[(2) - (2)]); ;}
1791 /* Line 1455 of yacc.c */
1792 #line 185 "scripts/genksyms/parse.y"
1793 { /* Version 2 checksumming ignores storage class, as that
1794 is really irrelevant to the linkage. */
1795 remove_node((yyvsp[(1) - (1)]));
1796 (yyval) = (yyvsp[(1) - (1)]);
1802 /* Line 1455 of yacc.c */
1803 #line 197 "scripts/genksyms/parse.y"
1804 { is_extern = 1; (yyval) = (yyvsp[(1) - (1)]); ;}
1809 /* Line 1455 of yacc.c */
1810 #line 198 "scripts/genksyms/parse.y"
1811 { is_extern = 0; (yyval) = (yyvsp[(1) - (1)]); ;}
1816 /* Line 1455 of yacc.c */
1817 #line 210 "scripts/genksyms/parse.y"
1818 { remove_node((yyvsp[(1) - (2)])); (*(yyvsp[(2) - (2)]))->tag = SYM_STRUCT; (yyval) = (yyvsp[(2) - (2)]); ;}
1823 /* Line 1455 of yacc.c */
1824 #line 212 "scripts/genksyms/parse.y"
1825 { remove_node((yyvsp[(1) - (2)])); (*(yyvsp[(2) - (2)]))->tag = SYM_UNION; (yyval) = (yyvsp[(2) - (2)]); ;}
1830 /* Line 1455 of yacc.c */
1831 #line 214 "scripts/genksyms/parse.y"
1832 { remove_node((yyvsp[(1) - (2)])); (*(yyvsp[(2) - (2)]))->tag = SYM_ENUM; (yyval) = (yyvsp[(2) - (2)]); ;}
1837 /* Line 1455 of yacc.c */
1838 #line 218 "scripts/genksyms/parse.y"
1839 { struct string_list *s = *(yyvsp[(3) - (3)]), *i = *(yyvsp[(2) - (3)]), *r;
1840 r = copy_node(i); r->tag = SYM_STRUCT;
1841 r->next = (*(yyvsp[(1) - (3)]))->next; *(yyvsp[(3) - (3)]) = r; (*(yyvsp[(1) - (3)]))->next = NULL;
1842 add_symbol(i->string, SYM_STRUCT, s, is_extern);
1843 (yyval) = (yyvsp[(3) - (3)]);
1849 /* Line 1455 of yacc.c */
1850 #line 225 "scripts/genksyms/parse.y"
1851 { struct string_list *s = *(yyvsp[(3) - (3)]), *i = *(yyvsp[(2) - (3)]), *r;
1852 r = copy_node(i); r->tag = SYM_UNION;
1853 r->next = (*(yyvsp[(1) - (3)]))->next; *(yyvsp[(3) - (3)]) = r; (*(yyvsp[(1) - (3)]))->next = NULL;
1854 add_symbol(i->string, SYM_UNION, s, is_extern);
1855 (yyval) = (yyvsp[(3) - (3)]);
1861 /* Line 1455 of yacc.c */
1862 #line 232 "scripts/genksyms/parse.y"
1863 { struct string_list *s = *(yyvsp[(3) - (3)]), *i = *(yyvsp[(2) - (3)]), *r;
1864 r = copy_node(i); r->tag = SYM_ENUM;
1865 r->next = (*(yyvsp[(1) - (3)]))->next; *(yyvsp[(3) - (3)]) = r; (*(yyvsp[(1) - (3)]))->next = NULL;
1866 add_symbol(i->string, SYM_ENUM, s, is_extern);
1867 (yyval) = (yyvsp[(3) - (3)]);
1873 /* Line 1455 of yacc.c */
1874 #line 242 "scripts/genksyms/parse.y"
1875 { add_symbol(NULL, SYM_ENUM, NULL, 0); (yyval) = (yyvsp[(2) - (2)]); ;}
1880 /* Line 1455 of yacc.c */
1881 #line 244 "scripts/genksyms/parse.y"
1882 { (yyval) = (yyvsp[(2) - (2)]); ;}
1887 /* Line 1455 of yacc.c */
1888 #line 245 "scripts/genksyms/parse.y"
1889 { (yyval) = (yyvsp[(2) - (2)]); ;}
1894 /* Line 1455 of yacc.c */
1895 #line 259 "scripts/genksyms/parse.y"
1896 { (*(yyvsp[(1) - (1)]))->tag = SYM_TYPEDEF; (yyval) = (yyvsp[(1) - (1)]); ;}
1901 /* Line 1455 of yacc.c */
1902 #line 264 "scripts/genksyms/parse.y"
1903 { (yyval) = (yyvsp[(2) - (2)]) ? (yyvsp[(2) - (2)]) : (yyvsp[(1) - (2)]); ;}
1908 /* Line 1455 of yacc.c */
1909 #line 268 "scripts/genksyms/parse.y"
1910 { (yyval) = NULL; ;}
1915 /* Line 1455 of yacc.c */
1916 #line 274 "scripts/genksyms/parse.y"
1917 { (yyval) = (yyvsp[(2) - (2)]); ;}
1922 /* Line 1455 of yacc.c */
1923 #line 280 "scripts/genksyms/parse.y"
1924 { /* restrict has no effect in prototypes so ignore it */
1925 remove_node((yyvsp[(1) - (1)]));
1926 (yyval) = (yyvsp[(1) - (1)]);
1932 /* Line 1455 of yacc.c */
1933 #line 287 "scripts/genksyms/parse.y"
1934 { (yyval) = (yyvsp[(2) - (2)]); ;}
1939 /* Line 1455 of yacc.c */
1940 #line 293 "scripts/genksyms/parse.y"
1941 { if (current_name != NULL) {
1942 error_with_pos("unexpected second declaration name");
1945 current_name = (*(yyvsp[(1) - (1)]))->string;
1946 (yyval) = (yyvsp[(1) - (1)]);
1953 /* Line 1455 of yacc.c */
1954 #line 302 "scripts/genksyms/parse.y"
1955 { (yyval) = (yyvsp[(4) - (4)]); ;}
1960 /* Line 1455 of yacc.c */
1961 #line 304 "scripts/genksyms/parse.y"
1962 { (yyval) = (yyvsp[(4) - (4)]); ;}
1967 /* Line 1455 of yacc.c */
1968 #line 306 "scripts/genksyms/parse.y"
1969 { (yyval) = (yyvsp[(2) - (2)]); ;}
1974 /* Line 1455 of yacc.c */
1975 #line 308 "scripts/genksyms/parse.y"
1976 { (yyval) = (yyvsp[(3) - (3)]); ;}
1981 /* Line 1455 of yacc.c */
1982 #line 310 "scripts/genksyms/parse.y"
1983 { (yyval) = (yyvsp[(3) - (3)]); ;}
1988 /* Line 1455 of yacc.c */
1989 #line 316 "scripts/genksyms/parse.y"
1990 { (yyval) = (yyvsp[(2) - (2)]); ;}
1995 /* Line 1455 of yacc.c */
1996 #line 324 "scripts/genksyms/parse.y"
1997 { (yyval) = (yyvsp[(4) - (4)]); ;}
2002 /* Line 1455 of yacc.c */
2003 #line 326 "scripts/genksyms/parse.y"
2004 { (yyval) = (yyvsp[(4) - (4)]); ;}
2009 /* Line 1455 of yacc.c */
2010 #line 328 "scripts/genksyms/parse.y"
2011 { (yyval) = (yyvsp[(2) - (2)]); ;}
2016 /* Line 1455 of yacc.c */
2017 #line 330 "scripts/genksyms/parse.y"
2018 { (yyval) = (yyvsp[(3) - (3)]); ;}
2023 /* Line 1455 of yacc.c */
2024 #line 332 "scripts/genksyms/parse.y"
2025 { (yyval) = (yyvsp[(3) - (3)]); ;}
2030 /* Line 1455 of yacc.c */
2031 #line 336 "scripts/genksyms/parse.y"
2032 { (yyval) = (yyvsp[(2) - (2)]); ;}
2037 /* Line 1455 of yacc.c */
2038 #line 338 "scripts/genksyms/parse.y"
2039 { (yyval) = (yyvsp[(3) - (3)]); ;}
2044 /* Line 1455 of yacc.c */
2045 #line 342 "scripts/genksyms/parse.y"
2046 { (yyval) = NULL; ;}
2051 /* Line 1455 of yacc.c */
2052 #line 349 "scripts/genksyms/parse.y"
2053 { (yyval) = (yyvsp[(3) - (3)]); ;}
2058 /* Line 1455 of yacc.c */
2059 #line 354 "scripts/genksyms/parse.y"
2060 { (yyval) = (yyvsp[(2) - (2)]) ? (yyvsp[(2) - (2)]) : (yyvsp[(1) - (2)]); ;}
2065 /* Line 1455 of yacc.c */
2066 #line 359 "scripts/genksyms/parse.y"
2067 { (yyval) = (yyvsp[(2) - (2)]) ? (yyvsp[(2) - (2)]) : (yyvsp[(1) - (2)]); ;}
2072 /* Line 1455 of yacc.c */
2073 #line 364 "scripts/genksyms/parse.y"
2074 { (yyval) = NULL; ;}
2079 /* Line 1455 of yacc.c */
2080 #line 366 "scripts/genksyms/parse.y"
2081 { /* For version 2 checksums, we don't want to remember
2082 private parameter names. */
2083 remove_node((yyvsp[(1) - (1)]));
2084 (yyval) = (yyvsp[(1) - (1)]);
2090 /* Line 1455 of yacc.c */
2091 #line 374 "scripts/genksyms/parse.y"
2092 { remove_node((yyvsp[(1) - (1)]));
2093 (yyval) = (yyvsp[(1) - (1)]);
2099 /* Line 1455 of yacc.c */
2100 #line 378 "scripts/genksyms/parse.y"
2101 { (yyval) = (yyvsp[(4) - (4)]); ;}
2106 /* Line 1455 of yacc.c */
2107 #line 380 "scripts/genksyms/parse.y"
2108 { (yyval) = (yyvsp[(4) - (4)]); ;}
2113 /* Line 1455 of yacc.c */
2114 #line 382 "scripts/genksyms/parse.y"
2115 { (yyval) = (yyvsp[(2) - (2)]); ;}
2120 /* Line 1455 of yacc.c */
2121 #line 384 "scripts/genksyms/parse.y"
2122 { (yyval) = (yyvsp[(3) - (3)]); ;}
2127 /* Line 1455 of yacc.c */
2128 #line 386 "scripts/genksyms/parse.y"
2129 { (yyval) = (yyvsp[(3) - (3)]); ;}
2134 /* Line 1455 of yacc.c */
2135 #line 391 "scripts/genksyms/parse.y"
2136 { struct string_list *decl = *(yyvsp[(2) - (3)]);
2137 *(yyvsp[(2) - (3)]) = NULL;
2138 add_symbol(current_name, SYM_NORMAL, decl, is_extern);
2139 (yyval) = (yyvsp[(3) - (3)]);
2145 /* Line 1455 of yacc.c */
2146 #line 399 "scripts/genksyms/parse.y"
2147 { (yyval) = NULL; ;}
2152 /* Line 1455 of yacc.c */
2153 #line 406 "scripts/genksyms/parse.y"
2154 { remove_list((yyvsp[(2) - (2)]), &(*(yyvsp[(1) - (2)]))->next); (yyval) = (yyvsp[(2) - (2)]); ;}
2159 /* Line 1455 of yacc.c */
2160 #line 410 "scripts/genksyms/parse.y"
2161 { (yyval) = (yyvsp[(3) - (3)]); ;}
2166 /* Line 1455 of yacc.c */
2167 #line 411 "scripts/genksyms/parse.y"
2168 { (yyval) = (yyvsp[(3) - (3)]); ;}
2173 /* Line 1455 of yacc.c */
2174 #line 415 "scripts/genksyms/parse.y"
2175 { (yyval) = NULL; ;}
2180 /* Line 1455 of yacc.c */
2181 #line 421 "scripts/genksyms/parse.y"
2182 { (yyval) = (yyvsp[(2) - (2)]); ;}
2187 /* Line 1455 of yacc.c */
2188 #line 426 "scripts/genksyms/parse.y"
2189 { (yyval) = (yyvsp[(3) - (3)]); ;}
2194 /* Line 1455 of yacc.c */
2195 #line 428 "scripts/genksyms/parse.y"
2196 { (yyval) = (yyvsp[(2) - (2)]); ;}
2201 /* Line 1455 of yacc.c */
2202 #line 432 "scripts/genksyms/parse.y"
2203 { (yyval) = NULL; ;}
2208 /* Line 1455 of yacc.c */
2209 #line 438 "scripts/genksyms/parse.y"
2210 { (yyval) = (yyvsp[(3) - (3)]); ;}
2215 /* Line 1455 of yacc.c */
2216 #line 442 "scripts/genksyms/parse.y"
2217 { (yyval) = (yyvsp[(2) - (2)]) ? (yyvsp[(2) - (2)]) : (yyvsp[(1) - (2)]); ;}
2222 /* Line 1455 of yacc.c */
2223 #line 443 "scripts/genksyms/parse.y"
2224 { (yyval) = (yyvsp[(2) - (2)]); ;}
2229 /* Line 1455 of yacc.c */
2230 #line 448 "scripts/genksyms/parse.y"
2231 { (yyval) = (yyvsp[(2) - (2)]); ;}
2236 /* Line 1455 of yacc.c */
2237 #line 452 "scripts/genksyms/parse.y"
2238 { (yyval) = NULL; ;}
2243 /* Line 1455 of yacc.c */
2244 #line 457 "scripts/genksyms/parse.y"
2245 { (yyval) = (yyvsp[(3) - (3)]); ;}
2250 /* Line 1455 of yacc.c */
2251 #line 458 "scripts/genksyms/parse.y"
2252 { (yyval) = (yyvsp[(4) - (4)]); ;}
2257 /* Line 1455 of yacc.c */
2258 #line 467 "scripts/genksyms/parse.y"
2260 const char *name = strdup((*(yyvsp[(1) - (1)]))->string);
2261 add_symbol(name, SYM_ENUM_CONST, NULL, 0);
2267 /* Line 1455 of yacc.c */
2268 #line 472 "scripts/genksyms/parse.y"
2270 const char *name = strdup((*(yyvsp[(1) - (3)]))->string);
2271 struct string_list *expr = copy_list_range(*(yyvsp[(3) - (3)]), *(yyvsp[(2) - (3)]));
2272 add_symbol(name, SYM_ENUM_CONST, expr, 0);
2278 /* Line 1455 of yacc.c */
2279 #line 479 "scripts/genksyms/parse.y"
2280 { (yyval) = (yyvsp[(2) - (2)]); ;}
2285 /* Line 1455 of yacc.c */
2286 #line 483 "scripts/genksyms/parse.y"
2287 { (yyval) = NULL; ;}
2292 /* Line 1455 of yacc.c */
2293 #line 489 "scripts/genksyms/parse.y"
2294 { export_symbol((*(yyvsp[(3) - (5)]))->string); (yyval) = (yyvsp[(5) - (5)]); ;}
2299 /* Line 1455 of yacc.c */
2300 #line 2301 "scripts/genksyms/parse.c"
2303 YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
2307 YY_STACK_PRINT (yyss, yyssp);
2311 /* Now `shift' the result of the reduction. Determine what state
2312 that goes to, based on the state we popped back to and the rule
2313 number reduced by. */
2317 yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
2318 if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
2319 yystate = yytable[yystate];
2321 yystate = yydefgoto[yyn - YYNTOKENS];
2326 /*------------------------------------.
2327 | yyerrlab -- here on detecting error |
2328 `------------------------------------*/
2330 /* If not already recovering from an error, report this error. */
2334 #if ! YYERROR_VERBOSE
2335 yyerror (YY_("syntax error"));
2338 YYSIZE_T yysize = yysyntax_error (0, yystate, yychar);
2339 if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM)
2341 YYSIZE_T yyalloc = 2 * yysize;
2342 if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM))
2343 yyalloc = YYSTACK_ALLOC_MAXIMUM;
2344 if (yymsg != yymsgbuf)
2345 YYSTACK_FREE (yymsg);
2346 yymsg = (char *) YYSTACK_ALLOC (yyalloc);
2348 yymsg_alloc = yyalloc;
2352 yymsg_alloc = sizeof yymsgbuf;
2356 if (0 < yysize && yysize <= yymsg_alloc)
2358 (void) yysyntax_error (yymsg, yystate, yychar);
2363 yyerror (YY_("syntax error"));
2365 goto yyexhaustedlab;
2373 if (yyerrstatus == 3)
2375 /* If just tried and failed to reuse lookahead token after an
2376 error, discard it. */
2378 if (yychar <= YYEOF)
2380 /* Return failure if at end of input. */
2381 if (yychar == YYEOF)
2386 yydestruct ("Error: discarding",
2392 /* Else will try to reuse lookahead token after shifting the error
2397 /*---------------------------------------------------.
2398 | yyerrorlab -- error raised explicitly by YYERROR. |
2399 `---------------------------------------------------*/
2402 /* Pacify compilers like GCC when the user code never invokes
2403 YYERROR and the label yyerrorlab therefore never appears in user
2405 if (/*CONSTCOND*/ 0)
2408 /* Do not reclaim the symbols of the rule which action triggered
2412 YY_STACK_PRINT (yyss, yyssp);
2417 /*-------------------------------------------------------------.
2418 | yyerrlab1 -- common code for both syntax error and YYERROR. |
2419 `-------------------------------------------------------------*/
2421 yyerrstatus = 3; /* Each real token shifted decrements this. */
2425 yyn = yypact[yystate];
2426 if (yyn != YYPACT_NINF)
2429 if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
2437 /* Pop the current state because it cannot handle the error token. */
2442 yydestruct ("Error: popping",
2443 yystos[yystate], yyvsp);
2446 YY_STACK_PRINT (yyss, yyssp);
2452 /* Shift the error token. */
2453 YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
2459 /*-------------------------------------.
2460 | yyacceptlab -- YYACCEPT comes here. |
2461 `-------------------------------------*/
2466 /*-----------------------------------.
2467 | yyabortlab -- YYABORT comes here. |
2468 `-----------------------------------*/
2473 #if !defined(yyoverflow) || YYERROR_VERBOSE
2474 /*-------------------------------------------------.
2475 | yyexhaustedlab -- memory exhaustion comes here. |
2476 `-------------------------------------------------*/
2478 yyerror (YY_("memory exhausted"));
2484 if (yychar != YYEMPTY)
2485 yydestruct ("Cleanup: discarding lookahead",
2487 /* Do not reclaim the symbols of the rule which action triggered
2488 this YYABORT or YYACCEPT. */
2490 YY_STACK_PRINT (yyss, yyssp);
2491 while (yyssp != yyss)
2493 yydestruct ("Cleanup: popping",
2494 yystos[*yyssp], yyvsp);
2499 YYSTACK_FREE (yyss);
2502 if (yymsg != yymsgbuf)
2503 YYSTACK_FREE (yymsg);
2505 /* Make sure YYID is used. */
2506 return YYID (yyresult);
2511 /* Line 1675 of yacc.c */
2512 #line 493 "scripts/genksyms/parse.y"
2516 yyerror(const char *e)
2518 error_with_pos("%s", e);