1 write a bnf grammar for the for statement of c assume that quot for int i quot is 5346945

1. Write a BNF grammar for the for statement of C. Assume that “for (int i…)” is not allowed. Also assume that the for loop must take a single statement or a block, where a block is any code in {}.
Further assume and and are defined elsewhere nonterminals (you dont' define them). is is an expression ending with ; or control control statement but not block. Do not use the extended BNF notation.

For the above, write informal operational semantics.

2.Design a regular language where every sentence has to start with any number of strings 11, then repeats 100 any number of times, then repeat 00 at least once.

3.For the above, how many valid strings there are?

4.For the above, how many valid strings are there if we restrict the total length to a) at most 7 bits? b) exactly 7 bits?

"Get 15% discount on your first 3 orders with us"
Use the following coupon
FIRST15

Order Now