The SLR method for constructing parsing tables is a good starting point for studying LR parsing. We shall refer to the parsing table constructed by this method as an SLR table, and to an LR parser using an SLR-parsing table as an SLR parser. The other two methods augment the SLR method ...
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