Discussion
Inherited attributes are awkward in a bottom up parser because
Answer: C
Correct answer: the parent is not created until after its children are complete
An inherited attribute passes information from a parent or a left sibling down into a subtree, but a bottom up parser reduces the children first and creates the parent only afterwards. There is nothing to inherit from at the time it would be needed, so such attributes require marker nonterminals or values reached at known depths in the 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