Esempio n. 1
0
        public override object Get(RuntimeState state, object[] parametersHint)
        {
            object v = from.Get(state, null);

            to.Set(state, v);
            return(v);
        }
Esempio n. 2
0
        public override object Run(RuntimeState state)
        {
            object returned = expression.Get(state);

            state.Returning = state.Scope;
            return(returned);
        }
Esempio n. 3
0
        public override object Run(RuntimeState state)
        {
            while ((bool)condition.Get(state))
            {
                object returned = body.Run(state);

                if (state.Returning != null)
                {
                    return(returned);
                }
            }

            return(null);
        }
Esempio n. 4
0
 public override object Run(RuntimeState state)
 {
     if ((bool)condition.Get(state, null))
     {
         return(trueBody.Run(state));
     }
     else if (falseBody != null)
     {
         return(falseBody.Run(state));
     }
     else
     {
         return(null);
     }
 }
Esempio n. 5
0
 public override object Run(RuntimeState state)
 {
     return(child.Get(state, null));
 }
Esempio n. 6
0
 public override object Run(RuntimeState state)
 {
     Console.WriteLine((string)expression.Get(state));
     return(null);
 }