30 lines
523 B
C
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;
|
|
}
|
|
|