Which of the following phase of the compiler, gathers type information and saves it in
Which of the following phase of the compiler, gathers type information and saves it in
either the syntax tree or the symbol table, for subsequent use during intermediate
code generation?
Show answerHide answer
Correct answer: (A) Semantic Analyzer
Explanation
The semantic analyzer checks meaning and gathers type information, storing it in the syntax tree or symbol table for intermediate code generation.