473,396 Members | 1,608 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

C99 Grammar Definition

Does anyone know where I can find a grammar definition for C99? Thanks.
Dec 31 '06 #1
6 6745
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
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
"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

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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Peri | last post by:
I'm trying to create Python parser/interpreter using ANTLR. Reading grammar from language refference I found: or_expr::= xor_expr | or_expr "|" xor_expr For me it looks like infinite recursion....
0
by: Bengt Richter | last post by:
We have where syntax in combination with suite expression syntax (bear with me, I think a good synergy will emerge ;-) ...
2
by: Chris Gordon-Smith | last post by:
I am currently in India and have treated myself to the Indian reprint of O'Reilly's "C++ In A Nutshell". (Books in India come in at 1/3 to 1/2 of the price in Britain.) I thought that I would...
3
by: junky_fellow | last post by:
I got one link to the ANSI C Grammar http://www.lysator.liu.se/c/ANSI-C-grammar-y.html However, I don't know how to understand this grammar. I am not a Computer Science Guy. Can anybody please...
14
by: Magius | last post by:
Hello, I have a question about the correctness of the language grammar for the C# 2.0 specification. I am working with the grammar specified in the June 2005 ECMA-334 standard. Basically, a...
1
by: Khoa Nguyen | last post by:
I am trying to come up with a grammar that describes the following: record = f1,f2,...,fn END_RECORD All the f(i) has to be in that order. Any f(i) can be absent (e.g. f1,,f3,f4,,f6 END_RECORD)...
4
by: junky_fellow | last post by:
Hi, Is any one aware of some link that has the grammar files (yacc and lex files) for command interpreter like shell ? thanks a lot for any pointers ....
4
by: Paulo Matos | last post by:
Hi all, I'm trying to work out a parser for function declarations but it turns out that it is harder than I initially thought. I'm looking at 3rd Ed of Stroustrup, page 808. I'm trying to parse...
10
by: MBR | last post by:
Hello... I'm using the grammar at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csspec/html/vclrfcsharpspec_c.asp as a reference in creating my own C# parser using a custom...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.