public static void ResolveYield(string value) { var controller = FindObjectOfType <CompilerController>(); PyProcessor pyProcessor = controller._processor; pyProcessor.ResolveYield(pyProcessor.Factory.Create(value)); controller.UpdateIntractability(); }
private void Compile(string code) { var watch = Stopwatch.StartNew(); _coloredCodeLines = coloredInputText.text.Split('\n'); var compiler = new PyCompiler(); _processor = (PyProcessor)compiler.Compile(code); _opCodes = compiler.ToArray(); watch.Stop(); ConsoleLogger.Info($"Compiled source in {watch.ElapsedMilliseconds} ms."); _processor.AddBuiltin(_myBuiltins); UpdateIntractability(); }
public void StopProcess() { _processor = null; UpdateIntractability(); }