|bison, flex and c++ email@example.com (Shashank G. Khandelwal) (2002-10-18)|
|Re: bison, flex and c++ firstname.lastname@example.org (Jan Kleinsorge) (2002-10-20)|
|Re: bison, flex and c++ email@example.com (Chris Hundhausen) (2002-10-20)|
|Re: bison, flex and c++ pioter@terramail.CUTTHIS.pl (Piotr Zgorecki) (2002-10-20)|
|Re: bison, flex and c++ firstname.lastname@example.org (Graham Douglas) (2002-10-25)|
|Re: bison, flex and c++ email@example.com (Dave Sieber) (2002-11-06)|
|From:||"Piotr Zgorecki" <pioter@terramail.CUTTHIS.pl>|
|Date:||20 Oct 2002 22:52:33 -0400|
|Organization:||Internet Cable Provider News Server|
|Posted-Date:||20 Oct 2002 22:52:33 EDT|
> I'm very wet behind the ears at this bison, flex game. I'd like to use bison,
> flex with C++. Much searching online has failed to provide a simple example
> that uses all three. I'd like to build a tree of given lisp formulas by
> populating and linking the nodes of the tree from bison.
> I'd appreciate it if someone could point me to, or provide a simple example.
As I recall, bison itself doesn't have C++ support, but it might have
changed since I used it. Anyway, the "support" is mainly about iostream
library. As long as you don't need it, you can use bison+flex+c++ just
as you would use them with C. If you really need it, then there is a
bison fork with iostream support built in (plus it generates a class
instead of a "flat" file). It is called bison++ and it works with
flex++. And it has an example.
Hope this helps,
Return to the
Search the comp.compilers archives again.