Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!elroy.jpl.nasa.gov!sdd.hp.com!think.com!mintaka!bloom-picayune.mit.edu!athena.mit.edu!jik From: jik@athena.mit.edu (Jonathan I. Kamens) Newsgroups: comp.lang.c Subject: Re: ANSI C Grammar Keywords: ANSI C, yacc Message-ID: <1991Feb22.070140.4910@athena.mit.edu> Date: 22 Feb 91 07:01:40 GMT References: <1991Feb22.063149.10796@cec1.wustl.edu> Sender: news@athena.mit.edu (News system) Distribution: usa Organization: Massachusetts Institute of Technology Lines: 27 If you are new to this group, then you should read the monthly Frequently Asked Questions posting before posting any questions. In particular, your question about a C grammar is question 89 of the FAQ posting, and it is answered in that posting. I've included the question and answer below. If the posting has expired at your site, feel free to send me E-mail and send it to you, or wait until the first of the month, when it should be posted again. -- Jonathan Kamens USnail: MIT Project Athena 11 Ashford Terrace jik@Athena.MIT.EDU Allston, MA 02134 Office: 617-253-8085 Home: 617-782-0710 89. Where can I get a YACC grammar for C? A: The definitive grammar is of course the one in the ANSI standard. Several copies are floating around; keep your eyes open. There is one on uunet.uu.net (192.48.96.2) in net.sources/ansi.c.grammar.Z . FSF's GNU C compiler contains a grammar, as does the appendix to K&R II. References: ANSI Sec. A.2 .