This repository has been archived on 2023-09-10. You can view files and clone it, but cannot push or open issues/pull-requests.
joko/lib/Type.hpp

31 lines
552 B
C++

#ifndef jk_TYPE_HPP
#define jk_TYPE_HPP
#include "commons.hpp"
#define TYPE_TYPE(G) \
G(TYPE_NIL), \
G(TYPE_INT), \
G(TYPE_FUNCTION), \
G(TYPE_CODE), \
G(TYPE_REF)
namespace jk
{
JK_ENUM(Type, TYPE_TYPE);
class Type
{
public:
explicit Type(TypeType type);
virtual ~Type();
TypeType type() const { return m_type; }
private:
TypeType m_type;
};
}
#endif