Merge branch 'master' of git+ssh://ares@repo.or.cz/srv/git/lispp
[lispp.git] / LispNil.cpp
blob579c7893b880436adca7fc40fd93cede3ae4b3b9
2 #include "LispObj.h"
3 #include "LispNil.h"
5 using namespace Lisp;
7 NIL::NIL()
11 NIL::NIL(const NIL& other)
15 Obj::eObjectType NIL::getObjectType() const
17 return Obj::eNullObj;
20 NIL* NIL::make()
22 return new NIL();
25 NIL* NIL::create() const
27 return new NIL();
31 NIL* NIL::clone() const
33 return new NIL(*this);
36 void NIL::print(std::ostream& out) const
38 out << " NIL ";
41 bool NIL::operator==(const Obj* other)
43 return (other->getObjectType() == Obj::eNullObj);