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

Discussion

A grammar symbol may carry

  • A.no attributes whatever in a syntax directed definition
  • B.several attributes at once, both synthesised and inherited
  • C.exactly one attribute, which must be synthesised
  • D.at most two attributes, one of each kind

Answer: B

A nonterminal in a type checker might carry a type, a place and a code fragment simultaneously. The classification into S or L attributed depends on all of them together. A single inherited attribute anywhere takes the whole definition out of the S class.

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

Post your comment

Please log in or register to post a comment.