Changeset 14744 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Expressions/DoTimesExpressions.cs
- Timestamp:
- 03/10/17 21:42:09 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Expressions/DoTimesExpressions.cs
r14733 r14744 12 12 13 13 protected override LoopState InitState(IPushInterpreter interpreter, IStack<Expression> sourceStack) { 14 //this.State.Body = sourceStack.Pop();15 //this.State.DestinationIndex = interpreter.IntegerStack.Pop();16 //this.State.CurrentIndex = 1;17 //this.State.Incrementor = 1;18 19 14 return new LoopState( 20 15 body: sourceStack.Pop(), … … 47 42 public CodeDoTimesExpression(LoopState state) : base(state) { } 48 43 49 public override voidEval(IPushInterpreter interpreter) {50 this.Eval(interpreter, interpreter.CodeStack);44 public override bool Eval(IPushInterpreter interpreter) { 45 return this.Eval(interpreter, interpreter.CodeStack); 51 46 } 52 47 … … 70 65 public ExecDoTimesExpression(LoopState state) : base(state) { } 71 66 72 public override voidEval(IPushInterpreter interpreter) {73 this.Eval(interpreter, interpreter.ExecStack);67 public override bool Eval(IPushInterpreter interpreter) { 68 return this.Eval(interpreter, interpreter.ExecStack); 74 69 } 75 70
Note: See TracChangeset
for help on using the changeset viewer.