Doesn't compile yet. Working on it.
[lispp.git] / LispCons.h
blob24f344f5ce39d45a8f926772ddc652eb51ec11ec
1 #if !defined(H_LISPCONS)
2 #define H_LISPCONS
4 #include "LispNil.h"
5 #include <utility>
7 namespace Lisp
10 struct Cons : public LispObj
13 void make(PointerType car, PointerType cdr)
15 object.tag.setType(eConsObj);
16 object.resize(2);
17 object[0] = car;
18 object[1] = cdr;
21 PointerType car()
23 return object[0];
27 PointerType cdr()
29 return object[1];
36 #endif