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

This commit is contained in:
Matteo Flebus 2026-01-15 15:53:56 +01:00
parent 68d8a1fd13
commit e3ec484621
9 changed files with 76 additions and 9 deletions

View file

@ -3,6 +3,7 @@
#include <stdbool.h>
#include "utils/lists/lists.h"
#include "utils/ast/ast.h"
/**
@ -10,16 +11,10 @@
*/
bool ast_is_void(struct ast *node);
/**
* Retrieves the if statement data from the given AST node.
* Assumes that the node is of type AST_VOID.
*/
struct ast_void *ast_get_void(struct ast *node);
/**
* Creates a new AST node representing NOTHING
* WARNING: data will be a NULL pointer
*/
struct ast *ast_create_void(struct list *ast_list);
struct ast *ast_create_void(void);
#endif /* ! AST_VOID_H */