aboutsummaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-03-24 19:04:57 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-03-24 19:04:57 -0400
commit1c9d47c29f745b6ee1ae18d780ca05f5a330c388 (patch)
treee67fda31f55e47ce064ffb128491557e70b97398 /ast.h
parentd07d2f2530aa1f25dc2cd34796f2a29d9b467b0d (diff)
Print ASTs as XML instead of janky custom syntax
Diffstat (limited to 'ast.h')
-rw-r--r--ast.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ast.h b/ast.h
index 1872263c..c43c423c 100644
--- a/ast.h
+++ b/ast.h
@@ -273,8 +273,8 @@ struct ast_s {
} __data;
};
-const char *ast_to_str(ast_t *ast);
-const char *type_ast_to_str(type_ast_t *ast);
+CORD ast_to_xml(ast_t *ast);
+CORD type_ast_to_xml(type_ast_t *ast);
int printf_ast(FILE *stream, const struct printf_info *info, const void *const args[]);
ast_list_t *get_ast_children(ast_t *ast);