Simulation of stochastic regular grammars through simple recurrent networks