aboutsummaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-02-12 14:31:01 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-02-12 14:31:01 -0500
commit4b8a72de3fe50a5768e405514f6c5db432759886 (patch)
tree15b9de43aa7c28a90d0a106fd46f5643d8c5cb46 /ast.c
parent04dddda811afe6ee0a9edc65f2a0486bdd88d520 (diff)
Print moment ASTs
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 b960a2e1..2097b547 100644
--- a/ast.c
+++ b/ast.c
@@ -161,6 +161,7 @@ CORD ast_to_xml(ast_t *ast)
T(FieldAccess, "<FieldAccess field=\"%s\">%r</FieldAccess>", data.field, ast_to_xml(data.fielded))
T(Optional, "<Optional>%r</Optional>", ast_to_xml(data.value))
T(NonOptional, "<NonOptional>%r</NonOptional>", ast_to_xml(data.value))
+ T(Moment, "<Moment/>")
T(DocTest, "<DocTest>%r<output>%r</output></DocTest>", optional_tagged("expression", data.expr), xml_escape(data.output))
T(Use, "<Use>%r%r</Use>", optional_tagged("var", data.var), xml_escape(data.path))
T(InlineCCode, "<InlineCode>%r</InlineCode>", xml_escape(data.code))