A top down parser builds the parse tree
Answer: A
Correct answer: starting at the root and working toward the leaves
A top down parser begins with the start symbol and repeatedly expands nonterminals until the leaves match the input, which is why it is also called predictive: it must guess which production to apply before seeing what that production will derive. Bottom up parsing works the other way, from the leaves inward.
Please log in or register to report this question.