From 21f688c1eac5fb09ae68fd9b3cfcff687de36601 Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Thu, 26 Mar 2026 20:27:19 -0700 Subject: scope inheritance --- codegen.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'codegen.c') diff --git a/codegen.c b/codegen.c index cfb4cca..d6f212a 100644 --- a/codegen.c +++ b/codegen.c @@ -184,6 +184,8 @@ void emit_code(const struct root_node* ast, const char* path) { fprintf(outfile, "section .text\n"); scope_push(&scope); + /* TODO: register all basic types */ + /* output all non-static function declarations as globals */ const struct root_node* node = ast; while (node != NULL) { -- cgit v1.2.3