From bd264499c08c196aa2ce69702cba0829ab24788a Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Tue, 10 Jun 2008 16:52:52 +0200 Subject: Beginnings of a Lisp compiler. --- MLKEnvironment.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 MLKEnvironment.h (limited to 'MLKEnvironment.h') 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 -- cgit v1.2.3