I'm looking for hints on the following exercise from Introduction to Automata Theory, Languages and Computation by Hopcroft and Ullman.
Let $G$ be a grammar where all the productions are of the form $A\to xB$ and $A\to x$, where $A$ and $B$ are single variables and $x$ is a string of terminals. Show that $L(G)$ can be generated by a regular grammar.
This is from the second chapter of the book, so the solution should just require grammars (automata don't appear until chapter 3).
I assume that "Show that $L(G)$ can be generated by a regular grammar" means that I have to show the language generated, since this can be shown as regular grammar just by pointing out the productions.
This is where I get a bit confused...
Edit: Wrong usage of production so this is wrong, therefore what i did below is the wrong way to tackle this exercise
If i start doing the productions: \begin{align*} A&\to xB\\ \text{(with second)} A&\to AB\\ \text{(with first)} A&\to xBB \end{align*} And so on... so in the (n)th step $A^* → x^{n-1}B^n$ Since There would always be one $B$ more than $x$.
I was thinking that maybe I could change $xB$ for $A$ then for $x$ again to have just the string of terminals $x$ resulting in what the language generates, and this is where I think I am probably not understanding something right. I assume I am wrong because there cant be a non terminal when generating a Language...Right? Or am I just doing it all wrong?
Thank you for your time. I'm learning in Japan and my professor's English isn't very good so I can't ask him.