コード例 #1
0
 internal void Compilation(string fileName)
 {
     o2Mate.Compilateur comp = new o2Mate.Compilateur();
     comp.LoadTemplates(Documents.TemplatesDirectory);
     comp.LoadSkeletons(Documents.SkeletonsDirectory);
     o2Mate.Dictionnaire dict = comp.OutputDictionary(fileName);
     dict.Save(Documents.TempDictFile);
     // le fichier de sortie n'est pas important
     comp.Debug(Documents.TempDictFile, Documents.UnusedFile, null);
     o2Mate.Compilateur compProject = new o2Mate.Compilateur();
     compProject.LoadTemplates(Documents.TemplatesDirectory);
     o2Mate.Dictionnaire dictProject = comp.Threads.Dictionary;
     dictProject.Save(Documents.TempDictFile);
     compProject.Compilation(Documents.ProjectSourceCode, Documents.TempDictFile, Documents.ProjectPage, null);
 }