aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2022-04-19 10:55:40 -0300
committerBad Diode <bd@badd10de.dev>2022-04-19 10:55:40 -0300
commitd9538a32bfe8e2cb9de4cdcfdf8a8c6e1a27ac3c (patch)
tree28e5f760f72b838bd2408351c0b525ab20a049e1 /src/main.c
parentc69929cc501203829082b810bafe75a22947e00c (diff)
downloadbdl-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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index fc991d2..7878c57 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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;