#include "ast.h" #include static struct ast *ast_create(enum ast_type type, void *data) { struct ast *node = malloc(sizeof(struct ast)); if (!node) return NULL; node->type = type; node->data = data; return node; }