diff --git a/nextlang.c b/nextlang.c index 7b56d0a..5cedfde 100644 --- a/nextlang.c +++ b/nextlang.c @@ -31,6 +31,12 @@ int main(int argc, char *argv[]) if (!ast) 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);