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

Discussion

The chief practical benefit of expressing a translation as a syntax directed definition is

  • A.the resulting compiler always runs faster than a hand written one
  • B.the definition automatically detects errors in the source program
  • C.no parser is required once the definition has been written
  • D.the specification stays close to the grammar and is easy to check

Answer: D

Reading the rules alongside the productions makes it plain what each construct means. The translation can be reviewed against the language definition production by production. That reviewability is worth a great deal on a compiler of any size.

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

Post your comment

Please log in or register to post a comment.