aboutsummaryrefslogtreecommitdiff
path: root/src/typecheck.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-21 18:21:56 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-21 18:21:56 -0400
commit43f8f0f62aebdc08702ae346944a7063c8fc123d (patch)
tree1deebdd6b62ff99df0299b2d8c1819ba69061d1c /src/typecheck.c
parent2c3f82704a647621bda49a0bdf5914eeb04df195 (diff)
Switch from XML to s-expressions and add --parse flag for printing them
Diffstat (limited to 'src/typecheck.c')
-rw-r--r--src/typecheck.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/typecheck.c b/src/typecheck.c
index 7f901010..f255f348 100644
--- a/src/typecheck.c
+++ b/src/typecheck.c
@@ -1495,14 +1495,14 @@ type_t *get_type(env_t *env, ast_t *ast)
type_ast_t *type_ast = inline_code->type_ast;
return type_ast ? parse_type_ast(env, type_ast) : Type(VoidType);
}
- case Unknown: code_err(ast, "I can't figure out the type of: ", ast_to_xml_str(ast));
+ case Unknown: code_err(ast, "I can't figure out the type of: ", ast_to_sexp_str(ast));
case Deserialize: return parse_type_ast(env, Match(ast, Deserialize)->type);
case ExplicitlyTyped: return Match(ast, ExplicitlyTyped)->type;
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
- code_err(ast, "I can't figure out the type of: ", ast_to_xml_str(ast));
+ code_err(ast, "I can't figure out the type of: ", ast_to_sexp_str(ast));
return NULL;
}