/// <summary> /// constructor /// </summary> public NakoCompiler() { // システムの初期化 LoaderInfo = new NakoCompilerLoaderInfo(); LoaderInfo.Init(); RegisterSysCall(); }
public TestNakoPluginADO() { NakoCompilerLoaderInfo info = new NakoCompilerLoaderInfo(); info.PreloadModules = new NakoPlugin.INakoPlugin[] { new NakoBaseSystem(), new NakoPluginADO.NakoPluginADO() }; com = new NakoCompiler(info); }
public NakoPluginOfficePowerPointTest() { NakoCompilerLoaderInfo info = new NakoCompilerLoaderInfo(); info.PreloadModules = new NakoPlugin.INakoPlugin[] { new NakoBaseSystem(), new NakoPluginOfficePowerPoint.NakoPluginOfficePowerPoint() }; com = new NakoCompiler(info); runner = new NakoInterpreter(); }
/// <summary> /// constructor /// </summary> /// <param name="info"></param> public NakoCompiler(NakoCompilerLoaderInfo info) { if (info == null) { LoaderInfo = new NakoCompilerLoaderInfo(); LoaderInfo.Init(); } this.LoaderInfo = info; if (info.source != null) { this.source = info.source; } RegisterSysCall(); }
public TestNakoPluginFile() { NakoCompilerLoaderInfo info = new NakoCompilerLoaderInfo(); info.PreloadModules = new NakoPlugin.INakoPlugin[] { new NakoBaseSystem(), new NakoPluginArray(), new NakoPluginString(), new NakoPluginFile.NakoPluginFile() }; com = new NakoCompiler(info); string assemblyPath = System.Reflection.Assembly.GetExecutingAssembly().Location; string assemblyDirectory = System.IO.Path.GetDirectoryName(System.IO.Path.GetDirectoryName(System.IO.Path.GetDirectoryName(assemblyPath))); this.sjisFilePath = System.IO.Path.Combine(assemblyDirectory, "SJISTEST.txt"); }
NakoCompilerLoaderInfo GetLoaderInfo() { //TODO: CNAKO2 LOADER INFO var loaderInfo = new NakoCompilerLoaderInfo(); // 設定によって Console.Write() メソッドを使わないように指示する(テストで使用) var oNakoPluginConsole = new NakoPluginConsole.NakoPluginConsole(); oNakoPluginConsole.UsePrintLog = UseLog; loaderInfo.Init(); loaderInfo.ImportantModules = new NakoPlugin.INakoPlugin[] { oNakoPluginConsole }; return loaderInfo; }