diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -33,7 +33,7 @@ process_source(const StringView *source, const char *file_name) { | |||
33 | } | 33 | } |
34 | 34 | ||
35 | // Parser. | 35 | // Parser. |
36 | Root *roots = parse(tokens, &errors); | 36 | Program program = parse(tokens, &errors); |
37 | if (errors.n != 0) { | 37 | if (errors.n != 0) { |
38 | report_errors(&errors, file_name); | 38 | report_errors(&errors, file_name); |
39 | free_objects(); | 39 | free_objects(); |
@@ -45,7 +45,7 @@ process_source(const StringView *source, const char *file_name) { | |||
45 | // TODO: Optimization. | 45 | // TODO: Optimization. |
46 | 46 | ||
47 | // Compilation. | 47 | // Compilation. |
48 | compile(roots); | 48 | compile(program.roots); |
49 | 49 | ||
50 | // Free resources. | 50 | // Free resources. |
51 | free_objects(); | 51 | free_objects(); |