delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/17/10:08:03

Date: Thu, 17 Apr 1997 16:42:53 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Programmed to death <eklaus AT erols DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: HELP: Bison, Flex & C++ class support...
In-Reply-To: <3355bec7.44451742@news.erols.com>
Message-ID: <Pine.SUN.3.91.970417163803.19669B-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019