Re: Flex and Bison C++ Example

2010-03-10 Thread Robert Hollencamp
The point was mainly to demonstrate Flex and Bison both together in C++ mode; I created the example as a learning experiment and thought I would share my code / notes. The included sample is indeed sufficient, although slightly more complex. It can look a little overwhelming when you open the dire

Re: Flex and Bison C++ Example

2010-03-10 Thread Akim Demaille
Le 7 mars 2010 à 03:05, Robert Hollencamp a écrit : > I made an example of using Flex and Bison together in C++ and was wondering > if you guys could provide some feedback. Despite the C++ interface being > 'experimental' I found it works out pretty good after you figure it out. > > http://www.t

Re: Flex and Bison C++ Example

2010-03-08 Thread Robert Hollencamp
I ended up removing the offending paragraph completely – it really didn’t add anything to the post and gave people the wrong impression about the differences between the C skeleton and C++ skeleton. If you are playing with tools like Flex and Bison you probably know enough to decide for yourself wh

Re: Flex and Bison C++ Example

2010-03-08 Thread Philip Herron
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert Hollencamp wrote: > I made an example of using Flex and Bison together in C++ and was > wondering if you guys could provide some feedback. Despite the C++ > interface being 'experimental' I found it works out pretty good > after you figure it ou

Re: Flex and Bison C++ Example

2010-03-08 Thread Istvan Sandor
Hi, I definitely wouldn't say this: "Edit: March 7 2010 [...] In C mode, the generated code uses global variables to store information, making them non-thread-safe. It is also a pain to create multiple different parsers / scanners and include them in the same program. Using C++ mode, all of the

Flex and Bison C++ Example

2010-03-07 Thread Robert Hollencamp
I made an example of using Flex and Bison together in C++ and was wondering if you guys could provide some feedback. Despite the C++ interface being 'experimental' I found it works out pretty good after you figure it out. http://www.thewaffleshop.net/2010/03/06/flex-bison-cpp-example/ -- Robert