lambda-calc-1/statement/execute.c
2025-01-13 20:36:07 -06:00

30 lines
598 B
C

#include <assert.h>
#include <debug.h>
#include "struct.h"
#include "inheritance.h"
#include "execute.h"
void statement_execute(
struct statement* this,
struct environment** environment,
struct booleans* booleans,
struct color_factory* cfactory,
struct wcostream* ostream,
bool print_value,
bool print_with_color)
{
ENTER;
assert(this);
assert(this->inheritance);
assert(this->inheritance->execute);
(this->inheritance->execute)(
this, environment, booleans, cfactory, ostream, print_value, print_with_color);
EXIT;
}