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

Discussion

The output of a top down parser, like any parser, is

  • A.the symbol table for the whole program being compiled
  • B.the target code for the constructs recognised so far
  • C.a tree or a sequence of semantic actions reflecting the structure
  • D.the token stream annotated with all of the productions applied

Answer: C

Correct answer: a tree or a sequence of semantic actions reflecting the structure

A parser establishes the structure of the input and reports it, either as a tree or as the sequence of actions a syntax-directed translation performs. The symbol table and the target code are produced by later phases working from that structure.

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

Post your comment

Please log in or register to post a comment.