diff options
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(); |