Computer Science EngineeringHardISRO SC

Consider the grammar S -> A b | B c; A -> a A | epsilon; B -> a B | d. Is the grammar LL(1)? If so the predictive parse table has how many filled entries; if not, answer "Not LL(1)".

  1. A. 7
  2. B. 9
  3. C. Not LL(1)
  4. D. 6

Correct answer: C. Not LL(1)

Some table cell receives two productions (FIRST/FOLLOW overlap, left recursion, or a common prefix), so it is not LL(1).

More Theory of Computation, Compilers & Digital Logic (ISRO CS) questions

Exams that ask this topic