Changeset 15334 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Expressions/ExecExpressions.cs
- Timestamp:
- 08/21/17 11:33:53 (7 years ago)
- Location:
- branches/PushGP/HeuristicLab.PushGP
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP
- Property svn:ignore
-
old new 1 1 *.user 2 packages 3 TestResults
-
- Property svn:ignore
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Expressions/ExecExpressions.cs
r15032 r15334 20 20 "If the top item of the BOOLEAN stack is TRUE then this removes the second item on the EXEC stack, leaving the first item to be executed. If it is false then it removes the first item, leaving the second to be executed.", 21 21 StackTypes.Boolean, 22 execIn: 2)]22 requiredBlockCount: 2)] 23 23 public class ExecIfExpression : StatelessExpression { 24 24 public ExecIfExpression() { } … … 45 45 "EXEC.Y", 46 46 "Inserts beneath the top item of the EXEC stack a new item of the form \"( EXEC.Y <TopItem> )\"", 47 execIn: 1)]47 requiredBlockCount: 1)] 48 48 [StorableClass] 49 49 public class ExecYExpression : StatelessExpression { … … 54 54 public override bool IsNoop(IInternalPushInterpreter interpreter) { 55 55 return interpreter.ExecStack.Count == 0 || 56 interpreter.Configuration.MaxP ointsInProgram< 2 ||56 interpreter.Configuration.MaxProgramLength < 2 || 57 57 (interpreter.ExecStack.Top.IsProgram && ((PushProgram)interpreter.ExecStack.Top).Depth == interpreter.Configuration.MaxDepth); 58 58 } … … 80 80 "EXEC.K", 81 81 "Removes the second item on the EXEC stack.", 82 execIn: 2)]82 requiredBlockCount: 2)] 83 83 [StorableClass] 84 84 public class ExecKExpression : StatelessExpression { … … 106 106 "EXEC.S", 107 107 "Pops 3 items from the EXEC stack called A, B, and C. Then pushes a list containing B and C back onto the EXEC stack, followed by another instance of C, followed by another instance of A.", 108 execIn: 3)]108 requiredBlockCount: 3)] 109 109 [StorableClass] 110 110 public class ExecSExpression : StatelessExpression { … … 167 167 "EXEC.WHILE", 168 168 "Executes top EXEC item recursively as long top BOOLEAN is TRUE.", 169 StackTypes.Boolean, execIn: 1)]169 StackTypes.Boolean, requiredBlockCount: 1)] 170 170 [StorableClass] 171 171 public class ExecWhileExpression : StatelessExpression { … … 196 196 "EXEC.DO*WHILE", 197 197 "Executes top EXEC item recursively until max. amount of eval. expressions is reached or top EXEC item removes the the recursive call.", 198 execIn: 1)]198 requiredBlockCount: 1)] 199 199 [StorableClass] 200 200 public class ExecDoWhileExpression : StatelessExpression { … … 220 220 "Top EXEC item is only executed, if top BOOLEAN is TRUE.", 221 221 StackTypes.Boolean, 222 execIn: 1)]222 requiredBlockCount: 1)] 223 223 [StorableClass] 224 224 public class ExecWhenExpression : StatelessExpression {
Note: See TracChangeset
for help on using the changeset viewer.