Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!lll-lcc!pyramid!voder!apple!lenoil From: lenoil@apple.UUCP (Robert Lenoil) Newsgroups: comp.lang.c Subject: Re: YACC grammer for c Message-ID: <353@apple.UUCP> Date: Wed, 3-Dec-86 17:56:37 EST Article-I.D.: apple.353 Posted: Wed Dec 3 17:56:37 1986 Date-Received: Thu, 4-Dec-86 00:17:46 EST References: <1338@nicmad.UUCP> Reply-To: lenoil@apple.UUCP (Robert Lenoil) Organization: Apple Computer Inc., Cupertino, USA Lines: 12 In article <1338@nicmad.UUCP> karsh@nicmad.UUCP (Bruce Karsh) writes: > By the way, does anybody know if there are any known bugs in the K&R >C grammer? What's a good reference for information on the precise >syntax of the C language? > > Does anybody out there have a yacc grammer for the C language? How >about for the ANSI C language? Could you send me a copy? Harbison and Steele's book (the exact name I'm not sure of now; I've lent mine to a friend, but it's something like "C: A Reference Manual") contains an appendix with a full LR(1) grammar for C. I've never tried YACCing it, so I don't know if it works.