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

Discussion

The primary output of the syntax analysis phase is

  • A.a symbol table populated with every name declared anywhere
  • B.the three address code for the whole program
  • C.a tree representation of the program's grammatical structure
  • D.the flat sequence of lexemes handed over by the previous phase

Answer: C

Whether a parse tree or an abstract syntax tree, the structure is what later phases traverse. Some single pass compilers build no tree and act during the parse instead. Whether to build one is a design decision rather than a requirement of the method.

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

Post your comment

Please log in or register to post a comment.