}
public IConstructor convertMapToGrammar(IMap definition) {
TypeFactory TF = TypeFactory.getInstance();
TypeStore TS = new TypeStore();
Type Grammar = TF.abstractDataType(TS, "Grammar");
Type Symbol = TF.abstractDataType(TS, "Symbol");
Type Production = TF.abstractDataType(TS, "Production");
Type grammar = TF.constructor(TS, Grammar, "grammar", TF.setType(Symbol), "starts", TF.mapType(Symbol, Production), "rules");
return vf.constructor(grammar, vf.set(), definition);