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