diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-03-24 19:04:57 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-03-24 19:04:57 -0400 |
| commit | 1c9d47c29f745b6ee1ae18d780ca05f5a330c388 (patch) | |
| tree | e67fda31f55e47ce064ffb128491557e70b97398 /tomo.c | |
| parent | d07d2f2530aa1f25dc2cd34796f2a29d9b467b0d (diff) | |
Print ASTs as XML instead of janky custom syntax
Diffstat (limited to 'tomo.c')
| -rw-r--r-- | tomo.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -214,8 +214,8 @@ int transpile(const char *filename, bool force_retranspile) } if (verbose) { - FILE *out = popen("bat -P --file-name=AST", "w"); - fputs(ast_to_str(ast), out); + FILE *out = popen("xmllint --format - | bat -P --file-name=AST", "w"); + CORD_put(ast_to_xml(ast), out); pclose(out); } |
