feat: implement functions

This commit is contained in:
samsonium
2026-10-15 02:23:43 +03:00
parent cc3087296f
commit 2c206822ca
15 changed files with 391 additions and 36 deletions
+9
View File
@@ -18,6 +18,13 @@ typedef struct
bool error;
} fzl_walk_res_t;
// Function context descriptor
typedef struct
{
fzl_node_t *fn;
size_t initial_env_lvl;
} fzl_walk_ctx_t;
// Walker descriptor
typedef struct
{
@@ -30,6 +37,8 @@ typedef struct
fzl_symtable_t *syms[64];
size_t sym_top;
fzl_walk_ctx_t *ctx;
} fzl_walker_t;
// Allocate new walker