From f66f8ad7119207b99f00ea2ea389550ee65db5b3 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 29 Nov 2024 18:09:12 -0500 Subject: Add serialization and deserialization --- ast.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ast.c') diff --git a/ast.c b/ast.c index 750245f4..a1916089 100644 --- a/ast.c +++ b/ast.c @@ -161,6 +161,8 @@ CORD ast_to_xml(ast_t *ast) T(DocTest, "%r%r", optional_tagged("expression", data.expr), xml_escape(data.output)) T(Use, "%r%r", optional_tagged("var", data.var), xml_escape(data.path)) T(InlineCCode, "%r", xml_escape(data.code)) + T(Serialize, "%r", ast_to_xml(data.value)) + T(Deserialize, "%r%r", type_ast_to_xml(data.type), ast_to_xml(data.value)) default: return "???"; #undef T } -- cgit v1.2.3