lambda-calc-1/expression/inheritance.h

27 lines
533 B
C

#include <stdbool.h>
struct booleans;
struct color_factory;
struct expression;
struct environment;
struct expression_inheritance
{
struct stringtree* (*prettyprint)(
int *out_chosen_color,
struct expression* this,
bool with_color);
struct stringtree* (*prettyprint_errors)(
struct expression* this);
struct value* (*evaluate)(
struct expression*,
struct environment*,
struct booleans* booleans);
void (*free)(
struct expression*);
};