aboutsummaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-11-29 18:09:12 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-11-29 18:09:12 -0500
commitf66f8ad7119207b99f00ea2ea389550ee65db5b3 (patch)
tree5b5a7c887b311e3de2f2cb293b1228598c5b9eb1 /ast.h
parent4b5e4cd1f21582f5e5fa682ab4e4bff252963468 (diff)
Add serialization and deserialization
Diffstat (limited to 'ast.h')
-rw-r--r--ast.h8
1 files changed, 8 insertions, 0 deletions
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;
};