mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 18:23:03 +00:00
* data/c.m4 (b4_yysymprint_generate): Move the YYINPUT invocation
after the location.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2004-09-24 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
|
* data/c.m4 (b4_yysymprint_generate): Move the YYINPUT invocation
|
||||||
|
after the location.
|
||||||
|
|
||||||
2004-09-24 Akim Demaille <akim@epita.fr>
|
2004-09-24 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
* doc/bison.texinfo (Table of Symbols): Sort.
|
* doc/bison.texinfo (Table of Symbols): Sort.
|
||||||
|
|||||||
11
data/c.m4
11
data/c.m4
@@ -398,12 +398,7 @@ b4_location_if([ (void) yylocationp;
|
|||||||
])dnl
|
])dnl
|
||||||
[
|
[
|
||||||
if (yytype < YYNTOKENS)
|
if (yytype < YYNTOKENS)
|
||||||
{
|
YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
|
||||||
YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
|
|
||||||
# ifdef YYPRINT
|
|
||||||
YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
|
|
||||||
# endif
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
|
YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
|
||||||
|
|
||||||
@@ -411,6 +406,10 @@ b4_location_if([ (void) yylocationp;
|
|||||||
fprintf (yyoutput, ": ");
|
fprintf (yyoutput, ": ");
|
||||||
])dnl
|
])dnl
|
||||||
[
|
[
|
||||||
|
# ifdef YYPRINT
|
||||||
|
if (yytype < YYNTOKENS)
|
||||||
|
YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
|
||||||
|
# endif
|
||||||
switch (yytype)
|
switch (yytype)
|
||||||
{
|
{
|
||||||
]m4_map([b4_symbol_actions], m4_defn([b4_symbol_printers]))dnl
|
]m4_map([b4_symbol_actions], m4_defn([b4_symbol_printers]))dnl
|
||||||
|
|||||||
Reference in New Issue
Block a user