lambda-calc-1/expression/variable/evaluate.c
2025-01-13 20:36:07 -06:00

22 lines
424 B
C

#include <debug.h>
#include <environment/lookup.h>
#include "struct.h"
#include "evaluate.h"
struct value* variable_expression_evaluate(
struct expression* super,
struct environment* environment,
struct booleans* booleans)
{
ENTER;
struct variable_expression* this = (void*) super;
struct value* result = environment_lookup(environment, this->name);
EXIT;
return result;
}