Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!tektronix!orca!tekecs!nobody From: nobody@tekecs.GWD.TEK.COM (-for inetd server command) Newsgroups: comp.lang.c++ Subject: Re: YACC++ (was: Using OO Languages for Compilers/Interpreters) Message-ID: <11265@tekecs.GWD.TEK.COM> Date: 10 Apr 89 23:30:58 GMT References: <16915@cup.portal.com> <1685@iesd.dk> Reply-To: brucec@demiurge.UUCP (Bruce Cohen) Organization: Tektronix, Inc., Wilsonville, OR Lines: 25 This is addressed to fischer@iesd.dk. I was unable to get my mailer to accept his address. Does anyone know how to convince a mailer to send a message via a portal? Please mail your response. In article <1685@iesd.dk> you write: >The code generated by bison (aka GNU YACC) works fine with C++, at >least with the GNU C++ compiler. Simply write C++ code in the action >parts, and compile with g++. No problem. Using YACC, you get a couple >of warnings, but it works ok. > >Using LEX is more tricky, but it can be done (kludge available :-). >Using flex (Vern Paxson's fast LEX) is far better. You'll have to make >a simple patch to the skeleton lexer, but that's easy to spot. I have >a patch if anyone is interested (I've mailed it to Vern, too). I would be interested in both of these patch/kludges. Your timing in posting this information is very fortuitous for me; I was just about to start designing a class which contains a parser in its private members. Bruce Cohen Interactive Technologies Division, Tektronix, Inc. M/S 61-028, P.O. Box 1000, Wilsonville, OR 97070 brucec@orca.wv.tek.com.usa