Consider the following grammar:
S -> id = E
E -> E + P
E -> P
P -> id
P -> (E)
P -> id(E)
Draw the LR(0) automaton.
Write out the parse table for the same grammar.
Is this grammar LL(1)? Explain why.
Is this grammer LR(0)? Explain why.
Is this grammar SLR(1)? Explain why.
Is this grammar LR(1)? Explain why.