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

5. (25pt) Given the grammar G: S S E E E id=E$$ E Etid Exid 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
