public override void Execute(LogicExecutionState state) { if (this.Condition.Truthful(state)) { this.Statement.Execute(state); } }
public override void Execute(LogicExecutionState state) { while (this.Condition.Truthful(state)) { this.Statement.Execute(state); if (state.Finished) { return; } } }
public abstract void Assign(LogicExecutionState state, object value);
public override void Assign(LogicExecutionState state, object value) { state.Variables[this.Identifier] = value; }
public override void Execute(LogicExecutionState state) { state.Return(this.Expression.Result(state)); }
public abstract void Execute(LogicExecutionState state);
public override object Result(LogicExecutionState state) { return state.Variables[this.Identifier]; }
public override object Result(LogicExecutionState state) { return(state.Variables[this.Identifier]); }