Newer
Older
test_yacc_lex / node.c
@ApricotSavor ApricotSavor on 13 Jan 2017 199 bytes adder test
#include "node.h"
#include <stdlib.h>

node* node_float_new(double value) {
    node_float* nf = malloc(sizeof(node_float));
    nf->type = NODE_FLOAT;
    nf->value = value;
    return (node*)nf;
}