diff options
author | Matthias Andreas Benkard <matthias@benkard.de> | 2008-06-10 16:52:52 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <matthias@benkard.de> | 2008-06-10 16:52:52 +0200 |
commit | bd264499c08c196aa2ce69702cba0829ab24788a (patch) | |
tree | cbead7c232beb7f9b789458d0bc3734960468e01 /MLKLinkedList.h |
Beginnings of a Lisp compiler.
Diffstat (limited to 'MLKLinkedList.h')
-rw-r--r-- | MLKLinkedList.h | 26 |
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 |