public bool Run(Environment env, Scope scope) { int size = code.Count(); while (scope.line < size) { var r = code[scope.line++].Execute(env); if (r == ReturnCode.None) continue; if (r == ReturnCode.Yield) return false; return true; } env.endScope(); return true; }
public void AddScope(Scope s) { s.Set(scope); scope = s; }
public void endScope() { scope = scope.End(); }
public void Set(Scope s) { next = s; }