public static ExecutionQueue ParseIt(string s) { Parser p = new Parser(); p.ParseIt(s); return p.eqResult; }
private void DoFunction(ExecutionItem ei) { Variant v; FunctionDesc fd = new FunctionDesc(ei.itemString); foreach(string s in ei.itemParams) { Parser p = new Parser(); p.ParseIt(s); ExecutionQueue eq; eq = p.eqResult; Calculator c = new Calculator(); fd.Add(c.CalcIt(eq)); } v = EmbeddedFunction(fd); if(v.VarType != VariantType.vtUnknow) calcStack.Push(v); else throw(new CalcException("Bad function " + ei.itemString)); }