/[bison]/bison/data/bison.simple
ViewVC logotype

Diff of /bison/data/bison.simple

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.43 by akim, Thu Jun 20 09:22:56 2002 UTC revision 1.44 by akim, Thu Jun 20 09:47:44 2002 UTC
# Line 1250  m4_map([b4_symbol_destructor], m4_defn([ Line 1250  m4_map([b4_symbol_destructor], m4_defn([
1250    
1251    
1252  #if YYDEBUG  #if YYDEBUG
1253  /*---------------------------.  /*-----------------------------.
1254  | Print this symbol on OUT.  |  | Print this symbol on YYOUT.  |
1255  `---------------------------*/  `-----------------------------*/
1256    
1257  m4_divert_push([KILL])# M4 code.  m4_divert_push([KILL])# M4 code.
1258  # b4_symbol_printer(SYMBOL-NUMBER, PRINTER, TYPE-NAME)  # b4_symbol_printer(SYMBOL-NUMBER, PRINTER, TYPE-NAME)
# Line 1270  m4_popdef([b4_dollar_dollar])]) Line 1270  m4_popdef([b4_dollar_dollar])])
1270    
1271  m4_divert_pop([KILL])dnl# End of M4 code.  m4_divert_pop([KILL])dnl# End of M4 code.
1272  static void  static void
1273  yysymprint (FILE* out, int yytype,  yysymprint (FILE* yyout, int yytype,
1274              YYSTYPE yyvalue[]b4_location_if([, YYLTYPE yylocation]))              YYSTYPE yyvalue[]b4_location_if([, YYLTYPE yylocation]))
1275  {  {
1276    if (yytype < YYNTOKENS)    if (yytype < YYNTOKENS)
1277      YYFPRINTF (out, "token %d (%s ", yytoknum[[yytype]], yytname[[yytype]]);      YYFPRINTF (yyout, "token %s (", yytname[[yytype]]);
1278    else    else
1279      YYFPRINTF (out, "nterm %s (", yytname[[yytype]]);      YYFPRINTF (yyout, "nterm %s (", yytname[[yytype]]);
1280  # ifdef YYPRINT  # ifdef YYPRINT
1281    YYPRINT (out, yytype, yyvalue);    YYPRINT (yyout, yytype, yyvalue);
1282  # else  # else
1283    switch (yytype)    switch (yytype)
1284      {      {
# Line 1287  m4_map([b4_symbol_printer], m4_defn([b4_ Line 1287  m4_map([b4_symbol_printer], m4_defn([b4_
1287          break;          break;
1288      }      }
1289  # endif /* !defined YYPRINT. */  # endif /* !defined YYPRINT. */
1290    YYFPRINTF (out, ")");    YYFPRINTF (yyout, ")");
1291  }  }
1292  #endif /* YYDEBUG. */  #endif /* YYDEBUG. */
1293    

Legend:
Removed from v.1.43  
changed lines
  Added in v.1.44

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26