How can I convert some regular language to its equivalent Context Free Grammar?
Is it necessary to construct the DFA corresponding to that regular expression or is there some rule for such a conversion?
For example, consider the following regular expression
01+10(11)*
How can I describe the grammar corresponding to the above RE?
Change A+B to grammar
Change A* to
Change AB to
and proceed recursively on A and B. Base cases are empty language (no productions) and a single symbol.
In your case
If the language is described by finite automaton: