Session 10 Exercise
A Solution to the Exercise
A Parsing Table for the Opening Exercise
The solution to the exercise on building a parse table for the grammar from our opening exercise:
| declare | identifier | fixed | float | single | double | $ | |
|---|---|---|---|---|---|---|---|
| statement | [1] | ||||||
| option-list | [2] | [2] | [2] | [2] | [3] | ||
| option | [4] | [4] | [5] | [5] | |||
| scale | [6] | [7] | |||||
| precision | [8] | [9] |