22 lines
424 B
C
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;
|
|
}
|