Arrange the steps of constructing an SLR parsing table in the order performed.
1. compute the FOLLOW sets of the nonterminals
2. augment the grammar with a new start production
3. fill the action and goto tables from the items and FOLLOW sets
4. construct the canonical collection of LR(0) item sets
Answer: A
Augmentation comes first so the item sets include the accepting configuration. The collection is then built, FOLLOW computed, and the two tables filled from those ingredients. Every step is mechanical, which is why the whole process can be automated.
Please log in or register to report this question.