Date: Thu, 17 Apr 1997 16:42:53 +0300 (IDT) From: Eli Zaretskii To: Programmed to death cc: djgpp AT delorie DOT com Subject: Re: HELP: Bison, Flex & C++ class support... In-Reply-To: <3355bec7.44451742@news.erols.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.