Networks of transcriptional regulation encoded in a grammatical model