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

Discussion

The main reason LR parsing dominates parser generation tools is

  • A.it covers nearly every practical grammar with a table of modest size
  • B.it produces the best diagnostics of any parsing method
  • C.it is the only method that can possibly be implemented with a table
  • D.it requires no grammar transformations of any kind at all

Answer: A

Coverage and table size together are what settled the matter. Diagnostics are a known weakness, addressed by error productions rather than by the parsing method itself. A carefully written set of error rules narrows the gap considerably.

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

Post your comment

Please log in or register to post a comment.