split the grammar in a submodule