Consider two grammars G1 and G2 with the production rules given below: G1: S → if E then S if E then S else S a E → b G2: S → if E then S M M → if E then M else S c E → b where if, then, else, a, b, c are the terminals. Which of the following option(s) is/are CORRECT?
Topic-wise GATE CS PYQs with verified steps