bug-bison
[Top][All Lists]
Advanced

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

Re: Bison version 1.875e available for testing


From: Laurence Finston
Subject: Re: Bison version 1.875e available for testing
Date: Wed, 15 Dec 2004 18:16:12 +0100 (MET)

On Wed, 15 Dec 2004, Kelly Leahy wrote:

>
> I recommend you look it up.
>

The version of the Bison manual at
http://www.gnu.org/software/bison/manual/
is for Bison 1.35.  `%parse-param' isn't listed in the
index.  Nor is it listed in the index of the manual for
Bison 1.75, which is installed on one of the machines I'm using.  When I
get a chance, I'll download a distribution and try to generate the
up-to-date manual.


> That being said, you can make your own function, say
> "myparse()" that you call instead of yyparse() and
> define it as follows:
>
> int myparse() {
>   localtype local1;
>   localtype local2;
>
>   return yyparse(&local1, &local2);
> }

Thanks for the suggestion, but I would rather not
redeclare `yyparse()' everytime I want to add a
local variable.  Nor do I want to change all the calls to
`yyparse()' in my code each time I do this, either.
Therefore I don't see any advantage to doing this over
my workaround.

I think allowing users to declare local automatic variables in
`yyparse()' would be helpful to me and other users who call
`yyparse()' in multiple threads.
If the Bison developers and maintainers don't agree,
I can work around it.

Thanks,

Laurence





reply via email to

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