From 7418a5042471a3a7f05283d36e45b6b422d9785b Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Mon, 1 Nov 2021 14:30:30 +0100 Subject: Add x86_64 compilation for arithmetic expressions --- src/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 6a683a7..cf4bfa4 100644 --- a/src/main.c +++ b/src/main.c @@ -8,6 +8,7 @@ #include "errors.c" #include "lexer.c" #include "parser.c" +#include "compiler.h" void init(void) { @@ -41,9 +42,10 @@ process_source(const StringView *source, const char *file_name) { } array_free(tokens); - // TODO: Semantic analysis. // TODO: Optimization. - // TODO: Compilation. + + // Compilation. + compile(roots); // Free resources. free_objects(); -- cgit v1.2.1