Improve the way define grammars