/[bison]/bison/data/yacc.c
ViewVC logotype

Diff of /bison/data/yacc.c

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

revision 1.34 by akim, Wed Nov 13 09:49:49 2002 UTC revision 1.35 by eggert, Fri Nov 15 20:32:21 2002 UTC
# Line 425  static const b4_int_type_for([b4_pgoto]) Line 425  static const b4_int_type_for([b4_pgoto])
425  /* YYTABLE[[YYPACT[STATE-NUM]]].  What to do in state STATE-NUM.  If  /* YYTABLE[[YYPACT[STATE-NUM]]].  What to do in state STATE-NUM.  If
426     positive, shift that token.  If negative, reduce the rule which     positive, shift that token.  If negative, reduce the rule which
427     number is the opposite.  If zero, do what YYDEFACT says.     number is the opposite.  If zero, do what YYDEFACT says.
428     If YYTABLE_NINF, parse error.  */     If YYTABLE_NINF, syntax error.  */
429  #define YYTABLE_NINF b4_table_ninf  #define YYTABLE_NINF b4_table_ninf
430  static const b4_int_type_for([b4_table]) yytable[[]] =  static const b4_int_type_for([b4_table]) yytable[[]] =
431  {  {
# Line 662  int yychar; Line 662  int yychar;
662  /* The semantic value of the lookahead symbol.  */  /* The semantic value of the lookahead symbol.  */
663  YYSTYPE yylval;  YYSTYPE yylval;
664    
665  /* Number of parse errors so far.  */  /* Number of syntax errors so far.  */
666  int yynerrs;b4_location_if([  int yynerrs;b4_location_if([
667  /* Location data for the lookahead symbol.  */  /* Location data for the lookahead symbol.  */
668  YYLTYPE yylloc;])  YYLTYPE yylloc;])
# Line 1017  yyerrlab: Line 1017  yyerrlab:
1017                 yyx < (int) (sizeof (yytname) / sizeof (char *)); yyx++)                 yyx < (int) (sizeof (yytname) / sizeof (char *)); yyx++)
1018              if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)              if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
1019                yysize += yystrlen (yytname[yyx]) + 15, yycount++;                yysize += yystrlen (yytname[yyx]) + 15, yycount++;
1020            yysize += yystrlen ("parse error, unexpected ") + 1;            yysize += yystrlen ("syntax error, unexpected ") + 1;
1021            yysize += yystrlen (yytname[yytype]);            yysize += yystrlen (yytname[yytype]);
1022            yymsg = (char *) YYSTACK_ALLOC (yysize);            yymsg = (char *) YYSTACK_ALLOC (yysize);
1023            if (yymsg != 0)            if (yymsg != 0)
1024              {              {
1025                char *yyp = yystpcpy (yymsg, "parse error, unexpected ");                char *yyp = yystpcpy (yymsg, "syntax error, unexpected ");
1026                yyp = yystpcpy (yyp, yytname[yytype]);                yyp = yystpcpy (yyp, yytname[yytype]);
1027    
1028                if (yycount < 5)                if (yycount < 5)
# Line 1043  yyerrlab: Line 1043  yyerrlab:
1043                YYSTACK_FREE (yymsg);                YYSTACK_FREE (yymsg);
1044              }              }
1045            else            else
1046              yyerror (]b4_yyerror_args["parse error; also virtual memory exhausted");              yyerror (]b4_yyerror_args["syntax error; also virtual memory exhausted");
1047          }          }
1048        else        else
1049  #endif /* YYERROR_VERBOSE */  #endif /* YYERROR_VERBOSE */
1050          yyerror (]b4_yyerror_args["parse error");          yyerror (]b4_yyerror_args["syntax error");
1051      }      }
1052    goto yyerrlab1;    goto yyerrlab1;
1053    

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35

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