diff options
author | Bad Diode <bd@badd10de.dev> | 2022-04-06 08:20:49 -0300 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2022-04-06 08:20:49 -0300 |
commit | a2274155bce516f904486e7f0ddf20d01093251b (patch) | |
tree | 3a97dc20cc48d93ae0d529f686af80577912720e /src/main.c | |
parent | 11df0f4556f526189234be216fa16a2fcb8c308b (diff) | |
download | bdl-a2274155bce516f904486e7f0ddf20d01093251b.tar.gz bdl-a2274155bce516f904486e7f0ddf20d01093251b.zip |
Add TODO.md file to keep track of open tasks
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 19 |
1 files changed, 0 insertions, 19 deletions
@@ -26,30 +26,11 @@ void | |||
26 | process_source(const StringView *source, const char *file_name) { | 26 | process_source(const StringView *source, const char *file_name) { |
27 | // Read tokens. | 27 | // Read tokens. |
28 | Token *tokens = tokenize(source); | 28 | Token *tokens = tokenize(source); |
29 | // print_tokens(tokens); | ||
30 | check_errors(file_name); | 29 | check_errors(file_name); |
31 | 30 | ||
32 | // Parser. | 31 | // Parser. |
33 | parse(tokens); | 32 | parse(tokens); |
34 | // print_program(program); | ||
35 | check_errors(file_name); | 33 | check_errors(file_name); |
36 | |||
37 | // if (errors.n != 0) { | ||
38 | // report_errors(&errors, file_name); | ||
39 | // free_objects(); | ||
40 | // array_free(tokens); | ||
41 | // exit(EXIT_FAILURE); | ||
42 | // } | ||
43 | // array_free(tokens); | ||
44 | |||
45 | // // TODO: Optimization. | ||
46 | |||
47 | // // Compilation. | ||
48 | // ProgramIr program_ir = compile(program); | ||
49 | // (void)program_ir; | ||
50 | |||
51 | // // Free resources. | ||
52 | // free_objects(); | ||
53 | } | 34 | } |
54 | 35 | ||
55 | void | 36 | void |