Changeset 15289 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Expressions
- Timestamp:
- 07/26/17 19:34:13 (7 years ago)
- Location:
- branches/PushGP/HeuristicLab.PushGP
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP
-
Property
svn:ignore
set to
*.user
-
Property
svn:ignore
set to
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Expressions/PrintExpressions.cs
r15189 r15289 72 72 73 73 public override void Eval(IInternalPushInterpreter interpreter) { 74 Eval(interpreter, interpreter.BooleanStack); 74 var value = interpreter.BooleanStack.Pop(); 75 interpreter.PrintStack.Push(value); 75 76 } 76 77 } … … 92 93 93 94 public override void Eval(IInternalPushInterpreter interpreter) { 94 Eval(interpreter, interpreter.CharStack); 95 var value = interpreter.CharStack.Pop(); 96 interpreter.PrintStack.Push(value); 95 97 } 96 98 } … … 113 115 114 116 public override void Eval(IInternalPushInterpreter interpreter) { 115 Eval(interpreter, interpreter.ExecStack); 117 var value = interpreter.ExecStack.Pop(); 118 interpreter.PrintStack.Push(value); 116 119 } 117 120 } … … 136 139 var str = value.ToString(interpreter.Configuration.FloatStringFormat, CultureInfo.InvariantCulture); 137 140 138 if (interpreter.PrintStack.IsEmpty) 139 interpreter.PrintStack.Push(str); 140 else 141 interpreter.PrintStack.Top += str; 141 interpreter.PrintStack.Push(str); 142 142 } 143 143 } … … 180 180 181 181 public override void Eval(IInternalPushInterpreter interpreter) { 182 Eval(interpreter, interpreter.StringStack); 182 var value = interpreter.StringStack.Pop(); 183 interpreter.PrintStack.Push(value); 183 184 } 184 185 }
Note: See TracChangeset
for help on using the changeset viewer.