Refactoring a bit and moving EBNF test grammars into their own files.