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.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ast.h') diff --git a/ast.h b/ast.h index 01ca9537..0cd5a033 100644 --- a/ast.h +++ b/ast.h @@ -145,6 +145,7 @@ typedef enum { DocTest, Use, InlineCCode, + Serialize, Deserialize, } ast_e; struct ast_s { @@ -326,6 +327,13 @@ struct ast_s { struct type_s *type; type_ast_t *type_ast; } InlineCCode; + struct { + ast_t *value; + } Serialize; + struct { + ast_t *value; + type_ast_t *type; + } Deserialize; } __data; }; -- cgit v1.2.3