#include #include #include #include "../prettyprint_errors.h" #include "struct.h" #include "prettyprint_errors.h" struct stringtree* error_expression_prettyprint_errors( struct expression* super) { ENTER; struct error_expression* const this = (void*) super; struct stringtree* tree = NULL; if (this->subexpression) { tree = expression_prettyprint_errors( this->subexpression); } if (!tree) { tree = new_stringtree(); } stringtree_append_cstr(tree, this->message); stringtree_append_cstr(tree, L"\n"); EXIT; return tree; }