Example #1
0
 public override void Execute(LogicExecutionState state)
 {
     if (this.Condition.Truthful(state))
     {
         this.Statement.Execute(state);
     }
 }
 public override void Execute(LogicExecutionState state)
 {
     if (this.Condition.Truthful(state))
     {
         this.Statement.Execute(state);
     }
 }
Example #3
0
        public override void Execute(LogicExecutionState state)
        {
            while (this.Condition.Truthful(state))
            {
                this.Statement.Execute(state);

                if (state.Finished)
                {
                    return;
                }
            }
        }
        public override void Execute(LogicExecutionState state)
        {
            while (this.Condition.Truthful(state))
            {
                this.Statement.Execute(state);

                if (state.Finished)
                {
                    return;
                }
            }
        }
Example #5
0
 public abstract void Assign(LogicExecutionState state, object value);
Example #6
0
 public override void Assign(LogicExecutionState state, object value)
 {
     state.Variables[this.Identifier] = value;
 }
Example #7
0
 public override void Execute(LogicExecutionState state)
 {
     state.Return(this.Expression.Result(state));
 }
Example #8
0
 public abstract void Execute(LogicExecutionState state);
Example #9
0
 public abstract void Execute(LogicExecutionState state);
 public override object Result(LogicExecutionState state)
 {
     return state.Variables[this.Identifier];
 }
 public override void Assign(LogicExecutionState state, object value)
 {
     state.Variables[this.Identifier] = value;
 }
 public abstract void Assign(LogicExecutionState state, object value);
 public override void Execute(LogicExecutionState state)
 {
     state.Return(this.Expression.Result(state));
 }
Example #14
0
 public override object Result(LogicExecutionState state)
 {
     return(state.Variables[this.Identifier]);
 }