summaryrefslogtreecommitdiff
path: root/MLKEnvironment.h
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-06-10 16:52:52 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-06-10 16:52:52 +0200
commitbd264499c08c196aa2ce69702cba0829ab24788a (patch)
treecbead7c232beb7f9b789458d0bc3734960468e01 /MLKEnvironment.h
Beginnings of a Lisp compiler.
Diffstat (limited to 'MLKEnvironment.h')
-rw-r--r--MLKEnvironment.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/MLKEnvironment.h b/MLKEnvironment.h
new file mode 100644
index 0000000..b100137
--- /dev/null
+++ b/MLKEnvironment.h
@@ -0,0 +1,19 @@
+/* -*- mode: objc; coding: utf-8 -*- */
+/* Copyright 2008, Matthias Benkard. */
+
+#import "MLKLispValue.h"
+
+@class NSMutableDictionary, MLKLinkedList, MLKSymbol;
+
+
+@interface MLKEnvironment : MLKLispValue
+{
+ MLKLinkedList *_bindings;
+}
+
+-(MLKEnvironment *) init;
+-(MLKEnvironment *) initWithParent:(MLKEnvironment *)parent;
+
+-(void) setBinding:(MLKSymbol *)symbol to:(id)value;
+-(id) valueForBinding:(MLKSymbol *)symbol;
+@end