30 lines
599 B
Objective-C
30 lines
599 B
Objective-C
//
|
|
// MPEvaluationContext.h
|
|
// MathPad
|
|
//
|
|
// Created by Kim Wittenburg on 12.09.14.
|
|
// Copyright (c) 2014 Kim Wittenburg. All rights reserved.
|
|
//
|
|
|
|
|
|
|
|
@class MPEvaluationContext;
|
|
|
|
|
|
@interface MPEvaluationContext : NSObject
|
|
|
|
+ (MPEvaluationContext *)sharedContext;
|
|
|
|
- (void)push;
|
|
- (void)pop;
|
|
|
|
- (BOOL)defineVariable:(NSString *)variable
|
|
value:(NSDecimalNumber *)value;
|
|
- (BOOL)redefineVariable:(NSString *)variable
|
|
value:(NSDecimalNumber *)value;
|
|
- (void)undefineVariable:(NSString *)variable;
|
|
|
|
- (NSDecimalNumber *)valueForVariable:(NSString *)variable;
|
|
|
|
@end
|