What is the difference between top-down and bottom-up parsing?
PYQ TPSC Computer/IT Posts 2024
What is the difference between top-down and bottom-up parsing?
- A.
Top-down parsing starts from the start symbol/root, while bottom-up parsing starts from the input symbols/leaves.
- B.
Top-down verifies rules against previous tokens, bottom-up constructs the parse tree
- C.
Top-down is more efficient for smaller grammars, bottom-up for larger ones
- D.
All of the above.
Attempted by 348 students.
Sign up free to check your answer
Sign up freeLoading lesson…

