Question: (2) Write a BNF grammar for the following language to satisfy following requirements: (a) The alphabet contains two characters: I and T (b) I's are
(2) Write a BNF grammar for the following language to satisfy following requirements: (a) The alphabet contains two characters: "I" and T (b) "I"'s are NOT required to be next to each other. Neither do "T's; (c) A legal sentence in the language has matching number of "" and T. For example, "u", "Hom,"IOCOP""LONOO0" are legal sentences; but "IO" "OOll" are not
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
