Add grammar parser

Export a `GrammarRegistry` that can load grammars that can be used to tokenize lines.