Transcript Grammars