-
Which of the following grammar rules violate the requirement of an operator grammar? P, Q, R are non – terminals, and r, s, t are terminals.
1. P → Q R
2. P → Q S R
3. P → ε
4. P → Q t R r
-
- 1 only
- 1 and 3
- 2 and 3
- 3 and 4
- 1 only
Correct Option: B
1. P → QR is not possible since two NT should include one operator as Terminal.
2. Correct
3. Again incorrect.
4. Correct.
Hence (b) is correct option.