[ back to toc ]

context free grammer in C

Date: 2002/05/12 19:52

Q:
please send me the context free grammer in C-Language for the followings
:1. "if-then-else" statement.
2. "for" loop.
3. "switch" ststement.
4. an unsigned integer.
5. an assignment statement.
A:
Sorry, but I do not understand your query. (What is more: this is not a
question, but rather a "do my homework instead of me" query.)

C is a programming language not suitable for defining grammars.

C is a programming language with a syntax that can be defined using
context free grammar. The grammar can be defined using BNF or some other
form.

The whole language is defined by the ANSI standard. Available from the
Internet.

So what is the question?

Regards,
Peter

[ back to toc ]