Computer Science EngineeringHard

Which property immediately makes a grammar unsuitable for LL(1) parsing?

  1. A. Left recursion
  2. B. Right recursion
  3. C. Having epsilon productions
  4. D. Having terminals on the right side

Correct answer: A. Left recursion

A left-recursive non-terminal has overlapping FIRST sets for its alternatives, so no LL(1) table can be built.

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

Exams that ask this topic