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

Discussion

The principal weakness of operator precedence parsing is that

  • A.it requires that the grammar be rewritten into Chomsky normal form first
  • B.it is slower than every other parsing method in common use
  • C.it applies only to a narrow class of grammars and handles errors poorly
  • D.it cannot parse expressions containing more than two operators

Answer: C

The class is small and the relation table can accept strings outside the language. Its historical appeal was that a table could be built by hand for an expression grammar. Modern generators removed that motivation almost entirely.

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

Post your comment

Please log in or register to post a comment.