1 /* A Bison parser, made from parse-gram.y
4 /* Skeleton output parser for Bison,
5 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA. */
23 /* As a special exception, when this file is copied by Bison into a
24 Bison output file, you may use that output file without restriction.
25 This special exception was added by the Free Software Foundation
26 in version 1.24 of Bison. */
28 /* This is the parser code that is written into each bison parser when
29 the %semantic_parser declaration is not specified in the grammar.
30 It was written by Richard Stallman by simplifying the original so
31 called ``semantic'' parser. */
33 /* All symbols defined below should begin with yy or YY, to avoid
34 infringing on user name space. This should be done even for local
35 variables, as they might otherwise be expanded by user macros.
36 There are some unavoidable exceptions within include files to
37 define necessary library symbols; they are noted "INFRINGES ON
38 USER NAME SPACE" below. */
40 /* Identify Bison output. */
46 /* Using locations. */
47 #define YYLSP_NEEDED 1
49 /* If NAME_PREFIX is specified substitute the variables and functions
51 #define yyparse gram_parse
52 #define yylex gram_lex
53 #define yyerror gram_error
54 #define yylval gram_lval
55 #define yychar gram_char
56 #define yydebug gram_debug
57 #define yynerrs gram_nerrs
59 # define yylloc gram_lloc
63 /* Copy the first part of user declarations. */
64 #line 31 "parse-gram.y"
67 #include "muscle_tab.h"
73 #include "conflicts.h"
75 /* Produce verbose parse errors. */
76 #define YYERROR_VERBOSE 1
78 /* Pass the control structure to YYPARSE and YYLEX. */
79 #define YYPARSE_PARAM gram_control
80 #define YYLEX_PARAM gram_control
81 /* YYPARSE receives GRAM_CONTROL as a void *. Provide a
82 correctly typed access to it. */
83 #define yycontrol ((gram_control_t *) gram_control)
85 /* Request detailed parse error messages, and pass them to
88 #define yyerror(Msg) \
89 gram_error (yycontrol, &yylloc, Msg)
91 /* When debugging our pure parser, we want to see values and locations
93 #define YYPRINT(File, Type, Value) \
94 yyprint (File, &yylloc, Type, &Value)
95 static void yyprint (FILE *file
, const location_t
*loc
,
96 int type
, const yystype
*value
);
98 symbol_class current_class
= unknown_sym
;
99 char *current_type
= 0;
100 symbol_t
*current_lhs
;
101 associativity current_assoc
;
102 int current_prec
= 0;
107 # if defined (__STDC__) || defined (__cplusplus)
108 /* Put the tokens into the symbol table, so that GDB and other debuggers
119 PERCENT_EXPECT
= 265,
122 PERCENT_VERBOSE
= 268,
123 PERCENT_ERROR_VERBOSE
= 269,
124 PERCENT_OUTPUT
= 270,
125 PERCENT_FILE_PREFIX
= 271,
126 PERCENT_NAME_PREFIX
= 272,
127 PERCENT_DEFINE
= 273,
128 PERCENT_PURE_PARSER
= 274,
129 PERCENT_DEFINES
= 275,
132 PERCENT_LOCATIONS
= 278,
133 PERCENT_NO_LINES
= 279,
134 PERCENT_SKELETON
= 280,
135 PERCENT_TOKEN_TABLE
= 281,
142 PERCENT_PERCENT
= 288,
148 PERCENT_NONASSOC
= 294
151 /* POSIX requires `int' for tokens in interfaces. */
152 # define YYTOKENTYPE int
153 #endif /* !YYTOKENTYPE */
156 #define CHARACTER 259
158 #define PERCENT_TOKEN 261
159 #define PERCENT_NTERM 262
160 #define PERCENT_TYPE 263
161 #define PERCENT_UNION 264
162 #define PERCENT_EXPECT 265
163 #define PERCENT_START 266
164 #define PERCENT_PREC 267
165 #define PERCENT_VERBOSE 268
166 #define PERCENT_ERROR_VERBOSE 269
167 #define PERCENT_OUTPUT 270
168 #define PERCENT_FILE_PREFIX 271
169 #define PERCENT_NAME_PREFIX 272
170 #define PERCENT_DEFINE 273
171 #define PERCENT_PURE_PARSER 274
172 #define PERCENT_DEFINES 275
173 #define PERCENT_YACC 276
174 #define PERCENT_DEBUG 277
175 #define PERCENT_LOCATIONS 278
176 #define PERCENT_NO_LINES 279
177 #define PERCENT_SKELETON 280
178 #define PERCENT_TOKEN_TABLE 281
181 #define SEMICOLON 284
185 #define PERCENT_PERCENT 288
188 #define BRACED_CODE 291
189 #define PERCENT_LEFT 292
190 #define PERCENT_RIGHT 293
191 #define PERCENT_NONASSOC 294
196 /* Enabling traces. */
201 /* Enabling verbose error messages. */
202 #ifdef YYERROR_VERBOSE
203 # undef YYERROR_VERBOSE
204 # define YYERROR_VERBOSE 1
206 # define YYERROR_VERBOSE 0
210 #line 74 "parse-gram.y"
217 /* Line 199 of /home/akim/src/bison/data/bison.simple. */
218 #line 219 "parse-gram.c"
219 # define YYSTYPE yystype
220 # define YYSTYPE_IS_TRIVIAL 1
224 typedef struct yyltype
231 # define YYLTYPE yyltype
232 # define YYLTYPE_IS_TRIVIAL 1
235 /* Copy the second part of user declarations. */
238 /* Line 219 of /home/akim/src/bison/data/bison.simple. */
239 #line 240 "parse-gram.c"
241 #if ! defined (yyoverflow) || YYERROR_VERBOSE
243 /* The parser invokes alloca or malloc; define the necessary symbols. */
245 # if YYSTACK_USE_ALLOCA
246 # define YYSTACK_ALLOC alloca
248 # ifndef YYSTACK_USE_ALLOCA
249 # if defined (alloca) || defined (_ALLOCA_H)
250 # define YYSTACK_ALLOC alloca
253 # define YYSTACK_ALLOC __builtin_alloca
259 # ifdef YYSTACK_ALLOC
260 /* Pacify GCC's `empty if-body' warning. */
261 # define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
263 # if defined (__STDC__) || defined (__cplusplus)
264 # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
265 # define YYSIZE_T size_t
267 # define YYSTACK_ALLOC malloc
268 # define YYSTACK_FREE free
270 #endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */
273 #if (! defined (yyoverflow) \
274 && (! defined (__cplusplus) \
275 || (YYLTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
277 /* A type that is properly aligned for any stack member. */
287 /* The size of the maximum gap between one aligned stack and the next. */
288 # define YYSTACK_GAP_MAX (sizeof (union yyalloc) - 1)
290 /* The size of an array large to enough to hold all stacks, each with
293 # define YYSTACK_BYTES(N) \
294 ((N) * (sizeof (short) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \
295 + 2 * YYSTACK_GAP_MAX)
297 # define YYSTACK_BYTES(N) \
298 ((N) * (sizeof (short) + sizeof (YYSTYPE)) \
302 /* Copy COUNT objects from FROM to TO. The source and destination do
306 # define YYCOPY(To, From, Count) \
307 __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
309 # define YYCOPY(To, From, Count) \
312 register YYSIZE_T yyi; \
313 for (yyi = 0; yyi < (Count); yyi++) \
314 (To)[yyi] = (From)[yyi]; \
320 /* Relocate STACK from its old location to the new one. The
321 local variables YYSIZE and YYSTACKSIZE give the old and new number of
322 elements in the stack, and YYPTR gives the new location of the
323 stack. Advance YYPTR to a properly aligned location for the next
325 # define YYSTACK_RELOCATE(Stack) \
328 YYSIZE_T yynewbytes; \
329 YYCOPY (&yyptr->Stack, Stack, yysize); \
330 Stack = &yyptr->Stack; \
331 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAX; \
332 yyptr += yynewbytes / sizeof (*yyptr); \
338 /* YYFINAL -- State number of the termination state. */
340 #define YYFLAG -32768
343 /* YYNTOKENS -- Number of terminals. */
345 /* YYNNTS -- Number of nonterminals. */
347 /* YYNRULES -- Number of rules. */
349 /* YYNRULES -- Number of states. */
352 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
354 #define YYMAXUTOK 294
356 #define YYTRANSLATE(X) \
357 ((unsigned)(X) <= YYMAXUTOK ? yytranslate[X] : YYUNDEFTOK)
359 /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
360 static const unsigned char yytranslate
[] =
362 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
363 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
364 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
365 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
366 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
367 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
368 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
369 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
370 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
371 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
372 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
373 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
374 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
375 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
376 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
377 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
378 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
379 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
380 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
381 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
382 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
383 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
384 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
385 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
386 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
387 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
388 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
389 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
390 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
395 /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
397 static const unsigned char yyprhs
[] =
399 0, 0, 3, 4, 10, 11, 15, 17, 19, 21,
400 25, 27, 29, 32, 36, 38, 42, 44, 48, 50,
401 53, 55, 57, 59, 61, 63, 66, 69, 70, 74,
402 75, 79, 80, 85, 86, 91, 93, 95, 97, 98,
403 100, 102, 105, 107, 110, 112, 114, 117, 120, 124,
404 126, 129, 131, 134, 136, 139, 140, 146, 148, 152,
405 153, 156, 159, 163, 165, 167, 169, 171, 173, 175,
409 /* YYRHS -- A `-1'-separated list of the rules' RHS. */
410 static const signed char yyrhs
[] =
412 41, 0, -1, -1, 42, 43, 33, 58, 68, -1,
413 -1, 43, 44, 69, -1, 45, -1, 34, -1, 22,
414 -1, 18, 67, 67, -1, 20, -1, 14, -1, 10,
415 5, -1, 16, 28, 67, -1, 23, -1, 17, 28,
416 67, -1, 24, -1, 15, 28, 67, -1, 19, -1,
417 25, 67, -1, 26, -1, 13, -1, 21, -1, 50,
418 -1, 46, -1, 11, 64, -1, 9, 36, -1, -1,
419 7, 47, 57, -1, -1, 6, 48, 57, -1, -1,
420 8, 27, 49, 54, -1, -1, 52, 53, 51, 55,
421 -1, 37, -1, 38, -1, 39, -1, -1, 27, -1,
422 32, -1, 54, 32, -1, 64, -1, 55, 64, -1,
423 27, -1, 32, -1, 32, 5, -1, 32, 66, -1,
424 32, 5, 66, -1, 56, -1, 57, 56, -1, 59,
425 -1, 58, 59, -1, 60, -1, 45, 29, -1, -1,
426 32, 30, 61, 62, 29, -1, 63, -1, 62, 31,
427 63, -1, -1, 63, 64, -1, 63, 65, -1, 63,
428 12, 64, -1, 32, -1, 66, -1, 4, -1, 36,
429 -1, 3, -1, 3, -1, -1, 33, 35, -1, -1,
433 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */
434 static const unsigned short yyrline
[] =
436 0, 131, 131, 131, 144, 146, 149, 151, 152, 153,
437 154, 155, 156, 157, 158, 159, 160, 161, 162, 163,
438 164, 165, 166, 169, 171, 172, 176, 184, 184, 190,
439 190, 195, 195, 201, 201, 211, 213, 214, 217, 219,
440 223, 225, 229, 235, 243, 248, 253, 259, 265, 275,
441 278, 287, 289, 295, 297, 300, 300, 305, 307, 310,
442 313, 315, 317, 321, 323, 324, 327, 333, 342, 350,
447 #if YYDEBUG || YYERROR_VERBOSE
448 /* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
449 First, the terminals, then, starting at YYNTOKENS, nonterminals. */
450 static const char *const yytname
[] =
452 "\"end of string\"", "error", "$undefined.", "STRING", "CHARACTER", "INT",
453 "\"%token\"", "\"%nterm\"", "\"%type\"", "\"%union\"", "\"%expect\"",
454 "\"%start\"", "\"%prec\"", "\"%verbose\"", "\"%error-verbose\"",
455 "\"%output\"", "\"%file-prefix\"", "\"%name-prefix\"", "\"%define\"",
456 "\"%pure-parser\"", "\"%defines\"", "\"%yacc\"", "\"%debug\"",
457 "\"%locations\"", "\"%no-lines\"", "\"%skeleton\"", "\"%token-table\"",
458 "TYPE", "\"=\"", "\";\"", "\":\"", "\"|\"", "\"identifier\"", "\"%%\"",
459 "PROLOGUE", "EPILOGUE", "BRACED_CODE", "\"%left\"", "\"%right\"",
460 "\"%nonassoc\"", "$axiom", "input", "@1", "declarations", "declaration",
461 "grammar_declaration", "symbol_declaration", "@2", "@3", "@4",
462 "precedence_declaration", "@5", "precedence_declarator", "type.opt",
463 "nterms_to_type.1", "terms_to_prec.1", "symbol_def", "symbol_defs.1",
464 "grammar", "rules_or_grammar_declaration", "rules", "@6", "rhses.1",
465 "rhs", "symbol", "action", "string_as_id", "string_content",
466 "epilogue.opt", "semi_colon.opt", 0
470 /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
472 static const short yytoknum
[] =
474 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
475 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
476 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
477 285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
481 /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
482 static const unsigned char yyr1
[] =
484 0, 40, 42, 41, 43, 43, 44, 44, 44, 44,
485 44, 44, 44, 44, 44, 44, 44, 44, 44, 44,
486 44, 44, 44, 45, 45, 45, 45, 47, 46, 48,
487 46, 49, 46, 51, 50, 52, 52, 52, 53, 53,
488 54, 54, 55, 55, 56, 56, 56, 56, 56, 57,
489 57, 58, 58, 59, 59, 61, 60, 62, 62, 63,
490 63, 63, 63, 64, 64, 64, 65, 66, 67, 68,
494 /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
495 static const unsigned char yyr2
[] =
497 0, 2, 0, 5, 0, 3, 1, 1, 1, 3,
498 1, 1, 2, 3, 1, 3, 1, 3, 1, 2,
499 1, 1, 1, 1, 1, 2, 2, 0, 3, 0,
500 3, 0, 4, 0, 4, 1, 1, 1, 0, 1,
501 1, 2, 1, 2, 1, 1, 2, 2, 3, 1,
502 2, 1, 2, 1, 2, 0, 5, 1, 3, 0,
503 2, 2, 3, 1, 1, 1, 1, 1, 1, 0,
507 /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
508 STATE-NUM when YYTABLE doesn't specify something else to do. Zero
509 means the default is an error. */
510 static const short yydefact
[] =
512 2, 0, 4, 0, 0, 29, 27, 0, 0, 0,
513 0, 21, 11, 0, 0, 0, 0, 18, 10, 22,
514 8, 14, 16, 0, 20, 0, 7, 35, 36, 37,
515 71, 6, 24, 23, 38, 0, 0, 31, 26, 12,
516 67, 65, 63, 25, 64, 0, 0, 0, 68, 0,
517 19, 0, 0, 69, 51, 53, 72, 5, 39, 33,
518 44, 45, 49, 30, 28, 0, 17, 13, 15, 9,
519 55, 54, 0, 52, 3, 0, 46, 47, 50, 40,
520 32, 59, 70, 34, 42, 48, 41, 0, 57, 43,
521 56, 59, 0, 66, 60, 61, 58, 62
524 /* YYPGOTO[NTERM-NUM]. */
525 static const short yydefgoto
[] =
527 -1, 1, 2, 4, 30, 52, 32, 36, 35, 65,
528 33, 75, 34, 59, 80, 83, 62, 63, 53, 54,
529 55, 81, 87, 88, 94, 95, 44, 49, 74, 57
532 /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
534 static const short yypact
[] =
536 -32768, 7,-32768,-32768, -5,-32768,-32768, -1, 11, 51,
537 38,-32768,-32768, 36, 43, 44, 66,-32768,-32768,-32768,
538 -32768,-32768,-32768, 66,-32768, 29,-32768,-32768,-32768,-32768,
539 45,-32768,-32768,-32768, 48, 18, 18,-32768,-32768,-32768,
540 -32768,-32768,-32768,-32768,-32768, 66, 66, 66,-32768, 66,
541 -32768, 46, 49, 16,-32768,-32768,-32768,-32768,-32768,-32768,
542 -32768, 41,-32768, 18, 18, 52,-32768,-32768,-32768,-32768,
543 -32768,-32768, 42,-32768,-32768, 38, 82,-32768,-32768,-32768,
544 54,-32768,-32768, 38,-32768,-32768,-32768, 31, 27,-32768,
545 -32768,-32768, 38,-32768,-32768,-32768, 27,-32768
548 /* YYPGOTO[NTERM-NUM]. */
549 static const short yypgoto
[] =
551 -32768,-32768,-32768,-32768,-32768, 83,-32768,-32768,-32768,-32768,
552 -32768,-32768,-32768,-32768,-32768,-32768, -12, 53,-32768, 35,
553 -32768,-32768,-32768, 0, -10,-32768, -18, 34,-32768,-32768
556 /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
557 positive, shift that token. If negative, reduce the rule which
558 number is the opposite. If zero, do what YYDEFACT says. */
559 static const short yytable
[] =
561 43, 5, 6, 7, 8, 9, 10, 3, 11, 12,
562 13, 14, 15, 16, 17, 18, 19, 20, 21, 22,
563 23, 24, 5, 6, 7, 8, 37, 10, 25, 26,
564 40, 41, 27, 28, 29, 5, 6, 7, 8, 92,
565 10, 40, 41, 77, 40, 60, 76, 38, 51, 72,
566 61, 78, 78, 27, 28, 29, 39, 50, 85, 42,
567 90, 51, 91, 93, 45, 84, 27, 28, 29, 48,
568 42, 46, 47, 89, 56, 58, 70, 82, 71, 66,
569 67, 68, 97, 69, 79, 40, 86, 31, 73, 64,
573 static const short yycheck
[] =
575 10, 6, 7, 8, 9, 10, 11, 0, 13, 14,
576 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
577 25, 26, 6, 7, 8, 9, 27, 11, 33, 34,
578 3, 4, 37, 38, 39, 6, 7, 8, 9, 12,
579 11, 3, 4, 61, 3, 27, 5, 36, 32, 33,
580 32, 63, 64, 37, 38, 39, 5, 23, 76, 32,
581 29, 32, 31, 36, 28, 75, 37, 38, 39, 3,
582 32, 28, 28, 83, 29, 27, 30, 35, 29, 45,
583 46, 47, 92, 49, 32, 3, 32, 4, 53, 36,
588 /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
589 symbol of state STATE-NUM. */
590 static const unsigned char yystos
[] =
592 0, 41, 42, 0, 43, 6, 7, 8, 9, 10,
593 11, 13, 14, 15, 16, 17, 18, 19, 20, 21,
594 22, 23, 24, 25, 26, 33, 34, 37, 38, 39,
595 44, 45, 46, 50, 52, 48, 47, 27, 36, 5,
596 3, 4, 32, 64, 66, 28, 28, 28, 3, 67,
597 67, 32, 45, 58, 59, 60, 29, 69, 27, 53,
598 27, 32, 56, 57, 57, 49, 67, 67, 67, 67,
599 30, 29, 33, 59, 68, 51, 5, 66, 56, 32,
600 54, 61, 35, 55, 64, 66, 32, 62, 63, 64,
601 29, 31, 12, 36, 64, 65, 63, 64
605 #if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
606 # define YYSIZE_T __SIZE_TYPE__
608 #if ! defined (YYSIZE_T) && defined (size_t)
609 # define YYSIZE_T size_t
611 #if ! defined (YYSIZE_T)
612 # if defined (__STDC__) || defined (__cplusplus)
613 # include <stddef.h> /* INFRINGES ON USER NAME SPACE */
614 # define YYSIZE_T size_t
617 #if ! defined (YYSIZE_T)
618 # define YYSIZE_T unsigned int
621 #define yyerrok (yyerrstatus = 0)
622 #define yyclearin (yychar = YYEMPTY)
626 #define YYACCEPT goto yyacceptlab
627 #define YYABORT goto yyabortlab
628 #define YYERROR goto yyerrlab1
630 /* Like YYERROR except do call yyerror. This remains here temporarily
631 to ease the transition to the new meaning of YYERROR, for GCC.
632 Once GCC version 2 has supplanted version 1, this can go. */
634 #define YYFAIL goto yyerrlab
636 #define YYRECOVERING() (!!yyerrstatus)
638 #define YYBACKUP(Token, Value) \
640 if (yychar == YYEMPTY && yylen == 1) \
644 yychar1 = YYTRANSLATE (yychar); \
650 yyerror ("syntax error: cannot back up"); \
656 #define YYERRCODE 256
658 /* YYLLOC_DEFAULT -- Compute the default location (before the actions
661 #ifndef YYLLOC_DEFAULT
662 # define YYLLOC_DEFAULT(Current, Rhs, N) \
663 Current.first_line = Rhs[1].first_line; \
664 Current.first_column = Rhs[1].first_column; \
665 Current.last_line = Rhs[N].last_line; \
666 Current.last_column = Rhs[N].last_column;
669 /* YYLEX -- calling `yylex' with the right arguments. */
674 # define YYLEX yylex (&yylval, &yylloc, YYLEX_PARAM)
676 # define YYLEX yylex (&yylval, &yylloc)
678 # else /* !YYLSP_NEEDED */
680 # define YYLEX yylex (&yylval, YYLEX_PARAM)
682 # define YYLEX yylex (&yylval)
684 # endif /* !YYLSP_NEEDED */
686 # define YYLEX yylex ()
689 /* Enable debugging if requested. */
693 # include <stdio.h> /* INFRINGES ON USER NAME SPACE */
694 # define YYFPRINTF fprintf
697 # define YYDPRINTF(Args) \
702 /* Nonzero means print parse trace. It is left uninitialized so that
703 multiple parsers can coexist. */
706 # define YYDPRINTF(Args)
707 #endif /* !YYDEBUG */
709 /* YYINITDEPTH -- initial size of the parser's stacks. */
711 # define YYINITDEPTH 200
714 /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
715 if the built-in stack extension method is used).
717 Do not make this value too large; the results are undefined if
718 SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH)
719 evaluated with infinite-precision integer arithmetic. */
726 # define YYMAXDEPTH 10000
734 # if defined (__GLIBC__) && defined (_STRING_H)
735 # define yystrlen strlen
737 /* Return the length of YYSTR. */
739 # if defined (__STDC__) || defined (__cplusplus)
740 yystrlen (const char *yystr
)
746 register const char *yys
= yystr
;
748 while (*yys
++ != '\0')
751 return yys
- yystr
- 1;
757 # if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)
758 # define yystpcpy stpcpy
760 /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
763 # if defined (__STDC__) || defined (__cplusplus)
764 yystpcpy (char *yydest
, const char *yysrc
)
766 yystpcpy (yydest
, yysrc
)
771 register char *yyd
= yydest
;
772 register const char *yys
= yysrc
;
774 while ((*yyd
++ = *yys
++) != '\0')
782 #endif /* !YYERROR_VERBOSE */
786 /* The user can define YYPARSE_PARAM as the name of an argument to be passed
787 into yyparse. The argument should have type void *.
788 It should actually point to an object.
789 Grammar actions can access the variable by casting it
790 to the proper pointer type. */
793 # if defined (__STDC__) || defined (__cplusplus)
794 # define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
795 # define YYPARSE_PARAM_DECL
797 # define YYPARSE_PARAM_ARG YYPARSE_PARAM
798 # define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
800 #else /* !YYPARSE_PARAM */
801 # define YYPARSE_PARAM_ARG
802 # define YYPARSE_PARAM_DECL
803 #endif /* !YYPARSE_PARAM */
805 /* Prevent warning if -Wstrict-prototypes. */
807 # ifdef YYPARSE_PARAM
808 int yyparse (void *);
814 /* YY_DECL_VARIABLES -- depending whether we use a pure parser,
815 variables are global, or local to YYPARSE. */
817 #define YY_DECL_NON_LSP_VARIABLES \
818 /* The lookahead symbol. */ \
821 /* The semantic value of the lookahead symbol. */ \
824 /* Number of parse errors so far. */ \
828 # define YY_DECL_VARIABLES \
829 YY_DECL_NON_LSP_VARIABLES \
831 /* Location data for the lookahead symbol. */ \
834 # define YY_DECL_VARIABLES \
835 YY_DECL_NON_LSP_VARIABLES
838 /* If nonreentrant, generate the variables here. */
845 yyparse (YYPARSE_PARAM_ARG
)
848 /* If reentrant, generate the variables here. */
853 register int yystate
;
856 /* Number of tokens to shift before error messages enabled. */
858 /* Lookahead token as an internal (translated) token number. */
861 /* Three stacks and their tools:
862 `yyss': related to states,
863 `yyvs': related to semantic values,
864 `yyls': related to locations.
866 Refer to the stacks thru separate pointers, to allow yyoverflow
867 to reallocate them elsewhere. */
869 /* The state stack. */
870 short yyssa
[YYINITDEPTH
];
872 register short *yyssp
;
874 /* The semantic value stack. */
875 YYSTYPE yyvsa
[YYINITDEPTH
];
876 YYSTYPE
*yyvs
= yyvsa
;
877 register YYSTYPE
*yyvsp
;
880 /* The location stack. */
881 YYLTYPE yylsa
[YYINITDEPTH
];
882 YYLTYPE
*yyls
= yylsa
;
887 # define YYPOPSTACK (yyvsp--, yyssp--, yylsp--)
889 # define YYPOPSTACK (yyvsp--, yyssp--)
892 YYSIZE_T yystacksize
= YYINITDEPTH
;
894 /* The variables used to return semantic value and location from the
901 /* When reducing, the number of symbols on the RHS of the reduced
905 YYDPRINTF ((stderr
, "Starting parse\n"));
910 yychar
= YYEMPTY
; /* Cause a token to be read. */
912 /* Initialize stack pointers.
913 Waste one element of value and location stack
914 so that they stay on the same level as the state stack.
915 The wasted elements are never initialized. */
924 /*------------------------------------------------------------.
925 | yynewstate -- Push a new state, which is found in yystate. |
926 `------------------------------------------------------------*/
928 /* In all cases, when you get here, the value and location stacks
929 have just been pushed. so pushing a state here evens the stacks.
936 if (yyssp
>= yyss
+ yystacksize
- 1)
938 /* Get the current used size of the three stacks, in elements. */
939 YYSIZE_T yysize
= yyssp
- yyss
+ 1;
943 /* Give user a chance to reallocate the stack. Use copies of
944 these so that the &'s don't force the real ones into
946 YYSTYPE
*yyvs1
= yyvs
;
949 /* Each stack pointer address is followed by the size of the
950 data in use in that stack, in bytes. */
952 YYLTYPE
*yyls1
= yyls
;
953 /* This used to be a conditional around just the two extra args,
954 but that might be undefined if yyoverflow is a macro. */
955 yyoverflow ("parser stack overflow",
956 &yyss1
, yysize
* sizeof (*yyssp
),
957 &yyvs1
, yysize
* sizeof (*yyvsp
),
958 &yyls1
, yysize
* sizeof (*yylsp
),
962 yyoverflow ("parser stack overflow",
963 &yyss1
, yysize
* sizeof (*yyssp
),
964 &yyvs1
, yysize
* sizeof (*yyvsp
),
970 #else /* no yyoverflow */
971 # ifndef YYSTACK_RELOCATE
974 /* Extend the stack our own way. */
975 if (yystacksize
>= YYMAXDEPTH
)
978 if (yystacksize
> YYMAXDEPTH
)
979 yystacksize
= YYMAXDEPTH
;
983 union yyalloc
*yyptr
=
984 (union yyalloc
*) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize
));
987 YYSTACK_RELOCATE (yyss
);
988 YYSTACK_RELOCATE (yyvs
);
990 YYSTACK_RELOCATE (yyls
);
992 # undef YYSTACK_RELOCATE
994 YYSTACK_FREE (yyss1
);
997 #endif /* no yyoverflow */
999 yyssp
= yyss
+ yysize
- 1;
1000 yyvsp
= yyvs
+ yysize
- 1;
1002 yylsp
= yyls
+ yysize
- 1;
1005 YYDPRINTF ((stderr
, "Stack size increased to %lu\n",
1006 (unsigned long int) yystacksize
));
1008 if (yyssp
>= yyss
+ yystacksize
- 1)
1012 YYDPRINTF ((stderr
, "Entering state %d\n", yystate
));
1021 /* Do appropriate processing given the current state. */
1022 /* Read a lookahead token if we need one and don't already have one. */
1025 /* First try to decide what to do without reference to lookahead token. */
1027 yyn
= yypact
[yystate
];
1031 /* Not known => get a lookahead token if don't already have one. */
1033 /* yychar is either YYEMPTY or YYEOF
1034 or a valid token in external form. */
1036 if (yychar
== YYEMPTY
)
1038 YYDPRINTF ((stderr
, "Reading a token: "));
1042 /* Convert token to internal form (in yychar1) for indexing tables with. */
1044 if (yychar
<= 0) /* This means end of input. */
1047 yychar
= YYEOF
; /* Don't call YYLEX any more. */
1049 YYDPRINTF ((stderr
, "Now at end of input.\n"));
1053 yychar1
= YYTRANSLATE (yychar
);
1056 /* We have to keep this `#if YYDEBUG', since we use variables
1057 which are defined only if `YYDEBUG' is set. */
1060 YYFPRINTF (stderr
, "Next token is %d (%s",
1061 yychar
, yytname
[yychar1
]);
1062 /* Give the individual parser a way to print the precise
1063 meaning of a token, for further debugging info. */
1065 YYPRINT (stderr
, yychar
, yylval
);
1067 YYFPRINTF (stderr
, ")\n");
1073 if (yyn
< 0 || yyn
> YYLAST
|| yycheck
[yyn
] != yychar1
)
1078 /* yyn is what to do for this token type in this state.
1079 Negative => reduce, -yyn is rule number.
1080 Positive => shift, yyn is new state.
1081 New state is final state => don't bother to shift,
1082 just return success.
1083 0, or most negative number => error. */
1098 /* Shift the lookahead token. */
1099 YYDPRINTF ((stderr
, "Shifting token %d (%s), ",
1100 yychar
, yytname
[yychar1
]));
1102 /* Discard the token being shifted unless it is eof. */
1103 if (yychar
!= YYEOF
)
1111 /* Count tokens shifted since error; after three, turn off error
1120 /*-----------------------------------------------------------.
1121 | yydefault -- do the default action for the current state. |
1122 `-----------------------------------------------------------*/
1124 yyn
= yydefact
[yystate
];
1130 /*-----------------------------.
1131 | yyreduce -- Do a reduction. |
1132 `-----------------------------*/
1134 /* yyn is the number of a rule to reduce with. */
1137 /* If YYLEN is nonzero, implement the default value of the action:
1140 Otherwise, the following line sets YYVAL to the semantic value of
1141 the lookahead token. This behavior is undocumented and Bison
1142 users should not rely upon it. Assigning to YYVAL
1143 unconditionally makes the parser a bit smaller, and it avoids a
1144 GCC warning that YYVAL may be used uninitialized. */
1145 yyval
= yyvsp
[1-yylen
];
1148 /* Default location. */
1149 YYLLOC_DEFAULT (yyloc
, (yylsp
- yylen
), yylen
);
1153 /* We have to keep this `#if YYDEBUG', since we use variables which
1154 are defined only if `YYDEBUG' is set. */
1159 YYFPRINTF (stderr
, "Reducing via rule %d (line %d), ",
1160 yyn
- 1, yyrline
[yyn
]);
1162 /* Print the symbols being reduced, and their result. */
1163 for (yyi
= yyprhs
[yyn
]; yyrhs
[yyi
] >= 0; yyi
++)
1164 YYFPRINTF (stderr
, "%s ", yytname
[yyrhs
[yyi
]]);
1165 YYFPRINTF (stderr
, " -> %s\n", yytname
[yyr1
[yyn
]]);
1171 #line 131 "parse-gram.y"
1172 { LOCATION_RESET (yylloc
); }
1176 #line 133 "parse-gram.y"
1178 yycontrol
->errcode
= 0;
1179 epilogue_set (yyvsp
[0].string
, yylsp
[0]);
1184 #line 151 "parse-gram.y"
1185 { prologue_augment (yyvsp
[0].string
, yylsp
[0]); }
1189 #line 152 "parse-gram.y"
1194 #line 153 "parse-gram.y"
1195 { muscle_insert (yyvsp
[-1].string
, yyvsp
[0].string
); }
1199 #line 154 "parse-gram.y"
1200 { defines_flag
= 1; }
1204 #line 155 "parse-gram.y"
1205 { error_verbose
= 1; }
1209 #line 156 "parse-gram.y"
1210 { expected_conflicts
= yyvsp
[0].integer
; }
1214 #line 157 "parse-gram.y"
1215 { spec_file_prefix
= yyvsp
[0].string
; }
1219 #line 158 "parse-gram.y"
1220 { locations_flag
= 1; }
1224 #line 159 "parse-gram.y"
1225 { spec_name_prefix
= yyvsp
[0].string
; }
1229 #line 160 "parse-gram.y"
1230 { no_lines_flag
= 1; }
1234 #line 161 "parse-gram.y"
1235 { spec_outfile
= yyvsp
[0].string
; }
1239 #line 162 "parse-gram.y"
1240 { pure_parser
= 1; }
1244 #line 163 "parse-gram.y"
1245 { skeleton
= yyvsp
[0].string
; }
1249 #line 164 "parse-gram.y"
1250 { token_table_flag
= 1; }
1254 #line 165 "parse-gram.y"
1255 { report_flag
= 1; }
1259 #line 166 "parse-gram.y"
1264 #line 173 "parse-gram.y"
1266 grammar_start_symbol_set (yyvsp
[0].symbol
);
1271 #line 177 "parse-gram.y"
1274 MUSCLE_INSERT_INT ("stype_line", yylsp
[0].first_line
);
1275 muscle_insert ("stype", yyvsp
[0].string
);
1280 #line 185 "parse-gram.y"
1281 { current_class
= nterm_sym
; }
1285 #line 186 "parse-gram.y"
1287 current_class
= unknown_sym
;
1288 current_type
= NULL
;
1293 #line 190 "parse-gram.y"
1294 { current_class
= token_sym
; }
1298 #line 191 "parse-gram.y"
1300 current_class
= unknown_sym
;
1301 current_type
= NULL
;
1306 #line 195 "parse-gram.y"
1307 {current_type
= yyvsp
[0].string
; }
1311 #line 196 "parse-gram.y"
1313 current_type
= NULL
;
1318 #line 203 "parse-gram.y"
1319 { current_assoc
= yyvsp
[-1].assoc
; ++current_prec
; }
1323 #line 205 "parse-gram.y"
1324 { current_assoc
= non_assoc
; current_type
= NULL
; }
1328 #line 212 "parse-gram.y"
1329 { yyval
.assoc
= left_assoc
; }
1333 #line 213 "parse-gram.y"
1334 { yyval
.assoc
= right_assoc
; }
1338 #line 214 "parse-gram.y"
1339 { yyval
.assoc
= non_assoc
; }
1343 #line 218 "parse-gram.y"
1344 { current_type
= NULL
;}
1348 #line 219 "parse-gram.y"
1349 { current_type
= yyvsp
[0].string
; }
1353 #line 224 "parse-gram.y"
1354 { symbol_type_set (yyvsp
[0].symbol
, current_type
); }
1358 #line 225 "parse-gram.y"
1359 { symbol_type_set (yyvsp
[0].symbol
, current_type
); }
1363 #line 231 "parse-gram.y"
1365 symbol_type_set (yyvsp
[0].symbol
, current_type
);
1366 symbol_precedence_set (yyvsp
[0].symbol
, current_prec
, current_assoc
);
1371 #line 236 "parse-gram.y"
1373 symbol_type_set (yyvsp
[0].symbol
, current_type
);
1374 symbol_precedence_set (yyvsp
[0].symbol
, current_prec
, current_assoc
);
1379 #line 245 "parse-gram.y"
1381 current_type
= yyvsp
[0].string
;
1386 #line 249 "parse-gram.y"
1388 symbol_class_set (yyvsp
[0].symbol
, current_class
);
1389 symbol_type_set (yyvsp
[0].symbol
, current_type
);
1394 #line 254 "parse-gram.y"
1396 symbol_class_set (yyvsp
[-1].symbol
, current_class
);
1397 symbol_type_set (yyvsp
[-1].symbol
, current_type
);
1398 symbol_user_token_number_set (yyvsp
[-1].symbol
, yyvsp
[0].integer
);
1403 #line 260 "parse-gram.y"
1405 symbol_class_set (yyvsp
[-1].symbol
, current_class
);
1406 symbol_type_set (yyvsp
[-1].symbol
, current_type
);
1407 symbol_make_alias (yyvsp
[-1].symbol
, yyvsp
[0].symbol
);
1412 #line 266 "parse-gram.y"
1414 symbol_class_set (yyvsp
[-2].symbol
, current_class
);
1415 symbol_type_set (yyvsp
[-2].symbol
, current_type
);
1416 symbol_user_token_number_set (yyvsp
[-2].symbol
, yyvsp
[-1].integer
);
1417 symbol_make_alias (yyvsp
[-2].symbol
, yyvsp
[0].symbol
);
1422 #line 277 "parse-gram.y"
1427 #line 279 "parse-gram.y"
1432 #line 301 "parse-gram.y"
1433 { current_lhs
= yyvsp
[-1].symbol
; }
1437 #line 302 "parse-gram.y"
1442 #line 306 "parse-gram.y"
1443 { grammar_rule_end (); }
1447 #line 307 "parse-gram.y"
1448 { grammar_rule_end (); }
1452 #line 312 "parse-gram.y"
1453 { grammar_rule_begin (current_lhs
); }
1457 #line 314 "parse-gram.y"
1458 { grammar_current_rule_symbol_append (yyvsp
[0].symbol
); }
1462 #line 316 "parse-gram.y"
1463 { grammar_current_rule_action_append (yyvsp
[0].string
, yylsp
[0].first_line
); }
1467 #line 318 "parse-gram.y"
1468 { grammar_current_rule_prec_set (yyvsp
[0].symbol
); }
1472 #line 322 "parse-gram.y"
1473 { yyval
.symbol
= yyvsp
[0].symbol
; }
1477 #line 323 "parse-gram.y"
1478 { yyval
.symbol
= yyvsp
[0].symbol
; }
1482 #line 324 "parse-gram.y"
1483 { yyval
.symbol
= getsym (yyvsp
[0].string
); }
1487 #line 329 "parse-gram.y"
1488 { yyval
.string
= yyvsp
[0].string
; }
1492 #line 335 "parse-gram.y"
1494 yyval
.symbol
= getsym (yyvsp
[0].string
);
1495 symbol_class_set (yyval
.symbol
, token_sym
);
1500 #line 344 "parse-gram.y"
1502 yyval
.string
= yyvsp
[0].string
+ 1;
1503 yyval
.string
[strlen (yyval
.string
) - 1] = '\0';
1508 #line 352 "parse-gram.y"
1510 yyval
.string
= xstrdup ("");
1515 #line 356 "parse-gram.y"
1517 yyval
.string
= yyvsp
[0].string
;
1524 /* Line 1012 of /home/akim/src/bison/data/bison.simple. */
1525 #line 1526 "parse-gram.c"
1536 short *yyssp1
= yyss
- 1;
1537 YYFPRINTF (stderr
, "state stack now");
1538 while (yyssp1
!= yyssp
)
1539 YYFPRINTF (stderr
, " %d", *++yyssp1
);
1540 YYFPRINTF (stderr
, "\n");
1549 /* Now `shift' the result of the reduction. Determine what state
1550 that goes to, based on the state we popped back to and the rule
1551 number reduced by. */
1555 yystate
= yypgoto
[yyn
- YYNTOKENS
] + *yyssp
;
1556 if (yystate
>= 0 && yystate
<= YYLAST
&& yycheck
[yystate
] == *yyssp
)
1557 yystate
= yytable
[yystate
];
1559 yystate
= yydefgoto
[yyn
- YYNTOKENS
];
1564 /*------------------------------------.
1565 | yyerrlab -- here on detecting error |
1566 `------------------------------------*/
1568 /* If not already recovering from an error, report this error. */
1574 yyn
= yypact
[yystate
];
1576 if (yyn
> YYFLAG
&& yyn
< YYLAST
)
1578 YYSIZE_T yysize
= 0;
1583 /* Start YYX at -YYN if negative to avoid negative indexes in
1585 for (yyx
= yyn
< 0 ? -yyn
: 0;
1586 yyx
< (int) (sizeof (yytname
) / sizeof (char *)); yyx
++)
1587 if (yycheck
[yyx
+ yyn
] == yyx
)
1588 yysize
+= yystrlen (yytname
[yyx
]) + 15, yycount
++;
1589 yysize
+= yystrlen ("parse error, unexpected ") + 1;
1590 yysize
+= yystrlen (yytname
[YYTRANSLATE (yychar
)]);
1591 yymsg
= (char *) YYSTACK_ALLOC (yysize
);
1594 char *yyp
= yystpcpy (yymsg
, "parse error, unexpected ");
1595 yyp
= yystpcpy (yyp
, yytname
[YYTRANSLATE (yychar
)]);
1600 for (yyx
= yyn
< 0 ? -yyn
: 0;
1601 yyx
< (int) (sizeof (yytname
) / sizeof (char *));
1603 if (yycheck
[yyx
+ yyn
] == yyx
)
1605 const char *yyq
= ! yycount
? ", expecting " : " or ";
1606 yyp
= yystpcpy (yyp
, yyq
);
1607 yyp
= yystpcpy (yyp
, yytname
[yyx
]);
1612 YYSTACK_FREE (yymsg
);
1615 yyerror ("parse error; also virtual memory exhausted");
1618 #endif /* YYERROR_VERBOSE */
1619 yyerror ("parse error");
1624 /*----------------------------------------------------.
1625 | yyerrlab1 -- error raised explicitly by an action. |
1626 `----------------------------------------------------*/
1628 if (yyerrstatus
== 3)
1630 /* If just tried and failed to reuse lookahead token after an
1631 error, discard it. */
1633 /* Return failure if at end of input. */
1634 if (yychar
== YYEOF
)
1636 YYDPRINTF ((stderr
, "Discarding token %d (%s).\n",
1637 yychar
, yytname
[yychar1
]));
1641 /* Else will try to reuse lookahead token after shifting the error
1644 yyerrstatus
= 3; /* Each real token shifted decrements this. */
1648 yyn
= yypact
[yystate
];
1652 if (0 <= yyn
&& yyn
<= YYLAST
&& yycheck
[yyn
] == YYTERROR
)
1660 /* Pop the current state because it cannot handle the error token. */
1667 if (yystos
[yystate
] < YYNTOKENS
)
1669 YYFPRINTF (stderr
, "Error: popping token %d (%s",
1670 yytoknum
[yystos
[yystate
]], yytname
[yystos
[yystate
]]);
1672 YYPRINT (stderr
, yytoknum
[yystos
[yystate
]], *yyvsp
);
1674 YYFPRINTF (stderr
, ")\n");
1678 YYFPRINTF (stderr
, "Error: popping nonterminal (%s)\n",
1679 yytname
[yystos
[yystate
]]);
1693 short *yyssp1
= yyss
- 1;
1694 YYFPRINTF (stderr
, "Error: state stack now");
1695 while (yyssp1
!= yyssp
)
1696 YYFPRINTF (stderr
, " %d", *++yyssp1
);
1697 YYFPRINTF (stderr
, "\n");
1705 YYDPRINTF ((stderr
, "Shifting error token, "));
1716 /*-------------------------------------.
1717 | yyacceptlab -- YYACCEPT comes here. |
1718 `-------------------------------------*/
1723 /*-----------------------------------.
1724 | yyabortlab -- YYABORT comes here. |
1725 `-----------------------------------*/
1730 /*---------------------------------------------.
1731 | yyoverflowab -- parser overflow comes here. |
1732 `---------------------------------------------*/
1734 yyerror ("parser stack overflow");
1741 YYSTACK_FREE (yyss
);
1746 #line 365 "parse-gram.y"
1748 /*------------------------------------------------------------------.
1749 | When debugging the parser, display tokens' locations and values. |
1750 `------------------------------------------------------------------*/
1753 yyprint (FILE *file
,
1754 const location_t
*loc
, int type
, const yystype
*value
)
1757 LOCATION_PRINT (file
, *loc
);
1762 fprintf (file
, " = '%s'", value
->string
);
1766 fprintf (file
, " = %s", value
->symbol
->tag
);
1770 fprintf (file
, " = %d", value
->integer
);
1774 fprintf (file
, " = \"%s\"", value
->string
);
1778 fprintf (file
, " = <%s>", value
->string
);
1784 fprintf (file
, " = {{ %s }}", value
->string
);
1790 gram_error (gram_control_t
*control ATTRIBUTE_UNUSED
,
1791 location_t
*yylloc
, const char *msg
)
1793 LOCATION_PRINT (stderr
, *yylloc
);
1794 fprintf (stderr
, ": %s\n", msg
);