Redesign of the Evaluation System
This commit is contained in:
@@ -16,15 +16,9 @@
|
||||
|
||||
// Do not instanciate yourself, use evaluator property of MPExpression instead
|
||||
- (instancetype)initWithExpression:(MPExpression *)expression;
|
||||
|
||||
@property (readonly, nonatomic, weak) MPExpression *expression;
|
||||
|
||||
#pragma mark Evaluating Expressions
|
||||
@property (readonly, nonatomic, strong) NSDictionary *variableBindings;
|
||||
|
||||
- (void)bindValue:(NSDecimalNumber *)value toVariableName:(NSString *)name;
|
||||
- (void)unbindVariableName:(NSString *)name;
|
||||
|
||||
@property (readonly, nonatomic, strong) NSString *definedVariable;
|
||||
|
||||
- (NSDecimalNumber *)evaluateWithError:(MPParseError *__autoreleasing *)error;
|
||||
|
||||
Reference in New Issue
Block a user