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.
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
The whole language is defined by the ANSI standard. Available from the
So what is the question?
[ back to toc ]