lang: codegen: redesign codegen to use a stack-based state machine

This commit is contained in:
2025-04-14 20:15:05 +01:00
parent 5630132a69
commit 670b7c5a33
7 changed files with 442 additions and 4 deletions

12
lang/codegen/try.c Normal file
View File

@@ -0,0 +1,12 @@
#include "codegen.h"
enum ivy_status try_code_generator(struct ivy_codegen *gen, struct ivy_ast_node *node)
{
return IVY_ERR_NOT_SUPPORTED;
}
enum ivy_status try_catch_code_generator(
struct ivy_codegen *gen, struct ivy_ast_node *node)
{
return IVY_ERR_NOT_SUPPORTED;
}