Пример #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);
 }