On Fri, 25 May 2007, Frans Englich wrote:

> adds %glr-parser under %pure-parser, two things happens beyond changing the 
> parser algorithm:
> 
> * It copies all the code in the c++ section into the header.

This is addressed in test release 2.3a.  See the heading "Handling of 
traditional Yacc prologue blocks" in NEWS.  However, the "alternative to 
the traditional Yacc prologue blocks" presented there have been replaced 
in CVS, so be careful about using those.

> * It puts "extern YYSTYPE lval;" in the header.

Thanks.  I committed the following to fix that.

Index: ChangeLog
===================================================================
RCS file: /sources/bison/bison/ChangeLog,v
retrieving revision 1.1700
diff -p -u -r1.1700 ChangeLog
--- ChangeLog   26 May 2007 18:19:33 -0000      1.1700
+++ ChangeLog   26 May 2007 19:04:58 -0000
@@ -4,6 +4,11 @@
        that the yacc script isn't corrupt.  Reported by Hans Aberg at
        <http://lists.gnu.org/archive/html/bug-bison/2007-05/msg00003.html>.
 
+       * data/glr.c (yylval): As in yacc.c, don't extern in the header for
+       the case of pure parsers.  Reported by Frans Englich at
+       <http://lists.gnu.org/archive/html/help-bison/2007-05/msg00018.html>.
+       * THANKS: Add Frans Englich.
+
 2007-05-20  Joel E. Denny  <[EMAIL PROTECTED]>
 
        Extend the front-end API for %define variables to more completely
Index: THANKS
===================================================================
RCS file: /sources/bison/bison/THANKS,v
retrieving revision 1.73
diff -p -u -r1.73 THANKS
--- THANKS      4 Apr 2007 22:41:58 -0000       1.73
+++ THANKS      26 May 2007 19:04:58 -0000
@@ -29,6 +29,7 @@ Evgeny Stambulchik        [EMAIL PROTECTED]
 Fabrice Bauzac            [EMAIL PROTECTED]
 Florian Krohm             [EMAIL PROTECTED]
 Frank Heckenbach          [EMAIL PROTECTED]
+Frans Englich             [EMAIL PROTECTED]
 Guido Trentalancia        [EMAIL PROTECTED]
 H. Merijn Brand           [EMAIL PROTECTED]
 Hans Aberg                [EMAIL PROTECTED]
Index: data/glr.c
===================================================================
RCS file: /sources/bison/bison/data/glr.c,v
retrieving revision 1.204
diff -p -u -r1.204 glr.c
--- data/glr.c  24 Feb 2007 05:43:35 -0000      1.204
+++ data/glr.c  26 May 2007 19:04:59 -0000
@@ -2638,7 +2638,8 @@ b4_copyright([Skeleton interface for Bis
 
 b4_shared_declarations
 
-extern YYSTYPE b4_prefix[]lval;
+b4_pure_if([],
+[[extern YYSTYPE b4_prefix][lval;]])
 
 b4_locations_if([b4_pure_if([],
 [extern YYLTYPE b4_prefix[]lloc;])


_______________________________________________
[email protected] http://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to