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

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

            state.Returning = state.Scope;
            return(returned);
        }
예제 #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);
        }
예제 #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);
     }
 }
예제 #5
0
 public override object Run(RuntimeState state)
 {
     return(child.Get(state, null));
 }
예제 #6
0
 public override object Run(RuntimeState state)
 {
     Console.WriteLine((string)expression.Get(state));
     return(null);
 }