|
In problem 2, in order to match the shape of the activation tree exactly, you need the "zero or more repetition" operator from Extended BNF, described on page 46 of the text. With a pure CFG or BNF, you can't exactly match the unbounded branching produced by the recursive calls in the If you prefer, you may rewrite the Mike O'D. |
to: