aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-11-01 14:30:30 +0100
committerBad Diode <bd@badd10de.dev>2021-11-01 14:30:30 +0100
commit7418a5042471a3a7f05283d36e45b6b422d9785b (patch)
tree1a041c75f8c30c0ef9adf0d14bf046344b06dc60 /src/main.c
parente64cb7e315961d3f7772b42c2170acc2bd500a69 (diff)
downloadbdl-7418a5042471a3a7f05283d36e45b6b422d9785b.tar.gz
bdl-7418a5042471a3a7f05283d36e45b6b422d9785b.zip
Add x86_64 compilation for arithmetic expressionsv0.10
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 4 insertions, 2 deletions
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 @@
8#include "errors.c" 8#include "errors.c"
9#include "lexer.c" 9#include "lexer.c"
10#include "parser.c" 10#include "parser.c"
11#include "compiler.h"
11 12
12void 13void
13init(void) { 14init(void) {
@@ -41,9 +42,10 @@ process_source(const StringView *source, const char *file_name) {
41 } 42 }
42 array_free(tokens); 43 array_free(tokens);
43 44
44 // TODO: Semantic analysis.
45 // TODO: Optimization. 45 // TODO: Optimization.
46 // TODO: Compilation. 46
47 // Compilation.
48 compile(roots);
47 49
48 // Free resources. 50 // Free resources.
49 free_objects(); 51 free_objects();