From c87f5a8871edf6880b894a00b180c554ffd46d0a Mon Sep 17 00:00:00 2001 From: Kimplul <kimi.h.kuparinen@gmail.com> Date: Sun, 23 Mar 2025 22:29:11 +0200 Subject: start sketching out type system --- src/ast.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/ast.c') diff --git a/src/ast.c b/src/ast.c index c236445..427c4c4 100644 --- a/src/ast.c +++ b/src/ast.c @@ -206,6 +206,11 @@ void ast_dump(int depth, struct ast *n) #define DUMP(x) case x: dump(depth, #x); break; switch (n->k) { + DUMP(AST_IMPORT); + DUMP(AST_TRAIT_DEF); + DUMP(AST_TRAIT_APPLY); + DUMP(AST_STRUCT_DEF); + DUMP(AST_STRUCT_CONT); DUMP(AST_CLOSURE); DUMP(AST_IF); DUMP(AST_NIL); @@ -636,6 +641,11 @@ const char *ast_str(enum ast_kind k) { #define CASE(x) case x: return #x; switch (k) { + CASE(AST_IMPORT); + CASE(AST_TRAIT_DEF); + CASE(AST_TRAIT_APPLY); + CASE(AST_STRUCT_DEF); + CASE(AST_STRUCT_CONT); CASE(AST_CLOSURE); CASE(AST_IF); CASE(AST_NIL); -- cgit v1.2.3