lambda-calc-1/statement/execute.c

29 lines
552 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 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, ostream, print_value, print_with_color);
EXIT;
}