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

Discussion

A syntax directed definition whose rules only print or emit output has

  • A.no attribute values at all, only side effects
  • B.exactly one synthesised attribute per production
  • C.inherited attributes carrying the output stream
  • D.a dependency graph with a cycle at every node

Answer: A

Such a definition is entirely about the order in which output appears, so it must be expressed as a translation scheme with the actions placed explicitly. A bare definition would leave the sequence of output undetermined.

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

Post your comment

Please log in or register to post a comment.