www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/02/02/00:53:25

Date: Thu, 2 Feb 1995 12:33:31 +0900
From: Stephen Turnbull <turnbull AT shako DOT sk DOT tsukuba DOT ac DOT jp>
To: MAHMOUD AT esic DOT eun DOT eg
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Flex and bison

   From: Mahmoud Rafeh <MAHMOUD AT esic DOT eun DOT eg>

   Does 263 flex and/or bison generate C++ code.

No and yes.  The code is C; why bother with C++ when the point is to
generate efficient, formally correct code that is easier to intervene
in than assembly?  You could ask that the code be wrapped in a C++
class, I suppose.  On the other hand, it will compile under C++.  At
least the few small examples I have tried do.

As I recall, you don't even have to deal with the linkage issue (Bison
and Flex both come with libraries); the headers are already properly
"wrapped" with linkage directives.

-- 
Stephen Turnbull  /  Yaseppochi-gumi  /  <turnbull AT shako DOT sk DOT tsukuba DOT ac DOT jp>
http://turnbull.sk.tsukuba.ac.jp/      anon FTP: turnbull.sk.tsukuba.ac.jp
Check out Kansai-WWW, too ------------> http://pclsp2.kuicr.kyoto-u.ac.jp/

- Raw text -


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