Refining of the GrammarDefinition API before pluging the engine