72 views

| 72 views

Neither S1 nor S2.

S1: LR(1) parser will have Reduce -Reduce conflict. In Initial state, due to shift on terminal 'c'  two productions will go to the same state, Productions A->c . , $and B -> c . ,$  under the same lookaheads and results in R-R conflict.

S2: It is not LL(1), Under S, we have two production for terminal c.

by Junior (751 points)