Xref: utzoo comp.lang.c:11699 comp.lang.scheme.c:6 Path: utzoo!utgpu!attcan!uunet!kddlab!ccut!ascgw!fgw!flab!ayumi!feldmark From: feldmark@hanako.stars.flab.Fujitsu.JUNET Newsgroups: comp.lang.c,comp.lang.scheme.c Subject: Re: Need C language Description Message-ID: Date: 4 Aug 88 07:59:43 GMT References: <12707@agate.BERKELEY.EDU> <458@ssp15.idca.tds.philips.nl> Sender: news@ayumi.stars.flab.fujitsu.JUNET Organization: Fujitsu Laboratories Ltd., Kawasaki, Japan. Lines: 28 In-reply-to: jos@philapd.UUCP's message of 1 Aug 88 13:27:41 GMT Posting-Front-End: GNU Emacs 18.41.6 of Fri Feb 19 1988 on hanako (berkeley-unix) In article <458@ssp15.idca.tds.philips.nl> jos@philapd.UUCP writes: > In "C: A Reference Manual", written by Harbison & Steele, a LALR(1) grammar > is included in an appendix. You *should* be able to feed it to YACC, for > instance, but I have never tried it! I haven't looked at this book in particular, but if it is anything like what appears in K&R, it is probably possible but requires modifications. A long time ago in a place far far away we had to write a C compiler and were advised NOT to use what's in the back of K&R because YACC couldn't process it correctly. Most of us paid little attention, made some modifications which I don' t remember, and came out OK. If you have the time to search for it and understand it, look for the YACC source for the UNIX C compiler. We didn't find out it was there until we were almost finished, so it didn't help much, if you know before you start, it might be useful. :-) Mark Feldman Fujitsu Laboratories Ltd. Artificial Intelligence Laboratory feldmark@hanako.stars.flab.fujitsu.junet (Japan) feldmark%hanako.stars.flab.fujitsu.junet@uunet.uu.net (USA) -- feldmark@hanako.stars.flab.fujitsu.junet (Japan) feldmark%hanako.stars.flab.fujitsu.junet@uunet.uu.net (USA)