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

Discussion

Which of the following is NOT a top-down parsing method?

  • A.shift-reduce parsing
  • B.recursive descent
  • C.predictive parsing
  • D.LL(1) table driven parsing

Answer: A

The first three all build the tree from the root downward. Shift-reduce parsing is the general bottom-up technique of which the LR family are the practical instances. The direction in which the tree is built is what separates the two families.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.