From 38f5a358850ab5cb328800140956fa20ec455838 Mon Sep 17 00:00:00 2001 From: Matteo Flebus Date: Thu, 15 Jan 2026 15:59:42 +0100 Subject: [PATCH] refactor(ast): one file per ast_type -- UNSTABLE (4) --- src/utils/ast/ast_list.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/utils/ast/ast_list.c diff --git a/src/utils/ast/ast_list.c b/src/utils/ast/ast_list.c new file mode 100644 index 0000000..de178ee --- /dev/null +++ b/src/utils/ast/ast_list.c @@ -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); +}