Removed Prefix/Suffix Placeholder (not needed)
Added Operator Constants Removed NSMutableString from NSMutableExpression (not needed) Implemented -description Added Tests for: -description, -copy, -mutableCopy Some Logical Corrections.
This commit is contained in:
@@ -8,6 +8,11 @@
|
||||
|
||||
@class MPExpression, MPFunction;
|
||||
|
||||
extern NSString *MPAdditionOperator;
|
||||
extern NSString *MPSubtractionOperator;
|
||||
extern NSString *MPMultiplicationOperator;
|
||||
extern NSString *MPDivisionOperator;
|
||||
|
||||
@interface MPExpression : NSObject <NSCopying, NSMutableCopying, NSCoding>
|
||||
|
||||
#pragma mark Creation Methods
|
||||
@@ -25,6 +30,8 @@
|
||||
|
||||
@interface MPExpression (MPExpressionExtensionMethods)
|
||||
|
||||
+ (NSArray *)operators;
|
||||
|
||||
#pragma mark Creation Methods
|
||||
|
||||
- (id)init;
|
||||
@@ -47,12 +54,6 @@
|
||||
|
||||
- (BOOL)isEqualToExpression:(MPExpression *)anExpression;
|
||||
|
||||
// TODO: prefix and suffix operator
|
||||
/*
|
||||
- (BOOL)hasPrefix:(NSString *)aString;
|
||||
- (BOOL)hasSuffix:(NSString *)aString;
|
||||
*/
|
||||
|
||||
- (MPExpression *)expressionByAppendingString:(NSString *)aString;
|
||||
- (MPExpression *)expressionByAppendingFunction:(MPFunction *)aFunction;
|
||||
- (MPExpression *)expressionByAppendingExpression:(MPExpression *)anExpression;
|
||||
|
||||
Reference in New Issue
Block a user