The following grammar is an unambiguous version of the underlying grammar in Fig. 5.22. The braces {} are used only for grouping boxes, and are eliminated during translation.

a) Adapt the syntax-directed definition in Fig. 5.22 to use the above grammar.
b) Convert the syntax-directed definition or (a) into a translation scheme.
Fig. 5.22 