2005-05-01 11:48:36 +00:00
|
|
|
#ifndef __Cons_h
|
|
|
|
#define __Cons_h
|
|
|
|
#include "SchemeObject.h"
|
|
|
|
|
|
|
|
@interface Cons: SchemeObject
|
|
|
|
{
|
2011-01-09 10:41:24 +00:00
|
|
|
SchemeObject []car, cdr;
|
2005-05-01 11:48:36 +00:00
|
|
|
}
|
2011-01-09 10:41:24 +00:00
|
|
|
+ (id) newWithCar: (SchemeObject []) a cdr: (SchemeObject []) d;
|
|
|
|
- (id) initWithCar: (SchemeObject []) a cdr: (SchemeObject []) d;
|
|
|
|
- (SchemeObject []) car;
|
|
|
|
- (void) car: (SchemeObject []) a;
|
|
|
|
- (SchemeObject []) cdr;
|
|
|
|
- (void) cdr: (SchemeObject []) d;
|
2005-05-01 11:48:36 +00:00
|
|
|
@end
|
|
|
|
|
2011-01-09 10:41:24 +00:00
|
|
|
@extern Cons []cons (SchemeObject []car, SchemeObject []cdr);
|
|
|
|
@extern BOOL isList (SchemeObject []ls);
|
|
|
|
@extern integer length (SchemeObject []foo);
|
2005-05-01 11:48:36 +00:00
|
|
|
|
|
|
|
#endif //__Cons_h
|