25 lines
525 B
Objective-C
25 lines
525 B
Objective-C
//
|
|
// MPEvaluationContext.h
|
|
// MathPad
|
|
//
|
|
// Created by Kim Wittenburg on 12.09.14.
|
|
// Copyright (c) 2014 Kim Wittenburg. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@interface MPEvaluationContext : NSObject
|
|
|
|
+ (MPEvaluationContext *)sharedContext;
|
|
|
|
- (void)push;
|
|
- (void)pop;
|
|
|
|
- (void)defineVariable:(NSString *)variable withValue:(id)value;
|
|
- (void)undefineVariable:(NSString *)variable;
|
|
- (BOOL)isVariableDefined:(NSString *)variable;
|
|
|
|
- (NSDecimalNumber *)valueForVariable:(NSString *)variable;
|
|
|
|
@end
|