[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Flex and bison howto for C++ users
From: |
Akim Demaille |
Subject: |
Re: Flex and bison howto for C++ users |
Date: |
Thu, 20 Feb 2003 16:22:11 +0100 |
User-agent: |
Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 |
oleg> Hello all,
Hi Oleg,
oleg> a while ago after googling and bugging people on this list I
oleg> figured out how to get bison and a C++ compiler talk to each
oleg> other. It turns out that there is no documentation that covers
oleg> this process, and it is asked repeatedly on this list. So, I
oleg> have written a howto on this.
This is an excellent thing. I'm trying to clean up the C++ skeleton,
but quite a lot remain to be done. The documentation was highly
needed, and your work will be a fine source of inspiration!
oleg> Please find attached howto.html that describes the following:
oleg> -- creating a small grammar
oleg> -- creating a simple scanner
oleg> -- declaring a common class with attributes that are c++ objects
oleg> -- getting bison to use the new lalr c++ skeleton
oleg> -- getting flex to use objects allocated by bison
oleg> -- compiling all this stuff with cygwin under windows
Have you experimented Flex C++ scanners? Someone reported nasty
performances years ago, but it might have changed.