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

Top Down Parsing Questions and Answers

Answer: B

Correct answer: the freedom to depart from pure context free parsing where needed

A hand-written parser can consult the symbol table, look ahead as far as it likes, and handle a construct specially when the grammar cannot. Real languages contain such constructs, and that flexibility - together with the ability to produce good error messages - is why several major compilers use recursive descent.

Please log in or register to report this question.

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.

Please log in or register to report this question.

Loading…
Tags: Top Down Parsing Questions and Answers || Top Down Parsing MCQ Questions and Answers || Top Down Parsing GK Questions and Answers || Top Down Parsing GK MCQ Questions || Top Down Parsing Multiple Choice Questions and Answers || Top Down Parsing GK || GK on Top Down Parsing || Compiler Design Questions and Answers || Compiler Design MCQ Questions and Answers || Compiler Design GK Questions and Answers || GK on Compiler Design