3 m4_define_default([b4_input_suffix], [.y])
5 m4_define_default([b4_output_parser_suffix],
6 [m4_translit(b4_input_suffix, [yY], [cC])])
8 m4_define_default([b4_output_parser_name],
9 [b4_output_prefix[]b4_output_infix[]b4_output_parser_suffix[]])
12 m4_define_default([b4_output_header_suffix],
13 [m4_translit(b4_input_suffix, [yY], [hH])])
15 m4_define_default([b4_output_header_name],
16 [b4_output_prefix[]b4_output_infix[]b4_output_header_suffix[]])
18 m4_define_default([b4_header_guard],
19 [m4_bpatsubst(m4_toupper([BISON_]b4_output_header_name),
20 [[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]], [_])])
23 # b4_token_defines(TOKEN-NAME, TOKEN-NUMBER)
24 # ------------------------------------------
25 # Output the definition of this token as #define.
26 m4_define([b4_token_define],
31 # b4_token_defines(LIST-OF-PAIRS-TOKEN-NAME-TOKEN-NUMBER)
32 # -------------------------------------------------------
33 # Output the definition of the tokens as #define.
34 m4_define([b4_token_defines],
35 [m4_map([b4_token_define], [$@])])
39 #output "b4_output_parser_name"
40 /* A Bison parser, made from b4_filename
41 by GNU bison b4_version. */
43 /* Skeleton output parser for Bison,
44 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software
47 This program is free software; you can redistribute it and/or modify
48 it under the terms of the GNU General Public License as published by
49 the Free Software Foundation; either version 2, or (at your option)
52 This program is distributed in the hope that it will be useful,
53 but WITHOUT ANY WARRANTY; without even the implied warranty of
54 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
55 GNU General Public License for more details.
57 You should have received a copy of the GNU General Public License
58 along with this program; if not, write to the Free Software
59 Foundation, Inc., 59 Temple Place - Suite 330,
60 Boston, MA 02111-1307, USA. */
62 /* As a special exception, when this file is copied by Bison into a
63 Bison output file, you may use that output file without restriction.
64 This special exception was added by the Free Software Foundation
65 in version 1.24 of Bison. */
67 /* This is the parser code that is written into each bison parser when
68 the %semantic_parser declaration is not specified in the grammar.
69 It was written by Richard Stallman by simplifying the hairy parser
70 used when %semantic_parser is specified. */
72 /* Identify Bison output. */
76 #define YYPURE b4_pure
78 /* Using locations. */
79 #define YYLSP_NEEDED b4_locations_flag
81 m4_if(b4_prefix[], [yy], [],
82 [/* If NAME_PREFIX is specified substitute the variables and functions
84 #define yyparse b4_prefix[]parse
85 #define yylex b4_prefix[]lex
86 #define yyerror b4_prefix[]error
87 #define yylval b4_prefix[]lval
88 #define yychar b4_prefix[]char
89 #define yydebug b4_prefix[]debug
90 #define yynerrs b4_prefix[]nerrs
92 # define yylloc b4_prefix[]lloc
96 /* Copy the user declarations. */
99 /* Enabling traces. */
101 # define YYDEBUG b4_debug
104 /* Enabling verbose error messages. */
105 #ifdef YYERROR_VERBOSE
106 # undef YYERROR_VERBOSE
107 # define YYERROR_VERBOSE 1
109 # define YYERROR_VERBOSE b4_error_verbose
113 m4_ifdef([b4_stype_line],
114 [#line b4_stype_line "b4_filename"
116 typedef b4_stype yystype;
117 # define YYSTYPE yystype
121 typedef struct yyltype
128 # define YYLTYPE b4_ltype
131 /* Line __line__ of __file__. */
132 #line __oline__ "b4_output_parser_name"
134 /* All symbols defined below should begin with yy or YY, to avoid
135 infringing on user name space. This should be done even for local
136 variables, as they might otherwise be expanded by user macros.
137 There are some unavoidable exceptions within include files to
138 define necessary library symbols; they are noted "INFRINGES ON
139 USER NAME SPACE" below. */
141 #if ! defined (yyoverflow) || defined (YYERROR_VERBOSE)
143 /* The parser invokes alloca or malloc; define the necessary symbols. */
145 # if YYSTACK_USE_ALLOCA
146 # define YYSTACK_ALLOC alloca
148 # ifndef YYSTACK_USE_ALLOCA
149 # if defined (alloca) || defined (_ALLOCA_H)
150 # define YYSTACK_ALLOC alloca
153 # define YYSTACK_ALLOC __builtin_alloca
159 # ifdef YYSTACK_ALLOC
160 /* Pacify GCC's `empty if-body' warning. */
161 # define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
163 # if defined (__STDC__) || defined (__cplusplus)
164 # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
165 # define YYSIZE_T size_t
167 # define YYSTACK_ALLOC malloc
168 # define YYSTACK_FREE free
171 /* A type that is properly aligned for any stack member. */
181 /* The size of the maximum gap between one aligned stack and the next. */
182 # define YYSTACK_GAP_MAX (sizeof (union yyalloc) - 1)
184 /* The size of an array large to enough to hold all stacks, each with
187 # define YYSTACK_BYTES(N) \
188 ((N) * (sizeof (short) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \
189 + 2 * YYSTACK_GAP_MAX)
191 # define YYSTACK_BYTES(N) \
192 ((N) * (sizeof (short) + sizeof (YYSTYPE)) \
196 /* Relocate the TYPE STACK from its old location to the new one. The
197 local variables YYSIZE and YYSTACKSIZE give the old and new number of
198 elements in the stack, and YYPTR gives the new location of the
199 stack. Advance YYPTR to a properly aligned location for the next
201 # define YYSTACK_RELOCATE(Type, Stack) \
204 YYSIZE_T yynewbytes; \
205 yymemcpy ((char *) yyptr, (char *) (Stack), \
206 yysize * (YYSIZE_T) sizeof (Type)); \
207 Stack = &yyptr->Stack; \
208 yynewbytes = yystacksize * sizeof (Type) + YYSTACK_GAP_MAX; \
209 yyptr += yynewbytes / sizeof (*yyptr); \
213 #endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */
216 b4_token_defines(b4_tokens)
218 /* YYFINAL -- State number of the termination state. */
219 #define YYFINAL b4_final
220 #define YYFLAG b4_flag
221 #define YYLAST b4_last
223 /* YYNTOKENS -- Number of terminals. */
224 #define YYNTOKENS b4_ntokens
225 /* YYNNTS -- Number of nonterminals. */
226 #define YYNNTS b4_nnts
227 /* YYNRULES -- Number of rules. */
228 #define YYNRULES b4_nrules
229 /* YYNRULES -- Number of states. */
230 #define YYNSTATES b4_nstates
231 #define YYMAXUTOK b4_maxtok
233 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
234 #define YYTRANSLATE(x) ((unsigned)(x) <= b4_maxtok ? yytranslate[[x]] : b4_nsym)
236 /* YYTRANSLATE[[YYLEX]] -- Bison symbol number corresponding to YYLEX. */
237 static const char yytranslate[[]] =
243 /* YYPRHS[[YYN]] -- Index of the first RHS symbol of rule number YYN in
245 static const short yyprhs[[]] =
250 /* YYRHS -- A `-1'-separated list of the rules' RHS. */
251 static const short yyrhs[[]] =
256 /* YYRLINE[[YYN]] -- source line where rule number YYN was defined. */
257 static const short yyrline[[]] =
263 #if (YYDEBUG) || YYERROR_VERBOSE
264 /* YYTNME[[SYMBOL-NUM]] -- String name of the symbol SYMBOL-NUM.
265 First, the terminals, then, starting at YYNTOKENS, nonterminals. */
266 static const char *const yytname[[]] =
272 /* YYTOKNUM[[YYN]] -- Index in YYTNAME corresponding to YYLEX. */
273 static const short yytoknum[[]] =
278 /* YYR1[[YYN]] -- Symbol number of symbol that rule YYN derives. */
279 static const short yyr1[[]] =
284 /* YYR2[[YYN]] -- Number of symbols composing right hand side of rule YYN. */
285 static const short yyr2[[]] =
290 /* YYDEFACT[[S]] -- default rule to reduce with in state S when YYTABLE
291 doesn't specify something else to do. Zero means the default is an
293 static const short yydefact[[]] =
298 /* YYPGOTO[[NTERM-NUM]]. */
299 static const short yydefgoto[[]] =
304 /* YYPACT[[STATE-NUM]] -- Index in YYTABLE of the portion describing
306 static const short yypact[[]] =
311 /* YYPGOTO[[NTERM-NUM]]. */
312 static const short yypgoto[[]] =
317 /* YYTABLE[[YYPACT[STATE-NUM]]]. What to do in state STATE-NUM. If
318 positive, shift that token. If negative, reduce the rule which
319 number is the opposite. If zero, do what YYDEFACT says. */
320 static const short yytable[[]] =
325 static const short yycheck[[]] =
331 #if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
332 # define YYSIZE_T __SIZE_TYPE__
334 #if ! defined (YYSIZE_T) && defined (size_t)
335 # define YYSIZE_T size_t
337 #if ! defined (YYSIZE_T)
338 # if defined (__STDC__) || defined (__cplusplus)
339 # include <stddef.h> /* INFRINGES ON USER NAME SPACE */
340 # define YYSIZE_T size_t
343 #if ! defined (YYSIZE_T)
344 # define YYSIZE_T unsigned int
347 #define yyerrok (yyerrstatus = 0)
348 #define yyclearin (yychar = YYEMPTY)
352 #define YYACCEPT goto yyacceptlab
353 #define YYABORT goto yyabortlab
354 #define YYERROR goto yyerrlab1
356 /* Like YYERROR except do call yyerror. This remains here temporarily
357 to ease the transition to the new meaning of YYERROR, for GCC.
358 Once GCC version 2 has supplanted version 1, this can go. */
360 #define YYFAIL goto yyerrlab
362 #define YYRECOVERING() (!!yyerrstatus)
364 #define YYBACKUP(Token, Value) \
366 if (yychar == YYEMPTY && yylen == 1) \
370 yychar1 = YYTRANSLATE (yychar); \
376 yyerror ("syntax error: cannot back up"); \
382 #define YYERRCODE 256
384 /* YYLLOC_DEFAULT -- Compute the default location (before the actions
387 When YYLLOC_DEFAULT is run, CURRENT is set the location of the
388 first token. By default, to implement support for ranges, extend
389 its range to the last symbol. */
391 #ifndef YYLLOC_DEFAULT
392 # define YYLLOC_DEFAULT(Current, Rhs, N) \
393 Current.last_line = Rhs[[N]].last_line; \
394 Current.last_column = Rhs[[N]].last_column;
397 /* YYLEX -- calling `yylex' with the right arguments. */
402 # define YYLEX yylex (&yylval, &yylloc, YYLEX_PARAM)
404 # define YYLEX yylex (&yylval, &yylloc)
406 # else /* !YYLSP_NEEDED */
408 # define YYLEX yylex (&yylval, YYLEX_PARAM)
410 # define YYLEX yylex (&yylval)
412 # endif /* !YYLSP_NEEDED */
414 # define YYLEX yylex ()
417 /* Enable debugging if requested. */
421 # include <stdio.h> /* INFRINGES ON USER NAME SPACE */
422 # define YYFPRINTF fprintf
425 # define YYDPRINTF(Args) \
430 /* Nonzero means print parse trace. Since this is uninitialized, it
431 does not stop multiple parsers from coexisting. */
434 # define YYDPRINTF(Args)
435 #endif /* !YYDEBUG */
437 /* YYINITDEPTH -- initial size of the parser's stacks. */
439 # define YYINITDEPTH b4_initdepth
442 /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
443 if the built-in stack extension method is used).
445 Do not make this value too large; the results are undefined if
446 SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH)
447 evaluated with infinite-precision integer arithmetic. */
454 # define YYMAXDEPTH b4_maxdepth
459 #if ! defined (yyoverflow) && ! defined (yymemcpy)
460 # if __GNUC__ > 1 /* GNU C and GNU C++ define this. */
461 # define yymemcpy __builtin_memcpy
462 # else /* not GNU C or C++ */
464 /* This is the most reliable way to avoid incompatibilities
465 in available built-in functions on various systems. */
467 # if defined (__STDC__) || defined (__cplusplus)
468 yymemcpy (char *yyto, const char *yyfrom, YYSIZE_T yycount)
470 yymemcpy (yyto, yyfrom, yycount)
476 register const char *yyf = yyfrom;
477 register char *yyt = yyto;
478 register YYSIZE_T yyi = yycount;
489 # if defined (__GLIBC__) && defined (_STRING_H)
490 # define yystrlen strlen
492 /* Return the length of YYSTR. */
494 # if defined (__STDC__) || defined (__cplusplus)
495 yystrlen (const char *yystr)
501 register const char *yys = yystr;
503 while (*yys++ != '\0')
506 return yys - yystr - 1;
512 # if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)
513 # define yystpcpy stpcpy
515 /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
518 # if defined (__STDC__) || defined (__cplusplus)
519 yystpcpy (char *yydest, const char *yysrc)
521 yystpcpy (yydest, yysrc)
526 register char *yyd = yydest;
527 register const char *yys = yysrc;
529 while ((*yyd++ = *yys++) != '\0')
537 #endif /* !YYERROR_VERBOSE */
541 /* The user can define YYPARSE_PARAM as the name of an argument to be passed
542 into yyparse. The argument should have type void *.
543 It should actually point to an object.
544 Grammar actions can access the variable by casting it
545 to the proper pointer type. */
548 # if defined (__STDC__) || defined (__cplusplus)
549 # define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
550 # define YYPARSE_PARAM_DECL
552 # define YYPARSE_PARAM_ARG YYPARSE_PARAM
553 # define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
555 #else /* !YYPARSE_PARAM */
556 # define YYPARSE_PARAM_ARG
557 # define YYPARSE_PARAM_DECL
558 #endif /* !YYPARSE_PARAM */
560 /* Prevent warning if -Wstrict-prototypes. */
562 # ifdef YYPARSE_PARAM
563 int yyparse (void *);
569 /* YY_DECL_VARIABLES -- depending whether we use a pure parser,
570 variables are global, or local to YYPARSE. */
572 #define YY_DECL_NON_LSP_VARIABLES \
573 /* The lookahead symbol. */ \
576 /* The semantic value of the lookahead symbol. */ \
579 /* Number of parse errors so far. */ \
583 # define YY_DECL_VARIABLES \
584 YY_DECL_NON_LSP_VARIABLES \
586 /* Location data for the lookahead symbol. */ \
589 # define YY_DECL_VARIABLES \
590 YY_DECL_NON_LSP_VARIABLES
593 /* If nonreentrant, generate the variables here. */
600 yyparse (YYPARSE_PARAM_ARG)
603 /* If reentrant, generate the variables here. */
608 register int yystate;
611 /* Number of tokens to shift before error messages enabled. */
613 /* Lookahead token as an internal (translated) token number. */
616 /* Three stacks and their tools:
617 `yyss': related to states,
618 `yyvs': related to semantic values,
619 `yyls': related to locations.
621 Refer to the stacks thru separate pointers, to allow yyoverflow
622 to reallocate them elsewhere. */
624 /* The state stack. */
625 short yyssa[YYINITDEPTH];
627 register short *yyssp;
629 /* The semantic value stack. */
630 YYSTYPE yyvsa[YYINITDEPTH];
631 YYSTYPE *yyvs = yyvsa;
632 register YYSTYPE *yyvsp;
635 /* The location stack. */
636 YYLTYPE yylsa[YYINITDEPTH];
637 YYLTYPE *yyls = yylsa;
642 # define YYPOPSTACK (yyvsp--, yyssp--, yylsp--)
644 # define YYPOPSTACK (yyvsp--, yyssp--)
647 YYSIZE_T yystacksize = YYINITDEPTH;
649 /* The variables used to return semantic value and location from the
656 /* When reducing, the number of symbols on the RHS of the reduced
660 YYDPRINTF ((stderr, "Starting parse\n"));
665 yychar = YYEMPTY; /* Cause a token to be read. */
667 /* Initialize stack pointers.
668 Waste one element of value and location stack
669 so that they stay on the same level as the state stack.
670 The wasted elements are never initialized. */
679 /*------------------------------------------------------------.
680 | yynewstate -- Push a new state, which is found in yystate. |
681 `------------------------------------------------------------*/
683 /* In all cases, when you get here, the value and location stacks
684 have just been pushed. so pushing a state here evens the stacks.
691 if (yyssp >= yyss + yystacksize - 1)
693 /* Get the current used size of the three stacks, in elements. */
694 YYSIZE_T yysize = yyssp - yyss + 1;
698 /* Give user a chance to reallocate the stack. Use copies of
699 these so that the &'s don't force the real ones into
701 YYSTYPE *yyvs1 = yyvs;
704 /* Each stack pointer address is followed by the size of the
705 data in use in that stack, in bytes. */
707 YYLTYPE *yyls1 = yyls;
708 /* This used to be a conditional around just the two extra args,
709 but that might be undefined if yyoverflow is a macro. */
710 yyoverflow ("parser stack overflow",
711 &yyss1, yysize * sizeof (*yyssp),
712 &yyvs1, yysize * sizeof (*yyvsp),
713 &yyls1, yysize * sizeof (*yylsp),
717 yyoverflow ("parser stack overflow",
718 &yyss1, yysize * sizeof (*yyssp),
719 &yyvs1, yysize * sizeof (*yyvsp),
725 #else /* no yyoverflow */
726 /* Extend the stack our own way. */
727 if (yystacksize >= YYMAXDEPTH)
730 if (yystacksize > YYMAXDEPTH)
731 yystacksize = YYMAXDEPTH;
735 union yyalloc *yyptr =
736 (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
739 YYSTACK_RELOCATE (short, yyss);
740 YYSTACK_RELOCATE (YYSTYPE, yyvs);
742 YYSTACK_RELOCATE (YYLTYPE, yyls);
744 # undef YYSTACK_RELOCATE
746 YYSTACK_FREE (yyss1);
748 #endif /* no yyoverflow */
750 yyssp = yyss + yysize - 1;
751 yyvsp = yyvs + yysize - 1;
753 yylsp = yyls + yysize - 1;
756 YYDPRINTF ((stderr, "Stack size increased to %lu\n",
757 (unsigned long int) yystacksize));
759 if (yyssp >= yyss + yystacksize - 1)
763 YYDPRINTF ((stderr, "Entering state %d\n", yystate));
772 /* Do appropriate processing given the current state. */
773 /* Read a lookahead token if we need one and don't already have one. */
776 /* First try to decide what to do without reference to lookahead token. */
778 yyn = yypact[yystate];
782 /* Not known => get a lookahead token if don't already have one. */
784 /* yychar is either YYEMPTY or YYEOF
785 or a valid token in external form. */
787 if (yychar == YYEMPTY)
789 YYDPRINTF ((stderr, "Reading a token: "));
793 /* Convert token to internal form (in yychar1) for indexing tables with. */
795 if (yychar <= 0) /* This means end of input. */
798 yychar = YYEOF; /* Don't call YYLEX any more. */
800 YYDPRINTF ((stderr, "Now at end of input.\n"));
804 yychar1 = YYTRANSLATE (yychar);
807 /* We have to keep this `#if YYDEBUG', since we use variables
808 which are defined only if `YYDEBUG' is set. */
811 YYFPRINTF (stderr, "Next token is %d (%s",
812 yychar, yytname[yychar1]);
813 /* Give the individual parser a way to print the precise
814 meaning of a token, for further debugging info. */
816 YYPRINT (stderr, yychar, yylval);
818 YYFPRINTF (stderr, ")\n");
824 if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
829 /* yyn is what to do for this token type in this state.
830 Negative => reduce, -yyn is rule number.
831 Positive => shift, yyn is new state.
832 New state is final state => don't bother to shift,
834 0, or most negative number => error. */
849 /* Shift the lookahead token. */
850 YYDPRINTF ((stderr, "Shifting token %d (%s), ",
851 yychar, yytname[yychar1]));
853 /* Discard the token being shifted unless it is eof. */
862 /* Count tokens shifted since error; after three, turn off error
871 /*-----------------------------------------------------------.
872 | yydefault -- do the default action for the current state. |
873 `-----------------------------------------------------------*/
875 yyn = yydefact[yystate];
881 /*-----------------------------.
882 | yyreduce -- Do a reduction. |
883 `-----------------------------*/
885 /* yyn is the number of a rule to reduce with. */
888 /* If YYLEN is nonzero, implement the default value of the action:
891 Otherwise, the following line sets YYVAL to the semantic value of
892 the lookahead token. This behavior is undocumented and Bison
893 users should not rely upon it. Assigning to YYVAL
894 unconditionally makes the parser a bit smaller, and it avoids a
895 GCC warning that YYVAL may be used uninitialized. */
896 yyval = yyvsp[1-yylen];
899 /* Similarly for the default location. Let the user run additional
900 commands if for instance locations are ranges. */
901 yyloc = yylsp[1-yylen];
902 YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen);
906 /* We have to keep this `#if YYDEBUG', since we use variables which
907 are defined only if `YYDEBUG' is set. */
912 YYFPRINTF (stderr, "Reducing via rule %d (line %d), ",
913 yyn - 1, yyrline[yyn]);
915 /* Print the symbols being reduced, and their result. */
916 for (yyi = yyprhs[yyn]; yyrhs[yyi] >= 0; yyi++)
917 YYFPRINTF (stderr, "%s ", yytname[yyrhs[yyi]]);
918 YYFPRINTF (stderr, " -> %s\n", yytname[yyr1[yyn]]);
926 /* Line __line__ of __file__. */
927 #line __oline__ "b4_output_parser_name"
938 short *yyssp1 = yyss - 1;
939 YYFPRINTF (stderr, "state stack now");
940 while (yyssp1 != yyssp)
941 YYFPRINTF (stderr, " %d", *++yyssp1);
942 YYFPRINTF (stderr, "\n");
951 /* Now `shift' the result of the reduction. Determine what state
952 that goes to, based on the state we popped back to and the rule
953 number reduced by. */
957 yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
958 if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
959 yystate = yytable[yystate];
961 yystate = yydefgoto[yyn - YYNTOKENS];
966 /*------------------------------------.
967 | yyerrlab -- here on detecting error |
968 `------------------------------------*/
970 /* If not already recovering from an error, report this error. */
976 yyn = yypact[yystate];
978 if (yyn > YYFLAG && yyn < YYLAST)
985 /* Start YYX at -YYN if negative to avoid negative indexes in
987 for (yyx = yyn < 0 ? -yyn : 0;
988 yyx < (int) (sizeof (yytname) / sizeof (char *)); yyx++)
989 if (yycheck[yyx + yyn] == yyx)
990 yysize += yystrlen (yytname[yyx]) + 15, yycount++;
991 yysize += yystrlen ("parse error, unexpected ") + 1;
992 yysize += yystrlen (yytname[YYTRANSLATE (yychar)]);
993 yymsg = (char *) YYSTACK_ALLOC (yysize);
996 char *yyp = yystpcpy (yymsg, "parse error, unexpected ");
997 yyp = yystpcpy (yyp, yytname[YYTRANSLATE (yychar)]);
1002 for (yyx = yyn < 0 ? -yyn : 0;
1003 yyx < (int) (sizeof (yytname) / sizeof (char *));
1005 if (yycheck[yyx + yyn] == yyx)
1007 const char *yyq = ! yycount ? ", expecting " : " or ";
1008 yyp = yystpcpy (yyp, yyq);
1009 yyp = yystpcpy (yyp, yytname[yyx]);
1014 YYSTACK_FREE (yymsg);
1017 yyerror ("parse error; also virtual memory exhausted");
1020 #endif /* YYERROR_VERBOSE */
1021 yyerror ("parse error");
1026 /*----------------------------------------------------.
1027 | yyerrlab1 -- error raised explicitly by an action. |
1028 `----------------------------------------------------*/
1030 if (yyerrstatus == 3)
1032 /* If just tried and failed to reuse lookahead token after an
1033 error, discard it. */
1035 /* Return failure if at end of input. */
1036 if (yychar == YYEOF)
1038 YYDPRINTF ((stderr, "Discarding token %d (%s).\n",
1039 yychar, yytname[yychar1]));
1043 /* Else will try to reuse lookahead token after shifting the error
1046 yyerrstatus = 3; /* Each real token shifted decrements this. */
1051 /*-------------------------------------------------------------------.
1052 | yyerrdefault -- current state does not do anything special for the |
1054 `-------------------------------------------------------------------*/
1057 /* This is wrong; only states that explicitly want error tokens
1058 should shift them. */
1060 /* If its default is to accept any token, ok. Otherwise pop it. */
1061 yyn = yydefact[yystate];
1067 /*---------------------------------------------------------------.
1068 | yyerrpop -- pop the current state because it cannot handle the |
1070 `---------------------------------------------------------------*/
1083 short *yyssp1 = yyss - 1;
1084 YYFPRINTF (stderr, "Error: state stack now");
1085 while (yyssp1 != yyssp)
1086 YYFPRINTF (stderr, " %d", *++yyssp1);
1087 YYFPRINTF (stderr, "\n");
1095 yyn = yypact[yystate];
1100 if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
1117 YYDPRINTF ((stderr, "Shifting error token, "));
1128 /*-------------------------------------.
1129 | yyacceptlab -- YYACCEPT comes here. |
1130 `-------------------------------------*/
1135 /*-----------------------------------.
1136 | yyabortlab -- YYABORT comes here. |
1137 `-----------------------------------*/
1142 /*---------------------------------------------.
1143 | yyoverflowab -- parser overflow comes here. |
1144 `---------------------------------------------*/
1146 yyerror ("parser stack overflow");
1153 YYSTACK_FREE (yyss);
1159 m4_if(b4_defines_flag, 0, [],
1160 [#output "b4_output_header_name"
1161 #ifndef b4_header_guard
1162 # define b4_header_guard
1164 b4_token_defines(b4_tokens)
1167 m4_ifdef([b4_stype_line],
1168 [#line b4_stype_line "b4_filename"
1172 # define YYSTYPE yystype
1176 [extern YYSTYPE b4_prefix[]lval;])
1178 m4_if(b4_locations_flag, [0], [],
1180 typedef struct yyltype
1187 # define YYLTYPE yyltype
1191 [extern YYLTYPE b4_prefix[]lloc;])
1193 #endif /* not b4_header_guard */