Changeset 15032 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Expressions/CharExpressions.cs
- Timestamp:
- 06/12/17 14:11:43 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Expressions/CharExpressions.cs
r15017 r15032 8 8 using Stack; 9 9 10 [PushExpression(StackTypes.Char, "CHAR.ISWHITESPACE", StackTypes.Boolean)] 10 /// <summary> 11 /// Pushes TRUE onto the BOOLEAN stack if the top char represents a whitespace char, otherwise FALSE. 12 /// </summary> 13 [PushExpression( 14 StackTypes.Char, 15 "CHAR.ISWHITESPACE", 16 "Pushes TRUE onto the BOOLEAN stack if the top char represents a whitespace char, otherwise FALSE.", 17 StackTypes.Boolean)] 11 18 [StorableClass] 12 19 public class CharIsWhitespaceExpression : StatelessExpression { … … 25 32 } 26 33 27 [PushExpression(StackTypes.Char, "CHAR.ISLETTER", StackTypes.Boolean)] 34 /// <summary> 35 /// Pushes TRUE onto the CHAR stack if the top char represents a letter, otherwise FALSE. 36 /// </summary> 37 [PushExpression( 38 StackTypes.Char, 39 "CHAR.ISLETTER", 40 "Pushes TRUE onto the CHAR stack if the top char represents a letter, otherwise FALSE.", 41 StackTypes.Boolean)] 28 42 [StorableClass] 29 43 public class CharIsLetterExpression : StatelessExpression { … … 42 56 } 43 57 44 [PushExpression(StackTypes.Char, "CHAR.ISDIGIT", StackTypes.Boolean)] 58 /// <summary> 59 /// Pushes TRUE onto the CHAR stack if the top char represents a digit, otherwise FALSE. 60 /// </summary> 61 [PushExpression( 62 StackTypes.Char, 63 "CHAR.ISDIGIT", 64 "Pushes TRUE onto the CHAR stack if the top char represents a digit, otherwise FALSE.", 65 StackTypes.Boolean)] 45 66 [StorableClass] 46 67 public class CharIsDigitExpression : StatelessExpression { … … 59 80 } 60 81 61 [PushExpression(StackTypes.Char, "CHAR.FROMINTEGER", StackTypes.Integer)] 82 /// <summary> 83 /// Takes the top integer, converts it to an char using ASCII encoding and pushes this char onto the CHAR stack. 84 /// </summary> 85 [PushExpression( 86 StackTypes.Char, 87 "CHAR.FROMINTEGER", 88 "Takes the top integer, converts it to an char using ASCII encoding and pushes this char onto the CHAR stack.", 89 StackTypes.Integer)] 62 90 [StorableClass] 63 91 public class CharFromIntegerExpression : StatelessExpression { … … 78 106 } 79 107 80 [PushExpression(StackTypes.Char, "CHAR.FROMFLOAT", StackTypes.Float)] 108 /// <summary> 109 /// Takes the top float, casts it to an integer, converts it to an char using ASCII encoding and pushes this char onto the CHAR stack. 110 /// </summary> 111 [PushExpression( 112 StackTypes.Char, 113 "CHAR.FROMFLOAT", 114 "Takes the top float, casts it to an integer, converts it to an char using ASCII encoding and pushes this char onto the CHAR stack.", 115 StackTypes.Float)] 81 116 [StorableClass] 82 117 public class CharFromFloatExpression : StatelessExpression { … … 97 132 } 98 133 99 [PushExpression(StackTypes.Char, "CHAR.ALLFROMSTRING", StackTypes.String)] 134 /// <summary> 135 /// Takes the top string and pushes the chars of this string onto the CHAR stack in reversed order. 136 /// </summary> 137 [PushExpression( 138 StackTypes.Char, 139 "CHAR.ALLFROMSTRING", 140 "Takes the top string and pushes the chars of this string onto the CHAR stack in reversed order.", 141 StackTypes.String)] 100 142 [StorableClass] 101 143 public class CharAllFromStringExpression : StatelessExpression {
Note: See TracChangeset
for help on using the changeset viewer.