Print input source
This commit is contained in:
parent
2c9ee0c629
commit
87f7c5c5d8
@ -31,6 +31,12 @@ int main(int argc, char *argv[])
|
|||||||
if (!ast)
|
if (!ast)
|
||||||
errx(1, "Could not compile!");
|
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")) {
|
if (getenv("VERBOSE")) {
|
||||||
FILE *out = popen("bat --file-name=AST", "w");
|
FILE *out = popen("bat --file-name=AST", "w");
|
||||||
fputs(ast_to_str(ast), out);
|
fputs(ast_to_str(ast), out);
|
||||||
|
Loading…
Reference in New Issue
Block a user