Could anyone please step me through the process of obtaining a regular grammar from a regular expression? I found few 'tutorials', but I am still unable to turn a more complicated regular expression into a grammar.
How would you tackle ((a+b)*(c|d))+a?
?
I though of
A -> aB
A -> aA
B -> bA
A -> cC
A -> dC
C -> cA
C -> dA
C -> a
C -> epsilon
But it's obviously incorrect.