Production grammar


#1

consider the production grammar
S -> AB | AS
A -> a | aA
B -> b
which of the following regular expression corresponding to the production grammar ?
a) (ab)*
b) a(ab)* b
c) aab+
d) aa
b


#2

the grammar corresponds to regular grammar, a+b. Unfortunately, none of the option is correct