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

Discussion

The symbol table must be consulted during type checking in order to

  • A.select the machine instructions for the expression
  • B.find the declared type of each name appearing in an expression
  • C.determine which of the productions the parser should apply next
  • D.settle how many passes over the source will be required

Answer: B

An expression's type is built from the types of its operands, and the types of names come from their declarations. Without the table no typing would be possible at all. Every operator then checks its operand types against what it will accept.

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

Post your comment

Please log in or register to post a comment.