lang: codegen: remove old var declaration generator

This commit is contained in:
2025-09-08 16:10:11 +01:00
parent ee402fb437
commit e5ea7b1134
6 changed files with 8 additions and 66 deletions

View File

@@ -69,14 +69,14 @@ static struct code_generator_result value_received(
return CODEGEN_RESULT_ERR(IVY_ERR_BAD_SYNTAX);
}
ret->s_value = value;
ret->s_value = value->v_value.mie_value;
ret->s_prev_node = IVY_AST_EXPR;
return CODEGEN_RESULT_OK(CODEGEN_R_POP_GENERATOR);
}
struct code_generator return_generator = {
.g_type = CODE_GENERATOR_VAR,
.g_type = CODE_GENERATOR_RETURN,
.g_state_size = sizeof(struct return_codegen_state),
.g_state_init = state_init,
.g_state_fini = state_fini,