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

Discussion

A grammar has 30 states, 15 terminals including the end marker and 8 nonterminals. How many cells do the action and goto tables have together?

  • A.450
  • B.240
  • C.1150
  • D.690

Answer: D

The action table has 30 times 15 which is 450 cells and the goto table 30 times 8 which is 240, giving 690 in all. Most cells are error entries, which is why compression pays. A table this size is entirely ordinary for a real language grammar.

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

Post your comment

Please log in or register to post a comment.