help-bison
[Top][All Lists]
Advanced

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

Re: Extra code in y.tab.h


From: Panayiotis Karabassis
Subject: Re: Extra code in y.tab.h
Date: Wed, 08 Jun 2011 23:01:17 +0300
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110510 Icedove/3.1.10

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/26/2011 02:06 AM, Hans Aberg wrote:
>
> On 23 May 2011, at 09:40, Panayiotis Karabassis wrote:
>
>> What is the recommended way to get extra declarations in y.tab.h (in my
>> case Parser.h) for a C++ parser?
>
> Have you checked the Bison manual, sec. 10.1.6 A Complete C++ Example? One 
> can put it into a new header and include the header.
>
> Hans

Yes, but I am a bit nitpicky and I have this convention of one foo.h
file for each foo.cc file. Anyway the other solution is to include bar.h
before Parser.h if Parser.h depends on bar.h. A little less awkward.

- -- 
Best regards,
    Panayiotis Karabassis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJN79UNAAoJEN7RcJcJCZJi7LcIAIhNQR316n4CiU530xbUaJKD
C1rzZjwnB38G/LRaVKdJDXTrFpHU/DZ/p5tqyLO5gPt8zljv2DvnW7X2EB6x4XnY
7/ksHQuTXqDf+5+aL8L2el2JnNKZHaViNfvwaHXR7EK+mYzBzVz1LU18tBTGg7lP
iJ8bWeSIihLSnj4G1bnV7GbWXJ1oPI2tb3+MPl3ZNLHxI/Ci9eqfPB6KdPcslf3Z
KJf+sUX3VEpagGV/uHXVhzgcdekzMDpj4j7Z9s1WDGiyOy6OE+Gcm3FBt9Bdf/A1
3jO+yKetDKIekJr+o4I9eF3CVX+VMgCmvAuZzv6jImL7q95xOLs4Y6omB2H4xxc=
=S6YB
-----END PGP SIGNATURE-----



reply via email to

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