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

26 lines
497 B
C

#include <debug.h>
#include <expression/inc.h>
#include "../new.h"
#include "inheritance.h"
#include "struct.h"
#include "new.h"
struct statement* new_expression_statement(
struct expression* expression)
{
ENTER;
struct expression_statement* this = (void*) new_statement(
/* inheritance: */ &expression_statement_inheritance,
/* alloc size: */ sizeof(*this));
this->expression = inc_expression(expression);
EXIT;
return (void*) this;
}