diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -44,7 +44,11 @@ void print_ast() { void print_sem() { yyparse(); - semantics_check(ast_root); + if (ast_root) + { + semantics_check(ast_root); + } + else exit(1); } void print_help() { |