Consider the following grammar.
(a) Explain why the grammar is or is not LALR(1).
(b) Is the language of this grammar the same as the language of the grammar in Exercise 39? Why or why not?
Exercise 39
Recall the dangling else problem introduced in Chapter Chapter : global: five. Following is a grammar for a simplified language that allows conditional statements.
Explain why the following grammar is or is not LALR(1).