def __repr__(self): """ Compute a representation for the parse tree. @rtype: str """ s = [] if self.__elements: s.append(Utilities.dict_str(self.__elements)) if self.__contents: s.append(str(self.__contents)) return " = ".join(s)