Which one of the following kinds of derivation is used by LR parsers?
A
Leftmost
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
Rightmost in reverse
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
Rightmost
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
Leftmost in reverse
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is B Rightmost in reverse LR parser is a bottom up parser. Hence it uses right most derivation in reverse order.
So option (b) is the correct answer.