1 /* A Bison parser, made by GNU Bison 2.4.3. */
3 /* Skeleton implementation for Bison's Yacc-like parsers in C
5 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
6 2009, 2010 Free Software Foundation, Inc.
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.
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.
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/>. */
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.
31 This special exception was added by the Free Software Foundation in
32 version 2.2 of Bison. */
34 /* C LALR(1) parser skeleton written by Richard Stallman, by
35 simplifying the original so-called "semantic" parser. */
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. */
44 /* Identify Bison output. */
48 #define YYBISON_VERSION "2.4.3"
51 #define YYSKELETON_NAME "yacc.c"
62 /* Using locations. */
63 #define YYLSP_NEEDED 0
67 /* Copy the first part of user declarations. */
80 /* for OSF and other less endowed yaccs */
81 #define YYMAXDEPTH (10000)
83 #define F0 (LIST *(*)(PARSE *, LOL *, int *))0
87 #define pappend(l,r) parse_make(compile_append, l, r, P0, S0, S0, 0)
88 #define pbreak(l,f) parse_make(compile_break, l, P0, P0, S0, S0, f)
89 #define peval(c,l,r) parse_make(compile_eval, l, r, P0, S0, S0, c)
90 #define pfor(s,l,r) parse_make(compile_foreach, l, r, P0, s, S0, 0)
91 #define pif(l,r,t) parse_make(compile_if, l, r, t, S0, S0, 0)
92 #define pincl(l) parse_make(compile_include, l, P0, P0, S0, S0, 0)
93 #define psincl(l) parse_make(compile_softinclude, l, P0, P0, S0, S0, 0)
94 #define plist(s) parse_make(compile_list, P0, P0, P0, s, S0, 0)
95 #define plocal(l,r,t) parse_make(compile_local, l, r, t, S0, S0, 0)
96 #define pnull() parse_make(compile_null, P0, P0, P0, S0, S0, 0)
97 #define pon(l,r) parse_make(compile_on, l, r, P0, S0, S0, 0)
98 #define prule(a,p) parse_make(compile_rule, a, p, P0, S0, S0, 0)
99 #define prules(l,r) parse_make(compile_rules, l, r, P0, S0, S0, 0)
100 #define pset(l,r,a) parse_make(compile_set, l, r, P0, S0, S0, a)
101 #define pset1(l,r,t,a) parse_make(compile_settings, l, r, t, S0, S0, a)
102 #define psetc(s,l,r) parse_make(compile_setcomp, l, r, P0, s, S0, 0)
103 #define psete(s,l,s1,f) parse_make(compile_setexec, l, P0, P0, s, s1, f)
104 #define pswitch(l,r) parse_make(compile_switch, l, r, P0, S0, S0, 0)
105 #define pwhile(l,r) parse_make(compile_while, l, r, P0, S0, S0, 0)
107 #define pnode(l,r) parse_make(F0, l, r, P0, S0, S0, 0)
108 #define psnode(s,l) parse_make(F0, l, P0, P0, s, S0, 0)
113 /* Enabling traces. */
118 /* Enabling verbose error messages. */
119 #ifdef YYERROR_VERBOSE
120 # undef YYERROR_VERBOSE
121 # define YYERROR_VERBOSE 1
123 # define YYERROR_VERBOSE 0
126 /* Enabling the token table. */
127 #ifndef YYTOKEN_TABLE
128 # define YYTOKEN_TABLE 0
135 /* Put the tokens into the symbol table, so that GDB and other debuggers
139 _LANGLE_EQUALS_t
= 259,
141 _EQUALSEQUALS_t
= 261,
143 _RANGLE_EQUALS_t
= 263,
146 _MINUS_EQUALS_t
= 266,
150 _BANG_EQUALS_t
= 270,
151 _QUESTION_EQUALS_t
= 271,
160 _PLUS_EQUALS_t
= 280,
192 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
194 # define YYSTYPE_IS_TRIVIAL 1
195 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
196 # define YYSTYPE_IS_DECLARED 1
200 /* Copy the second part of user declarations. */
209 typedef YYTYPE_UINT8 yytype_uint8
;
211 typedef unsigned char yytype_uint8
;
215 typedef YYTYPE_INT8 yytype_int8
;
216 #elif (defined __STDC__ || defined __C99__FUNC__ \
217 || defined __cplusplus || defined _MSC_VER)
218 typedef signed char yytype_int8
;
220 typedef short int yytype_int8
;
224 typedef YYTYPE_UINT16 yytype_uint16
;
226 typedef unsigned short int yytype_uint16
;
230 typedef YYTYPE_INT16 yytype_int16
;
232 typedef short int yytype_int16
;
236 # ifdef __SIZE_TYPE__
237 # define YYSIZE_T __SIZE_TYPE__
238 # elif defined size_t
239 # define YYSIZE_T size_t
240 # elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
241 || defined __cplusplus || defined _MSC_VER)
242 # include <stddef.h> /* INFRINGES ON USER NAME SPACE */
243 # define YYSIZE_T size_t
245 # define YYSIZE_T unsigned int
249 #define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
252 # if defined YYENABLE_NLS && YYENABLE_NLS
254 # include <libintl.h> /* INFRINGES ON USER NAME SPACE */
255 # define YY_(msgid) dgettext ("bison-runtime", msgid)
259 # define YY_(msgid) msgid
263 /* Suppress unused-variable warnings by "using" E. */
264 #if ! defined lint || defined __GNUC__
265 # define YYUSE(e) ((void) (e))
267 # define YYUSE(e) /* empty */
270 /* Identity function, used to suppress warnings about constant conditions. */
274 #if (defined __STDC__ || defined __C99__FUNC__ \
275 || defined __cplusplus || defined _MSC_VER)
288 #if ! defined yyoverflow || YYERROR_VERBOSE
290 /* The parser invokes alloca or malloc; define the necessary symbols. */
292 # ifdef YYSTACK_USE_ALLOCA
293 # if YYSTACK_USE_ALLOCA
295 # define YYSTACK_ALLOC __builtin_alloca
296 # elif defined __BUILTIN_VA_ARG_INCR
297 # include <alloca.h> /* INFRINGES ON USER NAME SPACE */
299 # define YYSTACK_ALLOC __alloca
300 # elif defined _MSC_VER
301 # include <malloc.h> /* INFRINGES ON USER NAME SPACE */
302 # define alloca _alloca
304 # define YYSTACK_ALLOC alloca
305 # if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
306 || defined __cplusplus || defined _MSC_VER)
307 # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
316 # ifdef YYSTACK_ALLOC
317 /* Pacify GCC's `empty if-body' warning. */
318 # define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
319 # ifndef YYSTACK_ALLOC_MAXIMUM
320 /* The OS might guarantee only one guard page at the bottom of the stack,
321 and a page size can be as small as 4096 bytes. So we cannot safely
322 invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
323 to allow for a few compiler-allocated temporary stack slots. */
324 # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
327 # define YYSTACK_ALLOC YYMALLOC
328 # define YYSTACK_FREE YYFREE
329 # ifndef YYSTACK_ALLOC_MAXIMUM
330 # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
332 # if (defined __cplusplus && ! defined _STDLIB_H \
333 && ! ((defined YYMALLOC || defined malloc) \
334 && (defined YYFREE || defined free)))
335 # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
341 # define YYMALLOC malloc
342 # if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
343 || defined __cplusplus || defined _MSC_VER)
344 void *malloc (YYSIZE_T
); /* INFRINGES ON USER NAME SPACE */
349 # if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
350 || defined __cplusplus || defined _MSC_VER)
351 void free (void *); /* INFRINGES ON USER NAME SPACE */
355 #endif /* ! defined yyoverflow || YYERROR_VERBOSE */
358 #if (! defined yyoverflow \
359 && (! defined __cplusplus \
360 || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
362 /* A type that is properly aligned for any stack member. */
365 yytype_int16 yyss_alloc
;
369 /* The size of the maximum gap between one aligned stack and the next. */
370 # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
372 /* The size of an array large to enough to hold all stacks, each with
374 # define YYSTACK_BYTES(N) \
375 ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
376 + YYSTACK_GAP_MAXIMUM)
378 /* Copy COUNT objects from FROM to TO. The source and destination do
381 # if defined __GNUC__ && 1 < __GNUC__
382 # define YYCOPY(To, From, Count) \
383 __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
385 # define YYCOPY(To, From, Count) \
389 for (yyi = 0; yyi < (Count); yyi++) \
390 (To)[yyi] = (From)[yyi]; \
396 /* Relocate STACK from its old location to the new one. The
397 local variables YYSIZE and YYSTACKSIZE give the old and new number of
398 elements in the stack, and YYPTR gives the new location of the
399 stack. Advance YYPTR to a properly aligned location for the next
401 # define YYSTACK_RELOCATE(Stack_alloc, Stack) \
404 YYSIZE_T yynewbytes; \
405 YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
406 Stack = &yyptr->Stack_alloc; \
407 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
408 yyptr += yynewbytes / sizeof (*yyptr); \
414 /* YYFINAL -- State number of the termination state. */
416 /* YYLAST -- Last index in YYTABLE. */
419 /* YYNTOKENS -- Number of terminals. */
421 /* YYNNTS -- Number of nonterminals. */
423 /* YYNRULES -- Number of rules. */
425 /* YYNRULES -- Number of states. */
426 #define YYNSTATES 158
428 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
430 #define YYMAXUTOK 306
432 #define YYTRANSLATE(YYX) \
433 ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
435 /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
436 static const yytype_uint8 yytranslate
[] =
438 0, 2, 2, 2, 2, 2, 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, 2, 2, 2, 2,
452 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
453 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
454 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
455 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
456 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
457 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
458 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
459 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
460 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
461 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
462 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
463 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
464 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
465 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
466 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
467 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
468 45, 46, 47, 48, 49, 50, 51
472 /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
474 static const yytype_uint16 yyprhs
[] =
476 0, 0, 3, 4, 6, 7, 9, 11, 14, 19,
477 26, 30, 34, 38, 42, 47, 54, 58, 62, 66,
478 74, 80, 86, 94, 100, 107, 111, 112, 113, 123,
479 125, 127, 129, 131, 133, 137, 141, 145, 149, 153,
480 157, 161, 165, 169, 173, 177, 181, 184, 188, 189,
481 192, 197, 198, 202, 204, 206, 210, 212, 213, 216,
482 218, 219, 224, 227, 232, 237, 238, 241, 243, 245,
483 247, 249, 251, 253, 256, 257
486 /* YYRHS -- A `-1'-separated list of the rules' RHS. */
487 static const yytype_int8 yyrhs
[] =
489 53, 0, -1, -1, 55, -1, -1, 55, -1, 56,
490 -1, 56, 55, -1, 38, 65, 12, 54, -1, 38,
491 65, 5, 65, 12, 54, -1, 21, 54, 22, -1,
492 37, 65, 12, -1, 45, 65, 12, -1, 67, 64,
493 12, -1, 67, 59, 65, 12, -1, 67, 40, 65,
494 59, 65, 12, -1, 28, 65, 12, -1, 30, 65,
495 12, -1, 43, 65, 12, -1, 33, 50, 36, 65,
496 21, 54, 22, -1, 46, 65, 21, 61, 22, -1,
497 34, 60, 21, 54, 22, -1, 34, 60, 21, 54,
498 22, 31, 56, -1, 49, 60, 21, 54, 22, -1,
499 44, 50, 63, 21, 54, 22, -1, 40, 67, 56,
500 -1, -1, -1, 26, 70, 50, 72, 21, 57, 51,
501 58, 22, -1, 5, -1, 25, -1, 11, -1, 16,
502 -1, 67, -1, 60, 5, 60, -1, 60, 6, 60,
503 -1, 60, 15, 60, -1, 60, 3, 60, -1, 60,
504 4, 60, -1, 60, 7, 60, -1, 60, 8, 60,
505 -1, 60, 23, 60, -1, 60, 24, 60, -1, 60,
506 9, 60, -1, 60, 10, 60, -1, 67, 36, 65,
507 -1, 14, 60, -1, 17, 60, 18, -1, -1, 62,
508 61, -1, 29, 50, 13, 54, -1, -1, 50, 13,
509 63, -1, 50, -1, 65, -1, 65, 13, 64, -1,
510 66, -1, -1, 66, 67, -1, 50, -1, -1, 19,
511 68, 69, 20, -1, 67, 64, -1, 40, 67, 67,
512 64, -1, 40, 67, 43, 65, -1, -1, 70, 71,
513 -1, 48, -1, 47, -1, 35, -1, 42, -1, 41,
514 -1, 32, -1, 39, 50, -1, -1, 27, 65, -1
517 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */
518 static const yytype_uint16 yyrline
[] =
520 0, 130, 130, 132, 143, 144, 148, 149, 150, 151,
521 155, 156, 157, 158, 159, 160, 161, 162, 163, 164,
522 165, 166, 167, 168, 169, 170, 171, 171, 171, 180,
523 181, 182, 183, 191, 192, 193, 194, 195, 196, 197,
524 198, 199, 200, 201, 202, 203, 204, 205, 215, 216,
525 220, 229, 230, 231, 240, 241, 251, 255, 256, 260,
526 261, 261, 270, 271, 272, 281, 282, 286, 287, 288,
527 289, 290, 291, 292, 300, 301
531 #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
532 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
533 First, the terminals, then, starting at YYNTOKENS, nonterminals. */
534 static const char *const yytname
[] =
536 "$end", "error", "$undefined", "_LANGLE_t", "_LANGLE_EQUALS_t",
537 "_EQUALS_t", "_EQUALSEQUALS_t", "_RANGLE_t", "_RANGLE_EQUALS_t",
538 "_BAR_t", "_BARBAR_t", "_MINUS_EQUALS_t", "_SEMIC_t", "_COLON_t",
539 "_BANG_t", "_BANG_EQUALS_t", "_QUESTION_EQUALS_t", "_LPAREN_t",
540 "_RPAREN_t", "_LBRACKET_t", "_RBRACKET_t", "_LBRACE_t", "_RBRACE_t",
541 "_AMPER_t", "_AMPERAMPER_t", "_PLUS_EQUALS_t", "ACTIONS_t", "BIND_t",
542 "BREAK_t", "CASE_t", "CONTINUE_t", "ELSE_t", "EXISTING_t", "FOR_t",
543 "IF_t", "IGNORE_t", "IN_t", "INCLUDE_t", "LOCAL_t", "MAXLINE_t", "ON_t",
544 "PIECEMEAL_t", "QUIETLY_t", "RETURN_t", "RULE_t", "SOFTINCLUDE_t",
545 "SWITCH_t", "TOGETHER_t", "UPDATED_t", "WHILE_t", "ARG", "STRING",
546 "$accept", "run", "block", "rules", "rule", "$@1", "$@2", "assign",
547 "expr", "cases", "case", "params", "lol", "list", "listp", "arg", "$@3",
548 "func", "eflags", "eflag", "bindlist", 0
553 /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
555 static const yytype_uint16 yytoknum
[] =
557 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
558 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
559 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
560 285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
561 295, 296, 297, 298, 299, 300, 301, 302, 303, 304,
566 /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
567 static const yytype_uint8 yyr1
[] =
569 0, 52, 53, 53, 54, 54, 55, 55, 55, 55,
570 56, 56, 56, 56, 56, 56, 56, 56, 56, 56,
571 56, 56, 56, 56, 56, 56, 57, 58, 56, 59,
572 59, 59, 59, 60, 60, 60, 60, 60, 60, 60,
573 60, 60, 60, 60, 60, 60, 60, 60, 61, 61,
574 62, 63, 63, 63, 64, 64, 65, 66, 66, 67,
575 68, 67, 69, 69, 69, 70, 70, 71, 71, 71,
576 71, 71, 71, 71, 72, 72
579 /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
580 static const yytype_uint8 yyr2
[] =
582 0, 2, 0, 1, 0, 1, 1, 2, 4, 6,
583 3, 3, 3, 3, 4, 6, 3, 3, 3, 7,
584 5, 5, 7, 5, 6, 3, 0, 0, 9, 1,
585 1, 1, 1, 1, 3, 3, 3, 3, 3, 3,
586 3, 3, 3, 3, 3, 3, 2, 3, 0, 2,
587 4, 0, 3, 1, 1, 3, 1, 0, 2, 1,
588 0, 4, 2, 4, 4, 0, 2, 1, 1, 1,
592 /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
593 STATE-NUM when YYTABLE doesn't specify something else to do. Zero
594 means the default is an error. */
595 static const yytype_uint8 yydefact
[] =
597 2, 60, 4, 65, 57, 57, 0, 0, 57, 57,
598 0, 57, 0, 57, 57, 0, 59, 0, 3, 6,
599 57, 0, 0, 5, 0, 0, 56, 0, 0, 0,
600 0, 0, 33, 0, 0, 0, 0, 51, 0, 0,
601 0, 1, 7, 29, 31, 32, 30, 57, 57, 0,
602 54, 0, 57, 0, 10, 72, 69, 0, 71, 70,
603 68, 67, 74, 66, 16, 58, 17, 57, 46, 0,
604 0, 0, 0, 0, 0, 0, 0, 0, 0, 4,
605 0, 0, 57, 11, 57, 4, 25, 18, 53, 0,
606 12, 48, 4, 0, 0, 13, 57, 0, 62, 61,
607 73, 57, 0, 0, 47, 37, 38, 34, 35, 39,
608 40, 43, 44, 36, 0, 41, 42, 45, 0, 8,
609 51, 4, 0, 0, 48, 0, 57, 14, 55, 57,
610 57, 75, 26, 4, 21, 4, 52, 0, 0, 20,
611 49, 23, 0, 64, 63, 0, 0, 0, 9, 24,
612 4, 15, 27, 19, 22, 50, 0, 28
615 /* YYDEFGOTO[NTERM-NUM]. */
616 static const yytype_int16 yydefgoto
[] =
618 -1, 17, 22, 23, 19, 145, 156, 48, 31, 123,
619 124, 89, 49, 50, 26, 32, 21, 53, 24, 63,
623 /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
625 #define YYPACT_NINF -73
626 static const yytype_int16 yypact
[] =
628 144, -73, 144, -73, -73, -73, -46, -8, -73, -73,
629 -7, -73, -45, -73, -73, -8, -73, 14, -73, 144,
630 20, -11, -6, -73, 52, 6, -7, 10, 2, -8,
631 -8, 49, 4, 34, 32, 176, 38, 12, 53, 47,
632 119, -73, -73, -73, -73, -73, -73, -73, -73, 59,
633 61, -7, -73, 56, -73, -73, -73, 27, -73, -73,
634 -73, -73, 55, -73, -73, -73, -73, -73, -73, 224,
635 -8, -8, -8, -8, -8, -8, -8, -8, -8, 144,
636 -8, -8, -73, -73, -73, 144, -73, -73, 70, 67,
637 -73, 66, 144, 64, 78, -73, -73, -2, -73, -73,
638 -73, -73, 77, 91, -73, -73, -73, 111, 111, -73,
639 -73, 246, 246, 111, 95, 101, 101, -73, 118, -73,
640 12, 144, 82, 109, 66, 114, -73, -73, -73, -73,
641 -73, -73, -73, 144, 106, 144, -73, 116, 126, -73,
642 -73, -73, 129, -73, -73, 93, 124, 176, -73, -73,
643 144, -73, -73, -73, -73, -73, 127, -73
646 /* YYPGOTO[NTERM-NUM]. */
647 static const yytype_int8 yypgoto
[] =
649 -73, -73, -72, 15, -34, -73, -73, 71, 81, 36,
650 -73, 46, -49, 19, -73, 0, -73, -73, -73, -73,
654 /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
655 positive, shift that token. If negative, reduce the rule which
656 number is the opposite. If zero, do what YYDEFACT says.
657 If YYTABLE_NINF, syntax error. */
658 #define YYTABLE_NINF -1
659 static const yytype_uint8 yytable
[] =
661 20, 86, 20, 98, 28, 37, 29, 114, 1, 30,
662 35, 1, 1, 119, 41, 18, 54, 1, 64, 20,
663 125, 52, 66, 25, 27, 43, 65, 33, 34, 51,
664 36, 44, 38, 39, 42, 20, 45, 84, 67, 16,
665 82, 129, 16, 16, 85, 46, 83, 128, 16, 137,
666 87, 97, 70, 71, 72, 73, 74, 75, 76, 77,
667 47, 146, 88, 148, 78, 90, 93, 94, 91, 43,
668 79, 95, 80, 81, 96, 44, 99, 100, 155, 20,
669 45, 144, 101, 120, 55, 20, 103, 56, 121, 46,
670 127, 57, 20, 58, 59, 122, 40, 130, 132, 60,
671 61, 117, 62, 118, 70, 71, 72, 73, 74, 75,
672 68, 69, 133, 154, 70, 71, 78, 134, 74, 75,
673 131, 20, 70, 71, 72, 73, 74, 75, 76, 77,
674 135, 139, 138, 20, 78, 20, 141, 147, 149, 150,
675 92, 151, 80, 81, 152, 142, 153, 20, 143, 157,
676 20, 105, 106, 107, 108, 109, 110, 111, 112, 113,
677 140, 115, 116, 1, 126, 2, 136, 0, 0, 0,
678 3, 0, 4, 0, 5, 0, 0, 6, 7, 0,
679 0, 8, 9, 0, 10, 0, 0, 11, 12, 13,
680 14, 0, 0, 15, 16, 1, 0, 2, 0, 0,
681 0, 0, 3, 0, 4, 0, 5, 0, 0, 6,
682 7, 0, 0, 8, 0, 0, 10, 0, 0, 11,
683 12, 13, 14, 0, 0, 15, 16, 70, 71, 72,
684 73, 74, 75, 76, 77, 0, 0, 0, 0, 78,
685 0, 0, 104, 0, 0, 0, 0, 80, 81, 70,
686 71, 72, 73, 74, 75, 0, 0, 0, 0, 0,
687 0, 78, 0, 0, 0, 0, 0, 0, 0, 80,
691 static const yytype_int16 yycheck
[] =
693 0, 35, 2, 52, 50, 50, 14, 79, 19, 17,
694 10, 19, 19, 85, 0, 0, 22, 19, 12, 19,
695 92, 21, 12, 4, 5, 5, 26, 8, 9, 40,
696 11, 11, 13, 14, 19, 35, 16, 5, 36, 50,
697 36, 43, 50, 50, 12, 25, 12, 96, 50, 121,
698 12, 51, 3, 4, 5, 6, 7, 8, 9, 10,
699 40, 133, 50, 135, 15, 12, 47, 48, 21, 5,
700 21, 12, 23, 24, 13, 11, 20, 50, 150, 79,
701 16, 130, 27, 13, 32, 85, 67, 35, 21, 25,
702 12, 39, 92, 41, 42, 29, 15, 97, 21, 47,
703 48, 82, 50, 84, 3, 4, 5, 6, 7, 8,
704 29, 30, 21, 147, 3, 4, 15, 22, 7, 8,
705 101, 121, 3, 4, 5, 6, 7, 8, 9, 10,
706 12, 22, 50, 133, 15, 135, 22, 31, 22, 13,
707 21, 12, 23, 24, 51, 126, 22, 147, 129, 22,
708 150, 70, 71, 72, 73, 74, 75, 76, 77, 78,
709 124, 80, 81, 19, 93, 21, 120, -1, -1, -1,
710 26, -1, 28, -1, 30, -1, -1, 33, 34, -1,
711 -1, 37, 38, -1, 40, -1, -1, 43, 44, 45,
712 46, -1, -1, 49, 50, 19, -1, 21, -1, -1,
713 -1, -1, 26, -1, 28, -1, 30, -1, -1, 33,
714 34, -1, -1, 37, -1, -1, 40, -1, -1, 43,
715 44, 45, 46, -1, -1, 49, 50, 3, 4, 5,
716 6, 7, 8, 9, 10, -1, -1, -1, -1, 15,
717 -1, -1, 18, -1, -1, -1, -1, 23, 24, 3,
718 4, 5, 6, 7, 8, -1, -1, -1, -1, -1,
719 -1, 15, -1, -1, -1, -1, -1, -1, -1, 23,
723 /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
724 symbol of state STATE-NUM. */
725 static const yytype_uint8 yystos
[] =
727 0, 19, 21, 26, 28, 30, 33, 34, 37, 38,
728 40, 43, 44, 45, 46, 49, 50, 53, 55, 56,
729 67, 68, 54, 55, 70, 65, 66, 65, 50, 14,
730 17, 60, 67, 65, 65, 67, 65, 50, 65, 65,
731 60, 0, 55, 5, 11, 16, 25, 40, 59, 64,
732 65, 40, 67, 69, 22, 32, 35, 39, 41, 42,
733 47, 48, 50, 71, 12, 67, 12, 36, 60, 60,
734 3, 4, 5, 6, 7, 8, 9, 10, 15, 21,
735 23, 24, 36, 12, 5, 12, 56, 12, 50, 63,
736 12, 21, 21, 65, 65, 12, 13, 67, 64, 20,
737 50, 27, 72, 65, 18, 60, 60, 60, 60, 60,
738 60, 60, 60, 60, 54, 60, 60, 65, 65, 54,
739 13, 21, 29, 61, 62, 54, 59, 12, 64, 43,
740 67, 65, 21, 21, 22, 12, 63, 54, 50, 22,
741 61, 22, 65, 65, 64, 57, 54, 31, 54, 22,
742 13, 12, 51, 22, 56, 54, 58, 22
745 #define yyerrok (yyerrstatus = 0)
746 #define yyclearin (yychar = YYEMPTY)
750 #define YYACCEPT goto yyacceptlab
751 #define YYABORT goto yyabortlab
752 #define YYERROR goto yyerrorlab
755 /* Like YYERROR except do call yyerror. This remains here temporarily
756 to ease the transition to the new meaning of YYERROR, for GCC.
757 Once GCC version 2 has supplanted version 1, this can go. However,
758 YYFAIL appears to be in use. Nevertheless, it is formally deprecated
759 in Bison 2.4.2's NEWS entry, where a plan to phase it out is
762 #define YYFAIL goto yyerrlab
764 /* This is here to suppress warnings from the GCC cpp's
765 -Wunused-macros. Normally we don't worry about that warning, but
766 some users do, and we want to make it easy for users to remove
767 YYFAIL uses, which will produce warnings from Bison 2.5. */
770 #define YYRECOVERING() (!!yyerrstatus)
772 #define YYBACKUP(Token, Value) \
774 if (yychar == YYEMPTY && yylen == 1) \
778 yytoken = YYTRANSLATE (yychar); \
784 yyerror (YY_("syntax error: cannot back up")); \
791 #define YYERRCODE 256
794 /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
795 If N is 0, then set CURRENT to the empty location which ends
796 the previous symbol: RHS[0] (always defined). */
798 #define YYRHSLOC(Rhs, K) ((Rhs)[K])
799 #ifndef YYLLOC_DEFAULT
800 # define YYLLOC_DEFAULT(Current, Rhs, N) \
804 (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
805 (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
806 (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
807 (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
811 (Current).first_line = (Current).last_line = \
812 YYRHSLOC (Rhs, 0).last_line; \
813 (Current).first_column = (Current).last_column = \
814 YYRHSLOC (Rhs, 0).last_column; \
820 /* YY_LOCATION_PRINT -- Print the location on the stream.
821 This macro was not mandated originally: define only if we know
822 we won't break user code: when these are the locations we know. */
824 #ifndef YY_LOCATION_PRINT
825 # if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
826 # define YY_LOCATION_PRINT(File, Loc) \
827 fprintf (File, "%d.%d-%d.%d", \
828 (Loc).first_line, (Loc).first_column, \
829 (Loc).last_line, (Loc).last_column)
831 # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
836 /* YYLEX -- calling `yylex' with the right arguments. */
839 # define YYLEX yylex (YYLEX_PARAM)
841 # define YYLEX yylex ()
844 /* Enable debugging if requested. */
848 # include <stdio.h> /* INFRINGES ON USER NAME SPACE */
849 # define YYFPRINTF fprintf
852 # define YYDPRINTF(Args) \
858 # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
862 YYFPRINTF (stderr, "%s ", Title); \
863 yy_symbol_print (stderr, \
865 YYFPRINTF (stderr, "\n"); \
870 /*--------------------------------.
871 | Print this symbol on YYOUTPUT. |
872 `--------------------------------*/
875 #if (defined __STDC__ || defined __C99__FUNC__ \
876 || defined __cplusplus || defined _MSC_VER)
878 yy_symbol_value_print (FILE *yyoutput
, int yytype
, YYSTYPE
const * const yyvaluep
)
881 yy_symbol_value_print (yyoutput
, yytype
, yyvaluep
)
884 YYSTYPE
const * const yyvaluep
;
890 if (yytype
< YYNTOKENS
)
891 YYPRINT (yyoutput
, yytoknum
[yytype
], *yyvaluep
);
903 /*--------------------------------.
904 | Print this symbol on YYOUTPUT. |
905 `--------------------------------*/
907 #if (defined __STDC__ || defined __C99__FUNC__ \
908 || defined __cplusplus || defined _MSC_VER)
910 yy_symbol_print (FILE *yyoutput
, int yytype
, YYSTYPE
const * const yyvaluep
)
913 yy_symbol_print (yyoutput
, yytype
, yyvaluep
)
916 YYSTYPE
const * const yyvaluep
;
919 if (yytype
< YYNTOKENS
)
920 YYFPRINTF (yyoutput
, "token %s (", yytname
[yytype
]);
922 YYFPRINTF (yyoutput
, "nterm %s (", yytname
[yytype
]);
924 yy_symbol_value_print (yyoutput
, yytype
, yyvaluep
);
925 YYFPRINTF (yyoutput
, ")");
928 /*------------------------------------------------------------------.
929 | yy_stack_print -- Print the state stack from its BOTTOM up to its |
931 `------------------------------------------------------------------*/
933 #if (defined __STDC__ || defined __C99__FUNC__ \
934 || defined __cplusplus || defined _MSC_VER)
936 yy_stack_print (yytype_int16
*yybottom
, yytype_int16
*yytop
)
939 yy_stack_print (yybottom
, yytop
)
940 yytype_int16
*yybottom
;
944 YYFPRINTF (stderr
, "Stack now");
945 for (; yybottom
<= yytop
; yybottom
++)
947 int yybot
= *yybottom
;
948 YYFPRINTF (stderr
, " %d", yybot
);
950 YYFPRINTF (stderr
, "\n");
953 # define YY_STACK_PRINT(Bottom, Top) \
956 yy_stack_print ((Bottom), (Top)); \
960 /*------------------------------------------------.
961 | Report that the YYRULE is going to be reduced. |
962 `------------------------------------------------*/
964 #if (defined __STDC__ || defined __C99__FUNC__ \
965 || defined __cplusplus || defined _MSC_VER)
967 yy_reduce_print (YYSTYPE
*yyvsp
, int yyrule
)
970 yy_reduce_print (yyvsp
, yyrule
)
975 int yynrhs
= yyr2
[yyrule
];
977 unsigned long int yylno
= yyrline
[yyrule
];
978 YYFPRINTF (stderr
, "Reducing stack by rule %d (line %lu):\n",
980 /* The symbols being reduced. */
981 for (yyi
= 0; yyi
< yynrhs
; yyi
++)
983 YYFPRINTF (stderr
, " $%d = ", yyi
+ 1);
984 yy_symbol_print (stderr
, yyrhs
[yyprhs
[yyrule
] + yyi
],
985 &(yyvsp
[(yyi
+ 1) - (yynrhs
)])
987 YYFPRINTF (stderr
, "\n");
991 # define YY_REDUCE_PRINT(Rule) \
994 yy_reduce_print (yyvsp, Rule); \
997 /* Nonzero means print parse trace. It is left uninitialized so that
998 multiple parsers can coexist. */
1000 #else /* !YYDEBUG */
1001 # define YYDPRINTF(Args)
1002 # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
1003 # define YY_STACK_PRINT(Bottom, Top)
1004 # define YY_REDUCE_PRINT(Rule)
1005 #endif /* !YYDEBUG */
1008 /* YYINITDEPTH -- initial size of the parser's stacks. */
1010 # define YYINITDEPTH 200
1013 /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
1014 if the built-in stack extension method is used).
1016 Do not make this value too large; the results are undefined if
1017 YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
1018 evaluated with infinite-precision integer arithmetic. */
1021 # define YYMAXDEPTH 10000
1029 # if defined __GLIBC__ && defined _STRING_H
1030 # define yystrlen strlen
1032 /* Return the length of YYSTR. */
1033 #if (defined __STDC__ || defined __C99__FUNC__ \
1034 || defined __cplusplus || defined _MSC_VER)
1036 yystrlen (const char *yystr
)
1044 for (yylen
= 0; yystr
[yylen
]; yylen
++)
1052 # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
1053 # define yystpcpy stpcpy
1055 /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
1057 #if (defined __STDC__ || defined __C99__FUNC__ \
1058 || defined __cplusplus || defined _MSC_VER)
1060 yystpcpy (char *yydest
, const char *yysrc
)
1063 yystpcpy (yydest
, yysrc
)
1069 const char *yys
= yysrc
;
1071 while ((*yyd
++ = *yys
++) != '\0')
1080 /* Copy to YYRES the contents of YYSTR after stripping away unnecessary
1081 quotes and backslashes, so that it's suitable for yyerror. The
1082 heuristic is that double-quoting is unnecessary unless the string
1083 contains an apostrophe, a comma, or backslash (other than
1084 backslash-backslash). YYSTR is taken from yytname. If YYRES is
1085 null, do not copy; instead, return the length of what the result
1088 yytnamerr (char *yyres
, const char *yystr
)
1093 char const *yyp
= yystr
;
1100 goto do_not_strip_quotes
;
1104 goto do_not_strip_quotes
;
1117 do_not_strip_quotes
: ;
1121 return yystrlen (yystr
);
1123 return yystpcpy (yyres
, yystr
) - yyres
;
1127 /* Copy into YYRESULT an error message about the unexpected token
1128 YYCHAR while in state YYSTATE. Return the number of bytes copied,
1129 including the terminating null byte. If YYRESULT is null, do not
1130 copy anything; just return the number of bytes that would be
1131 copied. As a special case, return 0 if an ordinary "syntax error"
1132 message will do. Return YYSIZE_MAXIMUM if overflow occurs during
1133 size calculation. */
1135 yysyntax_error (char *yyresult
, int yystate
, int yychar
)
1137 int yyn
= yypact
[yystate
];
1139 if (! (YYPACT_NINF
< yyn
&& yyn
<= YYLAST
))
1143 int yytype
= YYTRANSLATE (yychar
);
1144 YYSIZE_T yysize0
= yytnamerr (0, yytname
[yytype
]);
1145 YYSIZE_T yysize
= yysize0
;
1147 int yysize_overflow
= 0;
1148 enum { YYERROR_VERBOSE_ARGS_MAXIMUM
= 5 };
1149 char const *yyarg
[YYERROR_VERBOSE_ARGS_MAXIMUM
];
1153 /* This is so xgettext sees the translatable formats that are
1154 constructed on the fly. */
1155 YY_("syntax error, unexpected %s");
1156 YY_("syntax error, unexpected %s, expecting %s");
1157 YY_("syntax error, unexpected %s, expecting %s or %s");
1158 YY_("syntax error, unexpected %s, expecting %s or %s or %s");
1159 YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
1163 static char const yyunexpected
[] = "syntax error, unexpected %s";
1164 static char const yyexpecting
[] = ", expecting %s";
1165 static char const yyor
[] = " or %s";
1166 char yyformat
[sizeof yyunexpected
1167 + sizeof yyexpecting
- 1
1168 + ((YYERROR_VERBOSE_ARGS_MAXIMUM
- 2)
1169 * (sizeof yyor
- 1))];
1170 char const *yyprefix
= yyexpecting
;
1172 /* Start YYX at -YYN if negative to avoid negative indexes in
1174 int yyxbegin
= yyn
< 0 ? -yyn
: 0;
1176 /* Stay within bounds of both yycheck and yytname. */
1177 int yychecklim
= YYLAST
- yyn
+ 1;
1178 int yyxend
= yychecklim
< YYNTOKENS
? yychecklim
: YYNTOKENS
;
1181 yyarg
[0] = yytname
[yytype
];
1182 yyfmt
= yystpcpy (yyformat
, yyunexpected
);
1184 for (yyx
= yyxbegin
; yyx
< yyxend
; ++yyx
)
1185 if (yycheck
[yyx
+ yyn
] == yyx
&& yyx
!= YYTERROR
)
1187 if (yycount
== YYERROR_VERBOSE_ARGS_MAXIMUM
)
1191 yyformat
[sizeof yyunexpected
- 1] = '\0';
1194 yyarg
[yycount
++] = yytname
[yyx
];
1195 yysize1
= yysize
+ yytnamerr (0, yytname
[yyx
]);
1196 yysize_overflow
|= (yysize1
< yysize
);
1198 yyfmt
= yystpcpy (yyfmt
, yyprefix
);
1202 yyf
= YY_(yyformat
);
1203 yysize1
= yysize
+ yystrlen (yyf
);
1204 yysize_overflow
|= (yysize1
< yysize
);
1207 if (yysize_overflow
)
1208 return YYSIZE_MAXIMUM
;
1212 /* Avoid sprintf, as that infringes on the user's name space.
1213 Don't have undefined behavior even if the translation
1214 produced a string with the wrong number of "%s"s. */
1215 char *yyp
= yyresult
;
1217 while ((*yyp
= *yyf
) != '\0')
1219 if (*yyp
== '%' && yyf
[1] == 's' && yyi
< yycount
)
1221 yyp
+= yytnamerr (yyp
, yyarg
[yyi
++]);
1234 #endif /* YYERROR_VERBOSE */
1237 /*-----------------------------------------------.
1238 | Release the memory associated to this symbol. |
1239 `-----------------------------------------------*/
1242 #if (defined __STDC__ || defined __C99__FUNC__ \
1243 || defined __cplusplus || defined _MSC_VER)
1245 yydestruct (const char *yymsg
, int yytype
, YYSTYPE
*yyvaluep
)
1248 yydestruct (yymsg
, yytype
, yyvaluep
)
1258 YY_SYMBOL_PRINT (yymsg
, yytype
, yyvaluep
, yylocationp
);
1268 /* Prevent warnings from -Wmissing-prototypes. */
1269 #ifdef YYPARSE_PARAM
1270 #if defined __STDC__ || defined __cplusplus
1271 int yyparse (void *YYPARSE_PARAM
);
1275 #else /* ! YYPARSE_PARAM */
1276 #if defined __STDC__ || defined __cplusplus
1281 #endif /* ! YYPARSE_PARAM */
1284 /* The lookahead symbol. */
1287 /* The semantic value of the lookahead symbol. */
1290 /* Number of syntax errors so far. */
1295 /*-------------------------.
1296 | yyparse or yypush_parse. |
1297 `-------------------------*/
1299 #ifdef YYPARSE_PARAM
1300 #if (defined __STDC__ || defined __C99__FUNC__ \
1301 || defined __cplusplus || defined _MSC_VER)
1303 yyparse (void *YYPARSE_PARAM
)
1306 yyparse (YYPARSE_PARAM
)
1307 void *YYPARSE_PARAM
;
1309 #else /* ! YYPARSE_PARAM */
1310 #if (defined __STDC__ || defined __C99__FUNC__ \
1311 || defined __cplusplus || defined _MSC_VER)
1324 /* Number of tokens to shift before error messages enabled. */
1327 /* The stacks and their tools:
1328 `yyss': related to states.
1329 `yyvs': related to semantic values.
1331 Refer to the stacks thru separate pointers, to allow yyoverflow
1332 to reallocate them elsewhere. */
1334 /* The state stack. */
1335 yytype_int16 yyssa
[YYINITDEPTH
];
1337 yytype_int16
*yyssp
;
1339 /* The semantic value stack. */
1340 YYSTYPE yyvsa
[YYINITDEPTH
];
1344 YYSIZE_T yystacksize
;
1348 /* Lookahead token as an internal (translated) token number. */
1350 /* The variables used to return semantic value and location from the
1355 /* Buffer for error messages, and its allocated size. */
1357 char *yymsg
= yymsgbuf
;
1358 YYSIZE_T yymsg_alloc
= sizeof yymsgbuf
;
1361 #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
1363 /* The number of symbols on the RHS of the reduced rule.
1364 Keep to zero when no symbol should be popped. */
1370 yystacksize
= YYINITDEPTH
;
1372 YYDPRINTF ((stderr
, "Starting parse\n"));
1377 yychar
= YYEMPTY
; /* Cause a token to be read. */
1379 /* Initialize stack pointers.
1380 Waste one element of value and location stack
1381 so that they stay on the same level as the state stack.
1382 The wasted elements are never initialized. */
1388 /*------------------------------------------------------------.
1389 | yynewstate -- Push a new state, which is found in yystate. |
1390 `------------------------------------------------------------*/
1392 /* In all cases, when you get here, the value and location stacks
1393 have just been pushed. So pushing a state here evens the stacks. */
1399 if (yyss
+ yystacksize
- 1 <= yyssp
)
1401 /* Get the current used size of the three stacks, in elements. */
1402 YYSIZE_T yysize
= yyssp
- yyss
+ 1;
1406 /* Give user a chance to reallocate the stack. Use copies of
1407 these so that the &'s don't force the real ones into
1409 YYSTYPE
*yyvs1
= yyvs
;
1410 yytype_int16
*yyss1
= yyss
;
1412 /* Each stack pointer address is followed by the size of the
1413 data in use in that stack, in bytes. This used to be a
1414 conditional around just the two extra args, but that might
1415 be undefined if yyoverflow is a macro. */
1416 yyoverflow (YY_("memory exhausted"),
1417 &yyss1
, yysize
* sizeof (*yyssp
),
1418 &yyvs1
, yysize
* sizeof (*yyvsp
),
1424 #else /* no yyoverflow */
1425 # ifndef YYSTACK_RELOCATE
1426 goto yyexhaustedlab
;
1428 /* Extend the stack our own way. */
1429 if (YYMAXDEPTH
<= yystacksize
)
1430 goto yyexhaustedlab
;
1432 if (YYMAXDEPTH
< yystacksize
)
1433 yystacksize
= YYMAXDEPTH
;
1436 yytype_int16
*yyss1
= yyss
;
1437 union yyalloc
*yyptr
=
1438 (union yyalloc
*) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize
));
1440 goto yyexhaustedlab
;
1441 YYSTACK_RELOCATE (yyss_alloc
, yyss
);
1442 YYSTACK_RELOCATE (yyvs_alloc
, yyvs
);
1443 # undef YYSTACK_RELOCATE
1445 YYSTACK_FREE (yyss1
);
1448 #endif /* no yyoverflow */
1450 yyssp
= yyss
+ yysize
- 1;
1451 yyvsp
= yyvs
+ yysize
- 1;
1453 YYDPRINTF ((stderr
, "Stack size increased to %lu\n",
1454 (unsigned long int) yystacksize
));
1456 if (yyss
+ yystacksize
- 1 <= yyssp
)
1460 YYDPRINTF ((stderr
, "Entering state %d\n", yystate
));
1462 if (yystate
== YYFINAL
)
1472 /* Do appropriate processing given the current state. Read a
1473 lookahead token if we need one and don't already have one. */
1475 /* First try to decide what to do without reference to lookahead token. */
1476 yyn
= yypact
[yystate
];
1477 if (yyn
== YYPACT_NINF
)
1480 /* Not known => get a lookahead token if don't already have one. */
1482 /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
1483 if (yychar
== YYEMPTY
)
1485 YYDPRINTF ((stderr
, "Reading a token: "));
1489 if (yychar
<= YYEOF
)
1491 yychar
= yytoken
= YYEOF
;
1492 YYDPRINTF ((stderr
, "Now at end of input.\n"));
1496 yytoken
= YYTRANSLATE (yychar
);
1497 YY_SYMBOL_PRINT ("Next token is", yytoken
, &yylval
, &yylloc
);
1500 /* If the proper action on seeing token YYTOKEN is to reduce or to
1501 detect an error, take that action. */
1503 if (yyn
< 0 || YYLAST
< yyn
|| yycheck
[yyn
] != yytoken
)
1508 if (yyn
== 0 || yyn
== YYTABLE_NINF
)
1514 /* Count tokens shifted since error; after three, turn off error
1519 /* Shift the lookahead token. */
1520 YY_SYMBOL_PRINT ("Shifting", yytoken
, &yylval
, &yylloc
);
1522 /* Discard the shifted token. */
1531 /*-----------------------------------------------------------.
1532 | yydefault -- do the default action for the current state. |
1533 `-----------------------------------------------------------*/
1535 yyn
= yydefact
[yystate
];
1541 /*-----------------------------.
1542 | yyreduce -- Do a reduction. |
1543 `-----------------------------*/
1545 /* yyn is the number of a rule to reduce with. */
1548 /* If YYLEN is nonzero, implement the default value of the action:
1551 Otherwise, the following line sets YYVAL to garbage.
1552 This behavior is undocumented and Bison
1553 users should not rely upon it. Assigning to YYVAL
1554 unconditionally makes the parser a bit smaller, and it avoids a
1555 GCC warning that YYVAL may be used uninitialized. */
1556 yyval
= yyvsp
[1-yylen
];
1559 YY_REDUCE_PRINT (yyn
);
1564 { parse_save((yyvsp
[(1) - (1)]).parse
); ;}
1569 { (yyval
).parse
= pnull(); ;}
1574 { (yyval
).parse
= (yyvsp
[(1) - (1)]).parse
; ;}
1579 { (yyval
).parse
= (yyvsp
[(1) - (1)]).parse
; ;}
1584 { (yyval
).parse
= prules((yyvsp
[(1) - (2)]).parse
, (yyvsp
[(2) - (2)]).parse
); ;}
1589 { (yyval
).parse
= plocal((yyvsp
[(2) - (4)]).parse
, pnull(), (yyvsp
[(4) - (4)]).parse
); ;}
1594 { (yyval
).parse
= plocal((yyvsp
[(2) - (6)]).parse
, (yyvsp
[(4) - (6)]).parse
, (yyvsp
[(6) - (6)]).parse
); ;}
1599 { (yyval
).parse
= (yyvsp
[(2) - (3)]).parse
; ;}
1604 { (yyval
).parse
= pincl((yyvsp
[(2) - (3)]).parse
); ;}
1609 { (yyval
).parse
= psincl((yyvsp
[(2) - (3)]).parse
); ;}
1614 { (yyval
).parse
= prule((yyvsp
[(1) - (3)]).parse
, (yyvsp
[(2) - (3)]).parse
); ;}
1619 { (yyval
).parse
= pset((yyvsp
[(1) - (4)]).parse
, (yyvsp
[(3) - (4)]).parse
, (yyvsp
[(2) - (4)]).number
); ;}
1624 { (yyval
).parse
= pset1((yyvsp
[(1) - (6)]).parse
, (yyvsp
[(3) - (6)]).parse
, (yyvsp
[(5) - (6)]).parse
, (yyvsp
[(4) - (6)]).number
); ;}
1629 { (yyval
).parse
= pbreak((yyvsp
[(2) - (3)]).parse
, JMP_BREAK
); ;}
1634 { (yyval
).parse
= pbreak((yyvsp
[(2) - (3)]).parse
, JMP_CONTINUE
); ;}
1639 { (yyval
).parse
= pbreak((yyvsp
[(2) - (3)]).parse
, JMP_RETURN
); ;}
1644 { (yyval
).parse
= pfor((yyvsp
[(2) - (7)]).string
, (yyvsp
[(4) - (7)]).parse
, (yyvsp
[(6) - (7)]).parse
); ;}
1649 { (yyval
).parse
= pswitch((yyvsp
[(2) - (5)]).parse
, (yyvsp
[(4) - (5)]).parse
); ;}
1654 { (yyval
).parse
= pif((yyvsp
[(2) - (5)]).parse
, (yyvsp
[(4) - (5)]).parse
, pnull()); ;}
1659 { (yyval
).parse
= pif((yyvsp
[(2) - (7)]).parse
, (yyvsp
[(4) - (7)]).parse
, (yyvsp
[(7) - (7)]).parse
); ;}
1664 { (yyval
).parse
= pwhile((yyvsp
[(2) - (5)]).parse
, (yyvsp
[(4) - (5)]).parse
); ;}
1669 { (yyval
).parse
= psetc((yyvsp
[(2) - (6)]).string
, (yyvsp
[(3) - (6)]).parse
, (yyvsp
[(5) - (6)]).parse
); ;}
1674 { (yyval
).parse
= pon((yyvsp
[(2) - (3)]).parse
, (yyvsp
[(3) - (3)]).parse
); ;}
1679 { yymode(SCAN_STRING
); ;}
1684 { yymode(SCAN_NORMAL
); ;}
1689 { (yyval
).parse
= psete((yyvsp
[(3) - (9)]).string
, (yyvsp
[(4) - (9)]).parse
, (yyvsp
[(7) - (9)]).string
, (yyvsp
[(2) - (9)]).number
); ;}
1694 { (yyval
).number
= VAR_SET
; ;}
1699 { (yyval
).number
= VAR_APPEND
; ;}
1704 { (yyval
).number
= VAR_REMOVE
; ;}
1709 { (yyval
).number
= VAR_DEFAULT
; ;}
1714 { (yyval
).parse
= peval(EXPR_EXISTS
, (yyvsp
[(1) - (1)]).parse
, pnull()); ;}
1719 { (yyval
).parse
= peval(EXPR_EQUALS
, (yyvsp
[(1) - (3)]).parse
, (yyvsp
[(3) - (3)]).parse
); ;}
1724 { (yyval
).parse
= peval(EXPR_EQUALS
, (yyvsp
[(1) - (3)]).parse
, (yyvsp
[(3) - (3)]).parse
); ;}
1729 { (yyval
).parse
= peval(EXPR_NOTEQ
, (yyvsp
[(1) - (3)]).parse
, (yyvsp
[(3) - (3)]).parse
); ;}
1734 { (yyval
).parse
= peval(EXPR_LESS
, (yyvsp
[(1) - (3)]).parse
, (yyvsp
[(3) - (3)]).parse
); ;}
1739 { (yyval
).parse
= peval(EXPR_LESSEQ
, (yyvsp
[(1) - (3)]).parse
, (yyvsp
[(3) - (3)]).parse
); ;}
1744 { (yyval
).parse
= peval(EXPR_MORE
, (yyvsp
[(1) - (3)]).parse
, (yyvsp
[(3) - (3)]).parse
); ;}
1749 { (yyval
).parse
= peval(EXPR_MOREEQ
, (yyvsp
[(1) - (3)]).parse
, (yyvsp
[(3) - (3)]).parse
); ;}
1754 { (yyval
).parse
= peval(EXPR_AND
, (yyvsp
[(1) - (3)]).parse
, (yyvsp
[(3) - (3)]).parse
); ;}
1759 { (yyval
).parse
= peval(EXPR_AND
, (yyvsp
[(1) - (3)]).parse
, (yyvsp
[(3) - (3)]).parse
); ;}
1764 { (yyval
).parse
= peval(EXPR_OR
, (yyvsp
[(1) - (3)]).parse
, (yyvsp
[(3) - (3)]).parse
); ;}
1769 { (yyval
).parse
= peval(EXPR_OR
, (yyvsp
[(1) - (3)]).parse
, (yyvsp
[(3) - (3)]).parse
); ;}
1774 { (yyval
).parse
= peval(EXPR_IN
, (yyvsp
[(1) - (3)]).parse
, (yyvsp
[(3) - (3)]).parse
); ;}
1779 { (yyval
).parse
= peval(EXPR_NOT
, (yyvsp
[(2) - (2)]).parse
, pnull()); ;}
1784 { (yyval
).parse
= (yyvsp
[(2) - (3)]).parse
; ;}
1789 { (yyval
).parse
= P0
; ;}
1794 { (yyval
).parse
= pnode((yyvsp
[(1) - (2)]).parse
, (yyvsp
[(2) - (2)]).parse
); ;}
1799 { (yyval
).parse
= psnode((yyvsp
[(2) - (4)]).string
, (yyvsp
[(4) - (4)]).parse
); ;}
1804 { (yyval
).parse
= P0
; ;}
1809 { (yyval
).parse
= psnode((yyvsp
[(1) - (3)]).string
, (yyvsp
[(3) - (3)]).parse
); ;}
1814 { (yyval
).parse
= psnode((yyvsp
[(1) - (1)]).string
, P0
); ;}
1819 { (yyval
).parse
= pnode(P0
, (yyvsp
[(1) - (1)]).parse
); ;}
1824 { (yyval
).parse
= pnode((yyvsp
[(3) - (3)]).parse
, (yyvsp
[(1) - (3)]).parse
); ;}
1829 { (yyval
).parse
= (yyvsp
[(1) - (1)]).parse
; yymode(SCAN_NORMAL
); ;}
1834 { (yyval
).parse
= pnull(); yymode(SCAN_PUNCT
); ;}
1839 { (yyval
).parse
= pappend((yyvsp
[(1) - (2)]).parse
, (yyvsp
[(2) - (2)]).parse
); ;}
1844 { (yyval
).parse
= plist((yyvsp
[(1) - (1)]).string
); ;}
1849 { yymode(SCAN_NORMAL
); ;}
1854 { (yyval
).parse
= (yyvsp
[(3) - (4)]).parse
; ;}
1859 { (yyval
).parse
= prule((yyvsp
[(1) - (2)]).parse
, (yyvsp
[(2) - (2)]).parse
); ;}
1864 { (yyval
).parse
= pon((yyvsp
[(2) - (4)]).parse
, prule((yyvsp
[(3) - (4)]).parse
, (yyvsp
[(4) - (4)]).parse
)); ;}
1869 { (yyval
).parse
= pon((yyvsp
[(2) - (4)]).parse
, (yyvsp
[(4) - (4)]).parse
); ;}
1874 { (yyval
).number
= 0; ;}
1879 { (yyval
).number
= (yyvsp
[(1) - (2)]).number
| (yyvsp
[(2) - (2)]).number
; ;}
1884 { (yyval
).number
= RULE_UPDATED
; ;}
1889 { (yyval
).number
= RULE_TOGETHER
; ;}
1894 { (yyval
).number
= RULE_IGNORE
; ;}
1899 { (yyval
).number
= RULE_QUIETLY
; ;}
1904 { (yyval
).number
= RULE_PIECEMEAL
; ;}
1909 { (yyval
).number
= RULE_EXISTING
; ;}
1914 { (yyval
).number
= atoi((yyvsp
[(2) - (2)]).string
)*RULE_MAXLINE
; ;}
1919 { (yyval
).parse
= pnull(); ;}
1924 { (yyval
).parse
= (yyvsp
[(2) - (2)]).parse
; ;}
1931 YY_SYMBOL_PRINT ("-> $$ =", yyr1
[yyn
], &yyval
, &yyloc
);
1935 YY_STACK_PRINT (yyss
, yyssp
);
1939 /* Now `shift' the result of the reduction. Determine what state
1940 that goes to, based on the state we popped back to and the rule
1941 number reduced by. */
1945 yystate
= yypgoto
[yyn
- YYNTOKENS
] + *yyssp
;
1946 if (0 <= yystate
&& yystate
<= YYLAST
&& yycheck
[yystate
] == *yyssp
)
1947 yystate
= yytable
[yystate
];
1949 yystate
= yydefgoto
[yyn
- YYNTOKENS
];
1954 /*------------------------------------.
1955 | yyerrlab -- here on detecting error |
1956 `------------------------------------*/
1958 /* If not already recovering from an error, report this error. */
1962 #if ! YYERROR_VERBOSE
1963 yyerror (YY_("syntax error"));
1966 YYSIZE_T yysize
= yysyntax_error (0, yystate
, yychar
);
1967 if (yymsg_alloc
< yysize
&& yymsg_alloc
< YYSTACK_ALLOC_MAXIMUM
)
1969 YYSIZE_T yyalloc
= 2 * yysize
;
1970 if (! (yysize
<= yyalloc
&& yyalloc
<= YYSTACK_ALLOC_MAXIMUM
))
1971 yyalloc
= YYSTACK_ALLOC_MAXIMUM
;
1972 if (yymsg
!= yymsgbuf
)
1973 YYSTACK_FREE (yymsg
);
1974 yymsg
= (char *) YYSTACK_ALLOC (yyalloc
);
1976 yymsg_alloc
= yyalloc
;
1980 yymsg_alloc
= sizeof yymsgbuf
;
1984 if (0 < yysize
&& yysize
<= yymsg_alloc
)
1986 (void) yysyntax_error (yymsg
, yystate
, yychar
);
1991 yyerror (YY_("syntax error"));
1993 goto yyexhaustedlab
;
2001 if (yyerrstatus
== 3)
2003 /* If just tried and failed to reuse lookahead token after an
2004 error, discard it. */
2006 if (yychar
<= YYEOF
)
2008 /* Return failure if at end of input. */
2009 if (yychar
== YYEOF
)
2014 yydestruct ("Error: discarding",
2020 /* Else will try to reuse lookahead token after shifting the error
2025 /*---------------------------------------------------.
2026 | yyerrorlab -- error raised explicitly by YYERROR. |
2027 `---------------------------------------------------*/
2030 /* Pacify compilers like GCC when the user code never invokes
2031 YYERROR and the label yyerrorlab therefore never appears in user
2033 if (/*CONSTCOND*/ 0)
2036 /* Do not reclaim the symbols of the rule which action triggered
2040 YY_STACK_PRINT (yyss
, yyssp
);
2045 /*-------------------------------------------------------------.
2046 | yyerrlab1 -- common code for both syntax error and YYERROR. |
2047 `-------------------------------------------------------------*/
2049 yyerrstatus
= 3; /* Each real token shifted decrements this. */
2053 yyn
= yypact
[yystate
];
2054 if (yyn
!= YYPACT_NINF
)
2057 if (0 <= yyn
&& yyn
<= YYLAST
&& yycheck
[yyn
] == YYTERROR
)
2065 /* Pop the current state because it cannot handle the error token. */
2070 yydestruct ("Error: popping",
2071 yystos
[yystate
], yyvsp
);
2074 YY_STACK_PRINT (yyss
, yyssp
);
2080 /* Shift the error token. */
2081 YY_SYMBOL_PRINT ("Shifting", yystos
[yyn
], yyvsp
, yylsp
);
2087 /*-------------------------------------.
2088 | yyacceptlab -- YYACCEPT comes here. |
2089 `-------------------------------------*/
2094 /*-----------------------------------.
2095 | yyabortlab -- YYABORT comes here. |
2096 `-----------------------------------*/
2101 #if !defined(yyoverflow) || YYERROR_VERBOSE
2102 /*-------------------------------------------------.
2103 | yyexhaustedlab -- memory exhaustion comes here. |
2104 `-------------------------------------------------*/
2106 yyerror (YY_("memory exhausted"));
2112 if (yychar
!= YYEMPTY
)
2113 yydestruct ("Cleanup: discarding lookahead",
2115 /* Do not reclaim the symbols of the rule which action triggered
2116 this YYABORT or YYACCEPT. */
2118 YY_STACK_PRINT (yyss
, yyssp
);
2119 while (yyssp
!= yyss
)
2121 yydestruct ("Cleanup: popping",
2122 yystos
[*yyssp
], yyvsp
);
2127 YYSTACK_FREE (yyss
);
2130 if (yymsg
!= yymsgbuf
)
2131 YYSTACK_FREE (yymsg
);
2133 /* Make sure YYID is used. */
2134 return YYID (yyresult
);