31. An LALR(l) parser for a grammar G can have shift-reduce (S-R) conflicts if and only if
32. The grammar S → aSa |bS|c is
no mult iple ent r ies for 1 iteration, so it is LL(1)
grammer mean by LR(1) that it is Left shift
Reduced grammer and so it is also LR(1).
Hence it is both LL(1) and LR(1)35. A canonical set of items is given below S → L. > R Q → R. On input symbol > the set has
Form above diagram, we can see that there is no
shift -reduce or reduce-reduce conflict .