Exemplo n.º 1
0
        public void execute(uint id, string command)
        {
            RPN_Function pf = getFunctionByID(id);

            if (pf == null)
            {
                return;
            }
            pf.execute(_parent, command);
        }
Exemplo n.º 2
0
 public void execute(string command)
 {
     for (int i = 0; i < _functions.Count; i++)
     {
         RPN_Function pf = _functions[i];
         if (!pf.checkName(command))
         {
             continue;
         }
         int operand = pf.Name().Length;
         pf.execute(_parent, command.Substring(operand));
         pf.advancePC(_parent);
         return;
     }
     rpnStack.setLabel(0, command);
     progMem.incrementCounter();
 }