2,945 views
1 votes
1 votes
S -> AB

A -> aBB | epsilon

B -> bAA | epsilon

What will be the CFG after removal of NULL production

My doubt is in this grammer epsilon is also accepted So we cant remove it right else the equivalent grammer will not be same as this grammer so What should be the answer of such problem if said to get rid of null productions?

1 Answer

0 votes
0 votes

Null Production cannot be removed if it is generated from start symbol. For example a*

if you try to remove epsilon production it will be changed to a+

Related questions

0 votes
0 votes
1 answer
2
srestha asked Jan 21, 2017
547 views
TRUE / FALSEAll ∈-productions can be removed from any context free grammar.
3 votes
3 votes
2 answers
4
Meenakshi Sharma asked Aug 5, 2016
1,751 views
is null production allowed in all type of grammar