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

Discussion

The C typedef problem illustrates that

  • A.the symbol table must be built after parsing is complete
  • B.parsing can depend on information held in the symbol table
  • C.the scanner is unable to recognise identifiers correctly
  • D.type declarations are unnecessary in a modern language

Answer: B

Whether a construct is a declaration or an expression depends on whether the name is a type. Feeding semantic information back into the parser is the usual pragmatic solution. Languages designed later often avoid the construct that causes the difficulty.

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

Post your comment

Please log in or register to post a comment.