S -> BB
B -> aB | bB | a | b
How many SLR conflicts will occur when we try make parsing table for it.
a) 0 b) 1 c) 2 d) None of these
----------------------------------------------------------------
Doubt: Do we count 2 SR conflicts for the same state as 2 separate conflicts. I mean to say that 'SR conflicts in parse table and SR conflicts in states can vary?' i.e, Suppose, as in one cell of parse table if we have 3 productions [ B -> a. ; B -> .a ; B -> .aB ] Then as you can see there are 2 SR conflicts in 1 state. So, do we count it as 1 conflict or 2 conflicts.
So, in the above parse table for given grammer (in Qstn). As you can see, there is such a situation in I3 (left-bottom) and in I4 (right-bottom). So, how many SR conflicts are there 2 or 4 ??