-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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/csci240/masmdocs/programmersguide/19LMAPGAPB.pdf
http://lists.canonical.org/pipermail/kragen-hacks/1999-October/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+AKCqp3OHnHSqoRhWLTAiLik5epyBkwCfR9lh
MLFqFellJaWkb69JLvkV3GA=
=6svK
-----END PGP SIGNATURE-----