219 views

1 Answer

Best answer
0 votes
0 votes
SR Conflict  means compiler is confused wheather to shift the current input symbol on to stack or make a reduce move at that stage
e.g  some state has these things        
A  -> d.c
C  -> d.
this means Top of Stack has 'd' symbol in which BottomUpParsing is going on
Now if ip string has 'c' as the next symbol you have two options Either Shift 'c' on stack or Reduce the TOS 'd' to C
In RR Conflict the compiler is confused between two Reduce moves
e.g   A  -> d.
C  -> d.
selected by

Related questions

0 votes
0 votes
1 answer
2
Mizuki asked Aug 31, 2018
472 views
For a grammar to be LR(k), it should have a PDA? Like a DPDA or just PDA in general?
8 votes
8 votes
2 answers
3