Discussion
Synthesised attributes fit bottom up parsing naturally because
Answer: B
Correct answer: the value of a left side is computed from those of its right side
A synthesised attribute flows upward, and a bottom up parser reduces a right side only once all its symbols are complete - so their values are already on the value stack when the action runs. The fit is exact, which is why Yacc-style tools support synthesised attributes with no machinery beyond the value stack.
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