yms@cis.ufl.edu (Yuh-Ming Shyy) (03/06/91)
Hi, is there anyone who knows whether the output of Yacc and Lex program (C) can be compatiable with C++ programs? Or, is there any C++ version of Yacc/Lex where the user-defined functions can be C++ programs? Thanks a lot. yms@beach.cis.ufl.edu
vern@daffy.ee.lbl.gov (Vern Paxson) (03/06/91)
In article <27294@uflorida.cis.ufl.EDU> yms@cis.ufl.edu (Yuh-Ming Shyy) writes: >Hi, is there anyone who knows whether the output of >Yacc and Lex program (C) can be compatiable with C++ >programs? Or, is there any C++ version of Yacc/Lex >where the user-defined functions can be C++ programs? Boy, this question just keeps getting asked and asked. Yes, bison and flex generate parsers and scanners that are compatible with C++, i.e., you can use C++ code for the actions and compile the programs' output using g++ or cfront. Yacc parsers appear to work, too, except possibly for some warnings and (at least on Suns) an old-style declaration of malloc() and realloc() that needs to be removed. Vern Vern Paxson vern@ee.lbl.gov Real Time Systems ucbvax!ee.lbl.gov!vern Lawrence Berkeley Laboratory (415) 486-7504
dfitz@hq.Corp.Sun.COM (David FitzGerald) (03/07/91)
sun's C++ comes with: CC@ incl@ libcomplex.a nrform c++filt* lex++* libcomplex.so.0.1* prof++* cfront* libC.a libcomplex_p.a rpcgen* cpp* libC.sa.0.1 libtask.a yacc++* ctags++* libC.so.0.1* libtask_p.a yaccpar dbx++* libC_p.a munch* dem* libOstream.a ncform gprof++* libOstream_p.a nm++* dave