From 8171a38b7130849e3049a4ea15a4fd06c154d9b0 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 29 Feb 2024 13:28:39 -0500 Subject: Add type namespaces --- typecheck.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'typecheck.c') diff --git a/typecheck.c b/typecheck.c index 3d408857..1f79d308 100644 --- a/typecheck.c +++ b/typecheck.c @@ -749,4 +749,10 @@ bool can_be_mutated(env_t *env, ast_t *ast) } } +type_t *parse_type_string(env_t *env, const char *str) +{ + type_ast_t *ast = parse_type_str(str); + return ast ? parse_type_ast(env, ast) : NULL; +} + // vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 -- cgit v1.2.3