# Consider the language consisting of all strings of properly balanced parentheses and brackets.(a) Give LL(1) and SLR(1) grammars for this language.(b) Give the corresponding LL(1) and SLR(1) parsing tables.(c) For each grammar, show the parse tree for ([]([]))[](()).(d) Give a trace of the actions of the parsers in constructing these trees.

Chapter 2, Exercises #14

Consider the language consisting of all strings of properly balanced parentheses and brackets.

(a) Give LL(1) and SLR(1) grammars for this language.

(b) Give the corresponding LL(1) and SLR(1) parsing tables.

(c) For each grammar, show the parse tree for ([]([]))[](()).

(d) Give a trace of the actions of the parsers in constructing these trees.

## This problem has been solved!

Do you need an answer to a question different from the above? Ask your question!

**Related Book For**