473,473 Members | 2,031 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

ANSI C grammar

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 of ?

Thanx for any help in advance ...

Nov 15 '05 #1
3 8122
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

ju**********@yahoo.co.in wrote:
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.
OK, then I'm going to be that you won't be able to understand almost any
sensible expression of the C grammar.

The link you posted is to an /implementation/ of the C grammar, as a YACC ('Yet
Another Compiler Compiler") parse grammer. YACC's grammar is similar to (and
extended from) the standard Backus-Naur Form (aka BNF) grammar that is standard
in "Computer Science" for describing these sorts of things (language grammars,
etc.). You'll have to learn BNF, if you want to read /any/ grammar.
Can anybody please help me
about how to understand this grammar. Is there any good book
on this ?
For the link you gave, you might try
"lex & yacc" by John R. Levine, Tony Mason & Doug Brown,
Copyright (c) 1990, 1992, O'Reilly & Associates
ISBN 1-56592-000-7
Or anybody knows about some link from where a
beginner like me start of ?
Google is your friend....

http://www.garshol.priv.no/download/text/bnf.html
http://web.sau.edu/LillisKevinM/csci...19LMAPGAPB.pdf
http://lists.canonical.org/pipermail...er/000201.html

and so on.

Search for "bnf grammar" or "yacc grammar"
Thanx for any help in advance ...

- --
Lew Pitcher
IT Specialist, Enterprise Data Systems,
Enterprise Technology Solutions, TD Bank Financial Group

(Opinions expressed are my own, not my employers')
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)

iD8DBQFC5NwxagVFX4UWr64RAkw+AKCqp3OHnHSqoRhWLTAiLi k5epyBkwCfR9lh
MLFqFellJaWkb69JLvkV3GA=
=6svK
-----END PGP SIGNATURE-----
Nov 15 '05 #2
ju**********@yahoo.co.in wrote:
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 of ?


Try googling for "yacc manual" or "bison manual".

Robert Gamble

Nov 15 '05 #3
ju**********@yahoo.co.in wrote:
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 of ?


comp.compilers
Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

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 ;-) ...
3
by: Ira Baxter | last post by:
Hi. We are working on tools to process PL/SQL code. What we need are precise details on the full PL/SQL syntax. We have the Oracle 9/10 documentation, but it seems a little fuzzy on the...
4
by: Costa B. | last post by:
Where do I find the complete c++ grammar (including the preprocessor instructions etc.)? Thanks
20
by: Petter Reinholdtsen | last post by:
Is the code fragment 'char a = ("a");' valid ANSI C? The problematic part is '("a")'. I am sure 'char a = "a";' is valid ANSI C, but I am more unsure if it is allowed to place () around the...
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...
0
by: marojusiva | last post by:
i want example syntax to parse ansi c grammar because when i parse, it is not endding correctly.
6
by: Ray Mitchell | last post by:
Does anyone know where I can find a grammar definition for C99? Thanks.
6
by: aarklon | last post by:
Hi all, here is the on ANSI C grammar dependency graph Flickr - Photo Sharing! http://www.flickr.com/photo_zoom.gne?id=281055530&size=o
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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...
1
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.