S ? abSc | AA ? cAd | cd
2. convert grammar to cnf and check if it accepts abaab .
S ? ASB | nullA ? aSb | nullB ? bBa | ba
detailed and hand written solution would be rated. thanks