Example #1
0
 public static CompilerCore getInstance()
 {
     if (inst == null)
     {
         inst = new CompilerCore();
     }
     return(inst);
 }
Example #2
0
 public void mainthread()
 {
     compiler = CompilerCore.getInstance();
     compiler.Lexer(code);
     compiler.arrange();
     compiler.loadSystemApi();//加载系统函数
     CompilerCore.functionlist["main"].run();
     Console.WriteLine("程序运行结束!");
 }