29 lines
570 B
C
29 lines
570 B
C
|
|
#include <assert.h>
|
|
|
|
#include <debug.h>
|
|
|
|
#include "struct.h"
|
|
#include "inheritance.h"
|
|
#include "prettyprint.h"
|
|
|
|
struct stringtree* statement_prettyprint(
|
|
int *out_chosen_color,
|
|
struct statement* this,
|
|
unsigned precedence_level)
|
|
{
|
|
ENTER;
|
|
|
|
assert(this);
|
|
assert(this->inheritance);
|
|
assert(this->inheritance->prettyprint);
|
|
|
|
struct stringtree* tree = (this->inheritance->prettyprint)(
|
|
/* out: */ out_chosen_color,
|
|
/* this: */ this,
|
|
/* precedence level: */ precedence_level);
|
|
|
|
EXIT;
|
|
return tree;
|
|
}
|
|
|