#include #include #include "Constant.h" #include "Type.h" Constant::Constant(Type *_type, std::string _value): type(_type), value(_value) {} Constant::~Constant() {} Constant *Constant::clone() const { return 0; } void Constant::print( std::ostream &os ) const { os << value; if( type ) { os << " (type: "; type->print( os ); os << ")"; } }