Given grammar G: S->aS| AB A-> e B-> e D-> b Reduce the grammar, removing all the e productions:
Given grammar G: S->aS| AB A-> e B-> e D-> b Reduce the grammar, removing all the e productions: Correct Answer S->aS| AB| A| B| a, D-> b
We will replace all the nullables wherever they appear in the right hand side of any production. D will not be erased as we are just removing nullable variables not completely simplifying the grammar.
মোঃ আরিফুল ইসলাম
Feb 20, 2025