/[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.42 by akim, Thu Jun 20 09:08:36 2002 UTC revision 1.43 by akim, Thu Jun 20 09:22:56 2002 UTC
# Line 556  do {                                           \ Line 556  do {                                           \
556    if (yydebug)                                  \    if (yydebug)                                  \
557      YYFPRINTF Args;                             \      YYFPRINTF Args;                             \
558  } while (0)  } while (0)
559    # define YYDSYMPRINT(Args)                      \
560    do {                                            \
561      if (yydebug)                                  \
562        yysymprint Args;                            \
563    } while (0)
564  /* Nonzero means print parse trace.  It is left uninitialized so that  /* Nonzero means print parse trace.  It is left uninitialized so that
565     multiple parsers can coexist.  */     multiple parsers can coexist.  */
566  int yydebug;  int yydebug;
567  #else /* !YYDEBUG */  #else /* !YYDEBUG */
568  # define YYDPRINTF(Args)  # define YYDPRINTF(Args)
569    # define YYDSYMPRINT(Args)
570  #endif /* !YYDEBUG */  #endif /* !YYDEBUG */
571    
572  /* YYINITDEPTH -- initial size of the parser's stacks.  */  /* YYINITDEPTH -- initial size of the parser's stacks.  */
# Line 886  yybackup: Line 892  yybackup:
892      {      {
893        yychar1 = YYTRANSLATE (yychar);        yychar1 = YYTRANSLATE (yychar);
894    
895  #if YYDEBUG        /* We have to keep this `#if YYDEBUG', since we use variables
896       /* We have to keep this `#if YYDEBUG', since we use variables           which are defined only if `YYDEBUG' is set.  */
897          which are defined only if `YYDEBUG' is set.  */        YYDPRINTF ((stderr, "Next token is "));
898        if (yydebug)        YYDSYMPRINT ((stderr, yychar1, yylval]b4_location_if([, yyloc])[));
899          {        YYDPRINTF ((stderr, "\n"));
           YYFPRINTF (stderr, "Next token is ");  
           yysymprint (stderr, yychar1, yylval]b4_location_if([, yyloc])[);  
           YYFPRINTF (stderr, "\n");  
         }  
 #endif  
900      }      }
901    
902    yyn += yychar1;    yyn += yychar1;
# Line 1109  yyerrlab1: Line 1110  yyerrlab1:
1110            /* Pop the rest of the stack.  */            /* Pop the rest of the stack.  */
1111            while (yyssp > yyss)            while (yyssp > yyss)
1112              {              {
1113  #if YYDEBUG                YYDPRINTF ((stderr, "Error: popping "));
1114                if (yydebug)                YYDSYMPRINT ((stderr,
1115                  {                              yystos[*yyssp],
1116                    YYFPRINTF (stderr, "Error: popping ");                              *yyvsp]b4_location_if([, *yylsp])[));
1117                    yysymprint (stderr,                YYDPRINTF ((stderr, "\n"));
                               yystos[*yyssp],  
                               *yyvsp]b4_location_if([, *yylsp])[);  
                   YYFPRINTF (stderr, "\n");  
                 }  
 #endif  
1118                yydestructor (yystos[*yyssp], *yyvsp]b4_location_if([, *yylsp])[);                yydestructor (yystos[*yyssp], *yyvsp]b4_location_if([, *yylsp])[);
1119                YYPOPSTACK;                YYPOPSTACK;
1120              }              }
# Line 1154  yyerrlab1: Line 1150  yyerrlab1:
1150        if (yyssp == yyss)        if (yyssp == yyss)
1151          YYABORT;          YYABORT;
1152    
1153  #if YYDEBUG        YYDPRINTF ((stderr, "Error: popping "));
1154        if (yydebug)        YYDSYMPRINT ((stderr,
1155          {                      yystos[*yyssp], *yyvsp]b4_location_if([, *yylsp])[));
1156            YYFPRINTF (stderr, "Error: popping ");        YYDPRINTF ((stderr, "\n"));
           yysymprint (stderr,  
                       yystos[*yyssp],  
                       *yyvsp]b4_location_if([, *yylsp])[);  
           YYFPRINTF (stderr, "\n");  
         }  
 #endif  
1157    
1158        yydestructor (yystos[yystate], *yyvsp]b4_location_if([, *yylsp])[);        yydestructor (yystos[yystate], *yyvsp]b4_location_if([, *yylsp])[);
1159        yyvsp--;        yyvsp--;

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

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