Question: (25pt) Given the grammar G: S id=E$$ S E E E+id E E*id E id (a) (5pt) Is G LL(1)? Explain your answer. (b) (10pt)

(25pt) Given the grammar G: S id=E$$ S E E E+id E E*id E id (a) (5pt) Is G LL(1)? Explain your answer. (b) (10pt) Modify G by eliminating left-recursion on E. Is the new grammar, G', LL(1)? (c) (10pt) Modify G' to become LL(1) by removing common prefixes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
