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