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

Discussion

The chief practical advantage of bottom up over top down parsing is

  • A.it can be written by hand more easily than recursive descent
  • B.it accepts a strictly larger class of grammars
  • C.it always produces better error messages than top down parsing
  • D.no token of lookahead is needed for it to decide anything

Answer: B

Deciding after the whole right side has been seen is a weaker requirement than deciding at the start. Error messages and hand implementation are generally worse, not better. Coverage is what settles the choice for most parser generator users.

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

Post your comment

Please log in or register to post a comment.