Xref: utzoo comp.lang.c:32039 comp.lang.c++:9640 Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!apple!usc!cs.utexas.edu!rice!news.rice.edu!rich From: rich@Rice.edu (Richard Murphey) Newsgroups: comp.lang.c,comp.lang.c++ Subject: Re: Interfacing yacc/lex with C++ Message-ID: Date: 20 Sep 90 01:23:52 GMT References: <1635@software.software.org> Sender: news@rice.edu (News) Reply-To: Rich Murphey Distribution: usa Organization: Department of Electrical and Computer Engineering, Rice University Lines: 18 In-Reply-To: burkhard@software.org's message of 19 Sep 90 20:19:13 GMT In article <1635@software.software.org> burkhard@software.org (Neil Burkhard) writes: I'm trying to use yacc/lex in a program I'm developing in C++ using Apollo's C++ system. Can anybody shed some light on how I can have the yacc action routines invoke C++ routines? Not obvious how I can have the compiler figure out the proper names since C++ mangles them. Note: everything is in C++ (including 'main') except yacc/lex stuff. I have the beginnings of an extension language written in g++, bison and flex (free C++, yacc and lex workalikes). The sources are on qed.rice.edu (128.42.4.38) in /pub/interp-1.9.tar.Z and are distributed under the GPL. The texinfo sources for the documentation are included. The bison (or yacc) output is compiled with g++; all you need is a define or two to take into account the differences in I/O. Any comments or suggestions on interp-1.9 are welcome! Rich