Machine-translated by Google. Questions are authored in English.
Top

Discussion

A syntax directed definition is L-attributed when each inherited attribute of a right side symbol depends only on

  • A.the attributes of symbols appearing anywhere in the production
  • B.the synthesised attributes of the symbols to its right
  • C.attributes computed in a completely different production
  • D.the left side's inherited attributes and symbols to its left

Answer: D

Correct answer: the left side's inherited attributes and symbols to its left

The restriction is to information already available when the symbol is reached in a left-to-right traversal - what came down from the parent, and what has been computed from the siblings already passed. That is precisely what makes a single depth-first left-to-right pass sufficient.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.