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 directory and are greeted by 15 files; my example has 6 files (mainly due to the omission of the generated source files - in my opinion the automatically generated files should be removed from the Bison example). I guess it would be nice to have both examples - mine is incredibly trivial, which makes it easier to get through and understand the basics, whereas the already included example demonstrates actually doing something and is more fully featured. -- Robert Hollencamp rhollenc...@gmail.com On Wed, Mar 10, 2010 at 11:40 AM, Akim Demaille <a...@lrde.epita.fr> wrote: > > 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.thewaffleshop.net/2010/03/06/flex-bison-cpp-example/ > > Hi, > > I hoped that the example in the Bison documentation was good enough. Was > your point also to demonstrate the use of Flex in C++ mode? In what way do > you think the C++ example in the Bison documentation should be improved? _______________________________________________ help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison