Discussion
LR parsers read their input from ............. to ............. and produce a .............. derivation.
Answer: A
LR parsers read their input from Left, Right, Rightmost: left to right, producing a rightmost derivation.
In LR, the L means the input is scanned from left to right and the R means a rightmost derivation is constructed, in reverse. The parser works bottom-up, shifting tokens and reducing handles, and the sequence of reductions is a rightmost derivation traced backwards.
A leftmost derivation from a left-to-right scan describes LL (top-down) parsers. No standard parser reads its input from right to left.
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development