00001 #include "integerliteral.h" 00002 00003 Ast& IntegerLiteral::operator = (const Ast& ast) { 00004 const IntegerLiteral& integerLiteral = dynamic_cast<const IntegerLiteral&>(ast); 00005 00006 Expression::operator=(ast); 00007 this->value = integerLiteral.value; 00008 00009 return (*this); 00010 } 00011 00012 00013 bool IntegerLiteral::operator == (const Ast& ast) const { 00014 const IntegerLiteral& integerLiteral = dynamic_cast<const IntegerLiteral&>(ast); 00015 return this->value == integerLiteral.value && Expression::operator==(ast); 00016 }