/[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.47 by eggert, Sat Dec 28 08:36:02 2002 UTC revision 1.51 by eggert, Wed Jan 22 06:38:32 2003 UTC
# Line 1  Line 1 
1  m4_divert(-1)                                                       -*- C -*-  m4_divert(-1)                                                       -*- C -*-
2    
3  # Yacc compatible skeleton for Bison  # Yacc compatible skeleton for Bison
4  # Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002  # Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003
5  # Free Software Foundation, Inc.  # Free Software Foundation, Inc.
6    
7  # This program is free software; you can redistribute it and/or modify  # This program is free software; you can redistribute it and/or modify
# Line 134  m4_changecom() Line 134  m4_changecom()
134  m4_divert(0)dnl  m4_divert(0)dnl
135  @output @output_parser_name@  @output @output_parser_name@
136  b4_copyright([Skeleton parser for Yacc-like parsing with Bison],  b4_copyright([Skeleton parser for Yacc-like parsing with Bison],
137               [1984, 1989, 1990, 2000, 2001, 2002])[               [1984, 1989, 1990, 2000, 2001, 2002, 2003])[
138    
139  /* As a special exception, when this file is copied by Bison into a  /* As a special exception, when this file is copied by Bison into a
140     Bison output file, you may use that output file without restriction.     Bison output file, you may use that output file without restriction.
# Line 465  static const ]b4_int_type_for([b4_stos]) Line 465  static const ]b4_int_type_for([b4_stos])
465    
466  #define YYACCEPT        goto yyacceptlab  #define YYACCEPT        goto yyacceptlab
467  #define YYABORT         goto yyabortlab  #define YYABORT         goto yyabortlab
468  #define YYERROR         goto yyerrlab1  #define YYERROR         ]b4_location_if([do                             \
469                              {                             \
470                                yylerrsp = yylsp;           \
471                                *++yylerrsp = yyloc;        \
472                                goto yyerrlab1;             \
473                              }                             \
474                            while (0)],
475                            [goto yyerrlab1])[
476    
477    
478  /* Like YYERROR except do call yyerror.  This remains here temporarily  /* Like YYERROR except do call yyerror.  This remains here temporarily
479     to ease the transition to the new meaning of YYERROR, for GCC.     to ease the transition to the new meaning of YYERROR, for GCC.
# Line 1103  yyerrlab: Line 1111  yyerrlab:
1111    
1112    /* Else will try to reuse lookahead token after shifting the error    /* Else will try to reuse lookahead token after shifting the error
1113       token.  */       token.  */
1114    goto yyerrlab2;    goto yyerrlab1;
1115    
1116    
1117  /*----------------------------------------------------.  /*----------------------------------------------------.
1118  | yyerrlab1 -- error raised explicitly by an action.  |  | yyerrlab1 -- error raised explicitly by an action.  |
1119  `----------------------------------------------------*/  `----------------------------------------------------*/
1120  yyerrlab1:  yyerrlab1:
   
   /* Suppress GCC warning that yyerrlab1 is unused when no action  
      invokes YYERROR.  */  
 #if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 + __GNUC_MINOR__)  
   __attribute__ ((__unused__))  
 #endif  
   
 ]b4_location_if([  yylerrsp = yylsp;  
   *++yylerrsp = yyloc;])[  
   goto yyerrlab2;  
   
   
 /*---------------------------------------------------------------.  
 | yyerrlab2 -- pop states until the error token can be shifted.  |  
 `---------------------------------------------------------------*/  
 yyerrlab2:  
1121    yyerrstatus = 3;      /* Each real token shifted decrements this.  */    yyerrstatus = 3;      /* Each real token shifted decrements this.  */
1122    
1123    for (;;)    for (;;)
# Line 1204  b4_epilogue Line 1196  b4_epilogue
1196  m4_if(b4_defines_flag, 0, [],  m4_if(b4_defines_flag, 0, [],
1197  [@output @output_header_name@  [@output @output_header_name@
1198  b4_copyright([Skeleton parser for Yacc-like parsing with Bison],  b4_copyright([Skeleton parser for Yacc-like parsing with Bison],
1199               [1984, 1989, 1990, 2000, 2001, 2002])               [1984, 1989, 1990, 2000, 2001, 2002, 2003])
1200    
1201  /* As a special exception, when this file is copied by Bison into a  /* As a special exception, when this file is copied by Bison into a
1202     Bison output file, you may use that output file without restriction.     Bison output file, you may use that output file without restriction.

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.51

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