Mail Archives: djgpp/1995/02/02/00:53:25
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 -