From 43f8f0f62aebdc08702ae346944a7063c8fc123d Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 21 Apr 2025 18:21:56 -0400 Subject: Switch from XML to s-expressions and add --parse flag for printing them --- src/ast.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/ast.h') diff --git a/src/ast.h b/src/ast.h index c628e38c..2de9f007 100644 --- a/src/ast.h +++ b/src/ast.h @@ -349,10 +349,12 @@ struct ast_s { } __data; }; -CORD ast_to_xml(ast_t *ast); -const char *ast_to_xml_str(ast_t *ast); const char *ast_source(ast_t *ast); -CORD type_ast_to_xml(type_ast_t *ast); + +CORD ast_to_sexp(ast_t *ast); +const char *ast_to_sexp_str(ast_t *ast); +CORD type_ast_to_sexp(type_ast_t *ast); + PUREFUNC bool is_idempotent(ast_t *ast); void visit_topologically(ast_list_t *ast, Closure_t fn); CONSTFUNC bool is_update_assignment(ast_t *ast); -- cgit v1.2.3