Пример #1
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));
            }
        }
Пример #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));
 }
Пример #3
0
 public void Enqueue(ExecutionItem ei)
 {
     base.Enqueue(ei);
 }
Пример #4
0
 public void Enqueue(ExecutionItem ei)
 {
     base.Enqueue(ei);
 }