lang: remove references to old mie api

This commit is contained in:
2026-03-16 15:07:57 +00:00
parent c44e976979
commit 016ee11f75
15 changed files with 170 additions and 104 deletions

View File

@@ -51,6 +51,7 @@ static struct code_generator_result gen_ident(
return gen_value_expr(gen, state, node, depth);
}
#if 0
struct ivy_ast_ident_node *ident = (struct ivy_ast_ident_node *)node;
const char *var_name = ident->n_content->t_str;
@@ -64,6 +65,8 @@ static struct code_generator_result gen_ident(
global->s_prev_node = IVY_AST_IDENT;
return CODEGEN_RESULT_OK(0);
#endif
return CODEGEN_RESULT_ERR(IVY_ERR_NOT_SUPPORTED);
}
#if 0
@@ -107,6 +110,7 @@ static enum ivy_status state_fini(
debug_printf("codegen: end of global decl\n");
struct global_codegen_state *global = (struct global_codegen_state *)state;
#if 0
const char *ident = global->s_var_ident->n_content->t_str;
struct mie_type *type = NULL;
if (global->s_value) {
@@ -133,6 +137,8 @@ static enum ivy_status state_fini(
}
return IVY_OK;
#endif
return IVY_ERR_NOT_SUPPORTED;
}
static struct code_generator_result value_received(