Add test helper stream method for pairs
Make separate types for syntax and lexical grammars

This way, the separator characters can be added as a field to
lexical grammars only