Discussion
Using an ambiguous expression grammar together with precedence declarations, compared with a layered unambiguous grammar, gives
Answer: A
Correct answer: a smaller table and fewer single production reductions at run time
The layered grammar encodes precedence in its structure through chains such as E to T to F, and every level costs a unit reduction at parse time as well as extra states. An ambiguous grammar with precedence declarations expresses the same language with fewer productions, so the table is smaller and the parse does less work.
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