From 39dd1ca27da9e9d88ee59565df99ee281e1b3632 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 10 Mar 2025 12:42:45 -0400 Subject: Add `convert` keyword for defining conversions --- ast.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ast.c') diff --git a/ast.c b/ast.c index aaf9e1af..367b1188 100644 --- a/ast.c +++ b/ast.c @@ -134,6 +134,8 @@ CORD ast_to_xml(ast_t *ast) optional_tagged("filter", data.filter)) T(FunctionDef, "%r%r%r", ast_to_xml(data.name), arg_list_to_xml(data.args), optional_tagged_type("return-type", data.ret_type), ast_to_xml(data.body)) + T(ConvertDef, "%r%r%r", + arg_list_to_xml(data.args), optional_tagged_type("return-type", data.ret_type), ast_to_xml(data.body)) T(Lambda, "%r%r%r)", arg_list_to_xml(data.args), optional_tagged_type("return-type", data.ret_type), ast_to_xml(data.body)) T(FunctionCall, "%r%r", ast_to_xml(data.fn), arg_list_to_xml(data.args)) -- cgit v1.2.3