summaryrefslogtreecommitdiff
path: root/MLKLinkedList.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 /MLKLinkedList.h
Beginnings of a Lisp compiler.
Diffstat (limited to 'MLKLinkedList.h')
-rw-r--r--MLKLinkedList.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/MLKLinkedList.h b/MLKLinkedList.h
new file mode 100644
index 0000000..70e4604
--- /dev/null
+++ b/MLKLinkedList.h
@@ -0,0 +1,26 @@
+/* -*- mode: objc; coding: utf-8 -*- */
+/* Copyright 2008, Matthias Benkard. */
+
+#import "Foundation/NSObject.h"
+#import "MLKLispValue.h"
+
+@class MLKCons;
+
+
+@interface MLKLinkedList : NSObject
+{
+ MLKCons *_firstCons;
+}
+
+-(MLKLinkedList*) init;
+-(MLKLinkedList*) initWithCons:(MLKCons*)cons;
+
+-(void) push: (id)object;
+-(id) pop;
+-(MLKCons*) firstCons;
+-(BOOL) null;
+
+#ifdef __OBJC2__
+-(NSUInteger) countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id *)stackbuf count:(NSUInteger)len;
+#endif
+@end