Nguyễn Thu Trang
New member
A CFG for a program describing strings of letters with the word “main” somewhere in the string:
A.
-> m a i n
-> | epsilon
-> A | B | ... | Z | a | b ... | z
B.
--> m a i n
-->
--> A | B | ... | Z | a | b ... | z
C.
--> m a i n
--> | epsilon
--> A | B | ... | Z | a | b ... | z
D. None of the mentioned
A.
-> m a i n
-> | epsilon
-> A | B | ... | Z | a | b ... | z
B.
--> m a i n
-->
--> A | B | ... | Z | a | b ... | z
C.
--> m a i n
--> | epsilon
--> A | B | ... | Z | a | b ... | z
D. None of the mentioned