Take code from stdin. Version bump.

This commit is contained in:
Christoffer Lerno
2022-10-18 19:26:45 +02:00
committed by Christoffer Lerno
parent f8f249ee2c
commit 7d58ce0dcb
9 changed files with 75 additions and 2 deletions

View File

@@ -242,6 +242,11 @@ void sema_analysis_run(void)
if (loaded) continue;
if (!parse_file(file)) has_error = true;
}
if (active_target.read_stdin)
{
if (!parse_stdin()) has_error = true;
}
if (has_error) exit_compiler(EXIT_FAILURE);
compiler_parsing_time = bench_mark();