Le 15 janv. 2012 à 22:20, Csaba Raduly a écrit :
> The thing is, it's a corporate software built on corporate machines
> (Ubuntu 10, SLES 11) which have either 2.3 or 2.4 installed.
> I'll try to lobby my colleagues to ditch 2.3 :)
I don't know your environment, but maybe not everybody needs to
the parser implementation file. This has created a problem for me
>> because the %union contains pointers to various user-defined types,
>> but the #includes containing their definitions are no longer written
>> into the bison-generated header file. Manually updating the list
problem for me
> because the %union contains pointers to various user-defined types,
> but the #includes containing their definitions are no longer written
> into the bison-generated header file. Manually updating the list of
> includes in every file that uses the bison-generated header is a
%union contains pointers to various user-defined types,
> but the #includes containing their definitions are no longer written
> into the bison-generated header file. Manually updating the list of
> includes in every file that uses the bison-generated header is a pain.
>
> %code
#includes containing their definitions are no longer written
into the bison-generated header file. Manually updating the list of
includes in every file that uses the bison-generated header is a pain.
%code appears to provide the needed flexibility, but of course it's
not recognized by bison 2.3