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. --- MLKLinkedList.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 MLKLinkedList.h (limited to 'MLKLinkedList.h') 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 -- cgit v1.2.3