Stochastic grammars are a probabilistic generalisation of the formalism proposed by Chomsky and developed by the early compiler writers.
Grammars were popularised for biological sequence analysis by e.g. DavidSearls and (later, in a probabilistic modeling context) by SeanEddy, RichardDurbin, DavidHaussler, YasubumiSakakibaraet al.