summaryrefslogtreecommitdiff
path: root/MLKEnvironment.h
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-06-12 19:44:53 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-06-12 19:44:53 +0200
commita6955cf42df675518514e4da54f36174de9eb736 (patch)
tree0e80aa71d1810a5edaef7b5e8458b937a05279a7 /MLKEnvironment.h
parente17a65b7e6e2696b2e68068079d95def7671b4e5 (diff)
Simplify MLKEnvironment.
Diffstat (limited to 'MLKEnvironment.h')
-rw-r--r--MLKEnvironment.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/MLKEnvironment.h b/MLKEnvironment.h
index fe2be16..b40ea5a 100644
--- a/MLKEnvironment.h
+++ b/MLKEnvironment.h
@@ -3,12 +3,13 @@
#import "MLKLispValue.h"
-@class NSMutableDictionary, MLKLinkedList, MLKSymbol;
+@class NSMutableDictionary, MLKSymbol;
@interface MLKEnvironment : MLKLispValue
{
- MLKLinkedList *_bindings;
+ MLKEnvironment *_parent;
+ NSMutableDictionary *_bindings;
}
-(MLKEnvironment *) init;
@@ -20,4 +21,8 @@
-(void) addBinding:(MLKSymbol *)symbol to:(id)value;
-(void) setBinding:(MLKSymbol *)symbol to:(id)value;
-(id) valueForBinding:(MLKSymbol *)symbol;
+
+// Private methods.
+-(void) setBinding:(MLKSymbol *)symbol to:(id)value inEnvironment:(MLKEnvironment *)env;
+-(id) valueForBinding:(MLKSymbol *)symbol inEnvironment:(MLKEnvironment *)env;
@end