COMPILER DESIGN

TOOLS AND TECHNIQUES FOR COMPILER DESIGN

MISCELLENOUS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
An LALR can have Shift-Reduce confict if and only if
A
LR(0) have Shift-reduce conflict
B
SLR have Shift-reduce conflict
C
CLR have Shift-reduce conflict
D
None of the above
Explanation: 

Detailed explanation-1: -Overview. The Shift-Reduce Conflict is the most common type of conflict found in grammars. It is caused when the grammar allows a rule to be reduced for particular token, but, at the same time, allowing another rule to be shifted for that same token.

Detailed explanation-2: -A shift-reduce conflict occurs in a state that requests both a shift action and a reduce action. A reduce-reduce conflict occurs in a state that requests two or more different reduce actions.

There is 1 question to complete.