]> git.saurik.com Git - bison.git/blame - src/parse-gram.c
Regen.
[bison.git] / src / parse-gram.c
CommitLineData
d70059ec 1/* A Bison parser, made by GNU Bison 2.4.336-b5c21. */
1c7b7e1d 2
ccde1f98 3/* Implementation for Bison's Yacc-like parsers in C
21db118b 4
ccde1f98 5 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
b19ebeb3 6 2007, 2008, 2009 Free Software Foundation, Inc.
21db118b 7
f16b0819 8 This program is free software: you can redistribute it and/or modify
1921f1d7 9 it under the terms of the GNU General Public License as published by
f16b0819
PE
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
21db118b 12
1921f1d7
AD
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.
21db118b 17
1921f1d7 18 You should have received a copy of the GNU General Public License
f16b0819 19 along with this program. If not, see <http://www.gnu.org/licenses/>. */
1921f1d7 20
04c12cb8
PE
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.
21db118b 30
04c12cb8
PE
31 This special exception was added by the Free Software Foundation in
32 version 2.2 of Bison. */
1921f1d7 33
66809587
PE
34/* C LALR(1) parser skeleton written by Richard Stallman, by
35 simplifying the original so-called "semantic" parser. */
1921f1d7
AD
36
37/* All symbols defined below should begin with yy or YY, to avoid
38 infringing on user name space. This should be done even for local
39 variables, as they might otherwise be expanded by user macros.
40 There are some unavoidable exceptions within include files to
41 define necessary library symbols; they are noted "INFRINGES ON
42 USER NAME SPACE" below. */
43
44/* Identify Bison output. */
62ddaef6
PE
45#define YYBISON 1
46
f5109f5a 47/* Bison version. */
d70059ec 48#define YYBISON_VERSION "2.4.336-b5c21"
f5109f5a 49
62ddaef6
PE
50/* Skeleton name. */
51#define YYSKELETON_NAME "yacc.c"
1921f1d7
AD
52
53/* Pure parsers. */
62ddaef6 54#define YYPURE 1
1921f1d7 55
e021811a
JD
56/* Push parsers. */
57#define YYPUSH 0
58
59/* Pull parsers. */
60#define YYPULL 1
61
1921f1d7
AD
62/* Using locations. */
63#define YYLSP_NEEDED 1
e96c9728 64
76dcf299 65/* Substitute the variable and function names. */
e021811a
JD
66#define yyparse gram_parse
67#define yylex gram_lex
68#define yyerror gram_error
69#define yylval gram_lval
70#define yychar gram_char
71#define yydebug gram_debug
72#define yynerrs gram_nerrs
73#define yylloc gram_lloc
e9955c83 74
1921f1d7 75/* Copy the first part of user declarations. */
ccde1f98 76/* Line 191 of yacc.c */
0bf92491 77#line 1 "parse-gram.y"
a76ca263
PE
78/* Bison Grammar Parser -*- C -*-
79
dc450175 80 Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
ab7f29f8 81 Foundation, Inc.
a76ca263
PE
82
83 This file is part of Bison, the GNU Compiler Compiler.
84
f16b0819 85 This program is free software: you can redistribute it and/or modify
a76ca263 86 it under the terms of the GNU General Public License as published by
f16b0819 87 the Free Software Foundation, either version 3 of the License, or
a76ca263
PE
88 (at your option) any later version.
89
90 This program is distributed in the hope that it will be useful,
91 but WITHOUT ANY WARRANTY; without even the implied warranty of
92 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
93 GNU General Public License for more details.
94
95 You should have received a copy of the GNU General Public License
f16b0819 96 along with this program. If not, see <http://www.gnu.org/licenses/>. */
e9955c83 97
72c4d336 98#include <config.h>
e9955c83 99#include "system.h"
05d18c24 100
b275314e 101#include "complain.h"
05d18c24 102#include "conflicts.h"
e9955c83
AD
103#include "files.h"
104#include "getargs.h"
e9955c83 105#include "gram.h"
3583d96b 106#include "muscle-tab.h"
2ce37586 107#include "quotearg.h"
e9955c83 108#include "reader.h"
05d18c24 109#include "symlist.h"
d70059ec 110#include "named-ref.h"
e9071366
AD
111#include "scan-gram.h"
112#include "scan-code.h"
e9955c83 113
05d18c24
PE
114#define YYLLOC_DEFAULT(Current, Rhs, N) (Current) = lloc_default (Rhs, N)
115static YYLTYPE lloc_default (YYLTYPE const *, int);
e9955c83 116
8a8dc872 117#define YY_LOCATION_PRINT(File, Loc) \
bf8b3d98 118 location_print (File, Loc)
8a8dc872 119
b50d2359
AD
120static void version_check (location const *loc, char const *version);
121
f0616f0b 122/* Request detailed syntax error messages, and pass them to GRAM_ERROR.
05d18c24 123 FIXME: depends on the undocumented availability of YYLLOC. */
e9955c83
AD
124#undef yyerror
125#define yyerror(Msg) \
bf8b3d98 126 gram_error (&yylloc, Msg)
05d18c24 127static void gram_error (location const *, char const *);
e9955c83 128
d2a1a60a
PE
129static char const *char_name (char);
130
2ce4ed68
AD
131/** Add a lex-param or a parse-param.
132 *
133 * \param type \a lex_param or \a parse_param
134 * \param decl the formal argument
135 * \param loc the location in the source.
136 */
137static void add_param (char const *type, char *decl, location loc);
138
e9955c83 139
5f3df396 140static symbol_class current_class = unknown_sym;
1f4cc0f4 141static uniqstr current_type = NULL;
7029f892
PE
142static symbol *current_lhs;
143static location current_lhs_location;
d70059ec 144static named_ref *current_lhs_named_ref;
5f3df396 145static int current_prec = 0;
e9955c83 146
b3d9b5ba
PE
147#define YYTYPE_INT16 int_fast16_t
148#define YYTYPE_INT8 int_fast8_t
149#define YYTYPE_UINT16 uint_fast16_t
150#define YYTYPE_UINT8 uint_fast8_t
bf8b3d98 151
ccde1f98 152/* Line 191 of yacc.c */
2f5b478e 153#line 154 "/Users/akim/src/kernel/bison/src/parse-gram.c"
136a0f76 154
1921f1d7
AD
155/* Enabling traces. */
156#ifndef YYDEBUG
157# define YYDEBUG 1
158#endif
159
160/* Enabling verbose error messages. */
161#ifdef YYERROR_VERBOSE
162# undef YYERROR_VERBOSE
163# define YYERROR_VERBOSE 1
164#else
cd3684cf 165# define YYERROR_VERBOSE 1
1921f1d7
AD
166#endif
167
5f3df396
PE
168/* Enabling the token table. */
169#ifndef YYTOKEN_TABLE
170# define YYTOKEN_TABLE 0
171#endif
172
9bc0dd67
JD
173
174/* Tokens. */
175#ifndef YYTOKENTYPE
176# define YYTOKENTYPE
177 /* Put the tokens into the symbol table, so that GDB and other debuggers
178 know about them. */
179 enum yytokentype {
180 GRAM_EOF = 0,
181 STRING = 258,
182 INT = 259,
183 PERCENT_TOKEN = 260,
184 PERCENT_NTERM = 261,
185 PERCENT_TYPE = 262,
186 PERCENT_DESTRUCTOR = 263,
187 PERCENT_PRINTER = 264,
12e35840
JD
188 PERCENT_LEFT = 265,
189 PERCENT_RIGHT = 266,
190 PERCENT_NONASSOC = 267,
f7398526
AD
191 PERCENT_PRECEDENCE = 268,
192 PERCENT_PREC = 269,
193 PERCENT_DPREC = 270,
194 PERCENT_MERGE = 271,
195 PERCENT_CODE = 272,
86cfae0a
AD
196 PERCENT_DEFAULT_PREC = 273,
197 PERCENT_DEFINE = 274,
198 PERCENT_DEFINES = 275,
2f5b478e
AD
199 PERCENT_ERROR_VERBOSE = 276,
200 PERCENT_EXPECT = 277,
201 PERCENT_EXPECT_RR = 278,
202 PERCENT_FLAG = 279,
203 PERCENT_FILE_PREFIX = 280,
204 PERCENT_GLR_PARSER = 281,
205 PERCENT_INITIAL_ACTION = 282,
206 PERCENT_LANGUAGE = 283,
207 PERCENT_LEX_PARAM = 284,
208 PERCENT_NAME_PREFIX = 285,
209 PERCENT_NO_DEFAULT_PREC = 286,
210 PERCENT_NO_LINES = 287,
211 PERCENT_NONDETERMINISTIC_PARSER = 288,
212 PERCENT_OUTPUT = 289,
213 PERCENT_PARSE_PARAM = 290,
214 PERCENT_REQUIRE = 291,
215 PERCENT_SKELETON = 292,
216 PERCENT_START = 293,
217 PERCENT_TOKEN_TABLE = 294,
218 PERCENT_VERBOSE = 295,
219 PERCENT_YACC = 296,
220 BRACED_CODE = 297,
221 CHAR = 298,
222 EPILOGUE = 299,
223 EQUAL = 300,
224 ID = 301,
225 ID_COLON = 302,
226 PERCENT_PERCENT = 303,
227 PIPE = 304,
228 PROLOGUE = 305,
229 SEMICOLON = 306,
230 TAG = 307,
231 TAG_ANY = 308,
232 TAG_NONE = 309,
233 BRACKETED_ID = 310,
234 PERCENT_UNION = 311
9bc0dd67
JD
235 };
236#endif
8f7ebfc8
JD
237/* Tokens. */
238#define GRAM_EOF 0
239#define STRING 258
240#define INT 259
241#define PERCENT_TOKEN 260
242#define PERCENT_NTERM 261
243#define PERCENT_TYPE 262
244#define PERCENT_DESTRUCTOR 263
245#define PERCENT_PRINTER 264
246#define PERCENT_LEFT 265
247#define PERCENT_RIGHT 266
248#define PERCENT_NONASSOC 267
f7398526
AD
249#define PERCENT_PRECEDENCE 268
250#define PERCENT_PREC 269
251#define PERCENT_DPREC 270
252#define PERCENT_MERGE 271
253#define PERCENT_CODE 272
86cfae0a
AD
254#define PERCENT_DEFAULT_PREC 273
255#define PERCENT_DEFINE 274
256#define PERCENT_DEFINES 275
2f5b478e
AD
257#define PERCENT_ERROR_VERBOSE 276
258#define PERCENT_EXPECT 277
259#define PERCENT_EXPECT_RR 278
260#define PERCENT_FLAG 279
261#define PERCENT_FILE_PREFIX 280
262#define PERCENT_GLR_PARSER 281
263#define PERCENT_INITIAL_ACTION 282
264#define PERCENT_LANGUAGE 283
265#define PERCENT_LEX_PARAM 284
266#define PERCENT_NAME_PREFIX 285
267#define PERCENT_NO_DEFAULT_PREC 286
268#define PERCENT_NO_LINES 287
269#define PERCENT_NONDETERMINISTIC_PARSER 288
270#define PERCENT_OUTPUT 289
271#define PERCENT_PARSE_PARAM 290
272#define PERCENT_REQUIRE 291
273#define PERCENT_SKELETON 292
274#define PERCENT_START 293
275#define PERCENT_TOKEN_TABLE 294
276#define PERCENT_VERBOSE 295
277#define PERCENT_YACC 296
278#define BRACED_CODE 297
279#define CHAR 298
280#define EPILOGUE 299
281#define EQUAL 300
282#define ID 301
283#define ID_COLON 302
284#define PERCENT_PERCENT 303
285#define PIPE 304
286#define PROLOGUE 305
287#define SEMICOLON 306
288#define TAG 307
289#define TAG_ANY 308
290#define TAG_NONE 309
291#define BRACKETED_ID 310
292#define PERCENT_UNION 311
8f7ebfc8 293
9bc0dd67
JD
294
295
296
bf8b3d98
PE
297#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
298typedef union YYSTYPE
136a0f76 299{
d70059ec
AR
300/* Line 216 of yacc.c */
301#line 94 "parse-gram.y"
50a33993 302
05d18c24
PE
303 symbol *symbol;
304 symbol_list *list;
e9955c83 305 int integer;
ff8d8df2
PE
306 char const *chars;
307 char *code;
05d18c24
PE
308 assoc assoc;
309 uniqstr uniqstr;
58d7a1a1 310 unsigned char character;
d70059ec 311 named_ref *named_ref;
136a0f76 312
7ecec4dd 313
d70059ec 314/* Line 216 of yacc.c */
2f5b478e 315#line 316 "/Users/akim/src/kernel/bison/src/parse-gram.c"
7ecec4dd 316} YYSTYPE;
1f4cc0f4 317# define YYSTYPE_IS_TRIVIAL 1
73521d9f
PE
318# define yystype YYSTYPE /* obsolescent; will be withdrawn */
319# define YYSTYPE_IS_DECLARED 1
e9955c83
AD
320#endif
321
bf8b3d98 322#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
73521d9f 323typedef struct YYLTYPE
e9955c83
AD
324{
325 int first_line;
326 int first_column;
327 int last_line;
328 int last_column;
73521d9f
PE
329} YYLTYPE;
330# define yyltype YYLTYPE /* obsolescent; will be withdrawn */
331# define YYLTYPE_IS_DECLARED 1
e9955c83
AD
332# define YYLTYPE_IS_TRIVIAL 1
333#endif
334
73521d9f 335
1921f1d7 336/* Copy the second part of user declarations. */
0c15323d 337
ccde1f98 338/* Line 266 of yacc.c */
2f5b478e 339#line 340 "/Users/akim/src/kernel/bison/src/parse-gram.c"
bf8b3d98
PE
340
341#ifdef short
342# undef short
343#endif
344
345#ifdef YYTYPE_UINT8
346typedef YYTYPE_UINT8 yytype_uint8;
347#else
348typedef unsigned char yytype_uint8;
349#endif
350
351#ifdef YYTYPE_INT8
352typedef YYTYPE_INT8 yytype_int8;
353#elif (defined __STDC__ || defined __C99__FUNC__ \
354 || defined __cplusplus || defined _MSC_VER)
355typedef signed char yytype_int8;
356#else
357typedef short int yytype_int8;
358#endif
359
360#ifdef YYTYPE_UINT16
361typedef YYTYPE_UINT16 yytype_uint16;
362#else
363typedef unsigned short int yytype_uint16;
364#endif
365
366#ifdef YYTYPE_INT16
367typedef YYTYPE_INT16 yytype_int16;
368#else
369typedef short int yytype_int16;
370#endif
2ed28444 371
ac243428 372#ifndef YYSIZE_T
bf8b3d98 373# ifdef __SIZE_TYPE__
ac243428 374# define YYSIZE_T __SIZE_TYPE__
bf8b3d98 375# elif defined size_t
ac243428 376# define YYSIZE_T size_t
bf8b3d98
PE
377# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
378 || defined __cplusplus || defined _MSC_VER)
ac243428
PE
379# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
380# define YYSIZE_T size_t
381# else
382# define YYSIZE_T unsigned int
383# endif
4b43d402 384#endif
e9955c83 385
2abdfeef
PE
386#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
387
6088a2a0
PE
388#ifndef YY_
389# if YYENABLE_NLS
390# if ENABLE_NLS
391# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
392# define YY_(msgid) dgettext ("bison-runtime", msgid)
393# endif
394# endif
395# ifndef YY_
396# define YY_(msgid) msgid
397# endif
398#endif
399
e764d4df 400/* Suppress unused-variable warnings by "using" E. */
bf8b3d98 401#if ! defined lint || defined __GNUC__
7029f892
PE
402# define YYUSE(e) ((void) (e))
403#else
404# define YYUSE(e) /* empty */
405#endif
406
407/* Identity function, used to suppress warnings about constant conditions. */
408#ifndef lint
409# define YYID(n) (n)
410#else
bf8b3d98
PE
411#if (defined __STDC__ || defined __C99__FUNC__ \
412 || defined __cplusplus || defined _MSC_VER)
7029f892 413static int
3b452f4e 414YYID (int yyi)
7029f892
PE
415#else
416static int
3b452f4e
JD
417YYID (yyi)
418 int yyi;
7029f892
PE
419#endif
420{
3b452f4e 421 return yyi;
7029f892
PE
422}
423#endif
e764d4df 424
bf8b3d98 425#if ! defined yyoverflow || YYERROR_VERBOSE
cd3684cf 426
e9955c83
AD
427/* The parser invokes alloca or malloc; define the necessary symbols. */
428
eae34f44
PE
429# ifdef YYSTACK_USE_ALLOCA
430# if YYSTACK_USE_ALLOCA
eae34f44
PE
431# ifdef __GNUC__
432# define YYSTACK_ALLOC __builtin_alloca
bf8b3d98 433# elif defined __BUILTIN_VA_ARG_INCR
ac243428 434# include <alloca.h> /* INFRINGES ON USER NAME SPACE */
bf8b3d98 435# elif defined _AIX
ac243428 436# define YYSTACK_ALLOC __alloca
bf8b3d98 437# elif defined _MSC_VER
ac243428
PE
438# include <malloc.h> /* INFRINGES ON USER NAME SPACE */
439# define alloca _alloca
da436e43
PE
440# else
441# define YYSTACK_ALLOC alloca
bf8b3d98
PE
442# if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
443 || defined __cplusplus || defined _MSC_VER)
4b43d402 444# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
ac243428
PE
445# ifndef _STDLIB_H
446# define _STDLIB_H 1
447# endif
4b43d402 448# endif
e9955c83
AD
449# endif
450# endif
451# endif
452
453# ifdef YYSTACK_ALLOC
3b0ffc7e 454 /* Pacify GCC's `empty if-body' warning. */
7029f892 455# define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
2ce37586 456# ifndef YYSTACK_ALLOC_MAXIMUM
7768896a
PE
457 /* The OS might guarantee only one guard page at the bottom of the stack,
458 and a page size can be as small as 4096 bytes. So we cannot safely
459 invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
460 to allow for a few compiler-allocated temporary stack slots. */
f52b276c 461# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
2ce37586 462# endif
e9955c83 463# else
cd3684cf
AD
464# define YYSTACK_ALLOC YYMALLOC
465# define YYSTACK_FREE YYFREE
2ce37586 466# ifndef YYSTACK_ALLOC_MAXIMUM
2abdfeef 467# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
2ce37586 468# endif
765f22f0
PE
469# if (defined __cplusplus && ! defined _STDLIB_H \
470 && ! ((defined YYMALLOC || defined malloc) \
471 && (defined YYFREE || defined free)))
472# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
473# ifndef _STDLIB_H
474# define _STDLIB_H 1
475# endif
0925ebb4 476# endif
4b43d402
PE
477# ifndef YYMALLOC
478# define YYMALLOC malloc
bf8b3d98
PE
479# if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
480 || defined __cplusplus || defined _MSC_VER)
4b43d402
PE
481void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
482# endif
483# endif
484# ifndef YYFREE
485# define YYFREE free
bf8b3d98
PE
486# if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
487 || defined __cplusplus || defined _MSC_VER)
4b43d402
PE
488void free (void *); /* INFRINGES ON USER NAME SPACE */
489# endif
490# endif
e9955c83 491# endif
bf8b3d98 492#endif /* ! defined yyoverflow || YYERROR_VERBOSE */
e9955c83
AD
493
494
bf8b3d98
PE
495#if (! defined yyoverflow \
496 && (! defined __cplusplus \
497 || (defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL \
498 && defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
e9955c83
AD
499
500/* A type that is properly aligned for any stack member. */
501union yyalloc
502{
e021811a
JD
503 yytype_int16 yyss_alloc;
504 YYSTYPE yyvs_alloc;
505 YYLTYPE yyls_alloc;
e9955c83
AD
506};
507
508/* The size of the maximum gap between one aligned stack and the next. */
05d18c24 509# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
e9955c83
AD
510
511/* The size of an array large to enough to hold all stacks, each with
512 N elements. */
366eea36 513# define YYSTACK_BYTES(N) \
bf8b3d98 514 ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \
05d18c24 515 + 2 * YYSTACK_GAP_MAXIMUM)
e9955c83
AD
516
517/* Copy COUNT objects from FROM to TO. The source and destination do
518 not overlap. */
519# ifndef YYCOPY
bf8b3d98 520# if defined __GNUC__ && 1 < __GNUC__
e9955c83
AD
521# define YYCOPY(To, From, Count) \
522 __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
523# else
524# define YYCOPY(To, From, Count) \
525 do \
526 { \
b4fb989f 527 YYSIZE_T yyi; \
e9955c83 528 for (yyi = 0; yyi < (Count); yyi++) \
f0616f0b 529 (To)[yyi] = (From)[yyi]; \
e9955c83 530 } \
7029f892 531 while (YYID (0))
e9955c83
AD
532# endif
533# endif
534
535/* Relocate STACK from its old location to the new one. The
536 local variables YYSIZE and YYSTACKSIZE give the old and new number of
537 elements in the stack, and YYPTR gives the new location of the
538 stack. Advance YYPTR to a properly aligned location for the next
539 stack. */
e021811a 540# define YYSTACK_RELOCATE(Stack_alloc, Stack) \
e9955c83
AD
541 do \
542 { \
543 YYSIZE_T yynewbytes; \
e021811a
JD
544 YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
545 Stack = &yyptr->Stack_alloc; \
05d18c24 546 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
e9955c83
AD
547 yyptr += yynewbytes / sizeof (*yyptr); \
548 } \
7029f892 549 while (YYID (0))
e9955c83
AD
550
551#endif
552
3b0ffc7e 553/* YYFINAL -- State number of the termination state. */
1921f1d7 554#define YYFINAL 3
d33cb3ae 555/* YYLAST -- Last index in YYTABLE. */
d70059ec 556#define YYLAST 160
1921f1d7 557
3b0ffc7e 558/* YYNTOKENS -- Number of terminals. */
2f5b478e 559#define YYNTOKENS 57
3b0ffc7e 560/* YYNNTS -- Number of nonterminals. */
d70059ec 561#define YYNNTS 34
3b0ffc7e 562/* YYNRULES -- Number of rules. */
2f5b478e 563#define YYNRULES 106
086fd113 564/* YYNSTATES -- Number of states. */
2f5b478e 565#define YYNSTATES 146
1921f1d7 566
2df9ec37
AD
567/* YYTRANSLATE[YYX] -- Symbol number corresponding to YYX as returned
568 by yylex, with out-of-bounds checking. */
1921f1d7 569#define YYUNDEFTOK 2
2f5b478e 570#define YYMAXUTOK 311
1921f1d7 571
5f3df396 572#define YYTRANSLATE(YYX) \
73521d9f 573 ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
1921f1d7 574
2df9ec37
AD
575/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
576 as returned by yylex, without out-of-bounds checking. */
bf8b3d98 577static const yytype_uint8 yytranslate[] =
1921f1d7
AD
578{
579 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
580 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
581 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
582 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
583 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
584 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
585 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
586 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
587 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
588 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
589 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
590 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
591 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
592 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
593 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
594 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
595 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
596 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
597 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
598 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
599 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
600 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
601 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
602 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
603 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
604 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
605 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
606 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
607 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
ae7453f2 608 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
d70059ec 609 45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
2f5b478e 610 55, 56
1921f1d7
AD
611};
612
613#if YYDEBUG
dc450175 614 /* YYRLINEYYN -- Source line where rule number YYN was defined. */
bf8b3d98 615static const yytype_uint16 yyrline[] =
1921f1d7 616{
2f5b478e
AD
617 0, 207, 207, 215, 217, 221, 222, 232, 236, 241,
618 242, 247, 252, 253, 254, 255, 256, 261, 270, 271,
619 272, 273, 274, 275, 276, 277, 278, 279, 280, 304,
620 305, 306, 307, 311, 312, 313, 317, 324, 331, 335,
621 339, 346, 361, 362, 366, 378, 378, 383, 383, 388,
622 399, 414, 415, 416, 417, 421, 422, 427, 429, 434,
623 435, 440, 442, 447, 448, 452, 453, 454, 455, 460,
624 465, 470, 476, 482, 493, 494, 503, 504, 510, 511,
625 512, 519, 519, 524, 525, 526, 531, 533, 535, 537,
626 539, 541, 547, 549, 561, 562, 567, 568, 577, 597,
627 599, 608, 613, 614, 619, 626, 628
1921f1d7
AD
628};
629#endif
630
5f3df396 631#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
9cbfdc9e 632/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
3b0ffc7e 633 First, the terminals, then, starting at YYNTOKENS, nonterminals. */
1921f1d7
AD
634static const char *const yytname[] =
635{
9cbfdc9e 636 "\"end of file\"", "error", "$undefined", "\"string\"", "\"integer\"",
e9071366 637 "\"%token\"", "\"%nterm\"", "\"%type\"", "\"%destructor\"",
f7398526
AD
638 "\"%printer\"", "\"%left\"", "\"%right\"", "\"%nonassoc\"",
639 "\"%precedence\"", "\"%prec\"", "\"%dprec\"", "\"%merge\"", "\"%code\"",
2f5b478e
AD
640 "\"%default-prec\"", "\"%define\"", "\"%defines\"", "\"%error-verbose\"",
641 "\"%expect\"", "\"%expect-rr\"", "\"%<flag>\"", "\"%file-prefix\"",
642 "\"%glr-parser\"", "\"%initial-action\"", "\"%language\"",
643 "\"%lex-param\"", "\"%name-prefix\"", "\"%no-default-prec\"",
644 "\"%no-lines\"", "\"%nondeterministic-parser\"", "\"%output\"",
645 "\"%parse-param\"", "\"%require\"", "\"%skeleton\"", "\"%start\"",
646 "\"%token-table\"", "\"%verbose\"", "\"%yacc\"", "\"{...}\"", "\"char\"",
647 "\"epilogue\"", "\"=\"", "\"identifier\"", "\"identifier:\"", "\"%%\"",
648 "\"|\"", "\"%{...%}\"", "\";\"", "\"<tag>\"", "\"<*>\"", "\"<>\"",
649 "\"[id]\"", "\"%union\"", "$accept", "input", "prologue_declarations",
d70059ec
AR
650 "prologue_declaration", "grammar_declaration", "union_name",
651 "symbol_declaration", "$@1", "$@2", "precedence_declaration",
652 "precedence_declarator", "tag.opt", "symbols.prec", "symbol.prec",
653 "symbols.1", "generic_symlist", "generic_symlist_item", "symbol_def",
654 "symbol_defs.1", "grammar", "rules_or_grammar_declaration", "rules",
655 "$@3", "rhses.1", "rhs", "named_ref.opt", "variable", "content.opt",
656 "braceless", "id", "id_colon", "symbol", "string_as_id", "epilogue.opt", 0
1921f1d7
AD
657};
658#endif
659
3d38c03a 660# ifdef YYPRINT
2df9ec37
AD
661/* YYTOKNUM[NUM] -- (External) token number corresponding to the
662 (internal) symbol number NUM (which must be that of a token). */
bf8b3d98 663static const yytype_uint16 yytoknum[] =
1921f1d7
AD
664{
665 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
666 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
667 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
668 285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
d6328241 669 295, 296, 297, 298, 299, 300, 301, 302, 303, 304,
2f5b478e 670 305, 306, 307, 308, 309, 310, 311
1921f1d7 671};
3d38c03a 672# endif
1921f1d7 673
2f5b478e 674#define YYPACT_NINF -53
1921f1d7 675
2f5b478e 676#define YYTABLE_NINF -106
d12f8e49
AD
677
678 /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
679 STATE-NUM. */
680static const yytype_int16 yypact[] =
1921f1d7 681{
2f5b478e
AD
682 -53, 5, 102, -53, -53, -53, -10, 8, 27, -53,
683 -53, -53, -53, 18, -53, 32, 55, -53, 70, 77,
684 -53, 17, -53, 43, 91, 53, 41, -53, -53, -53,
685 42, 54, 94, 96, 0, -53, -53, -53, 16, -53,
686 -53, 56, -53, -53, -53, -53, 48, 30, 30, 0,
687 13, 13, -53, 61, -53, -53, -53, 101, -53, -53,
688 -53, -53, 113, -53, -53, -53, -53, 114, -53, 115,
689 -53, -53, -53, -53, -53, -53, -53, -53, -53, 93,
690 -53, 95, 1, -53, -53, 50, -53, 61, -53, 0,
691 -53, -53, 30, 33, 30, 0, -53, -53, -53, -53,
692 13, -53, -53, 13, -53, -53, -53, -53, -53, -53,
693 -53, -53, 103, -53, -53, -53, -53, -53, 0, -53,
694 141, -53, 145, -53, -53, -53, -53, -53, -53, -53,
695 -53, 39, 37, -53, -53, 0, 147, 97, 50, 50,
696 37, -53, -53, -53, -53, -53
1921f1d7
AD
697};
698
110ef36a
JD
699 /* YYDEFACT[S] -- default reduction number in state S. Performed when
700 YYTABLE does not specify something else to do. Zero means the default
701 is an error. */
bf8b3d98 702static const yytype_uint8 yydefact[] =
1921f1d7 703{
2f5b478e
AD
704 3, 0, 0, 1, 47, 45, 0, 0, 0, 51,
705 52, 53, 54, 0, 38, 0, 9, 11, 0, 0,
706 7, 0, 16, 0, 0, 0, 0, 39, 22, 23,
707 0, 0, 0, 0, 0, 29, 30, 31, 0, 6,
708 32, 42, 4, 5, 34, 33, 55, 0, 0, 0,
709 0, 0, 98, 0, 40, 95, 94, 96, 10, 12,
710 13, 14, 0, 17, 18, 19, 20, 0, 24, 0,
711 26, 27, 28, 104, 100, 99, 102, 35, 103, 0,
712 101, 0, 0, 76, 78, 92, 43, 0, 56, 0,
713 69, 74, 48, 70, 46, 49, 61, 66, 67, 68,
714 36, 63, 65, 37, 41, 97, 8, 15, 21, 25,
715 80, 79, 0, 77, 2, 93, 81, 44, 50, 57,
716 59, 75, 71, 72, 62, 64, 106, 86, 58, 60,
717 73, 82, 83, 86, 85, 0, 0, 0, 92, 92,
718 84, 89, 90, 91, 88, 87
1921f1d7
AD
719};
720
d12f8e49 721 /* YYPGOTO[NTERM-NUM]. */
d70059ec 722static const yytype_int16 yypgoto[] =
1921f1d7 723{
2f5b478e
AD
724 -53, -53, -53, -53, 152, -53, -53, -53, -53, -53,
725 -53, -53, -53, 38, -53, 104, -32, -3, 109, -53,
726 78, -53, -53, -53, 26, -46, -53, -53, -49, -17,
727 -53, -34, -52, -53
1921f1d7
AD
728};
729
d12f8e49 730 /* YYDEFGOTO[NTERM-NUM]. */
d70059ec 731static const yytype_int16 yydefgoto[] =
d12f8e49 732{
2f5b478e
AD
733 -1, 1, 2, 42, 81, 87, 44, 48, 47, 45,
734 46, 89, 118, 119, 95, 100, 101, 91, 92, 82,
735 83, 84, 127, 131, 132, 116, 57, 106, 54, 76,
736 85, 102, 78, 114
d12f8e49
AD
737};
738
739 /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
740 positive, shift that token. If negative, reduce the rule which
741 number is the opposite. If zero, do what YYDEFACT says.
742 If YYTABLE_NINF, syntax error. */
2ce4ed68 743static const yytype_int16 yytable[] =
1921f1d7 744{
2f5b478e
AD
745 77, -105, 79, 73, 104, 3, 4, 5, 6, 7,
746 8, 9, 10, 11, 12, 96, 73, 79, 13, 14,
747 61, 4, 5, 6, 7, 8, 9, 10, 11, 12,
748 93, 93, 27, 13, 14, 55, 73, 122, 117, 34,
749 73, 123, 49, 74, 66, 68, 75, 27, 80, 112,
750 50, 135, 136, 137, 34, 120, 74, 41, 58, 75,
751 52, 124, 62, 80, 53, 97, 98, 99, 125, 51,
752 130, 125, 41, 74, 59, 93, 75, 93, 56, 138,
753 74, 60, 90, 75, 120, 63, 67, 69, 133, 121,
754 134, 121, 144, 145, 64, 65, 70, 71, 139, 72,
755 88, 141, 86, 52, 105, 115, 139, 4, 5, 6,
756 7, 8, 9, 10, 11, 12, 107, 108, 109, 13,
d70059ec
AR
757 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
758 24, 25, 26, 27, 28, 29, 30, 31, 32, 33,
2f5b478e
AD
759 34, 35, 36, 37, 110, 129, 111, 126, 73, 143,
760 38, 142, 39, 40, 43, 103, 128, 94, 41, 140,
761 113
1921f1d7
AD
762};
763
2f5b478e 764static const yytype_uint8 yycheck[] =
1921f1d7 765{
2f5b478e
AD
766 34, 0, 1, 3, 53, 0, 5, 6, 7, 8,
767 9, 10, 11, 12, 13, 49, 3, 1, 17, 18,
768 3, 5, 6, 7, 8, 9, 10, 11, 12, 13,
769 47, 48, 31, 17, 18, 3, 3, 4, 87, 38,
770 3, 93, 52, 43, 3, 3, 46, 31, 47, 48,
771 42, 14, 15, 16, 38, 89, 43, 56, 3, 46,
772 42, 95, 45, 47, 46, 52, 53, 54, 100, 42,
773 122, 103, 56, 43, 4, 92, 46, 94, 46, 42,
774 43, 4, 52, 46, 118, 42, 45, 45, 49, 92,
775 51, 94, 138, 139, 3, 42, 42, 3, 132, 3,
776 52, 135, 46, 42, 3, 55, 140, 5, 6, 7,
d70059ec
AR
777 8, 9, 10, 11, 12, 13, 3, 3, 3, 17,
778 18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
779 28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
2f5b478e
AD
780 38, 39, 40, 41, 51, 4, 51, 44, 3, 52,
781 48, 4, 50, 51, 2, 51, 118, 48, 56, 133,
782 82
1921f1d7
AD
783};
784
d12f8e49
AD
785 /* STOS_[STATE-NUM] -- The (internal number of the) accessing
786 symbol of state STATE-NUM. */
bf8b3d98 787static const yytype_uint8 yystos[] =
1921f1d7 788{
2f5b478e 789 0, 58, 59, 0, 5, 6, 7, 8, 9, 10,
3583d96b
AD
790 11, 12, 13, 17, 18, 19, 20, 21, 22, 23,
791 24, 25, 26, 27, 28, 29, 30, 31, 32, 33,
2f5b478e
AD
792 34, 35, 36, 37, 38, 39, 40, 41, 48, 50,
793 51, 56, 60, 61, 63, 66, 67, 65, 64, 52,
794 42, 42, 42, 46, 85, 3, 46, 83, 3, 4,
795 4, 3, 45, 42, 3, 42, 3, 45, 3, 45,
796 42, 3, 3, 3, 43, 46, 86, 88, 89, 1,
797 47, 61, 76, 77, 78, 87, 46, 62, 52, 68,
798 52, 74, 75, 86, 75, 71, 88, 52, 53, 54,
799 72, 73, 88, 72, 85, 3, 84, 3, 3, 3,
800 51, 51, 48, 77, 90, 55, 82, 85, 69, 70,
801 88, 74, 4, 89, 88, 73, 44, 79, 70, 4,
802 89, 80, 81, 49, 51, 14, 15, 16, 42, 88,
803 81, 88, 4, 52, 82, 82
1921f1d7 804};
e9955c83 805
d12f8e49
AD
806 /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
807static const yytype_uint8 yyr1[] =
808{
2f5b478e
AD
809 0, 57, 58, 59, 59, 60, 60, 60, 60, 60,
810 60, 60, 60, 60, 60, 60, 60, 60, 60, 60,
811 60, 60, 60, 60, 60, 60, 60, 60, 60, 60,
812 60, 60, 60, 61, 61, 61, 61, 61, 61, 61,
813 61, 61, 62, 62, 61, 64, 63, 65, 63, 63,
814 66, 67, 67, 67, 67, 68, 68, 69, 69, 70,
815 70, 71, 71, 72, 72, 73, 73, 73, 73, 74,
816 74, 74, 74, 74, 75, 75, 76, 76, 77, 77,
817 77, 79, 78, 80, 80, 80, 81, 81, 81, 81,
818 81, 81, 82, 82, 83, 83, 84, 84, 85, 86,
819 86, 87, 88, 88, 89, 90, 90
d12f8e49
AD
820};
821
822 /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
823static const yytype_uint8 yyr2[] =
824{
825 0, 2, 4, 0, 2, 1, 1, 1, 3, 1,
2f5b478e
AD
826 2, 1, 2, 2, 2, 3, 1, 2, 2, 2,
827 2, 3, 1, 1, 2, 3, 2, 2, 2, 1,
828 1, 1, 1, 1, 1, 2, 3, 3, 1, 1,
829 2, 3, 0, 1, 3, 0, 3, 0, 3, 3,
830 3, 1, 1, 1, 1, 0, 1, 1, 2, 1,
831 2, 1, 2, 1, 2, 1, 1, 1, 1, 1,
832 1, 2, 2, 3, 1, 2, 1, 2, 1, 2,
833 2, 0, 4, 1, 3, 2, 0, 3, 3, 3,
834 3, 3, 0, 1, 1, 1, 0, 1, 1, 1,
835 1, 1, 1, 1, 1, 0, 2
d12f8e49
AD
836};
837
838
e9955c83 839#define yyerrok (yyerrstatus = 0)
73521d9f
PE
840#define yyclearin (yychar = YYEMPTY)
841#define YYEMPTY (-2)
e9955c83 842#define YYEOF 0
1921f1d7 843
e9955c83 844#define YYACCEPT goto yyacceptlab
1921f1d7 845#define YYABORT goto yyabortlab
465b4444 846#define YYERROR goto yyerrorlab
6d5aa694 847
1921f1d7 848
e9955c83
AD
849/* Like YYERROR except do call yyerror. This remains here temporarily
850 to ease the transition to the new meaning of YYERROR, for GCC.
851 Once GCC version 2 has supplanted version 1, this can go. */
1921f1d7 852
e9955c83 853#define YYFAIL goto yyerrlab
1921f1d7 854
e9955c83 855#define YYRECOVERING() (!!yyerrstatus)
1921f1d7 856
e9955c83
AD
857#define YYBACKUP(Token, Value) \
858do \
73521d9f 859 if (yychar == YYEMPTY && yylen == 1) \
e9955c83
AD
860 { \
861 yychar = (Token); \
862 yylval = (Value); \
886b69d1 863 yytoken = YYTRANSLATE (yychar); \
3b0ffc7e 864 YYPOPSTACK (1); \
e9955c83
AD
865 goto yybackup; \
866 } \
867 else \
5f3df396 868 { \
6088a2a0 869 yyerror (YY_("syntax error: cannot back up")); \
e9955c83
AD
870 YYERROR; \
871 } \
7029f892 872while (YYID (0))
e9955c83 873
8a8dc872 874
e9955c83
AD
875#define YYTERROR 1
876#define YYERRCODE 256
877
8a8dc872
AD
878
879/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
880 If N is 0, then set CURRENT to the empty location which ends
881 the previous symbol: RHS[0] (always defined). */
e9955c83 882
bbd3fa0c 883#define YYRHSLOC(Rhs, K) ((Rhs)[K])
e9955c83 884#ifndef YYLLOC_DEFAULT
bbd3fa0c
PE
885# define YYLLOC_DEFAULT(Current, Rhs, N) \
886 do \
3b0ffc7e 887 if (YYID (N)) \
bbd3fa0c 888 { \
da436e43
PE
889 (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
890 (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
891 (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
892 (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
bbd3fa0c
PE
893 } \
894 else \
895 { \
896 (Current).first_line = (Current).last_line = \
da436e43 897 YYRHSLOC (Rhs, 0).last_line; \
bbd3fa0c 898 (Current).first_column = (Current).last_column = \
da436e43 899 YYRHSLOC (Rhs, 0).last_column; \
bbd3fa0c 900 } \
7029f892 901 while (YYID (0))
8a8dc872
AD
902#endif
903
904
905/* YY_LOCATION_PRINT -- Print the location on the stream.
906 This macro was not mandated originally: define only if we know
907 we won't break user code: when these are the locations we know. */
908
909#ifndef YY_LOCATION_PRINT
910# if YYLTYPE_IS_TRIVIAL
911# define YY_LOCATION_PRINT(File, Loc) \
912 fprintf (File, "%d.%d-%d.%d", \
bf8b3d98
PE
913 (Loc).first_line, (Loc).first_column, \
914 (Loc).last_line, (Loc).last_column)
8a8dc872
AD
915# else
916# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
917# endif
e9955c83
AD
918#endif
919
8a8dc872 920
e9955c83
AD
921/* YYLEX -- calling `yylex' with the right arguments. */
922
366eea36 923#ifdef YYLEX_PARAM
d33cb3ae 924# define YYLEX yylex (&yylval, &yylloc, YYLEX_PARAM)
366eea36 925#else
d33cb3ae 926# define YYLEX yylex (&yylval, &yylloc)
366eea36 927#endif
e9955c83
AD
928
929/* Enable debugging if requested. */
930#if YYDEBUG
931
74e543d2 932# ifndef YYFPRINTF
e9955c83
AD
933# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
934# define YYFPRINTF fprintf
935# endif
936
937# define YYDPRINTF(Args) \
938do { \
939 if (yydebug) \
940 YYFPRINTF Args; \
7029f892 941} while (YYID (0))
05d18c24 942
4b367315
AD
943# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
944do { \
945 if (yydebug) \
946 { \
947 YYFPRINTF (stderr, "%s ", Title); \
3b0ffc7e 948 yy_symbol_print (stderr, \
bf8b3d98 949 Type, Value, Location); \
4b367315
AD
950 YYFPRINTF (stderr, "\n"); \
951 } \
7029f892 952} while (YYID (0))
f0616f0b 953
3b0ffc7e 954
66809587
PE
955/*--------------------------------.
956| Print this symbol on YYOUTPUT. |
957`--------------------------------*/
958
7029f892 959/*ARGSUSED*/
bf8b3d98
PE
960#if (defined __STDC__ || defined __C99__FUNC__ \
961 || defined __cplusplus || defined _MSC_VER)
66809587 962static void
d2a1a60a 963yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp)
66809587
PE
964#else
965static void
3b0ffc7e 966yy_symbol_value_print (yyoutput, yytype, yyvaluep, yylocationp)
66809587
PE
967 FILE *yyoutput;
968 int yytype;
d2a1a60a
PE
969 YYSTYPE const * const yyvaluep;
970 YYLTYPE const * const yylocationp;
66809587
PE
971#endif
972{
bf8b3d98
PE
973 if (!yyvaluep)
974 return;
66809587 975 YYUSE (yylocationp);
66809587
PE
976# ifdef YYPRINT
977 if (yytype < YYNTOKENS)
978 YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
bf8b3d98
PE
979# else
980 YYUSE (yyoutput);
66809587
PE
981# endif
982 switch (yytype)
983 {
dc450175 984 case 3: // "string"
136a0f76 985
dc450175 986/* Line 647 of yacc.c */
2f5b478e 987#line 183 "parse-gram.y"
dc450175
AD
988 { fputs (quotearg_style (c_quoting_style, ((*yyvaluep).chars)), stderr); }
989/* Line 647 of yacc.c */
2f5b478e 990#line 991 "/Users/akim/src/kernel/bison/src/parse-gram.c"
dc450175 991 break;
136a0f76 992
dc450175 993 case 4: // "integer"
136a0f76 994
dc450175 995/* Line 647 of yacc.c */
2f5b478e 996#line 196 "parse-gram.y"
dc450175
AD
997 { fprintf (stderr, "%d", ((*yyvaluep).integer)); }
998/* Line 647 of yacc.c */
2f5b478e 999#line 1000 "/Users/akim/src/kernel/bison/src/parse-gram.c"
86cfae0a
AD
1000 break;
1001
2f5b478e 1002 case 24: // "%<flag>"
86cfae0a
AD
1003
1004/* Line 647 of yacc.c */
2f5b478e 1005#line 192 "parse-gram.y"
86cfae0a
AD
1006 { fprintf (stderr, "%%%s", ((*yyvaluep).uniqstr)); }
1007/* Line 647 of yacc.c */
2f5b478e 1008#line 1009 "/Users/akim/src/kernel/bison/src/parse-gram.c"
dc450175 1009 break;
136a0f76 1010
2f5b478e 1011 case 42: // "{...}"
136a0f76 1012
dc450175 1013/* Line 647 of yacc.c */
2f5b478e 1014#line 185 "parse-gram.y"
dc450175
AD
1015 { fprintf (stderr, "{\n%s\n}", ((*yyvaluep).code)); }
1016/* Line 647 of yacc.c */
2f5b478e 1017#line 1018 "/Users/akim/src/kernel/bison/src/parse-gram.c"
dc450175 1018 break;
136a0f76 1019
2f5b478e 1020 case 43: // "char"
136a0f76 1021
dc450175 1022/* Line 647 of yacc.c */
2f5b478e 1023#line 177 "parse-gram.y"
dc450175
AD
1024 { fputs (char_name (((*yyvaluep).character)), stderr); }
1025/* Line 647 of yacc.c */
2f5b478e 1026#line 1027 "/Users/akim/src/kernel/bison/src/parse-gram.c"
dc450175 1027 break;
136a0f76 1028
2f5b478e 1029 case 44: // "epilogue"
136a0f76 1030
dc450175 1031/* Line 647 of yacc.c */
2f5b478e 1032#line 185 "parse-gram.y"
dc450175
AD
1033 { fprintf (stderr, "{\n%s\n}", ((*yyvaluep).chars)); }
1034/* Line 647 of yacc.c */
2f5b478e 1035#line 1036 "/Users/akim/src/kernel/bison/src/parse-gram.c"
dc450175 1036 break;
136a0f76 1037
2f5b478e 1038 case 46: // "identifier"
136a0f76 1039
dc450175 1040/* Line 647 of yacc.c */
2f5b478e 1041#line 190 "parse-gram.y"
dc450175
AD
1042 { fputs (((*yyvaluep).uniqstr), stderr); }
1043/* Line 647 of yacc.c */
2f5b478e 1044#line 1045 "/Users/akim/src/kernel/bison/src/parse-gram.c"
dc450175 1045 break;
136a0f76 1046
2f5b478e 1047 case 47: // "identifier:"
136a0f76 1048
dc450175 1049/* Line 647 of yacc.c */
2f5b478e 1050#line 191 "parse-gram.y"
dc450175
AD
1051 { fprintf (stderr, "%s:", ((*yyvaluep).uniqstr)); }
1052/* Line 647 of yacc.c */
2f5b478e 1053#line 1054 "/Users/akim/src/kernel/bison/src/parse-gram.c"
dc450175 1054 break;
136a0f76 1055
2f5b478e 1056 case 50: // "%{...%}"
136a0f76 1057
dc450175 1058/* Line 647 of yacc.c */
2f5b478e 1059#line 185 "parse-gram.y"
dc450175
AD
1060 { fprintf (stderr, "{\n%s\n}", ((*yyvaluep).chars)); }
1061/* Line 647 of yacc.c */
2f5b478e 1062#line 1063 "/Users/akim/src/kernel/bison/src/parse-gram.c"
dc450175 1063 break;
136a0f76 1064
2f5b478e 1065 case 52: // "<tag>"
136a0f76 1066
dc450175 1067/* Line 647 of yacc.c */
2f5b478e 1068#line 193 "parse-gram.y"
dc450175
AD
1069 { fprintf (stderr, "<%s>", ((*yyvaluep).uniqstr)); }
1070/* Line 647 of yacc.c */
2f5b478e 1071#line 1072 "/Users/akim/src/kernel/bison/src/parse-gram.c"
dc450175 1072 break;
136a0f76 1073
2f5b478e 1074 case 83: // variable
136a0f76 1075
dc450175 1076/* Line 647 of yacc.c */
2f5b478e 1077#line 190 "parse-gram.y"
dc450175
AD
1078 { fputs (((*yyvaluep).uniqstr), stderr); }
1079/* Line 647 of yacc.c */
2f5b478e 1080#line 1081 "/Users/akim/src/kernel/bison/src/parse-gram.c"
dc450175 1081 break;
136a0f76 1082
2f5b478e 1083 case 84: // content.opt
136a0f76 1084
dc450175 1085/* Line 647 of yacc.c */
2f5b478e 1086#line 185 "parse-gram.y"
dc450175
AD
1087 { fprintf (stderr, "{\n%s\n}", ((*yyvaluep).chars)); }
1088/* Line 647 of yacc.c */
2f5b478e 1089#line 1090 "/Users/akim/src/kernel/bison/src/parse-gram.c"
dc450175 1090 break;
136a0f76 1091
2f5b478e 1092 case 85: // braceless
16dc6a9e 1093
dc450175 1094/* Line 647 of yacc.c */
2f5b478e 1095#line 185 "parse-gram.y"
dc450175
AD
1096 { fprintf (stderr, "{\n%s\n}", ((*yyvaluep).chars)); }
1097/* Line 647 of yacc.c */
2f5b478e 1098#line 1099 "/Users/akim/src/kernel/bison/src/parse-gram.c"
dc450175 1099 break;
16dc6a9e 1100
2f5b478e 1101 case 86: // id
136a0f76 1102
dc450175 1103/* Line 647 of yacc.c */
2f5b478e 1104#line 199 "parse-gram.y"
dc450175
AD
1105 { fprintf (stderr, "%s", ((*yyvaluep).symbol)->tag); }
1106/* Line 647 of yacc.c */
2f5b478e 1107#line 1108 "/Users/akim/src/kernel/bison/src/parse-gram.c"
dc450175 1108 break;
136a0f76 1109
2f5b478e 1110 case 87: // id_colon
136a0f76 1111
dc450175 1112/* Line 647 of yacc.c */
2f5b478e 1113#line 200 "parse-gram.y"
dc450175
AD
1114 { fprintf (stderr, "%s:", ((*yyvaluep).symbol)->tag); }
1115/* Line 647 of yacc.c */
2f5b478e 1116#line 1117 "/Users/akim/src/kernel/bison/src/parse-gram.c"
dc450175 1117 break;
136a0f76 1118
2f5b478e 1119 case 88: // symbol
136a0f76 1120
dc450175 1121/* Line 647 of yacc.c */
2f5b478e 1122#line 199 "parse-gram.y"
dc450175
AD
1123 { fprintf (stderr, "%s", ((*yyvaluep).symbol)->tag); }
1124/* Line 647 of yacc.c */
2f5b478e 1125#line 1126 "/Users/akim/src/kernel/bison/src/parse-gram.c"
dc450175 1126 break;
136a0f76 1127
2f5b478e 1128 case 89: // string_as_id
136a0f76 1129
dc450175 1130/* Line 647 of yacc.c */
2f5b478e 1131#line 199 "parse-gram.y"
dc450175
AD
1132 { fprintf (stderr, "%s", ((*yyvaluep).symbol)->tag); }
1133/* Line 647 of yacc.c */
2f5b478e 1134#line 1135 "/Users/akim/src/kernel/bison/src/parse-gram.c"
dc450175 1135 break;
136a0f76 1136
66809587 1137 default:
bf8b3d98 1138 break;
66809587 1139 }
3b0ffc7e
PE
1140}
1141
1142
1143/*--------------------------------.
1144| Print this symbol on YYOUTPUT. |
1145`--------------------------------*/
1146
bf8b3d98
PE
1147#if (defined __STDC__ || defined __C99__FUNC__ \
1148 || defined __cplusplus || defined _MSC_VER)
3b0ffc7e 1149static void
d2a1a60a 1150yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp)
3b0ffc7e
PE
1151#else
1152static void
1153yy_symbol_print (yyoutput, yytype, yyvaluep, yylocationp)
1154 FILE *yyoutput;
1155 int yytype;
d2a1a60a
PE
1156 YYSTYPE const * const yyvaluep;
1157 YYLTYPE const * const yylocationp;
3b0ffc7e
PE
1158#endif
1159{
1160 if (yytype < YYNTOKENS)
1161 YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
1162 else
1163 YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
1164
1165 YY_LOCATION_PRINT (yyoutput, *yylocationp);
1166 YYFPRINTF (yyoutput, ": ");
1167 yy_symbol_value_print (yyoutput, yytype, yyvaluep, yylocationp);
66809587
PE
1168 YYFPRINTF (yyoutput, ")");
1169}
1170
05d18c24
PE
1171/*------------------------------------------------------------------.
1172| yy_stack_print -- Print the state stack from its BOTTOM up to its |
cd3684cf 1173| TOP (included). |
05d18c24
PE
1174`------------------------------------------------------------------*/
1175
bf8b3d98
PE
1176#if (defined __STDC__ || defined __C99__FUNC__ \
1177 || defined __cplusplus || defined _MSC_VER)
05d18c24 1178static void
3b452f4e 1179yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
05d18c24
PE
1180#else
1181static void
3b452f4e
JD
1182yy_stack_print (yybottom, yytop)
1183 yytype_int16 *yybottom;
1184 yytype_int16 *yytop;
05d18c24
PE
1185#endif
1186{
74e543d2 1187 YYFPRINTF (stderr, "Stack now");
3b452f4e
JD
1188 for (; yybottom <= yytop; yybottom++)
1189 {
1190 int yybot = *yybottom;
1191 YYFPRINTF (stderr, " %d", yybot);
1192 }
74e543d2 1193 YYFPRINTF (stderr, "\n");
05d18c24
PE
1194}
1195
1196# define YY_STACK_PRINT(Bottom, Top) \
1197do { \
1198 if (yydebug) \
1199 yy_stack_print ((Bottom), (Top)); \
7029f892 1200} while (YYID (0))
05d18c24
PE
1201
1202
1203/*------------------------------------------------.
1204| Report that the YYRULE is going to be reduced. |
1205`------------------------------------------------*/
1206
bf8b3d98
PE
1207#if (defined __STDC__ || defined __C99__FUNC__ \
1208 || defined __cplusplus || defined _MSC_VER)
05d18c24 1209static void
d12f8e49 1210yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, YYLTYPE *yylsp, int yyrule)
05d18c24
PE
1211#else
1212static void
d12f8e49
AD
1213yy_reduce_print (yyssp, yyvsp, yylsp, yyrule)
1214 yytype_int16 *yyssp;
66809587
PE
1215 YYSTYPE *yyvsp;
1216 YYLTYPE *yylsp;
05d18c24
PE
1217 int yyrule;
1218#endif
1219{
d12f8e49 1220 unsigned long int yylno = yyrline[yyrule];
66809587 1221 int yynrhs = yyr2[yyrule];
05d18c24 1222 int yyi;
66809587 1223 YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
d12f8e49 1224 yyrule - 1, yylno);
66809587
PE
1225 /* The symbols being reduced. */
1226 for (yyi = 0; yyi < yynrhs; yyi++)
1227 {
0bf92491 1228 YYFPRINTF (stderr, " $%d = ", yyi + 1);
d12f8e49
AD
1229 yy_symbol_print (stderr,
1230 yystos[yyssp[yyi + 1 - yynrhs]],
1231 &(yyvsp[(yyi + 1) - (yynrhs)])
1232 , &(yylsp[(yyi + 1) - (yynrhs)]) );
0bf92491 1233 YYFPRINTF (stderr, "\n");
66809587 1234 }
05d18c24
PE
1235}
1236
1237# define YY_REDUCE_PRINT(Rule) \
1238do { \
1239 if (yydebug) \
d12f8e49 1240 yy_reduce_print (yyssp, yyvsp, yylsp, Rule); \
7029f892 1241} while (YYID (0))
05d18c24 1242
e9955c83
AD
1243/* Nonzero means print parse trace. It is left uninitialized so that
1244 multiple parsers can coexist. */
1245int yydebug;
1246#else /* !YYDEBUG */
1247# define YYDPRINTF(Args)
8a8dc872 1248# define YY_SYMBOL_PRINT(Title, Type, Value, Location)
05d18c24
PE
1249# define YY_STACK_PRINT(Bottom, Top)
1250# define YY_REDUCE_PRINT(Rule)
e9955c83
AD
1251#endif /* !YYDEBUG */
1252
05d18c24 1253
e9955c83
AD
1254/* YYINITDEPTH -- initial size of the parser's stacks. */
1255#ifndef YYINITDEPTH
1256# define YYINITDEPTH 200
1257#endif
1258
1259/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
1260 if the built-in stack extension method is used).
1261
1262 Do not make this value too large; the results are undefined if
2ce37586 1263 YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
e9955c83
AD
1264 evaluated with infinite-precision integer arithmetic. */
1265
e9955c83
AD
1266#ifndef YYMAXDEPTH
1267# define YYMAXDEPTH 10000
1268#endif
1921f1d7 1269
e9955c83 1270\f
1921f1d7
AD
1271
1272#if YYERROR_VERBOSE
e9955c83
AD
1273
1274# ifndef yystrlen
bf8b3d98 1275# if defined __GLIBC__ && defined _STRING_H
e9955c83
AD
1276# define yystrlen strlen
1277# else
1278/* Return the length of YYSTR. */
bf8b3d98
PE
1279#if (defined __STDC__ || defined __C99__FUNC__ \
1280 || defined __cplusplus || defined _MSC_VER)
e9955c83 1281static YYSIZE_T
e9955c83 1282yystrlen (const char *yystr)
2e4c30fa
PE
1283#else
1284static YYSIZE_T
e9955c83 1285yystrlen (yystr)
2e4c30fa
PE
1286 const char *yystr;
1287#endif
e9955c83 1288{
7029f892
PE
1289 YYSIZE_T yylen;
1290 for (yylen = 0; yystr[yylen]; yylen++)
e9955c83 1291 continue;
7029f892 1292 return yylen;
e9955c83
AD
1293}
1294# endif
1295# endif
1296
1297# ifndef yystpcpy
bf8b3d98 1298# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
e9955c83
AD
1299# define yystpcpy stpcpy
1300# else
1301/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
1302 YYDEST. */
bf8b3d98
PE
1303#if (defined __STDC__ || defined __C99__FUNC__ \
1304 || defined __cplusplus || defined _MSC_VER)
e9955c83 1305static char *
e9955c83 1306yystpcpy (char *yydest, const char *yysrc)
2e4c30fa
PE
1307#else
1308static char *
e9955c83 1309yystpcpy (yydest, yysrc)
2e4c30fa
PE
1310 char *yydest;
1311 const char *yysrc;
1312#endif
e9955c83 1313{
b4fb989f
PE
1314 char *yyd = yydest;
1315 const char *yys = yysrc;
e9955c83
AD
1316
1317 while ((*yyd++ = *yys++) != '\0')
1318 continue;
1319
1320 return yyd - 1;
1321}
1322# endif
1323# endif
0c15323d 1324
9cbfdc9e
PE
1325# ifndef yytnamerr
1326/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
1327 quotes and backslashes, so that it's suitable for yyerror. The
1328 heuristic is that double-quoting is unnecessary unless the string
1329 contains an apostrophe, a comma, or backslash (other than
1330 backslash-backslash). YYSTR is taken from yytname. If YYRES is
1331 null, do not copy; instead, return the length of what the result
1332 would have been. */
1333static YYSIZE_T
1334yytnamerr (char *yyres, const char *yystr)
1335{
1336 if (*yystr == '"')
1337 {
d2a1a60a 1338 YYSIZE_T yyn = 0;
9cbfdc9e
PE
1339 char const *yyp = yystr;
1340
1341 for (;;)
1342 switch (*++yyp)
1343 {
1344 case '\'':
1345 case ',':
1346 goto do_not_strip_quotes;
1347
1348 case '\\':
1349 if (*++yyp != '\\')
1350 goto do_not_strip_quotes;
1351 /* Fall through. */
1352 default:
1353 if (yyres)
1354 yyres[yyn] = *yyp;
1355 yyn++;
1356 break;
1357
1358 case '"':
1359 if (yyres)
1360 yyres[yyn] = '\0';
1361 return yyn;
1362 }
1363 do_not_strip_quotes: ;
1364 }
1365
1366 if (! yyres)
1367 return yystrlen (yystr);
1368
1369 return yystpcpy (yyres, yystr) - yyres;
1370}
1371# endif
1372
2abdfeef 1373/* Copy into YYRESULT an error message about the unexpected token
dc450175 1374 YYTOKEN while in state YYSTATE. Return the number of bytes copied,
2abdfeef
PE
1375 including the terminating null byte. If YYRESULT is null, do not
1376 copy anything; just return the number of bytes that would be
1377 copied. As a special case, return 0 if an ordinary "syntax error"
1378 message will do. Return YYSIZE_MAXIMUM if overflow occurs during
1379 size calculation. */
1380static YYSIZE_T
dc450175 1381yysyntax_error (char *yyresult, int yystate, int yytoken)
2abdfeef
PE
1382{
1383 int yyn = yypact[yystate];
1921f1d7 1384
d2a1a60a 1385 if (! (YYPACT_NINF < yyn && yyn <= YYLAST))
2abdfeef
PE
1386 return 0;
1387 else
1388 {
dc450175 1389 YYSIZE_T yysize0 = yytnamerr (0, yytname[yytoken]);
2abdfeef
PE
1390 YYSIZE_T yysize = yysize0;
1391 YYSIZE_T yysize1;
1392 int yysize_overflow = 0;
1393 enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
dc450175
AD
1394 /* Internationalized format string. */
1395 const char *yyformat = 0;
1396 /* Arguments of yyformat. */
2abdfeef 1397 char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
2abdfeef
PE
1398
1399 /* Start YYX at -YYN if negative to avoid negative indexes in
bf8b3d98 1400 YYCHECK. */
2abdfeef
PE
1401 int yyxbegin = yyn < 0 ? -yyn : 0;
1402
1403 /* Stay within bounds of both yycheck and yytname. */
d2a1a60a 1404 int yychecklim = YYLAST - yyn + 1;
2abdfeef 1405 int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
dc450175
AD
1406 /* Number of reported tokens (one for the "unexpected", one per
1407 "expected"). */
1408 int yycount = 0;
1409 int yyx;
2abdfeef 1410
dc450175 1411 yyarg[yycount++] = yytname[yytoken];
2abdfeef
PE
1412
1413 for (yyx = yyxbegin; yyx < yyxend; ++yyx)
219741d8 1414 if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
bf8b3d98
PE
1415 {
1416 if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
1417 {
1418 yycount = 1;
1419 yysize = yysize0;
bf8b3d98
PE
1420 break;
1421 }
1422 yyarg[yycount++] = yytname[yyx];
1423 yysize1 = yysize + yytnamerr (0, yytname[yyx]);
1424 yysize_overflow |= (yysize1 < yysize);
1425 yysize = yysize1;
bf8b3d98 1426 }
2abdfeef 1427
dc450175
AD
1428 switch (yycount)
1429 {
1430#define YYCASE_(N, S) \
1431 case N: \
1432 yyformat = S; \
1433 break
1434 YYCASE_(1, YY_("syntax error, unexpected %s"));
1435 YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
1436 YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
1437 YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
1438 YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"));
1439#undef YYCASE_
1440 }
1441
1442 yysize1 = yysize + yystrlen (yyformat);
7029f892 1443 yysize_overflow |= (yysize1 < yysize);
2abdfeef
PE
1444 yysize = yysize1;
1445
1446 if (yysize_overflow)
1447 return YYSIZE_MAXIMUM;
1448
1449 if (yyresult)
1450 {
bf8b3d98
PE
1451 /* Avoid sprintf, as that infringes on the user's name space.
1452 Don't have undefined behavior even if the translation
1453 produced a string with the wrong number of "%s"s. */
1454 char *yyp = yyresult;
1455 int yyi = 0;
dc450175
AD
1456 while ((*yyp = *yyformat) != '\0')
1457 if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount)
1458 {
1459 yyp += yytnamerr (yyp, yyarg[yyi++]);
1460 yyformat += 2;
1461 }
1462 else
1463 {
1464 yyp++;
1465 yyformat++;
1466 }
bf8b3d98 1467 }
2abdfeef
PE
1468 return yysize;
1469 }
1470}
1471#endif /* YYERROR_VERBOSE */
1921f1d7 1472\f
e9955c83 1473
04b6e11e
PE
1474/*-----------------------------------------------.
1475| Release the memory associated to this symbol. |
1476`-----------------------------------------------*/
1477
7029f892 1478/*ARGSUSED*/
bf8b3d98
PE
1479#if (defined __STDC__ || defined __C99__FUNC__ \
1480 || defined __cplusplus || defined _MSC_VER)
d33cb3ae 1481static void
8a8dc872 1482yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, YYLTYPE *yylocationp)
04b6e11e 1483#else
d33cb3ae 1484static void
8a8dc872
AD
1485yydestruct (yymsg, yytype, yyvaluep, yylocationp)
1486 const char *yymsg;
04b6e11e 1487 int yytype;
886b69d1
AD
1488 YYSTYPE *yyvaluep;
1489 YYLTYPE *yylocationp;
04b6e11e
PE
1490#endif
1491{
e764d4df
PE
1492 YYUSE (yyvaluep);
1493 YYUSE (yylocationp);
04b6e11e 1494
8a8dc872
AD
1495 if (!yymsg)
1496 yymsg = "Deleting";
1497 YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
1498
04b6e11e
PE
1499 switch (yytype)
1500 {
1501 default:
bf8b3d98 1502 break;
04b6e11e
PE
1503 }
1504}
04b6e11e 1505
d33cb3ae 1506/* Prevent warnings from -Wmissing-prototypes. */
e9955c83 1507#ifdef YYPARSE_PARAM
dc450175
AD
1508#if (defined __STDC__ || defined __C99__FUNC__ \
1509 || defined __cplusplus || defined _MSC_VER)
d33cb3ae 1510int yyparse (void *YYPARSE_PARAM);
2e4c30fa 1511#else
d33cb3ae 1512int yyparse ();
2e4c30fa 1513#endif
d33cb3ae 1514#else /* ! YYPARSE_PARAM */
dc450175
AD
1515#if (defined __STDC__ || defined __C99__FUNC__ \
1516 || defined __cplusplus || defined _MSC_VER)
e9955c83 1517int yyparse (void);
d33cb3ae
PE
1518#else
1519int yyparse ();
1520#endif
05d18c24 1521#endif /* ! YYPARSE_PARAM */
e776192e 1522
e9955c83 1523
e9955c83 1524
e9955c83 1525
d33cb3ae 1526
e021811a
JD
1527/*-------------------------.
1528| yyparse or yypush_parse. |
1529`-------------------------*/
d33cb3ae
PE
1530
1531#ifdef YYPARSE_PARAM
bf8b3d98
PE
1532#if (defined __STDC__ || defined __C99__FUNC__ \
1533 || defined __cplusplus || defined _MSC_VER)
2e4c30fa
PE
1534int
1535yyparse (void *YYPARSE_PARAM)
1536#else
1537int
1538yyparse (YYPARSE_PARAM)
1539 void *YYPARSE_PARAM;
1540#endif
d33cb3ae 1541#else /* ! YYPARSE_PARAM */
bf8b3d98
PE
1542#if (defined __STDC__ || defined __C99__FUNC__ \
1543 || defined __cplusplus || defined _MSC_VER)
d33cb3ae
PE
1544int
1545yyparse (void)
1546#else
e9955c83 1547int
d33cb3ae 1548yyparse ()
74e543d2 1549
d33cb3ae
PE
1550#endif
1551#endif
e9955c83 1552{
e021811a 1553/* The lookahead symbol. */
366eea36
AD
1554int yychar;
1555
9bc0dd67 1556/* The semantic value of the lookahead symbol. */
366eea36
AD
1557YYSTYPE yylval;
1558
9bc0dd67 1559/* Location data for the lookahead symbol. */
366eea36 1560YYLTYPE yylloc;
e9955c83 1561
e021811a
JD
1562 /* Number of syntax errors so far. */
1563 int yynerrs;
e9955c83 1564
e021811a
JD
1565 int yystate;
1566 /* Number of tokens to shift before error messages enabled. */
1567 int yyerrstatus;
e9955c83 1568
e021811a
JD
1569 /* The stacks and their tools:
1570 `yyss': related to states.
1571 `yyvs': related to semantic values.
1572 `yyls': related to locations.
e9955c83 1573
e021811a
JD
1574 Refer to the stacks thru separate pointers, to allow yyoverflow
1575 to reallocate them elsewhere. */
e9955c83 1576
e021811a
JD
1577 /* The state stack. */
1578 yytype_int16 yyssa[YYINITDEPTH];
1579 yytype_int16 *yyss;
1580 yytype_int16 *yyssp;
e9955c83 1581
e021811a
JD
1582 /* The semantic value stack. */
1583 YYSTYPE yyvsa[YYINITDEPTH];
1584 YYSTYPE *yyvs;
1585 YYSTYPE *yyvsp;
e9955c83 1586
e021811a
JD
1587 /* The location stack. */
1588 YYLTYPE yylsa[YYINITDEPTH];
1589 YYLTYPE *yyls;
1590 YYLTYPE *yylsp;
1591
1592 /* The locations where the error started and ended. */
1593 YYLTYPE yyerror_range[2];
e9955c83 1594
e021811a 1595 YYSIZE_T yystacksize;
e9955c83 1596
e021811a
JD
1597 int yyn;
1598 int yyresult;
1599 /* Lookahead token as an internal (translated) token number. */
1600 int yytoken;
e9955c83
AD
1601 /* The variables used to return semantic value and location from the
1602 action routines. */
1603 YYSTYPE yyval;
e9955c83 1604 YYLTYPE yyloc;
e9955c83 1605
e021811a
JD
1606#if YYERROR_VERBOSE
1607 /* Buffer for error messages, and its allocated size. */
1608 char yymsgbuf[128];
1609 char *yymsg = yymsgbuf;
1610 YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
1611#endif
1612
1613#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N), yylsp -= (N))
1614
3b0ffc7e
PE
1615 /* The number of symbols on the RHS of the reduced rule.
1616 Keep to zero when no symbol should be popped. */
1617 int yylen = 0;
e9955c83 1618
e021811a
JD
1619 yytoken = 0;
1620 yyss = yyssa;
1621 yyvs = yyvsa;
1622 yyls = yylsa;
e021811a
JD
1623 yystacksize = YYINITDEPTH;
1624
74e543d2 1625 YYDPRINTF ((stderr, "Starting parse\n"));
e9955c83
AD
1626
1627 yystate = 0;
1628 yyerrstatus = 0;
1629 yynerrs = 0;
e021811a 1630 yychar = YYEMPTY; /* Cause a token to be read. */
e9955c83
AD
1631
1632 /* Initialize stack pointers.
1633 Waste one element of value and location stack
1634 so that they stay on the same level as the state stack.
1635 The wasted elements are never initialized. */
e9955c83
AD
1636 yyssp = yyss;
1637 yyvsp = yyvs;
e9955c83 1638 yylsp = yyls;
e021811a 1639
8a8dc872
AD
1640#if YYLTYPE_IS_TRIVIAL
1641 /* Initialize the default location before parsing starts. */
1642 yylloc.first_line = yylloc.last_line = 1;
b3d9b5ba 1643 yylloc.first_column = yylloc.last_column = 1;
8a8dc872
AD
1644#endif
1645
e021811a 1646/* User initialization code. */
d70059ec
AR
1647/* Line 1167 of yacc.c */
1648#line 86 "parse-gram.y"
cd3684cf
AD
1649{
1650 /* Bison's grammar can initial empty locations, hence a default
1651 location is needed. */
4a678af8
JD
1652 boundary_set (&yylloc.start, current_file, 1, 1);
1653 boundary_set (&yylloc.end, current_file, 1, 1);
cd3684cf 1654}
d70059ec 1655/* Line 1167 of yacc.c */
2f5b478e 1656#line 1657 "/Users/akim/src/kernel/bison/src/parse-gram.c"
5f6da1c0 1657 yylsp[0] = yylloc;
e021811a 1658
e9955c83
AD
1659 goto yysetstate;
1660
1661/*------------------------------------------------------------.
1662| yynewstate -- Push a new state, which is found in yystate. |
1663`------------------------------------------------------------*/
1664 yynewstate:
1665 /* In all cases, when you get here, the value and location stacks
3b0ffc7e 1666 have just been pushed. So pushing a state here evens the stacks. */
e9955c83
AD
1667 yyssp++;
1668
1669 yysetstate:
1670 *yyssp = yystate;
1671
d33cb3ae 1672 if (yyss + yystacksize - 1 <= yyssp)
e9955c83
AD
1673 {
1674 /* Get the current used size of the three stacks, in elements. */
1675 YYSIZE_T yysize = yyssp - yyss + 1;
1676
1677#ifdef yyoverflow
1678 {
3b0ffc7e 1679 /* Give user a chance to reallocate the stack. Use copies of
e9955c83
AD
1680 these so that the &'s don't force the real ones into
1681 memory. */
1682 YYSTYPE *yyvs1 = yyvs;
bf8b3d98 1683 yytype_int16 *yyss1 = yyss;
366eea36 1684 YYLTYPE *yyls1 = yyls;
e9955c83
AD
1685
1686 /* Each stack pointer address is followed by the size of the
366eea36
AD
1687 data in use in that stack, in bytes. This used to be a
1688 conditional around just the two extra args, but that might
1689 be undefined if yyoverflow is a macro. */
6088a2a0 1690 yyoverflow (YY_("memory exhausted"),
e9955c83
AD
1691 &yyss1, yysize * sizeof (*yyssp),
1692 &yyvs1, yysize * sizeof (*yyvsp),
1693 &yyls1, yysize * sizeof (*yylsp),
1694 &yystacksize);
e021811a 1695
e9955c83 1696 yyls = yyls1;
e9955c83
AD
1697 yyss = yyss1;
1698 yyvs = yyvs1;
1699 }
1700#else /* no yyoverflow */
1701# ifndef YYSTACK_RELOCATE
6088a2a0 1702 goto yyexhaustedlab;
e9955c83
AD
1703# else
1704 /* Extend the stack our own way. */
d33cb3ae 1705 if (YYMAXDEPTH <= yystacksize)
6088a2a0 1706 goto yyexhaustedlab;
e9955c83 1707 yystacksize *= 2;
d33cb3ae 1708 if (YYMAXDEPTH < yystacksize)
e9955c83
AD
1709 yystacksize = YYMAXDEPTH;
1710
1711 {
bf8b3d98 1712 yytype_int16 *yyss1 = yyss;
e9955c83
AD
1713 union yyalloc *yyptr =
1714 (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
1715 if (! yyptr)
6088a2a0 1716 goto yyexhaustedlab;
e021811a
JD
1717 YYSTACK_RELOCATE (yyss_alloc, yyss);
1718 YYSTACK_RELOCATE (yyvs_alloc, yyvs);
1719 YYSTACK_RELOCATE (yyls_alloc, yyls);
1921f1d7 1720# undef YYSTACK_RELOCATE
e9955c83
AD
1721 if (yyss1 != yyssa)
1722 YYSTACK_FREE (yyss1);
1723 }
1724# endif
1725#endif /* no yyoverflow */
1726
1727 yyssp = yyss + yysize - 1;
1728 yyvsp = yyvs + yysize - 1;
e9955c83 1729 yylsp = yyls + yysize - 1;
e9955c83 1730
6088a2a0 1731 YYDPRINTF ((stderr, "Stack size increased to %lu\n",
e9955c83
AD
1732 (unsigned long int) yystacksize));
1733
d33cb3ae 1734 if (yyss + yystacksize - 1 <= yyssp)
e9955c83
AD
1735 YYABORT;
1736 }
1737
6088a2a0 1738 YYDPRINTF ((stderr, "Entering state %d\n", yystate));
e9955c83 1739
ec5479ce
JD
1740 if (yystate == YYFINAL)
1741 YYACCEPT;
1742
e9955c83
AD
1743 goto yybackup;
1744
1745/*-----------.
1746| yybackup. |
1747`-----------*/
1748yybackup:
1749
3b0ffc7e 1750 /* Do appropriate processing given the current state. Read a
9bc0dd67 1751 lookahead token if we need one and don't already have one. */
e9955c83 1752
9bc0dd67 1753 /* First try to decide what to do without reference to lookahead token. */
e9955c83 1754 yyn = yypact[yystate];
04b6e11e 1755 if (yyn == YYPACT_NINF)
e9955c83
AD
1756 goto yydefault;
1757
9bc0dd67 1758 /* Not known => get a lookahead token if don't already have one. */
e9955c83 1759
9bc0dd67 1760 /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
73521d9f 1761 if (yychar == YYEMPTY)
e9955c83 1762 {
74e543d2 1763 YYDPRINTF ((stderr, "Reading a token: "));
e9955c83
AD
1764 yychar = YYLEX;
1765 }
1766
73521d9f 1767 if (yychar <= YYEOF)
e9955c83 1768 {
73521d9f 1769 yychar = yytoken = YYEOF;
74e543d2 1770 YYDPRINTF ((stderr, "Now at end of input.\n"));
e9955c83
AD
1771 }
1772 else
1773 {
73521d9f 1774 yytoken = YYTRANSLATE (yychar);
6088a2a0 1775 YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
e9955c83
AD
1776 }
1777
886b69d1 1778 /* If the proper action on seeing token YYTOKEN is to reduce or to
ae7453f2 1779 detect an error, take that action. */
886b69d1 1780 yyn += yytoken;
219741d8 1781 if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
e9955c83 1782 goto yydefault;
e9955c83 1783 yyn = yytable[yyn];
ae7453f2 1784 if (yyn <= 0)
e9955c83 1785 {
ae7453f2 1786 if (yyn == 0 || yyn == YYTABLE_NINF)
e9955c83
AD
1787 goto yyerrlab;
1788 yyn = -yyn;
1789 goto yyreduce;
1790 }
e9955c83 1791
3b0ffc7e
PE
1792 /* Count tokens shifted since error; after three, turn off error
1793 status. */
1794 if (yyerrstatus)
1795 yyerrstatus--;
1796
9bc0dd67 1797 /* Shift the lookahead token. */
6088a2a0 1798 YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
e9955c83 1799
ec5479ce
JD
1800 /* Discard the shifted token. */
1801 yychar = YYEMPTY;
e9955c83 1802
3b0ffc7e 1803 yystate = yyn;
e9955c83 1804 *++yyvsp = yylval;
e9955c83 1805 *++yylsp = yylloc;
e9955c83
AD
1806 goto yynewstate;
1807
1808
1809/*-----------------------------------------------------------.
1810| yydefault -- do the default action for the current state. |
1811`-----------------------------------------------------------*/
1812yydefault:
1813 yyn = yydefact[yystate];
1814 if (yyn == 0)
1815 goto yyerrlab;
1816 goto yyreduce;
1817
1818
1819/*-----------------------------.
1820| yyreduce -- Do a reduction. |
1821`-----------------------------*/
1822yyreduce:
1823 /* yyn is the number of a rule to reduce with. */
1824 yylen = yyr2[yyn];
1825
1826 /* If YYLEN is nonzero, implement the default value of the action:
1827 `$$ = $1'.
1828
04b6e11e
PE
1829 Otherwise, the following line sets YYVAL to garbage.
1830 This behavior is undocumented and Bison
e9955c83
AD
1831 users should not rely upon it. Assigning to YYVAL
1832 unconditionally makes the parser a bit smaller, and it avoids a
1833 GCC warning that YYVAL may be used uninitialized. */
1834 yyval = yyvsp[1-yylen];
1835
3b0ffc7e 1836 /* Default location. */
bf8b3d98 1837 YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen);
05d18c24 1838 YY_REDUCE_PRINT (yyn);
1921f1d7
AD
1839 switch (yyn)
1840 {
05d18c24 1841 case 6:
dc450175 1842/* Line 1380 of yacc.c */
2f5b478e 1843#line 223 "parse-gram.y"
7c0c6181
JD
1844 {
1845 code_props plain_code;
e3dda35c 1846 code_props_plain_init (&plain_code, (yyvsp[0].chars), (yylsp[0]));
7c0c6181
JD
1847 code_props_translate_code (&plain_code);
1848 gram_scanner_last_string_free ();
7ecec4dd 1849 muscle_code_grow (union_seen ? "post_prologue" : "pre_prologue",
e3dda35c 1850 plain_code.code, (yylsp[0]));
7c0c6181
JD
1851 code_scanner_last_string_free ();
1852 }
dc450175 1853/* Line 1380 of yacc.c */
2f5b478e 1854#line 1855 "/Users/akim/src/kernel/bison/src/parse-gram.c"
1921f1d7
AD
1855 break;
1856
8efe435c 1857 case 7:
dc450175 1858/* Line 1380 of yacc.c */
2f5b478e 1859#line 233 "parse-gram.y"
b19ebeb3 1860 {
697c912f 1861 muscle_percent_define_ensure ((yyvsp[0].uniqstr), (yylsp[0]), true);
b19ebeb3 1862 }
dc450175 1863/* Line 1380 of yacc.c */
2f5b478e 1864#line 1865 "/Users/akim/src/kernel/bison/src/parse-gram.c"
9bc0dd67
JD
1865 break;
1866
2cbe6b7f 1867 case 8:
dc450175 1868/* Line 1380 of yacc.c */
2f5b478e 1869#line 237 "parse-gram.y"
7eb8a0bc 1870 {
de5ab940
JD
1871 muscle_percent_define_insert ((yyvsp[-1].uniqstr), (yylsp[-1]), (yyvsp[0].chars),
1872 MUSCLE_PERCENT_DEFINE_GRAMMAR_FILE);
7eb8a0bc 1873 }
dc450175 1874/* Line 1380 of yacc.c */
2f5b478e 1875#line 1876 "/Users/akim/src/kernel/bison/src/parse-gram.c"
1921f1d7
AD
1876 break;
1877
2cbe6b7f 1878 case 9:
dc450175 1879/* Line 1380 of yacc.c */
2f5b478e 1880#line 241 "parse-gram.y"
2ce4ed68 1881 { defines_flag = true; }
dc450175 1882/* Line 1380 of yacc.c */
2f5b478e 1883#line 1884 "/Users/akim/src/kernel/bison/src/parse-gram.c"
e9955c83 1884 break;
1921f1d7 1885
2cbe6b7f 1886 case 10:
dc450175 1887/* Line 1380 of yacc.c */
2f5b478e 1888#line 243 "parse-gram.y"
02975b9a
JD
1889 {
1890 defines_flag = true;
e3dda35c 1891 spec_defines_file = xstrdup ((yyvsp[0].chars));
02975b9a 1892 }
dc450175 1893/* Line 1380 of yacc.c */
2f5b478e 1894#line 1895 "/Users/akim/src/kernel/bison/src/parse-gram.c"
e9955c83 1895 break;
1921f1d7 1896
2cbe6b7f 1897 case 11:
dc450175 1898/* Line 1380 of yacc.c */
2f5b478e
AD
1899#line 248 "parse-gram.y"
1900 {
1901 muscle_percent_define_insert ("parse.error", (yylsp[0]), "verbose",
1902 MUSCLE_PERCENT_DEFINE_GRAMMAR_FILE);
1903 }
dc450175 1904/* Line 1380 of yacc.c */
2f5b478e 1905#line 1906 "/Users/akim/src/kernel/bison/src/parse-gram.c"
d6328241
PH
1906 break;
1907
2cbe6b7f 1908 case 12:
dc450175 1909/* Line 1380 of yacc.c */
2f5b478e
AD
1910#line 252 "parse-gram.y"
1911 { expected_sr_conflicts = (yyvsp[0].integer); }
dc450175 1912/* Line 1380 of yacc.c */
2f5b478e 1913#line 1914 "/Users/akim/src/kernel/bison/src/parse-gram.c"
fb9712a9
AD
1914 break;
1915
2cbe6b7f 1916 case 13:
dc450175 1917/* Line 1380 of yacc.c */
2f5b478e
AD
1918#line 253 "parse-gram.y"
1919 { expected_rr_conflicts = (yyvsp[0].integer); }
dc450175 1920/* Line 1380 of yacc.c */
2f5b478e 1921#line 1922 "/Users/akim/src/kernel/bison/src/parse-gram.c"
34f98f46
JD
1922 break;
1923
2cbe6b7f 1924 case 14:
dc450175 1925/* Line 1380 of yacc.c */
2f5b478e 1926#line 254 "parse-gram.y"
e3dda35c 1927 { spec_file_prefix = (yyvsp[0].chars); }
dc450175 1928/* Line 1380 of yacc.c */
2f5b478e 1929#line 1930 "/Users/akim/src/kernel/bison/src/parse-gram.c"
02975b9a
JD
1930 break;
1931
1932 case 15:
dc450175 1933/* Line 1380 of yacc.c */
2f5b478e
AD
1934#line 255 "parse-gram.y"
1935 { spec_file_prefix = (yyvsp[0].chars); }
1936/* Line 1380 of yacc.c */
1937#line 1938 "/Users/akim/src/kernel/bison/src/parse-gram.c"
1938 break;
1939
1940 case 16:
1941/* Line 1380 of yacc.c */
1942#line 257 "parse-gram.y"
cd3684cf 1943 {
bf8b3d98
PE
1944 nondeterministic_parser = true;
1945 glr_parser = true;
1946 }
dc450175 1947/* Line 1380 of yacc.c */
2f5b478e 1948#line 1949 "/Users/akim/src/kernel/bison/src/parse-gram.c"
e9955c83 1949 break;
1921f1d7 1950
2f5b478e 1951 case 17:
dc450175 1952/* Line 1380 of yacc.c */
2f5b478e 1953#line 262 "parse-gram.y"
cd3684cf 1954 {
7c0c6181 1955 code_props action;
e3dda35c 1956 code_props_symbol_action_init (&action, (yyvsp[0].code), (yylsp[0]));
7c0c6181
JD
1957 code_props_translate_code (&action);
1958 gram_scanner_last_string_free ();
e3dda35c 1959 muscle_code_grow ("initial_action", action.code, (yylsp[0]));
7c0c6181 1960 code_scanner_last_string_free ();
bf8b3d98 1961 }
dc450175 1962/* Line 1380 of yacc.c */
2f5b478e 1963#line 1964 "/Users/akim/src/kernel/bison/src/parse-gram.c"
e9955c83 1964 break;
1921f1d7 1965
2f5b478e 1966 case 18:
dc450175 1967/* Line 1380 of yacc.c */
2f5b478e 1968#line 270 "parse-gram.y"
e3dda35c 1969 { language_argmatch ((yyvsp[0].chars), grammar_prio, (yylsp[-1])); }
dc450175 1970/* Line 1380 of yacc.c */
2f5b478e 1971#line 1972 "/Users/akim/src/kernel/bison/src/parse-gram.c"
e9955c83 1972 break;
1921f1d7 1973
2f5b478e 1974 case 19:
dc450175 1975/* Line 1380 of yacc.c */
2f5b478e 1976#line 271 "parse-gram.y"
e3dda35c 1977 { add_param ("lex_param", (yyvsp[0].code), (yylsp[0])); }
dc450175 1978/* Line 1380 of yacc.c */
2f5b478e 1979#line 1980 "/Users/akim/src/kernel/bison/src/parse-gram.c"
e9955c83 1980 break;
1921f1d7 1981
2f5b478e 1982 case 20:
dc450175 1983/* Line 1380 of yacc.c */
2f5b478e 1984#line 272 "parse-gram.y"
3583d96b 1985 { spec_name_prefix = (yyvsp[0].chars); }
dc450175 1986/* Line 1380 of yacc.c */
2f5b478e 1987#line 1988 "/Users/akim/src/kernel/bison/src/parse-gram.c"
02975b9a
JD
1988 break;
1989
2f5b478e 1990 case 21:
dc450175 1991/* Line 1380 of yacc.c */
2f5b478e 1992#line 273 "parse-gram.y"
e3dda35c 1993 { spec_name_prefix = (yyvsp[0].chars); }
dc450175 1994/* Line 1380 of yacc.c */
2f5b478e 1995#line 1996 "/Users/akim/src/kernel/bison/src/parse-gram.c"
e9955c83 1996 break;
1921f1d7 1997
2f5b478e 1998 case 22:
dc450175 1999/* Line 1380 of yacc.c */
2f5b478e 2000#line 274 "parse-gram.y"
3583d96b 2001 { no_lines_flag = true; }
dc450175 2002/* Line 1380 of yacc.c */
2f5b478e 2003#line 2004 "/Users/akim/src/kernel/bison/src/parse-gram.c"
4cdb01db 2004 break;
1921f1d7 2005
2f5b478e 2006 case 23:
dc450175 2007/* Line 1380 of yacc.c */
2f5b478e 2008#line 275 "parse-gram.y"
3583d96b 2009 { nondeterministic_parser = true; }
dc450175 2010/* Line 1380 of yacc.c */
2f5b478e 2011#line 2012 "/Users/akim/src/kernel/bison/src/parse-gram.c"
4cdb01db 2012 break;
1921f1d7 2013
2f5b478e 2014 case 24:
dc450175 2015/* Line 1380 of yacc.c */
2f5b478e 2016#line 276 "parse-gram.y"
3583d96b 2017 { spec_outfile = (yyvsp[0].chars); }
dc450175 2018/* Line 1380 of yacc.c */
2f5b478e 2019#line 2020 "/Users/akim/src/kernel/bison/src/parse-gram.c"
02975b9a
JD
2020 break;
2021
2f5b478e 2022 case 25:
dc450175 2023/* Line 1380 of yacc.c */
2f5b478e 2024#line 277 "parse-gram.y"
e3dda35c 2025 { spec_outfile = (yyvsp[0].chars); }
dc450175 2026/* Line 1380 of yacc.c */
2f5b478e 2027#line 2028 "/Users/akim/src/kernel/bison/src/parse-gram.c"
4cdb01db 2028 break;
1921f1d7 2029
2f5b478e 2030 case 26:
dc450175 2031/* Line 1380 of yacc.c */
2f5b478e 2032#line 278 "parse-gram.y"
e3dda35c 2033 { add_param ("parse_param", (yyvsp[0].code), (yylsp[0])); }
dc450175 2034/* Line 1380 of yacc.c */
2f5b478e 2035#line 2036 "/Users/akim/src/kernel/bison/src/parse-gram.c"
ae7453f2
AD
2036 break;
2037
2f5b478e 2038 case 27:
dc450175 2039/* Line 1380 of yacc.c */
2f5b478e 2040#line 279 "parse-gram.y"
e3dda35c 2041 { version_check (&(yylsp[0]), (yyvsp[0].chars)); }
dc450175 2042/* Line 1380 of yacc.c */
2f5b478e 2043#line 2044 "/Users/akim/src/kernel/bison/src/parse-gram.c"
b50d2359
AD
2044 break;
2045
2f5b478e 2046 case 28:
dc450175 2047/* Line 1380 of yacc.c */
2f5b478e 2048#line 281 "parse-gram.y"
a7867f53 2049 {
e3dda35c 2050 char const *skeleton_user = (yyvsp[0].chars);
a7867f53
JD
2051 if (strchr (skeleton_user, '/'))
2052 {
2053 size_t dir_length = strlen (current_file);
2054 char *skeleton_build;
2055 while (dir_length && current_file[dir_length - 1] != '/')
2056 --dir_length;
2057 while (dir_length && current_file[dir_length - 1] == '/')
2058 --dir_length;
2059 skeleton_build =
2060 xmalloc (dir_length + 1 + strlen (skeleton_user) + 1);
2061 if (dir_length > 0)
2062 {
2063 strncpy (skeleton_build, current_file, dir_length);
2064 skeleton_build[dir_length++] = '/';
2065 }
2066 strcpy (skeleton_build + dir_length, skeleton_user);
2067 skeleton_user = uniqstr_new (skeleton_build);
2068 free (skeleton_build);
2069 }
e3dda35c 2070 skeleton_arg (skeleton_user, grammar_prio, (yylsp[-1]));
a7867f53 2071 }
dc450175 2072/* Line 1380 of yacc.c */
2f5b478e 2073#line 2074 "/Users/akim/src/kernel/bison/src/parse-gram.c"
3fa3725a
PE
2074 break;
2075
2f5b478e 2076 case 29:
dc450175 2077/* Line 1380 of yacc.c */
2f5b478e 2078#line 304 "parse-gram.y"
7172e23e 2079 { token_table_flag = true; }
dc450175 2080/* Line 1380 of yacc.c */
2f5b478e 2081#line 2082 "/Users/akim/src/kernel/bison/src/parse-gram.c"
5e6feb86
PE
2082 break;
2083
2f5b478e 2084 case 30:
dc450175 2085/* Line 1380 of yacc.c */
2f5b478e 2086#line 305 "parse-gram.y"
ef1b4273 2087 { report_flag |= report_states; }
dc450175 2088/* Line 1380 of yacc.c */
2f5b478e 2089#line 2090 "/Users/akim/src/kernel/bison/src/parse-gram.c"
7172e23e
JD
2090 break;
2091
2f5b478e 2092 case 31:
dc450175 2093/* Line 1380 of yacc.c */
2f5b478e 2094#line 306 "parse-gram.y"
83a457be 2095 { yacc_flag = true; }
dc450175 2096/* Line 1380 of yacc.c */
2f5b478e 2097#line 2098 "/Users/akim/src/kernel/bison/src/parse-gram.c"
4cdb01db 2098 break;
1921f1d7 2099
2f5b478e 2100 case 35:
dc450175 2101/* Line 1380 of yacc.c */
2f5b478e 2102#line 314 "parse-gram.y"
1921f1d7 2103 {
e3dda35c 2104 grammar_start_symbol_set ((yyvsp[0].symbol), (yylsp[0]));
4cdb01db 2105 }
dc450175 2106/* Line 1380 of yacc.c */
2f5b478e 2107#line 2108 "/Users/akim/src/kernel/bison/src/parse-gram.c"
e9955c83 2108 break;
1921f1d7 2109
2f5b478e 2110 case 36:
dc450175 2111/* Line 1380 of yacc.c */
2f5b478e 2112#line 318 "parse-gram.y"
1921f1d7 2113 {
05d18c24 2114 symbol_list *list;
e3dda35c
AD
2115 for (list = (yyvsp[0].list); list; list = list->next)
2116 symbol_list_destructor_set (list, (yyvsp[-1].code), (yylsp[-1]));
2117 symbol_list_free ((yyvsp[0].list));
4cdb01db 2118 }
dc450175 2119/* Line 1380 of yacc.c */
2f5b478e 2120#line 2121 "/Users/akim/src/kernel/bison/src/parse-gram.c"
e9955c83 2121 break;
1921f1d7 2122
2f5b478e 2123 case 37:
dc450175 2124/* Line 1380 of yacc.c */
2f5b478e 2125#line 325 "parse-gram.y"
1921f1d7 2126 {
05d18c24 2127 symbol_list *list;
e3dda35c
AD
2128 for (list = (yyvsp[0].list); list; list = list->next)
2129 symbol_list_printer_set (list, (yyvsp[-1].code), (yylsp[-1]));
2130 symbol_list_free ((yyvsp[0].list));
4cdb01db 2131 }
dc450175 2132/* Line 1380 of yacc.c */
2f5b478e 2133#line 2134 "/Users/akim/src/kernel/bison/src/parse-gram.c"
e9955c83 2134 break;
1921f1d7 2135
2f5b478e 2136 case 38:
dc450175 2137/* Line 1380 of yacc.c */
2f5b478e 2138#line 332 "parse-gram.y"
92f5e991 2139 {
66ef8b9d 2140 default_prec = true;
92f5e991 2141 }
dc450175 2142/* Line 1380 of yacc.c */
2f5b478e 2143#line 2144 "/Users/akim/src/kernel/bison/src/parse-gram.c"
9280d3ef
AD
2144 break;
2145
2f5b478e 2146 case 39:
dc450175 2147/* Line 1380 of yacc.c */
2f5b478e 2148#line 336 "parse-gram.y"
66ef8b9d
PE
2149 {
2150 default_prec = false;
2151 }
dc450175 2152/* Line 1380 of yacc.c */
2f5b478e 2153#line 2154 "/Users/akim/src/kernel/bison/src/parse-gram.c"
92f5e991
AD
2154 break;
2155
2f5b478e 2156 case 40:
dc450175 2157/* Line 1380 of yacc.c */
2f5b478e 2158#line 340 "parse-gram.y"
8e0a5e9e 2159 {
9611cfa2
JD
2160 /* Do not invoke muscle_percent_code_grow here since it invokes
2161 muscle_user_name_list_grow. */
e3dda35c 2162 muscle_code_grow ("percent_code()", (yyvsp[0].chars), (yylsp[0]));
8e0a5e9e
JD
2163 code_scanner_last_string_free ();
2164 }
dc450175 2165/* Line 1380 of yacc.c */
2f5b478e 2166#line 2167 "/Users/akim/src/kernel/bison/src/parse-gram.c"
2cbe6b7f
JD
2167 break;
2168
2f5b478e 2169 case 41:
dc450175 2170/* Line 1380 of yacc.c */
2f5b478e 2171#line 347 "parse-gram.y"
8e0a5e9e 2172 {
e3dda35c 2173 muscle_percent_code_grow ((yyvsp[-1].uniqstr), (yylsp[-1]), (yyvsp[0].chars), (yylsp[0]));
8e0a5e9e 2174 code_scanner_last_string_free ();
8e0a5e9e 2175 }
dc450175 2176/* Line 1380 of yacc.c */
2f5b478e 2177#line 2178 "/Users/akim/src/kernel/bison/src/parse-gram.c"
58d7a1a1
AD
2178 break;
2179
2f5b478e 2180 case 42:
dc450175 2181/* Line 1380 of yacc.c */
2f5b478e 2182#line 361 "parse-gram.y"
2cbe6b7f 2183 {}
dc450175 2184/* Line 1380 of yacc.c */
2f5b478e 2185#line 2186 "/Users/akim/src/kernel/bison/src/parse-gram.c"
66ef8b9d
PE
2186 break;
2187
2f5b478e 2188 case 43:
dc450175 2189/* Line 1380 of yacc.c */
2f5b478e 2190#line 362 "parse-gram.y"
e3dda35c 2191 { muscle_code_grow ("union_name", (yyvsp[0].uniqstr), (yylsp[0])); }
dc450175 2192/* Line 1380 of yacc.c */
2f5b478e 2193#line 2194 "/Users/akim/src/kernel/bison/src/parse-gram.c"
2cbe6b7f
JD
2194 break;
2195
2f5b478e 2196 case 44:
dc450175 2197/* Line 1380 of yacc.c */
2f5b478e 2198#line 367 "parse-gram.y"
9280d3ef 2199 {
1f4cc0f4 2200 union_seen = true;
e3dda35c 2201 muscle_code_grow ("stype", (yyvsp[0].chars), (yylsp[0]));
7ecec4dd 2202 code_scanner_last_string_free ();
9280d3ef 2203 }
dc450175 2204/* Line 1380 of yacc.c */
2f5b478e 2205#line 2206 "/Users/akim/src/kernel/bison/src/parse-gram.c"
9280d3ef
AD
2206 break;
2207
2f5b478e 2208 case 45:
dc450175 2209/* Line 1380 of yacc.c */
2f5b478e 2210#line 378 "parse-gram.y"
58d7a1a1 2211 { current_class = nterm_sym; }
dc450175 2212/* Line 1380 of yacc.c */
2f5b478e 2213#line 2214 "/Users/akim/src/kernel/bison/src/parse-gram.c"
366eea36
AD
2214 break;
2215
2f5b478e 2216 case 46:
dc450175 2217/* Line 1380 of yacc.c */
2f5b478e 2218#line 379 "parse-gram.y"
366eea36
AD
2219 {
2220 current_class = unknown_sym;
2221 current_type = NULL;
2222 }
dc450175 2223/* Line 1380 of yacc.c */
2f5b478e 2224#line 2225 "/Users/akim/src/kernel/bison/src/parse-gram.c"
366eea36
AD
2225 break;
2226
2f5b478e 2227 case 47:
dc450175 2228/* Line 1380 of yacc.c */
2f5b478e 2229#line 383 "parse-gram.y"
58d7a1a1 2230 { current_class = token_sym; }
dc450175 2231/* Line 1380 of yacc.c */
2f5b478e 2232#line 2233 "/Users/akim/src/kernel/bison/src/parse-gram.c"
58d7a1a1
AD
2233 break;
2234
2f5b478e 2235 case 48:
dc450175 2236/* Line 1380 of yacc.c */
2f5b478e 2237#line 384 "parse-gram.y"
58d7a1a1
AD
2238 {
2239 current_class = unknown_sym;
2240 current_type = NULL;
2241 }
dc450175 2242/* Line 1380 of yacc.c */
2f5b478e 2243#line 2244 "/Users/akim/src/kernel/bison/src/parse-gram.c"
58d7a1a1
AD
2244 break;
2245
2f5b478e 2246 case 49:
dc450175 2247/* Line 1380 of yacc.c */
2f5b478e 2248#line 389 "parse-gram.y"
1e0bab92 2249 {
05d18c24 2250 symbol_list *list;
3acc0308 2251 tag_seen = true;
e3dda35c
AD
2252 for (list = (yyvsp[0].list); list; list = list->next)
2253 symbol_type_set (list->content.sym, (yyvsp[-1].uniqstr), (yylsp[-1]));
2254 symbol_list_free ((yyvsp[0].list));
1e0bab92 2255 }
dc450175 2256/* Line 1380 of yacc.c */
2f5b478e 2257#line 2258 "/Users/akim/src/kernel/bison/src/parse-gram.c"
e9955c83 2258 break;
1921f1d7 2259
2f5b478e 2260 case 50:
dc450175 2261/* Line 1380 of yacc.c */
2f5b478e 2262#line 400 "parse-gram.y"
1921f1d7 2263 {
05d18c24 2264 symbol_list *list;
1e0bab92 2265 ++current_prec;
e3dda35c 2266 for (list = (yyvsp[0].list); list; list = list->next)
1e0bab92 2267 {
e3dda35c
AD
2268 symbol_type_set (list->content.sym, current_type, (yylsp[-1]));
2269 symbol_precedence_set (list->content.sym, current_prec, (yyvsp[-2].assoc), (yylsp[-2]));
1e0bab92 2270 }
e3dda35c 2271 symbol_list_free ((yyvsp[0].list));
2c569025
AD
2272 current_type = NULL;
2273 }
dc450175 2274/* Line 1380 of yacc.c */
2f5b478e 2275#line 2276 "/Users/akim/src/kernel/bison/src/parse-gram.c"
e9955c83 2276 break;
1921f1d7 2277
2f5b478e 2278 case 51:
dc450175 2279/* Line 1380 of yacc.c */
2f5b478e 2280#line 414 "parse-gram.y"
76dcf299 2281 { (yyval.assoc) = left_assoc; }
dc450175 2282/* Line 1380 of yacc.c */
2f5b478e 2283#line 2284 "/Users/akim/src/kernel/bison/src/parse-gram.c"
e9955c83 2284 break;
1921f1d7 2285
2f5b478e 2286 case 52:
dc450175 2287/* Line 1380 of yacc.c */
2f5b478e 2288#line 415 "parse-gram.y"
76dcf299 2289 { (yyval.assoc) = right_assoc; }
dc450175 2290/* Line 1380 of yacc.c */
2f5b478e 2291#line 2292 "/Users/akim/src/kernel/bison/src/parse-gram.c"
e9955c83 2292 break;
1921f1d7 2293
2f5b478e 2294 case 53:
dc450175 2295/* Line 1380 of yacc.c */
2f5b478e 2296#line 416 "parse-gram.y"
76dcf299 2297 { (yyval.assoc) = non_assoc; }
dc450175 2298/* Line 1380 of yacc.c */
2f5b478e 2299#line 2300 "/Users/akim/src/kernel/bison/src/parse-gram.c"
4cdb01db 2300 break;
1921f1d7 2301
2f5b478e 2302 case 54:
dc450175 2303/* Line 1380 of yacc.c */
2f5b478e 2304#line 417 "parse-gram.y"
f7398526 2305 { (yyval.assoc) = precedence_assoc; }
dc450175 2306/* Line 1380 of yacc.c */
2f5b478e 2307#line 2308 "/Users/akim/src/kernel/bison/src/parse-gram.c"
e9955c83 2308 break;
1921f1d7 2309
2f5b478e 2310 case 55:
dc450175 2311/* Line 1380 of yacc.c */
2f5b478e 2312#line 421 "parse-gram.y"
f7398526 2313 { current_type = NULL; }
dc450175 2314/* Line 1380 of yacc.c */
2f5b478e 2315#line 2316 "/Users/akim/src/kernel/bison/src/parse-gram.c"
e9955c83 2316 break;
1921f1d7 2317
2f5b478e 2318 case 56:
dc450175 2319/* Line 1380 of yacc.c */
2f5b478e 2320#line 422 "parse-gram.y"
e3dda35c 2321 { current_type = (yyvsp[0].uniqstr); tag_seen = true; }
dc450175 2322/* Line 1380 of yacc.c */
2f5b478e 2323#line 2324 "/Users/akim/src/kernel/bison/src/parse-gram.c"
3be03b13
JD
2324 break;
2325
2f5b478e 2326 case 57:
dc450175 2327/* Line 1380 of yacc.c */
2f5b478e 2328#line 428 "parse-gram.y"
e3dda35c 2329 { (yyval.list) = symbol_list_sym_new ((yyvsp[0].symbol), (yylsp[0])); }
dc450175 2330/* Line 1380 of yacc.c */
2f5b478e 2331#line 2332 "/Users/akim/src/kernel/bison/src/parse-gram.c"
3be03b13
JD
2332 break;
2333
2f5b478e 2334 case 58:
dc450175 2335/* Line 1380 of yacc.c */
2f5b478e 2336#line 430 "parse-gram.y"
e3dda35c 2337 { (yyval.list) = symbol_list_prepend ((yyvsp[-1].list), symbol_list_sym_new ((yyvsp[0].symbol), (yylsp[0]))); }
dc450175 2338/* Line 1380 of yacc.c */
2f5b478e 2339#line 2340 "/Users/akim/src/kernel/bison/src/parse-gram.c"
4cdb01db 2340 break;
1921f1d7 2341
2f5b478e 2342 case 59:
dc450175 2343/* Line 1380 of yacc.c */
2f5b478e 2344#line 434 "parse-gram.y"
e3dda35c 2345 { (yyval.symbol) = (yyvsp[0].symbol); }
dc450175 2346/* Line 1380 of yacc.c */
2f5b478e 2347#line 2348 "/Users/akim/src/kernel/bison/src/parse-gram.c"
4cdb01db 2348 break;
1921f1d7 2349
2f5b478e 2350 case 60:
dc450175 2351/* Line 1380 of yacc.c */
2f5b478e 2352#line 435 "parse-gram.y"
e3dda35c 2353 { (yyval.symbol) = (yyvsp[-1].symbol); symbol_user_token_number_set ((yyvsp[-1].symbol), (yyvsp[0].integer), (yylsp[0])); }
dc450175 2354/* Line 1380 of yacc.c */
2f5b478e 2355#line 2356 "/Users/akim/src/kernel/bison/src/parse-gram.c"
3be03b13
JD
2356 break;
2357
2f5b478e 2358 case 61:
dc450175 2359/* Line 1380 of yacc.c */
2f5b478e 2360#line 441 "parse-gram.y"
e3dda35c 2361 { (yyval.list) = symbol_list_sym_new ((yyvsp[0].symbol), (yylsp[0])); }
dc450175 2362/* Line 1380 of yacc.c */
2f5b478e 2363#line 2364 "/Users/akim/src/kernel/bison/src/parse-gram.c"
3be03b13
JD
2364 break;
2365
2f5b478e 2366 case 62:
dc450175 2367/* Line 1380 of yacc.c */
2f5b478e 2368#line 443 "parse-gram.y"
e3dda35c 2369 { (yyval.list) = symbol_list_prepend ((yyvsp[-1].list), symbol_list_sym_new ((yyvsp[0].symbol), (yylsp[0]))); }
dc450175 2370/* Line 1380 of yacc.c */
2f5b478e 2371#line 2372 "/Users/akim/src/kernel/bison/src/parse-gram.c"
3be03b13
JD
2372 break;
2373
2f5b478e 2374 case 63:
dc450175 2375/* Line 1380 of yacc.c */
2f5b478e 2376#line 447 "parse-gram.y"
e3dda35c 2377 { (yyval.list) = (yyvsp[0].list); }
dc450175 2378/* Line 1380 of yacc.c */
2f5b478e 2379#line 2380 "/Users/akim/src/kernel/bison/src/parse-gram.c"
12e35840
JD
2380 break;
2381
2f5b478e 2382 case 64:
dc450175 2383/* Line 1380 of yacc.c */
2f5b478e 2384#line 448 "parse-gram.y"
e3dda35c 2385 { (yyval.list) = symbol_list_prepend ((yyvsp[-1].list), (yyvsp[0].list)); }
dc450175 2386/* Line 1380 of yacc.c */
2f5b478e 2387#line 2388 "/Users/akim/src/kernel/bison/src/parse-gram.c"
ab7f29f8
JD
2388 break;
2389
2f5b478e 2390 case 65:
dc450175 2391/* Line 1380 of yacc.c */
2f5b478e 2392#line 452 "parse-gram.y"
e3dda35c 2393 { (yyval.list) = symbol_list_sym_new ((yyvsp[0].symbol), (yylsp[0])); }
dc450175 2394/* Line 1380 of yacc.c */
2f5b478e 2395#line 2396 "/Users/akim/src/kernel/bison/src/parse-gram.c"
ab7f29f8
JD
2396 break;
2397
2f5b478e 2398 case 66:
dc450175 2399/* Line 1380 of yacc.c */
2f5b478e 2400#line 453 "parse-gram.y"
e3dda35c 2401 { (yyval.list) = symbol_list_type_new ((yyvsp[0].uniqstr), (yylsp[0])); }
dc450175 2402/* Line 1380 of yacc.c */
2f5b478e 2403#line 2404 "/Users/akim/src/kernel/bison/src/parse-gram.c"
ab7f29f8
JD
2404 break;
2405
2f5b478e 2406 case 67:
dc450175 2407/* Line 1380 of yacc.c */
2f5b478e 2408#line 454 "parse-gram.y"
e3dda35c 2409 { (yyval.list) = symbol_list_default_tagged_new ((yylsp[0])); }
dc450175 2410/* Line 1380 of yacc.c */
2f5b478e 2411#line 2412 "/Users/akim/src/kernel/bison/src/parse-gram.c"
ab7f29f8
JD
2412 break;
2413
2f5b478e 2414 case 68:
dc450175 2415/* Line 1380 of yacc.c */
2f5b478e 2416#line 455 "parse-gram.y"
e3dda35c 2417 { (yyval.list) = symbol_list_default_tagless_new ((yylsp[0])); }
dc450175 2418/* Line 1380 of yacc.c */
2f5b478e 2419#line 2420 "/Users/akim/src/kernel/bison/src/parse-gram.c"
f7398526
AD
2420 break;
2421
2f5b478e 2422 case 69:
dc450175 2423/* Line 1380 of yacc.c */
2f5b478e 2424#line 461 "parse-gram.y"
1921f1d7 2425 {
e3dda35c 2426 current_type = (yyvsp[0].uniqstr);
1f4cc0f4 2427 tag_seen = true;
4cdb01db 2428 }
dc450175 2429/* Line 1380 of yacc.c */
2f5b478e 2430#line 2431 "/Users/akim/src/kernel/bison/src/parse-gram.c"
e9955c83 2431 break;
1921f1d7 2432
2f5b478e 2433 case 70:
dc450175 2434/* Line 1380 of yacc.c */
2f5b478e 2435#line 466 "parse-gram.y"
1921f1d7 2436 {
e3dda35c
AD
2437 symbol_class_set ((yyvsp[0].symbol), current_class, (yylsp[0]), true);
2438 symbol_type_set ((yyvsp[0].symbol), current_type, (yylsp[0]));
4cdb01db 2439 }
dc450175 2440/* Line 1380 of yacc.c */
2f5b478e 2441#line 2442 "/Users/akim/src/kernel/bison/src/parse-gram.c"
e9955c83 2442 break;
1921f1d7 2443
2f5b478e 2444 case 71:
dc450175 2445/* Line 1380 of yacc.c */
2f5b478e 2446#line 471 "parse-gram.y"
1921f1d7 2447 {
e3dda35c
AD
2448 symbol_class_set ((yyvsp[-1].symbol), current_class, (yylsp[-1]), true);
2449 symbol_type_set ((yyvsp[-1].symbol), current_type, (yylsp[-1]));
2450 symbol_user_token_number_set ((yyvsp[-1].symbol), (yyvsp[0].integer), (yylsp[0]));
4cdb01db 2451 }
dc450175 2452/* Line 1380 of yacc.c */
2f5b478e 2453#line 2454 "/Users/akim/src/kernel/bison/src/parse-gram.c"
e9955c83 2454 break;
1921f1d7 2455
2f5b478e 2456 case 72:
dc450175 2457/* Line 1380 of yacc.c */
2f5b478e 2458#line 477 "parse-gram.y"
1921f1d7 2459 {
e3dda35c
AD
2460 symbol_class_set ((yyvsp[-1].symbol), current_class, (yylsp[-1]), true);
2461 symbol_type_set ((yyvsp[-1].symbol), current_type, (yylsp[-1]));
2462 symbol_make_alias ((yyvsp[-1].symbol), (yyvsp[0].symbol), (yyloc));
4cdb01db 2463 }
dc450175 2464/* Line 1380 of yacc.c */
2f5b478e 2465#line 2466 "/Users/akim/src/kernel/bison/src/parse-gram.c"
e9955c83 2466 break;
1921f1d7 2467
2f5b478e 2468 case 73:
dc450175 2469/* Line 1380 of yacc.c */
2f5b478e 2470#line 483 "parse-gram.y"
1921f1d7 2471 {
e3dda35c
AD
2472 symbol_class_set ((yyvsp[-2].symbol), current_class, (yylsp[-2]), true);
2473 symbol_type_set ((yyvsp[-2].symbol), current_type, (yylsp[-2]));
2474 symbol_user_token_number_set ((yyvsp[-2].symbol), (yyvsp[-1].integer), (yylsp[-1]));
2475 symbol_make_alias ((yyvsp[-2].symbol), (yyvsp[0].symbol), (yyloc));
4cdb01db 2476 }
dc450175 2477/* Line 1380 of yacc.c */
2f5b478e 2478#line 2479 "/Users/akim/src/kernel/bison/src/parse-gram.c"
e9955c83 2479 break;
1921f1d7 2480
2f5b478e 2481 case 80:
dc450175 2482/* Line 1380 of yacc.c */
2f5b478e 2483#line 513 "parse-gram.y"
b275314e
AD
2484 {
2485 yyerrok;
2486 }
dc450175 2487/* Line 1380 of yacc.c */
2f5b478e 2488#line 2489 "/Users/akim/src/kernel/bison/src/parse-gram.c"
e9955c83 2489 break;
1921f1d7 2490
2f5b478e 2491 case 81:
dc450175 2492/* Line 1380 of yacc.c */
2f5b478e 2493#line 519 "parse-gram.y"
d70059ec
AR
2494 { current_lhs = (yyvsp[-1].symbol); current_lhs_location = (yylsp[-1]);
2495 current_lhs_named_ref = (yyvsp[0].named_ref); }
dc450175 2496/* Line 1380 of yacc.c */
2f5b478e 2497#line 2498 "/Users/akim/src/kernel/bison/src/parse-gram.c"
e9955c83 2498 break;
1921f1d7 2499
2f5b478e 2500 case 83:
dc450175 2501/* Line 1380 of yacc.c */
2f5b478e 2502#line 524 "parse-gram.y"
e3dda35c 2503 { grammar_current_rule_end ((yylsp[0])); }
dc450175 2504/* Line 1380 of yacc.c */
2f5b478e 2505#line 2506 "/Users/akim/src/kernel/bison/src/parse-gram.c"
4cdb01db 2506 break;
1921f1d7 2507
2f5b478e 2508 case 84:
dc450175 2509/* Line 1380 of yacc.c */
2f5b478e 2510#line 525 "parse-gram.y"
e3dda35c 2511 { grammar_current_rule_end ((yylsp[0])); }
dc450175 2512/* Line 1380 of yacc.c */
2f5b478e 2513#line 2514 "/Users/akim/src/kernel/bison/src/parse-gram.c"
e9955c83 2514 break;
1921f1d7 2515
2f5b478e 2516 case 86:
dc450175 2517/* Line 1380 of yacc.c */
2f5b478e 2518#line 531 "parse-gram.y"
d70059ec
AR
2519 { grammar_current_rule_begin (current_lhs, current_lhs_location,
2520 current_lhs_named_ref); }
dc450175 2521/* Line 1380 of yacc.c */
2f5b478e 2522#line 2523 "/Users/akim/src/kernel/bison/src/parse-gram.c"
e9071366
AD
2523 break;
2524
2f5b478e 2525 case 87:
dc450175 2526/* Line 1380 of yacc.c */
2f5b478e 2527#line 534 "parse-gram.y"
d70059ec 2528 { grammar_current_rule_symbol_append ((yyvsp[-1].symbol), (yylsp[-1]), (yyvsp[0].named_ref)); }
dc450175 2529/* Line 1380 of yacc.c */
2f5b478e 2530#line 2531 "/Users/akim/src/kernel/bison/src/parse-gram.c"
676385e2
PH
2531 break;
2532
2f5b478e 2533 case 88:
dc450175 2534/* Line 1380 of yacc.c */
2f5b478e 2535#line 536 "parse-gram.y"
d70059ec 2536 { grammar_current_rule_action_append ((yyvsp[-1].code), (yylsp[-1]), (yyvsp[0].named_ref)); }
dc450175 2537/* Line 1380 of yacc.c */
2f5b478e 2538#line 2539 "/Users/akim/src/kernel/bison/src/parse-gram.c"
676385e2
PH
2539 break;
2540
2f5b478e 2541 case 89:
dc450175 2542/* Line 1380 of yacc.c */
2f5b478e 2543#line 538 "parse-gram.y"
e3dda35c 2544 { grammar_current_rule_prec_set ((yyvsp[0].symbol), (yylsp[0])); }
dc450175 2545/* Line 1380 of yacc.c */
2f5b478e 2546#line 2547 "/Users/akim/src/kernel/bison/src/parse-gram.c"
3fa3725a
PE
2547 break;
2548
2f5b478e 2549 case 90:
dc450175 2550/* Line 1380 of yacc.c */
2f5b478e 2551#line 540 "parse-gram.y"
e3dda35c 2552 { grammar_current_rule_dprec_set ((yyvsp[0].integer), (yylsp[0])); }
dc450175 2553/* Line 1380 of yacc.c */
2f5b478e 2554#line 2555 "/Users/akim/src/kernel/bison/src/parse-gram.c"
5e6feb86
PE
2555 break;
2556
2f5b478e 2557 case 91:
dc450175 2558/* Line 1380 of yacc.c */
2f5b478e 2559#line 542 "parse-gram.y"
e3dda35c 2560 { grammar_current_rule_merge_set ((yyvsp[0].uniqstr), (yylsp[0])); }
dc450175 2561/* Line 1380 of yacc.c */
2f5b478e 2562#line 2563 "/Users/akim/src/kernel/bison/src/parse-gram.c"
b275314e
AD
2563 break;
2564
2f5b478e 2565 case 92:
dc450175 2566/* Line 1380 of yacc.c */
2f5b478e 2567#line 547 "parse-gram.y"
d70059ec
AR
2568 { (yyval.named_ref) = 0; }
2569/* Line 1380 of yacc.c */
2f5b478e 2570#line 2571 "/Users/akim/src/kernel/bison/src/parse-gram.c"
d70059ec
AR
2571 break;
2572
2f5b478e 2573 case 93:
d70059ec 2574/* Line 1380 of yacc.c */
2f5b478e 2575#line 550 "parse-gram.y"
d70059ec
AR
2576 { (yyval.named_ref) = named_ref_new((yyvsp[0].uniqstr), (yylsp[0])); }
2577/* Line 1380 of yacc.c */
2f5b478e 2578#line 2579 "/Users/akim/src/kernel/bison/src/parse-gram.c"
d70059ec
AR
2579 break;
2580
2f5b478e 2581 case 95:
d70059ec 2582/* Line 1380 of yacc.c */
2f5b478e 2583#line 562 "parse-gram.y"
e3dda35c 2584 { (yyval.uniqstr) = uniqstr_new ((yyvsp[0].chars)); }
dc450175 2585/* Line 1380 of yacc.c */
2f5b478e 2586#line 2587 "/Users/akim/src/kernel/bison/src/parse-gram.c"
16dc6a9e
JD
2587 break;
2588
2f5b478e 2589 case 96:
dc450175 2590/* Line 1380 of yacc.c */
2f5b478e 2591#line 567 "parse-gram.y"
1c729058 2592 { (yyval.chars) = ""; }
dc450175 2593/* Line 1380 of yacc.c */
2f5b478e 2594#line 2595 "/Users/akim/src/kernel/bison/src/parse-gram.c"
2ce4ed68
AD
2595 break;
2596
2f5b478e 2597 case 98:
dc450175 2598/* Line 1380 of yacc.c */
2f5b478e 2599#line 578 "parse-gram.y"
2ce4ed68 2600 {
7c0c6181 2601 code_props plain_code;
e3dda35c
AD
2602 (yyvsp[0].code)[strlen ((yyvsp[0].code)) - 1] = '\n';
2603 code_props_plain_init (&plain_code, (yyvsp[0].code)+1, (yylsp[0]));
7c0c6181
JD
2604 code_props_translate_code (&plain_code);
2605 gram_scanner_last_string_free ();
2606 (yyval.chars) = plain_code.code;
2ce4ed68 2607 }
dc450175 2608/* Line 1380 of yacc.c */
2f5b478e 2609#line 2610 "/Users/akim/src/kernel/bison/src/parse-gram.c"
2ce4ed68
AD
2610 break;
2611
2f5b478e 2612 case 99:
dc450175 2613/* Line 1380 of yacc.c */
2f5b478e 2614#line 598 "parse-gram.y"
e3dda35c 2615 { (yyval.symbol) = symbol_from_uniqstr ((yyvsp[0].uniqstr), (yylsp[0])); }
dc450175 2616/* Line 1380 of yacc.c */
2f5b478e 2617#line 2618 "/Users/akim/src/kernel/bison/src/parse-gram.c"
916708d5
AD
2618 break;
2619
2f5b478e 2620 case 100:
dc450175 2621/* Line 1380 of yacc.c */
2f5b478e 2622#line 600 "parse-gram.y"
d2a1a60a 2623 {
e3dda35c
AD
2624 (yyval.symbol) = symbol_get (char_name ((yyvsp[0].character)), (yylsp[0]));
2625 symbol_class_set ((yyval.symbol), token_sym, (yylsp[0]), false);
2626 symbol_user_token_number_set ((yyval.symbol), (yyvsp[0].character), (yylsp[0]));
d2a1a60a 2627 }
dc450175 2628/* Line 1380 of yacc.c */
2f5b478e 2629#line 2630 "/Users/akim/src/kernel/bison/src/parse-gram.c"
66ef8b9d
PE
2630 break;
2631
2f5b478e 2632 case 101:
dc450175 2633/* Line 1380 of yacc.c */
2f5b478e 2634#line 608 "parse-gram.y"
e3dda35c 2635 { (yyval.symbol) = symbol_from_uniqstr ((yyvsp[0].uniqstr), (yylsp[0])); }
dc450175 2636/* Line 1380 of yacc.c */
2f5b478e 2637#line 2638 "/Users/akim/src/kernel/bison/src/parse-gram.c"
58d7a1a1
AD
2638 break;
2639
2f5b478e 2640 case 104:
dc450175 2641/* Line 1380 of yacc.c */
2f5b478e 2642#line 620 "parse-gram.y"
1921f1d7 2643 {
e3dda35c
AD
2644 (yyval.symbol) = symbol_get (quotearg_style (c_quoting_style, (yyvsp[0].chars)), (yylsp[0]));
2645 symbol_class_set ((yyval.symbol), token_sym, (yylsp[0]), false);
4cdb01db 2646 }
dc450175 2647/* Line 1380 of yacc.c */
2f5b478e 2648#line 2649 "/Users/akim/src/kernel/bison/src/parse-gram.c"
e9955c83 2649 break;
1921f1d7 2650
2f5b478e 2651 case 106:
dc450175 2652/* Line 1380 of yacc.c */
2f5b478e 2653#line 629 "parse-gram.y"
1921f1d7 2654 {
7c0c6181 2655 code_props plain_code;
e3dda35c 2656 code_props_plain_init (&plain_code, (yyvsp[0].chars), (yylsp[0]));
7c0c6181 2657 code_props_translate_code (&plain_code);
e9071366 2658 gram_scanner_last_string_free ();
e3dda35c 2659 muscle_code_grow ("epilogue", plain_code.code, (yylsp[0]));
7c0c6181 2660 code_scanner_last_string_free ();
4cdb01db 2661 }
dc450175 2662/* Line 1380 of yacc.c */
2f5b478e 2663#line 2664 "/Users/akim/src/kernel/bison/src/parse-gram.c"
e9955c83
AD
2664 break;
2665
2666
dc450175 2667/* Line 1380 of yacc.c */
2f5b478e 2668#line 2669 "/Users/akim/src/kernel/bison/src/parse-gram.c"
e1054895 2669 default: break;
1921f1d7 2670 }
66809587 2671 YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
1921f1d7 2672
3b0ffc7e
PE
2673 YYPOPSTACK (yylen);
2674 yylen = 0;
05d18c24 2675 YY_STACK_PRINT (yyss, yyssp);
e9955c83
AD
2676
2677 *++yyvsp = yyval;
e9955c83 2678 *++yylsp = yyloc;
e9955c83
AD
2679
2680 /* Now `shift' the result of the reduction. Determine what state
2681 that goes to, based on the state we popped back to and the rule
2682 number reduced by. */
2683
2684 yyn = yyr1[yyn];
2685
1921f1d7 2686 yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
219741d8 2687 if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
e9955c83
AD
2688 yystate = yytable[yystate];
2689 else
1921f1d7 2690 yystate = yydefgoto[yyn - YYNTOKENS];
e9955c83
AD
2691
2692 goto yynewstate;
2693
2694
2695/*------------------------------------.
2696| yyerrlab -- here on detecting error |
2697`------------------------------------*/
2698yyerrlab:
2699 /* If not already recovering from an error, report this error. */
2700 if (!yyerrstatus)
2701 {
2702 ++yynerrs;
2abdfeef
PE
2703#if ! YYERROR_VERBOSE
2704 yyerror (YY_("syntax error"));
2705#else
2706 {
dc450175 2707 YYSIZE_T yysize = yysyntax_error (0, yystate, yytoken);
2abdfeef
PE
2708 if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM)
2709 {
2710 YYSIZE_T yyalloc = 2 * yysize;
2711 if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM))
2712 yyalloc = YYSTACK_ALLOC_MAXIMUM;
2713 if (yymsg != yymsgbuf)
2714 YYSTACK_FREE (yymsg);
2715 yymsg = (char *) YYSTACK_ALLOC (yyalloc);
2716 if (yymsg)
2717 yymsg_alloc = yyalloc;
2718 else
6d5aa694 2719 {
2abdfeef
PE
2720 yymsg = yymsgbuf;
2721 yymsg_alloc = sizeof yymsgbuf;
6d5aa694 2722 }
2abdfeef 2723 }
ae7453f2 2724
2abdfeef
PE
2725 if (0 < yysize && yysize <= yymsg_alloc)
2726 {
dc450175 2727 (void) yysyntax_error (yymsg, yystate, yytoken);
2abdfeef
PE
2728 yyerror (yymsg);
2729 }
2730 else
2731 {
2732 yyerror (YY_("syntax error"));
2733 if (yysize != 0)
6088a2a0 2734 goto yyexhaustedlab;
2abdfeef
PE
2735 }
2736 }
2737#endif
e9955c83 2738 }
e9955c83 2739
8a8dc872 2740 yyerror_range[0] = yylloc;
78a00b7d 2741
e9955c83
AD
2742 if (yyerrstatus == 3)
2743 {
9bc0dd67 2744 /* If just tried and failed to reuse lookahead token after an
e9955c83
AD
2745 error, discard it. */
2746
465b4444 2747 if (yychar <= YYEOF)
bf8b3d98 2748 {
d11e0cfa 2749 /* Return failure if at end of input. */
465b4444 2750 if (yychar == YYEOF)
7768896a 2751 YYABORT;
bf8b3d98 2752 }
465b4444
PE
2753 else
2754 {
4b367315 2755 yydestruct ("Error: discarding",
bf8b3d98 2756 yytoken, &yylval, &yylloc);
465b4444 2757 yychar = YYEMPTY;
465b4444 2758 }
e9955c83
AD
2759 }
2760
9bc0dd67 2761 /* Else will try to reuse lookahead token after shifting the error
e9955c83 2762 token. */
6d5aa694 2763 goto yyerrlab1;
e9955c83 2764
05d18c24 2765
465b4444
PE
2766/*---------------------------------------------------.
2767| yyerrorlab -- error raised explicitly by YYERROR. |
2768`---------------------------------------------------*/
2769yyerrorlab:
2770
e1054895
PE
2771 /* Pacify compilers like GCC when the user code never invokes
2772 YYERROR and the label yyerrorlab therefore never appears in user
2773 code. */
e764d4df 2774 if (/*CONSTCOND*/ 0)
465b4444 2775 goto yyerrorlab;
465b4444 2776
8a8dc872 2777 yyerror_range[0] = yylsp[1-yylen];
3b0ffc7e
PE
2778 /* Do not reclaim the symbols of the rule which action triggered
2779 this YYERROR. */
2780 YYPOPSTACK (yylen);
2781 yylen = 0;
2782 YY_STACK_PRINT (yyss, yyssp);
465b4444 2783 yystate = *yyssp;
465b4444
PE
2784 goto yyerrlab1;
2785
2786
2787/*-------------------------------------------------------------.
2788| yyerrlab1 -- common code for both syntax error and YYERROR. |
2789`-------------------------------------------------------------*/
05d18c24 2790yyerrlab1:
1921f1d7 2791 yyerrstatus = 3; /* Each real token shifted decrements this. */
e9955c83 2792
1921f1d7
AD
2793 for (;;)
2794 {
2795 yyn = yypact[yystate];
04b6e11e 2796 if (yyn != YYPACT_NINF)
1921f1d7
AD
2797 {
2798 yyn += YYTERROR;
2799 if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
2800 {
2801 yyn = yytable[yyn];
2802 if (0 < yyn)
2803 break;
2804 }
2805 }
4cdb01db 2806
1921f1d7
AD
2807 /* Pop the current state because it cannot handle the error token. */
2808 if (yyssp == yyss)
2809 YYABORT;
0c15323d 2810
8a8dc872 2811 yyerror_range[0] = *yylsp;
4b367315 2812 yydestruct ("Error: popping",
bf8b3d98 2813 yystos[yystate], yyvsp, yylsp);
3b0ffc7e 2814 YYPOPSTACK (1);
465b4444 2815 yystate = *yyssp;
05d18c24 2816 YY_STACK_PRINT (yyss, yyssp);
e9955c83
AD
2817 }
2818
e9955c83 2819 *++yyvsp = yylval;
8a8dc872
AD
2820
2821 yyerror_range[1] = yylloc;
2822 /* Using YYLLOC is tempting, but would change the location of
9bc0dd67 2823 the lookahead. YYLOC is available though. */
bf8b3d98 2824 YYLLOC_DEFAULT (yyloc, (yyerror_range - 1), 2);
78a00b7d 2825 *++yylsp = yyloc;
e9955c83 2826
3b0ffc7e 2827 /* Shift the error token. */
6088a2a0 2828 YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
8a8dc872 2829
e9955c83
AD
2830 yystate = yyn;
2831 goto yynewstate;
2832
2833
2834/*-------------------------------------.
2835| yyacceptlab -- YYACCEPT comes here. |
2836`-------------------------------------*/
2837yyacceptlab:
2838 yyresult = 0;
2839 goto yyreturn;
2840
2841/*-----------------------------------.
2842| yyabortlab -- YYABORT comes here. |
2843`-----------------------------------*/
2844yyabortlab:
2845 yyresult = 1;
2846 goto yyreturn;
2847
f16b0819 2848#if !defined(yyoverflow) || YYERROR_VERBOSE
6088a2a0
PE
2849/*-------------------------------------------------.
2850| yyexhaustedlab -- memory exhaustion comes here. |
2851`-------------------------------------------------*/
2852yyexhaustedlab:
2853 yyerror (YY_("memory exhausted"));
e9955c83
AD
2854 yyresult = 2;
2855 /* Fall through. */
366eea36 2856#endif
e9955c83
AD
2857
2858yyreturn:
ec5479ce 2859 if (yychar != YYEMPTY)
ec5d1a8a 2860 yydestruct ("Cleanup: discarding lookahead",
bd134904 2861 yytoken, &yylval, &yylloc);
3b0ffc7e
PE
2862 /* Do not reclaim the symbols of the rule which action triggered
2863 this YYABORT or YYACCEPT. */
2864 YYPOPSTACK (yylen);
2865 YY_STACK_PRINT (yyss, yyssp);
d11e0cfa
PE
2866 while (yyssp != yyss)
2867 {
ec5d1a8a 2868 yydestruct ("Cleanup: popping",
d11e0cfa 2869 yystos[*yyssp], yyvsp, yylsp);
3b0ffc7e 2870 YYPOPSTACK (1);
d11e0cfa 2871 }
e9955c83
AD
2872#ifndef yyoverflow
2873 if (yyss != yyssa)
2874 YYSTACK_FREE (yyss);
2abdfeef
PE
2875#endif
2876#if YYERROR_VERBOSE
2877 if (yymsg != yymsgbuf)
2878 YYSTACK_FREE (yymsg);
e9955c83 2879#endif
d2a1a60a
PE
2880 /* Make sure YYID is used. */
2881 return YYID (yyresult);
e9955c83 2882}
1921f1d7 2883
dc450175 2884/* Line 1599 of yacc.c */
2f5b478e 2885#line 639 "parse-gram.y"
05d18c24
PE
2886
2887
2888
2889/* Return the location of the left-hand side of a rule whose
2890 right-hand side is RHS[1] ... RHS[N]. Ignore empty nonterminals in
2891 the right-hand side, and return an empty location equal to the end
2892 boundary of RHS[0] if the right-hand side is empty. */
2893
2894static YYLTYPE
2895lloc_default (YYLTYPE const *rhs, int n)
2896{
2897 int i;
1d64f0ba 2898 YYLTYPE loc;
329d23c5
PE
2899
2900 /* SGI MIPSpro 7.4.1m miscompiles "loc.start = loc.end = rhs[n].end;".
2901 The bug is fixed in 7.4.2m, but play it safe for now. */
2902 loc.start = rhs[n].end;
2903 loc.end = rhs[n].end;
05d18c24 2904
73521d9f
PE
2905 /* Ignore empty nonterminals the start of the the right-hand side.
2906 Do not bother to ignore them at the end of the right-hand side,
2907 since empty nonterminals have the same end as their predecessors. */
05d18c24
PE
2908 for (i = 1; i <= n; i++)
2909 if (! equal_boundaries (rhs[i].start, rhs[i].end))
2910 {
1d64f0ba 2911 loc.start = rhs[i].start;
05d18c24
PE
2912 break;
2913 }
2914
1d64f0ba 2915 return loc;
05d18c24
PE
2916}
2917
2918
2919/* Add a lex-param or a parse-param (depending on TYPE) with
2920 declaration DECL and location LOC. */
2921
2922static void
73521d9f 2923add_param (char const *type, char *decl, location loc)
05d18c24 2924{
8a8dc872 2925 static char const alphanum[26 + 26 + 1 + 10] =
05d18c24
PE
2926 "abcdefghijklmnopqrstuvwxyz"
2927 "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
8a8dc872
AD
2928 "_"
2929 "0123456789";
05d18c24 2930 char const *name_start = NULL;
73521d9f 2931 char *p;
05d18c24 2932
2ed24dd8 2933 /* Stop on last actual character. */
e503aa60 2934 for (p = decl; p[1]; p++)
8a8dc872
AD
2935 if ((p == decl
2936 || ! memchr (alphanum, p[-1], sizeof alphanum))
2937 && memchr (alphanum, p[0], sizeof alphanum - 10))
05d18c24 2938 name_start = p;
2ed24dd8 2939
8a8dc872
AD
2940 /* Strip the surrounding '{' and '}', and any blanks just inside
2941 the braces. */
2942 while (*--p == ' ' || *p == '\t')
2943 continue;
e503aa60 2944 p[1] = '\0';
8a8dc872
AD
2945 while (*++decl == ' ' || *decl == '\t')
2946 continue;
73521d9f 2947
05d18c24
PE
2948 if (! name_start)
2949 complain_at (loc, _("missing identifier in parameter declaration"));
2950 else
2951 {
2952 char *name;
2953 size_t name_len;
2954
2955 for (name_len = 1;
8a8dc872 2956 memchr (alphanum, name_start[name_len], sizeof alphanum);
05d18c24
PE
2957 name_len++)
2958 continue;
2959
2960 name = xmalloc (name_len + 1);
2961 memcpy (name, name_start, name_len);
2962 name[name_len] = '\0';
2963 muscle_pair_list_grow (type, decl, name);
2964 free (name);
2965 }
2966
e9071366 2967 gram_scanner_last_string_free ();
05d18c24 2968}
e9955c83 2969
2ce4ed68 2970
b50d2359
AD
2971static void
2972version_check (location const *loc, char const *version)
2973{
2974 if (strverscmp (version, PACKAGE_VERSION) > 0)
9b8a5ce0
AD
2975 {
2976 complain_at (*loc, "require bison %s, but have %s",
2977 version, PACKAGE_VERSION);
2978 exit (63);
2979 }
b50d2359
AD
2980}
2981
05d18c24
PE
2982static void
2983gram_error (location const *loc, char const *msg)
e9955c83 2984{
05d18c24 2985 complain_at (*loc, "%s", msg);
e9955c83 2986}
1921f1d7 2987
73521d9f
PE
2988char const *
2989token_name (int type)
2990{
e0045d49 2991 return yytname[YYTRANSLATE (type)];
73521d9f
PE
2992}
2993
d2a1a60a
PE
2994static char const *
2995char_name (char c)
2996{
2997 if (c == '\'')
2998 return "'\\''";
2999 else
3000 {
3001 char buf[4];
3002 buf[0] = '\''; buf[1] = c; buf[2] = '\''; buf[3] = '\0';
3003 return quotearg_style (escape_quoting_style, buf);
3004 }
3005}