Let G=(V, T, P, S) where a production can be written as: S->aAS|a A->SbA|ba|SS Which of the following string is produced by the grammar?
Let G=(V, T, P, S) where a production can be written as: S->aAS|a A->SbA|ba|SS Which of the following string is produced by the grammar? Correct Answer aabbaa
The step wise grammar translation can be written as: aAS->aSbaA->aabAS->aabbaa