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

30 lines
523 B
C

#include <debug.h>
/*#include <mpq/inc.h>*/
/*#include <parse/token/inc.h>*/
#include <value/inc.h>
#include "../new.h"
#include "inheritance.h"
#include "struct.h"
#include "new.h"
struct expression* new_literal_expression(
struct value* value)
{
ENTER;
struct literal_expression* this = (void*) new_expression(
/* inheritance: */ &literal_expression_inheritance,
/* alloc size: */ sizeof(*this));
this->value = inc_value(value);
EXIT;
return (void*) this;
}