implemented function parsing

This commit is contained in:
Lorenzo Torres 2025-12-03 18:22:34 +01:00
parent 7d6436bb97
commit b504739d59
6 changed files with 80 additions and 9 deletions

View file

@ -191,6 +191,15 @@ typedef struct _ast_node {
char *name;
usize name_len;
} structure;
struct {
member *parameters;
usize parameters_len;
char *name;
usize name_len;
char *type;
usize type_len;
struct _ast_node *body;
} function;
struct {
variant *variants;
char *name;