The parse tree below represents a rightmost derivation according to the grammar S → AB, A → aS|a, B → bA. Which of the following are right-sentential forms corresponding to this derivation?
(a) aAbAba
(b) aababa
(c) aABba
(d) aSba
The question was posed to me in class test.
This intriguing question originated from The NFA with n-moves to the DFA in division Finite Automata and Regular Expression of Compiler