From 08abe6f88042d3f734453e47e4a410391fd4e9f9 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Tue, 3 Jun 2025 22:53:03 +0200 Subject: Bootstrap: Codegen: Start implementation --- src/bootstrap/main.src | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/bootstrap/main.src') diff --git a/src/bootstrap/main.src b/src/bootstrap/main.src index 3ff89b3..23defd1 100644 --- a/src/bootstrap/main.src +++ b/src/bootstrap/main.src @@ -16,6 +16,7 @@ let slice = struct { import "tokenizer.src"; import "parser.src"; +import "codegen.src"; let read_file = (filename: *i8, alloc: *arena) => slice { let file = fopen(filename, "r"); @@ -57,6 +58,11 @@ let main = (argc: i64, argv: **i8) => i64 { let p = parser_init(cast(*token, ts.data), ts.data_len, alloc); let ns = parse(p); + let c = codegen_init(alloc); + let res = codegen_generate(c); + let res = codegen_compile(c); + codegen_deinit(c); + arena_free(alloc); return 0; -- cgit 1.4.1