diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-02-10 15:36:35 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-02-10 15:36:35 -0500 |
| commit | 87f7c5c5d88039910ae09fd26e52304683fadf50 (patch) | |
| tree | d1d309924cfbdead1df5bc40570607ba81c5d136 | |
| parent | 2c9ee0c629834bea159f033db2d9a42a4f8110a2 (diff) | |
Print input source
| -rw-r--r-- | nextlang.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -32,6 +32,12 @@ int main(int argc, char *argv[]) errx(1, "Could not compile!"); if (getenv("VERBOSE")) { + FILE *out = popen(heap_strf("bat --file-name='%s'", argv[1]), "w"); + fputs(f->text, out); + fclose(out); + } + + if (getenv("VERBOSE")) { FILE *out = popen("bat --file-name=AST", "w"); fputs(ast_to_str(ast), out); fclose(out); |
