diff options
author | Bad Diode <bd@badd10de.dev> | 2022-04-19 10:55:40 -0300 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2022-04-19 10:55:40 -0300 |
commit | d9538a32bfe8e2cb9de4cdcfdf8a8c6e1a27ac3c (patch) | |
tree | 28e5f760f72b838bd2408351c0b525ab20a049e1 /src/main.c | |
parent | c69929cc501203829082b810bafe75a22947e00c (diff) | |
download | bdl-d9538a32bfe8e2cb9de4cdcfdf8a8c6e1a27ac3c.tar.gz bdl-d9538a32bfe8e2cb9de4cdcfdf8a8c6e1a27ac3c.zip |
Fix semantic analysis bug in block scoped functions
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -52,6 +52,7 @@ process_source(const StringView *source, const char *file_name) { | |||
52 | 52 | ||
53 | // Symbol table generation and type checking. | 53 | // Symbol table generation and type checking. |
54 | ParseTree *parse_tree = semantic_analysis(roots); | 54 | ParseTree *parse_tree = semantic_analysis(roots); |
55 | check_errors(file_name); | ||
55 | if (mode == PRINT_SEMANTIC) { | 56 | if (mode == PRINT_SEMANTIC) { |
56 | viz_ast(parse_tree->roots); | 57 | viz_ast(parse_tree->roots); |
57 | return; | 58 | return; |