Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!princeton!allegra!ulysses!sfmag!sfsup!laurae From: laurae@sfsup.UUCP Newsgroups: comp.lang.c++ Subject: Re: Yacc and lex with C++; is it possible? Message-ID: <1232@sfsup.UUCP> Date: Thu, 19-Mar-87 13:26:21 EST Article-I.D.: sfsup.1232 Posted: Thu Mar 19 13:26:21 1987 Date-Received: Sat, 21-Mar-87 08:19:12 EST References: <4475@columbia.UUCP> Organization: AT&T-IS, Summit N.J. USA Lines: 15 Summary: yacc and C++ In article <4475@columbia.UUCP>, beshers@sylvester.columbia.edu.UUCP writes: > > How well do yacc and lex work with C++? Are there major problems, minor > kludges. Must yacc and lex be re-written in C++, and, if so, has this been > done? > > Cliff Beshers > Columbia University CS Department > beshers@sylvester.columbia.edu Lex and yacc can be combined with C++ without any problem. (In fact it's done frequently.) The only restriction I can think of is that YYSTYPE (if defined as a union) can't contain class objects with constructors, since the behavior is undefined. --le