GATE Computer ScienceHardGATE CSE

How many cells of the LL(1) parsing table of E → T E′; E′ → + T E′ | ε; T → F T′; T′ → * F T′ | ε; F → ( E ) | id contain a production? (Terminals: id, +, *, (, ), $.)

  1. A. 11
  2. B. 13
  3. C. 15
  4. D. 16

Correct answer: B. 13

E: 2 cells, E′: 3 (+, ), $), T: 2, T′: 4 (*, +, ), $) and F: 2, a total of 13.

More Compiler Design questions

Exams that ask this topic