aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
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;