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

Discussion

Two productions appearing in the same cell of an LL(1) table indicates

  • A.that the parser will simply choose the first of the two
  • B.that the grammar is ambiguous beyond any possible repair
  • C.an error in the computation of the FIRST sets
  • D.that the grammar is not LL(1) as written

Answer: D

A conflict means one token of lookahead is not enough to decide. The grammar may still be fixable by factoring or by removing left recursion, or it may need more lookahead. The generator reports the offending cell, which usually identifies the cause.

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

Post your comment

Please log in or register to post a comment.