Consider a grammar with the following productions S → aαb | bαc | aB S → αS |…

GATE · 1995 · CS · Question 1 subpartsModified — slightly modified from the official paper; see the solution

Consider a grammar with the following productions

S → aαb | bαc | aB

S → αS | b

S → αbb | ab

Sα → bdb

Here α is a nonterminal. The above grammar is:

  1. A.

    Context free

  2. B.

    Regular

  3. C.

    Context sensitive

  4. D.

    LR(k)

Attempted by 12 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…