Integer::Integer(const Integer& other){ value = atoi(other.get_value().c_str()); }
//------------- comparison operator --------------------------- bool operator ==(const Fraction& lhs, const Integer &rhs) { return( rhs.get_value()*lhs.get_denumerator() == lhs.get_numerator()); }
void PrintVisitor::visit(const Integer& node) { m_os << node.get_value(); }