fix: now compiles and works for simple commands + clang format

This commit is contained in:
matteo 2026-01-17 19:11:55 +01:00
parent 6099bbb9e3
commit 352c122549
23 changed files with 168 additions and 150 deletions

View file

@ -1,7 +1,7 @@
#include "utils/ast/ast.h"
#include <assert.h>
#include "utils/ast/ast.h"
struct ast *ast_create_list(struct list *list)
{
struct ast_list *ast_list = malloc(sizeof(struct ast_list));
@ -16,7 +16,7 @@ struct ast *ast_create_list(struct list *list)
struct ast_list *ast_get_list(struct ast *node)
{
assert(node != NULL);
return (struct ast_list*)node->data;
return (struct ast_list *)node->data;
}
bool ast_is_list(struct ast *node)