diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-21 18:21:56 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-21 18:21:56 -0400 |
| commit | 43f8f0f62aebdc08702ae346944a7063c8fc123d (patch) | |
| tree | 1deebdd6b62ff99df0299b2d8c1819ba69061d1c /src/ast.h | |
| parent | 2c3f82704a647621bda49a0bdf5914eeb04df195 (diff) | |
Switch from XML to s-expressions and add --parse flag for printing them
Diffstat (limited to 'src/ast.h')
| -rw-r--r-- | src/ast.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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); |
