1.

A top down parser generates __________(a) Rightmost Derivation(b) Right most derivation in reverse(c) Left most derivation(d) Left most derivation in reverseThis question was posed to me in quiz.Question is taken from Bottom-Up Parsing-1 topic in section Bottom Up Parsing of Compiler

Answer»

Right answer is (c) Left most derivation

The best I can explain: Top-down parsing is a parsing strategy where one first looks at the HIGHEST level of the PARSE tree and works down the parse tree by using the REWRITING RULES of a formal grammar.



Discussion

No Comment Found

Related InterviewSolutions