aboutsummaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-07-04 18:00:01 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-07-04 18:00:01 -0400
commit6a105fbd801f10bd6c8cee32fd6d45a279f33e1b (patch)
treedc03ec9eec0ac65b40d6cb6053d55475dc132fb2 /ast.c
parent78960b1461a8fb184de4ffddf2d2ec4df729fb05 (diff)
Add 'defer'
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ast.c b/ast.c
index 4971b841..3beff6b1 100644
--- a/ast.c
+++ b/ast.c
@@ -139,6 +139,7 @@ CORD ast_to_xml(ast_t *ast)
T(Stop, "<Stop>%r</Stop>", data.target)
T(PrintStatement, "<PrintStatement>%r</PrintStatement>", ast_list_to_xml(data.to_print))
T(Pass, "<Pass/>")
+ T(Defer, "<Defer>%r<Defer/>", ast_to_xml(data.body))
T(Return, "<Return>%r</Return>", ast_to_xml(data.value))
T(Extern, "<Extern name=\"%s\">%r</Extern>", data.name, type_ast_to_xml(data.type))
T(StructDef, "<StructDef name=\"%s\">%r<namespace>%r</namespace></StructDef>", data.name, arg_list_to_xml(data.fields), ast_to_xml(data.namespace))