From 3aa255629a915314b71c04820833b683ff9234fc Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Mon, 23 Jun 2008 19:02:42 +0200 Subject: Initialise the global environment on startup. --- MLKLexicalEnvironment.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'MLKLexicalEnvironment.h') diff --git a/MLKLexicalEnvironment.h b/MLKLexicalEnvironment.h index 8d1300d..d7ce0a8 100644 --- a/MLKLexicalEnvironment.h +++ b/MLKLexicalEnvironment.h @@ -19,7 +19,7 @@ #include @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; -- cgit v1.2.3