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

Discussion

A symbol table for a language with type declarations must distinguish

  • A.names denoting types from names denoting values
  • B.names of odd length from names of even length
  • C.names declared early from names declared late
  • D.names in comments from names in executable statements

Answer: A

The C typedef problem shows why this matters, since whether a name is a type changes how a construct parses. The distinction is recorded as an attribute on the entry. The scanner then asks the table which kind of token to return.

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

Post your comment

Please log in or register to post a comment.