summaryrefslogtreecommitdiff
path: root/MLKLexicalEnvironment.h
diff options
context:
space:
mode:
Diffstat (limited to 'MLKLexicalEnvironment.h')
-rw-r--r--MLKLexicalEnvironment.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/MLKLexicalEnvironment.h b/MLKLexicalEnvironment.h
index 8d1300d..d7ce0a8 100644
--- a/MLKLexicalEnvironment.h
+++ b/MLKLexicalEnvironment.h
@@ -19,7 +19,7 @@
#include <Foundation/NSObject.h>
@class MLKEnvironment, MLKSymbol, NSLinkedList,
- NSMutableDictionary, NSString;
+ NSMutableDictionary, NSString, NSSet;
@interface MLKLexicalEnvironment : NSObject
@@ -29,12 +29,17 @@
MLKLexicalEnvironment *_parent;
}
++(void) initialize;
+
-(MLKLexicalEnvironment *) initWithParent:(MLKLexicalEnvironment *)aContext
variables:(NSDictionary *)vars
functions:(NSDictionary *)handlers;
+(MLKLexicalEnvironment *) globalEnvironment;
+-(NSSet *) variables;
+-(NSSet *) functions;
+
-(id) valueForSymbol:(MLKSymbol *)symbol;
-(void) setValue:(id)value forSymbol:(MLKSymbol *)symbol;
-(void) addValue:(id)value forSymbol:(MLKSymbol *)symbol;