/[bison]/bison/src/parse-gram.c
ViewVC logotype

Diff of /bison/src/parse-gram.c

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

revision 1.23 by akim, Tue Jul 16 14:04:06 2002 UTC revision 1.24 by akim, Fri Jul 26 06:25:35 2002 UTC
# Line 1  Line 1 
1  /* A Bison parser, made from parse-gram.y, by GNU bison 1.49b.  */  /* A Bison parser, made from parse-gram.y, by GNU bison 1.49b.  */
2    
3  /* Skeleton parser for Yacc-like parsing with Bison,  /* Skeleton parser for Yacc-like parsing with Bison,
4     Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc.     Copyright 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc.
5    
6     This program is free software; you can redistribute it and/or modify     This program is free software; you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by     it under the terms of the GNU General Public License as published by
# Line 91  do {                                                   \ Line 91  do {                                                   \
91     correctly typed access to it.  */     correctly typed access to it.  */
92  #define yycontrol ((gram_control_t *) gram_control)  #define yycontrol ((gram_control_t *) gram_control)
93    
94  /* Request detailed parse error messages, and pass them to  /* Request detailed parse error messages, and pass them to GRAM_ERROR.
95     GRAM_ERROR. */     FIXME: depends on the undocumented availability of YYLLOC.t */
96  #undef  yyerror  #undef  yyerror
97  #define yyerror(Msg) \  #define yyerror(Msg) \
98          gram_error (yycontrol, &yylloc, Msg)          gram_error (&yylloc, Msg)
99    
100  #define YYPRINT(File, Type, Value) \  #define YYPRINT(File, Type, Value) \
101          yyprint (File, Type, &Value)          yyprint (File, Type, &Value)
# Line 1846  yyprint (FILE *file, Line 1846  yyprint (FILE *file,
1846  }  }
1847    
1848  void  void
1849  gram_error (gram_control_t *control ATTRIBUTE_UNUSED,  gram_error (location_t *yylloc, const char *msg)
             location_t *yylloc, const char *msg)  
1850  {  {
1851    complain_at (*yylloc, "%s", msg);    complain_at (*yylloc, "%s", msg);
1852  }  }
1853    
1854    /* A Bison parser, made from parse-gram.y, by GNU bison 1.49b.  */
1855    
1856    /* Skeleton parser for Yacc-like parsing with Bison,
1857       Copyright 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc.
1858    
1859       This program is free software; you can redistribute it and/or modify
1860       it under the terms of the GNU General Public License as published by
1861       the Free Software Foundation; either version 2, or (at your option)
1862       any later version.
1863    
1864       This program is distributed in the hope that it will be useful,
1865       but WITHOUT ANY WARRANTY; without even the implied warranty of
1866       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1867       GNU General Public License for more details.
1868    
1869       You should have received a copy of the GNU General Public License
1870       along with this program; if not, write to the Free Software
1871       Foundation, Inc., 59 Temple Place - Suite 330,
1872       Boston, MA 02111-1307, USA.  */
1873    
1874    /* As a special exception, when this file is copied by Bison into a
1875       Bison output file, you may use that output file without restriction.
1876       This special exception was added by the Free Software Foundation
1877       in version 1.24 of Bison.  */

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

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