Question discussion

Which of the following phase of the compiler, gathers type information and saves it in either the syntax tree or the symbol table, for subs…

3533Medium DSSSB TGT Computer Science 0 replies 2 views
0

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?

  • ASemantic Analyzer
  • BCode Analyzer
  • CSyntax Analyzer
  • DLexical Analyzer
Correct answer: A

Explanation

The semantic analyzer gathers type information and stores it in the syntax tree or symbol table.

Discussion 0

Nobody has replied yet. Start the discussion!