Discussion
Error productions in an LR grammar allow the author to
Answer: D
Correct answer: attach a specific diagnostic to an anticipated mistake
An error production admits a construct the language does not contain, so that the parser recognises the mistake rather than merely failing, and its action can report a message written for that case. It does not correct the program, and the parser will not proceed to generate code for the faulty construct.
No comment is present. Be the first to comment.
Loading…
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