lambda-calculus/expression/prettyprint.c
2025-01-13 20:36:07 -06:00

29 lines
563 B
C

#include <assert.h>
#include <debug.h>
#include "struct.h"
#include "inheritance.h"
#include "prettyprint.h"
struct stringtree* expression_prettyprint(
int *out_chosen_color,
struct expression* this,
struct color_factory* cfactory,
unsigned precedence_level)
{
ENTER;
assert(this);
assert(this->inheritance);
assert(this->inheritance->prettyprint);
struct stringtree* tree = (this->inheritance->prettyprint)(
out_chosen_color,
this, cfactory, precedence_level);
EXIT;
return tree;
}