private static void CreateCodeFiles(string file) { var codefile = $"{file}.dwx"; var dwsfile = $"{file}.dws"; if (File.Exists(codefile)) { return; } Console.WriteLine($"Create missing codefiles: {codefile}."); var interpreter = CreateInterpreter(); var aplc = new CodeFile(interpreter); for (var i = 0; i < N; i++) { var letter = alphabet.Substring(i, 1); Console.WriteLine($"Generating function tree: {letter}."); aplc.GenerateTfns(letter); } Console.WriteLine($"Save to: {codefile}."); aplc.CreateCodeFile(codefile, 1); Console.WriteLine($"Save to: {dwsfile}."); aplc.Dispose(); Console.WriteLine($"Done creating codefiles."); interpreter.Unload(); }