diff options
author | Bad Diode <bd@badd10de.dev> | 2021-11-01 14:30:30 +0100 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2021-11-01 14:30:30 +0100 |
commit | 7418a5042471a3a7f05283d36e45b6b422d9785b (patch) | |
tree | 1a041c75f8c30c0ef9adf0d14bf046344b06dc60 /src/main.c | |
parent | e64cb7e315961d3f7772b42c2170acc2bd500a69 (diff) | |
download | bdl-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.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 | ||
12 | void | 13 | void |
13 | init(void) { | 14 | init(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(); |