How to define the language generated by context-free grammar?

23 Views Asked by At

I have a context-free grammar defined: S -> aS, S -> Sb, S -> a

I thouht that correct answer would be: L(G) = {aab}, because: S -> aS -:> aSb -> aab but isn't. Why, and what is correct answer?