aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2022-04-06 08:20:49 -0300
committerBad Diode <bd@badd10de.dev>2022-04-06 08:20:49 -0300
commita2274155bce516f904486e7f0ddf20d01093251b (patch)
tree3a97dc20cc48d93ae0d529f686af80577912720e /src/main.c
parent11df0f4556f526189234be216fa16a2fcb8c308b (diff)
downloadbdl-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.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/main.c b/src/main.c
index c545f6a..961905f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -26,30 +26,11 @@ void
26process_source(const StringView *source, const char *file_name) { 26process_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
55void 36void