diff options
| author | Mel <mel@rnrd.eu> | 2026-01-25 00:57:56 +0100 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2026-01-25 00:57:56 +0100 |
| commit | 4dc6b49db40eaebf700d5c26c93c5f33b3db60ac (patch) | |
| tree | 8b1450f743e27016ae4d78780a5e0e4901622bdc /boot/catboot.c | |
| parent | fce4a99dbfab5af623bb05d9e10807efeced5a47 (diff) | |
| download | catskill-4dc6b49db40eaebf700d5c26c93c5f33b3db60ac.tar.zst catskill-4dc6b49db40eaebf700d5c26c93c5f33b3db60ac.zip | |
Allow different transpile pass output types
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'boot/catboot.c')
| -rw-r--r-- | boot/catboot.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/boot/catboot.c b/boot/catboot.c index a0b4ca1..40756ac 100644 --- a/boot/catboot.c +++ b/boot/catboot.c @@ -134,8 +134,10 @@ debug_transpile_pass(struct Source_File source_file) return parser_result; } + struct Transpile_Output output = transpile_output_from_file(stdout); + struct Transpiler transpiler; - transpiler_new(&transpiler, stdout); + transpiler_new(&transpiler, output); return transpiler_catskill_to_c(&transpiler, &tree); } @@ -243,8 +245,10 @@ default_command(struct Command_Arguments* arguments) goto end; } + struct Transpile_Output output = transpile_output_from_file(output_file); + struct Transpiler transpiler; - transpiler_new(&transpiler, output_file); + transpiler_new(&transpiler, output); if (transpiler_catskill_to_c(&transpiler, &tree) != 0) { log_error("transpiler finished with errors\n"); |
