refactor(ast): one file per ast_type -- UNSTABLE (4)

This commit is contained in:
Matteo Flebus 2026-01-15 15:59:42 +01:00
parent e3ec484621
commit 38f5a35885

16
src/utils/ast/ast_list.c Normal file
View file

@ -0,0 +1,16 @@
#include "utils/ast/ast.h"
struct ast *ast_create_list(struct list *ast_list);
struct ast_list *ast_get_list(struct ast *node);
bool ast_is_list(struct ast *node)
void ast_free_list(struct ast_list *ast_list)
{
if (ast_list == NULL)
return;
list_deep_destroy(ast_list->children);
free(ast_list);
}