roza/lib/Value.hpp

27 lines
412 B
C++

#ifndef roza_VALUE_HPP
#define roza_VALUE_HPP
#include "commons.hpp"
#include "SrcLoc.hpp"
#include "Type.hpp"
namespace roza
{
class Value
{
public:
explicit Value(int value, SrcLoc loc);
virtual ~Value();
std::shared_ptr<Type> type() const { return m_type; }
std::string string() const;
private:
std::shared_ptr<Type> m_type;
int m_int_val;
SrcLoc m_loc;
};
}
#endif