|flex++ & bison++ firstname.lastname@example.org (Nicholas Kirsch) (1998-07-20)|
|Re: flex++ & bison++ email@example.com (Alain Coetmeur) (1998-07-27)|
|flex++ & bison++ firstname.lastname@example.org (htw5586) (1999-08-04)|
|Re: flex++ & bison++ email@example.com (John Smith) (1999-09-06)|
|From:||"Alain Coetmeur" <firstname.lastname@example.org>|
|Date:||27 Jul 1998 11:45:41 -0400|
|Keywords:||lex, yacc, C++|
Nicholas Kirsch a ecrit:
>I am using flex ++ & bison ++ made by Alain Coetmeur (email@example.com)
>and running into problems. I have a legimate grammar that compiled and
>execute just fine under flex and bison, called dialog.l & dialog.y.
cout<<"note that my boss tell me to tell that bison++/flex++ are no
moreover ther are products that are much more up todate, especially
flex2.5&+... look also about Andrew Bison-A1&+
who knows better one ?
>I run these commands.
>flex++ dialog.l (generates lex.yy.c)
>bison++ -d dialog.y (generates dialog.tab.c & dialog.tab.h)
>I then compile with g++ like so :
>g++ dialog.tab.c lex.yy.c
>The result is that I get an undefined reference to `parse virtual table`
If I remember this is something about the function printing errors...
look in the header (or in the preprocessed version since my headers
are very very intricated... please apology 8( )
>I have read the man pages for both, and found no useful information. I
>know that with flex I previously had to compile with -lfl to link in the
>flex libraries, but this doesn't work with these tools.
with the C++ mapping, you have to code it yourself...
this takes 10 lines... look into the sammples in "misc"
Return to the
Search the comp.compilers archives again.