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

Discussion

A syntax directed definition attaches to each production of a grammar

  • A.a set of semantic rules relating the attributes of its symbols
  • B.a pattern describing which tokens the production is allowed to contain
  • C.how tightly the operators it mentions bind and which way they group
  • D.the target machine instructions that implement the construct

Answer: A

Correct answer: a set of semantic rules relating the attributes of its symbols

A syntax directed definition pairs each production with rules saying how the attributes of the symbols in it are related - the value of the left side from those of the right, or the reverse. It says what is to be computed without saying when, which is what distinguishes it from a translation scheme.

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

Post your comment

Please log in or register to post a comment.