Example 4.47: Let us construct the SLR table for the augmented expression grammar. The canonical collection of sets of LR (0) items for the grammar was shown in Fig. 4.31. First consider the set of items I0: E'->@E E->@E+T E->@T T->@T*F T->@F F->@(E) F->@id The ...
Constructing SLR Parsing Table: 1. Construct the canonical collection of sets of LR(0) items for G. C ¬ {I 0 ,...,I n } 2. Create the parsing action table as follows If a is a terminal, A→ a •a b in I i and goto(I i ,a)=I j then action[i,a] is shi