Exemple #1
0
 public static ExecutionQueue ParseIt(string s)
 {
     Parser p = new Parser();
     p.ParseIt(s);
     return p.eqResult;
 }
Exemple #2
0
 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));
 }