-----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-----
_______________________________________________
[email protected] https://lists.gnu.org/mailman/listinfo/help-bison