summaryrefslogtreecommitdiff
path: root/MLKLexicalEnvironment.h
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-06-23 19:02:42 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-06-23 19:02:42 +0200
commit3aa255629a915314b71c04820833b683ff9234fc (patch)
treeef0ed440cadee353c3800cd8232ee483bf7508c0 /MLKLexicalEnvironment.h
parent1c181e7b07ee551d6f76416972fe38ff411ffc40 (diff)
Initialise the global environment on startup.
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;