Re: syntax spec. for C ?

"David R Tribble" <david@tribble.com>
12 Jan 2006 12:13:23 -0500

          From comp.compilers

Related articles
syntax spec. for C ? x-lists@cqsat.com (JR) (2006-01-07)
Re: syntax spec. for C ? david@tribble.com (David R Tribble) (2006-01-12)
Re: syntax spec. for C ? markwh04@yahoo.com (2006-01-12)
Re: syntax spec. for C ? markwh04@yahoo.com (2006-01-19)
| List of all articles for this month |

From: "David R Tribble" <david@tribble.com>
Newsgroups: comp.compilers
Date: 12 Jan 2006 12:13:23 -0500
Organization: http://groups.google.com
References: 06-01-008
Keywords: C, syntax
Posted-Date: 12 Jan 2006 12:13:23 EST

JR wrote:
> I trying to find a syntax spec. for C, something I can feed into a
> compiler generator. It's format is not so important as I can massage
> it with a script but I'd like to get a "superset" of all C variants in
> the one syntax spec. (K&R, ANSI, etc. etc.) within reason.


A few minutes' worth of Googling turned up these:
    http://www.lysator.liu.se/c/ANSI-C-grammar-y.html
    http://www.empathy.com/pccts/roskind.html


These YACC grammars only cover ISO C89, and do not have any of
the C99 additions. But there are many more to be found out there
on the web.


-drt


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.