Mail Archives: djgpp/1997/04/17/10:08:03
On Thu, 17 Apr 1997, Programmed to death wrote:
> I want to be able use c++ classes in both the lexer and the parser,
> and possibly pass objects of a particular class back and forth between
> the two.
Caveat: I have never used flex with C++, so the advice below might be
nothing but a wild goose.
What version of flex did you use? The latest port of flex 2.5.4
(v2gnu/flx254b.zip) comes with a program flexpp.exe that should be used
for creating C++ lexers. A header file FlexLexer.h should also be used
in C++ lexers. I believe this is all explained in the flex docs.
- Raw text -