A top-down parser constructs the parse tree
Answer: C
Correct answer: from the root downward, expanding nonterminals as it goes
A top-down parser starts with the start symbol and works towards the input, choosing a production for each nonterminal and expanding it, so the tree is built from the root. A bottom-up parser does the reverse, combining tokens into larger structures until it reaches the start symbol.
Please log in or register to report this question.