diff options
author | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-03-23 22:29:11 +0200 |
---|---|---|
committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-03-23 22:29:11 +0200 |
commit | c87f5a8871edf6880b894a00b180c554ffd46d0a (patch) | |
tree | 8f4ac966d1ca37884bf55078b8318d0ba198af9e /src/ast.c | |
parent | 350f6c40fa18c35bde9489225175c82de44ba709 (diff) | |
download | fwd-c87f5a8871edf6880b894a00b180c554ffd46d0a.tar.gz fwd-c87f5a8871edf6880b894a00b180c554ffd46d0a.zip |
start sketching out type system
Diffstat (limited to 'src/ast.c')
-rw-r--r-- | src/ast.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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); |