From 2283b43f733d95fe1c95fd0b7b838a1d450b007a Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Tue, 24 Jun 2008 16:16:11 +0200 Subject: Make the environment handling system aware of bindings as first-class values. --- MLKLexicalContext.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'MLKLexicalContext.h') diff --git a/MLKLexicalContext.h b/MLKLexicalContext.h index 5eca3d6..2bf2bc4 100644 --- a/MLKLexicalContext.h +++ b/MLKLexicalContext.h @@ -18,6 +18,8 @@ #import "MLKLispValue.h" +#import + @class MLKEnvironment, MLKLexicalEnvironment, MLKSymbol, NSLinkedList, NSSet, NSMutableDictionary, NSString, MLKCons, MLKFuncallable; @@ -29,8 +31,8 @@ MLKEnvironment *_macros; MLKEnvironment *_symbolMacros; MLKEnvironment *_goTags; - NSMutableDictionary *_functionLocations; - NSMutableDictionary *_variableLocations; + NSMutableSet *_functions; + NSMutableSet *_variables; id _declarations; MLKLexicalContext *_parent; } @@ -58,10 +60,10 @@ -(void) setSymbolMacro:(MLKFuncallable *)function forSymbol:(MLKSymbol *)symbol; -(id) goTagForSymbol:(MLKSymbol *)symbol; --(id) variableLocationForSymbol:(MLKSymbol *)symbol; --(MLKLexicalEnvironment *) instantiateWithVariables:(NSDictionary *)variables - functions:(NSDictionary *)functions; +// FIXME? +//-(MLKLexicalEnvironment *) instantiateWithVariables:(NSDictionary *)variables +// functions:(NSDictionary *)functions; -(void) addVariable:(MLKSymbol *)symbol; -(void) addFunction:(MLKSymbol *)symbol; -- cgit v1.2.3