Merge branch 'dev' of gitlab.cri.epita.fr:guillem.george/42sh into dev

This commit is contained in:
Jean 2026-01-31 15:41:52 +01:00
commit 46dbc7ad6b
4 changed files with 53 additions and 10 deletions

View file

@ -10,18 +10,19 @@ struct ast_function
};
/**
* Checks if the given AST node is an ast_function
* @brief: Checks if the given AST node is an ast_function
*/
bool ast_is_function(struct ast *node);
/**
* Retrieves the function data from the given AST node.
* Assumes that the node is of type AST_function.
* @brief: Retrieves the function data from the given AST node.
* Assumes that the node is of type AST_function.
*/
struct ast_function *ast_get_function(struct ast *node);
/**
* Creates a new AST node representing an AST_function
* @brief: Creates a new AST node representing an AST_function
* @warning: name must be already allocated.
*/
struct ast *ast_create_function(char *name, struct ast *value);
/*