Regular Grammar In Automata