By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,125 Members | 921 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,125 IT Pros & Developers. It's quick & easy.

C99 Grammar Definition

P: n/a
Does anyone know where I can find a grammar definition for C99? Thanks.
Dec 31 '06 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Ray Mitchell a écrit :
Does anyone know where I can find a grammar definition for C99? Thanks.

Annex A of the C standard contains the lexical grammar.

You can buy it for something like 20 US$ from ANSI.

Dec 31 '06 #2

P: n/a
rkk
I think the C programming language book by K & R has an appendix
covering the lexical part of the language.
Refer to the document in the below URL:
http://www.open-std.org/JTC1/SC22/WG...onaleV5.10.pdf

Good luck.

RKK

Ray Mitchell wrote:
Does anyone know where I can find a grammar definition for C99? Thanks.
Dec 31 '06 #3

P: n/a
"rkk" <te*******@yahoo.comwrote:

[ Do not top-post. Corrected. ]
Ray Mitchell wrote:
Does anyone know where I can find a grammar definition for C99? Thanks.

I think the C programming language book by K & R has an appendix
covering the lexical part of the language.
That doesn't cover C99, but (almost) C89. Ray Mitchell asked
specifically for C99.
Refer to the document in the below URL:
http://www.open-std.org/JTC1/SC22/WG...onaleV5.10.pdf
That _does_ cover C99, but doesn't have a grammar definition.

n1124.pdf (do a websearch, I don't have a URL at hand) does contain the
whole grammar, but spread through the document.

Richard
Jan 2 '07 #4

P: n/a

Richard Bos wrote:
"rkk" <te*******@yahoo.comwrote:

[ Do not top-post. Corrected. ]
Ray Mitchell wrote:
Does anyone know where I can find a grammar definition for C99? Thanks.
I think the C programming language book by K & R has an appendix
covering the lexical part of the language.

That doesn't cover C99, but (almost) C89. Ray Mitchell asked
specifically for C99.
Refer to the document in the below URL:
http://www.open-std.org/JTC1/SC22/WG...onaleV5.10.pdf

That _does_ cover C99, but doesn't have a grammar definition.

n1124.pdf (do a websearch, I don't have a URL at hand) does contain the
whole grammar, but spread through the document.
http://www.open-std.org/JTC1/SC22/WG...docs/n1124.pdf
>
Richard
Jan 2 '07 #5

P: n/a
shaanxxx <sh******@yahoo.comwrote:
>
Richard Bos wrote:
>>
n1124.pdf (do a websearch, I don't have a URL at hand) does contain the
whole grammar, but spread through the document.
http://www.open-std.org/JTC1/SC22/WG...docs/n1124.pdf
Although the grammar is spread through the document, it's also collected
together in Annex A.

-Larry Jones

They can make me do it, but they can't make me do it with dignity. -- Calvin
Jan 4 '07 #6

P: n/a
Ray Mitchell wrote:
Does anyone know where I can find a grammar definition for C99? Thanks.

http://www.open-std.org/jtc1/sc22/wg14/www/standards

Jan 6 '07 #7

This discussion thread is closed

Replies have been disabled for this discussion.