summaryrefslogtreecommitdiff
path: root/MLKDynamicContext.h
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-07-07 20:16:53 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-07-07 20:16:53 +0200
commitf47f28ae81b71049496fa96e6f27b3e2794fc9cb (patch)
treebd21b52cb841b1ef65d71e0add5b0e9c812fe722 /MLKDynamicContext.h
parentffba1c0c3bb96239a7d8b4463d5b78d0455adc40 (diff)
Interpreter: Establish catch tags in the dynamic context.
Diffstat (limited to 'MLKDynamicContext.h')
-rw-r--r--MLKDynamicContext.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/MLKDynamicContext.h b/MLKDynamicContext.h
index 97f24a5..57931e3 100644
--- a/MLKDynamicContext.h
+++ b/MLKDynamicContext.h
@@ -22,6 +22,7 @@
#import <Foundation/NSObject.h>
#import <Foundation/NSDictionary.h>
+#import <Foundation/NSSet.h>
#import <Foundation/NSString.h>
@@ -29,7 +30,7 @@
{
MLKEnvironment *_conditionHandlers;
MLKEnvironment *_restarts;
- MLKEnvironment *_catchTags;
+ NSSet *_catchTags;
MLKEnvironment *_environment;
MLKEnvironment *_activeHandlerEnvironment; // needed for the Condition Firewall
MLKDynamicContext *_parent;
@@ -41,7 +42,7 @@
variables:(NSDictionary *)vars
handlers:(NSDictionary *)handlers
restarts:(NSDictionary *)restarts
- catchTags:(NSDictionary *)catchTags
+ catchTags:(NSSet *)catchTags
activeHandlerEnvironment:(MLKEnvironment *)handlerEnv;
+(MLKDynamicContext *) globalContext;
@@ -55,7 +56,8 @@
-(id) findRestart:(MLKSymbol *)symbol;
-(id) findHandler:(MLKSymbol *)symbol;
--(id) findCatchTag:(MLKSymbol *)symbol;
+
+-(BOOL) catchTagIsEstablished:(id)tag;
-(id) valueForSymbol:(MLKSymbol *)symbol;
-(void) setValue:(id)value forSymbol:(MLKSymbol *)symbol;