Consider the ambiguous grammar
a) Construct the collection of sets of LR(O) items for this grammar.
b) Construct an NFAin. which each state is an LR(0) item from (a). Show that the Photograph of the canonical collection of LR(O) items for this grammar is the same as Ihe DFA constructed from the NFA using the subset construction.
c) Construct the parsing table using the SLR Algorithm 4.8.
d) Show all moves allowed by the table from (c) on the input abab.
e) Construct the canonical parsing table.
f) Construct the parsing table using the LALR Algorithm 4.11. g) Construct the parsing table using the LALR Algorith m 4. 13,