help-bison
[Top][All Lists]
Advanced

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

Re: problem compiling bison with gcc 3.0.5


From: Anthony DeRobertis
Subject: Re: problem compiling bison with gcc 3.0.5
Date: Sun, 3 Mar 2002 11:45:13 -0500

On Saturday, March 2, 2002, at 02:23 PM, Hans Aberg wrote:

I am using YYPARSE_PARAM at the moment, but its very nasty. Its only
possible to pass a void* pointer. This would be very easy to make the
type changeable.

Oops: I thought those Bison developers had changed that. :-)

Heh. You can use define... something like

        #define C ((T*)thevar)

where T is the type, thevar is whatever bison calls your user-defined parameter, and C is what you're going to refer to it as.

Then use C->member.

You could even use that fancy reinterpret_cast stuff. Or is it something else? I forget; need to read stroustrup again...




reply via email to

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