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

Discussion

The symbol table is usually updated by semantic rules that

  • A.run only after the entire parse has been completed
  • B.are attached to the terminal symbols rather than the productions
  • C.have side effects rather than merely computing attribute values
  • D.compute a synthesised attribute holding the whole table

Answer: C

Installing an entry is a side effect. Such rules are permitted in a translation scheme, but their order of execution then matters, which is why action placement must be specified precisely. A definition without placement leaves the behaviour of side effects undefined.

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

Post your comment

Please log in or register to post a comment.