473,545 Members | 2,005 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C99 Grammar Definition

Does anyone know where I can find a grammar definition for C99? Thanks.
Dec 31 '06 #1
6 6754
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*******@yaho o.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*******@yaho o.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
3405
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. And so it says ANTLR. Maybe I don't understand EBNF notation. For me it should look like this. or_expr::= xor_expr | xor_expr "|" xor_expr and in...
0
1492
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 ;-) http://groups.google.co.uk/groups?selm=mailman.403.1105274631.22381.python-list%40python.org http://groups.google.co.uk/groups?selm=3480qqF46jprlU1%40individual.net are the key referneces for background (I'm just repeating...
2
1820
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 have a look at what Chapter 12 on grammar says about Declarations and Definitions. Now I'm more baffled than when I started. Here's the problem.
3
8135
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 help me about how to understand this grammar. Is there any good book on this ? Or anybody knows about some link from where a beginner like me start...
14
2021
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 using-namespace-directive is defined as follows: using-namespace-directive: using namespace-name ;
1
1854
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) Number of f(i)'s can vary. For example, the followings are allowed: f1,f2 END_RECORD f1,f2,,f4,,f6 END_RECORD Any suggestions?
4
2784
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
2504
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 something like: int foo(int, int); const double *xpto(mytype *, mytype &) const; But I'm not being able to find my way around the grammar.
10
4685
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 framework. (Please let me know if there's a better group to post in.) Some questions: (1) Is this grammar specification known to be complete and...
0
7479
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7926
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7439
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7773
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5987
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5343
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4962
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3468
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3450
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.