Regular Grammar to Language

44 Views Asked by At

I have a doubt about this grammar and which language generates, the Regular Grammar is:

$S → AB$
$AB → ABB$
$AB → AAB$

$B → b$

$A → a$

I guessed it only generates two languages.This one {ababbb} and {abaaba}, what do you think.