I have a homework problem which I could use some help on. I need to convert the following EBNF statement to BNF
<S> -> <A>{b<A>}
<A> -> a[b]<A>
This is what I have come up with so far;
<S> -> <A> | <A><S> | b<A>
<A> -> a<A> | ab<A>
It doesn't feel right, mainly because it's a WAG. The example in my book (Concepts of Programming Languages, Sebesta) is not helping me at all. So if anyone has any insight, it would be greatly appreciated. Thanks!