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

Discussion

Reading a conflict report is easier when the generator prints

  • A.the FIRST and FOLLOW sets of all the nonterminals
  • B.the number of states in the automaton that was constructed
  • C.the items of the offending state with the dot positions shown
  • D.the complete action table for every state in the grammar

Answer: C

The items show what the parser had seen and what it expected, which usually identifies the pair of productions in conflict. Most generators produce such a report on request. Learning to read one is among the more useful practical skills in this area.

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

Post your comment

Please log in or register to post a comment.