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

Discussion

The information a syntax directed translation carries is limited by

  • A.the class of parser used to process the grammar
  • B.the number of tokens the scanner is able to produce
  • C.what the attributes are designed to hold
  • D.the number of productions the grammar contains

Answer: C

Attributes are chosen by the designer and can hold anything. Their design is the real work; the mechanism of evaluation is mechanical once the flows have been settled. Choosing the wrong attributes is far harder to recover from than a coding error.

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

Post your comment

Please log in or register to post a comment.