示例#1
0
 /// <summary>
 /// constructor
 /// </summary>
 public NakoCompiler()
 {
     // システムの初期化
     LoaderInfo = new NakoCompilerLoaderInfo();
     LoaderInfo.Init();
     RegisterSysCall();
 }
示例#2
0
 /// <summary>
 /// constructor
 /// </summary>
 public NakoCompiler()
 {
     // システムの初期化
     LoaderInfo = new NakoCompilerLoaderInfo();
     LoaderInfo.Init();
     RegisterSysCall();
 }
示例#3
0
 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();
 }
示例#5
0
        /// <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();
        }
示例#6
0
 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");
 }
示例#7
0
        /// <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();
        }
示例#8
0
        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;
        }