Computer Science EngineeringHard

Left recursion must be eliminated from a grammar before it can be used with

  1. A. top-down (predictive) parsing
  2. B. bottom-up LR parsing
  3. C. lexical analysis
  4. D. register allocation

Correct answer: A. top-down (predictive) parsing

A left-recursive production makes a recursive-descent parser loop forever.

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

Exams that ask this topic