diff options
author | Bad Diode <bd@badd10de.dev> | 2021-10-30 08:16:08 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2021-10-30 08:16:08 +0200 |
commit | 4ebcd99d1fadac72ea58ea46012a86c5319ef7e7 (patch) | |
tree | 548d749c8fd93a3520f56de7b594d85d83fae062 /src/main.c | |
parent | fbddf5e0c46778c1e403389ba557ef036b7b0fb5 (diff) | |
download | bdl-4ebcd99d1fadac72ea58ea46012a86c5319ef7e7.tar.gz bdl-4ebcd99d1fadac72ea58ea46012a86c5319ef7e7.zip |
Add parsing of lambda expression
Diffstat (limited to 'src/main.c')
-rwxr-xr-x | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -35,7 +35,7 @@ process_source(const StringView *source, const char *file_name) { | |||
35 | Root *roots = parse(tokens, &errors); | 35 | Root *roots = parse(tokens, &errors); |
36 | if (errors.n != 0) { | 36 | if (errors.n != 0) { |
37 | report_errors(&errors, file_name); | 37 | report_errors(&errors, file_name); |
38 | free_roots(roots); | 38 | free_objects(); |
39 | array_free(tokens); | 39 | array_free(tokens); |
40 | exit(EXIT_FAILURE); | 40 | exit(EXIT_FAILURE); |
41 | } | 41 | } |
@@ -46,7 +46,7 @@ process_source(const StringView *source, const char *file_name) { | |||
46 | // TODO: Compilation. | 46 | // TODO: Compilation. |
47 | 47 | ||
48 | // Free resources. | 48 | // Free resources. |
49 | free_roots(roots); | 49 | free_objects(); |
50 | } | 50 | } |
51 | 51 | ||
52 | void | 52 | void |