Split grammar to its own file