public static object EvalScriptInterpreter(string src, string lang, object seff, ScriptInterpreter parent, OutputDelegate wl) { var si = LoadScriptInterpreter(lang, seff, parent); object so = si.Read("EvalScriptInterpreter read: " + src, new StringReader(src.ToString()), wl); if (so is CmdResult) { return((CmdResult)so); } if (so == null) { return(ACmdResult.Complete(lang + " " + src, "void", true)); } if (si.Eof(so)) { return(ACmdResult.Complete(lang + " " + src, "EOF " + so, true)); } object o = si.Eval(so); return(o); }
protected bool thisBool(string key) { lock (SyncRoot) return(ACmdResult.GetBool(ParamMap, key)); }