lambda-calculus/expression/inheritance.h
2025-01-13 20:36:07 -06:00

28 lines
573 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,
struct color_factory* cfactory,
bool with_color);
struct stringtree* (*prettyprint_errors)(
struct expression* this);
struct value* (*evaluate)(
struct expression*,
struct environment*,
struct booleans* booleans);
void (*free)(
struct expression*);
};