Annotating the syntax tree with type information is the work of
Answer: C
Semantic analysis walks the tree, consults the symbol table for the types of names, computes the type of each expression and records it on the node. The annotated tree is then passed on to intermediate code generation.
Please log in or register to report this question.