Consider the grammar with the following productions: S → aaB | aaC B → b C → c…

Consider the grammar with the following productions:

S → aaB | aaC
B → b
C → c

Which of the following options is true?

  1. A.

    The grammar is LL(3)

  2. B.

    The grammar cannot be LL(k) for any k because the alternatives have a common prefix

  3. C.

    The grammar is LL(1)

  4. D.

    The grammar is LL(2)

Attempted by 128 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…