bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug report . Bison 1.875


From: Paul Eggert
Subject: Re: Bug report . Bison 1.875
Date: 27 Jan 2003 00:07:30 -0800

"Laurent D. Michel" <address@hidden> writes:

> If I remove the #if defined(....)  that precedes the yylerrsp = yylsp
> everything works as expected.

Thanks for reporting this.  We have removed that #if in CVS Bison
(see <http://mail.gnu.org/archive/html/bison-patches/2003-01/msg00047.html>)
so your problem should be fixed in the next release.

> What I usually do is used sed to replace the void in the signature by
> the type of the parser object (LocParser in this case). It would be nice
> to have that configurable with a macro such as 
> 
> yyparse(YYPARSE_PARAM_TYPE *YYPARSE_PARAM) 

Yes, that problem has come up a lot.  Bison has a %parse-param
directive that should do what you want.  Currently, though, it's not
documented, since we had some minor problems with it (sorry, I don't
offhand recall what they were) and we didn't want to commit to the
currently implemented syntax until we're sure about it.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]