about summary refs log tree commit diff
path: root/boot/catboot.c
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2025-06-30 02:49:42 +0200
committerMel <mel@rnrd.eu>2025-06-30 02:49:42 +0200
commitb16cf0fc98940554ef0febfe443ef690618d5083 (patch)
tree15cd49710d66988bf0acbb1ce92f64e3ea01d473 /boot/catboot.c
parent3d983097329607cc89b63425e97527c5ec0390c8 (diff)
downloadcatskill-b16cf0fc98940554ef0febfe443ef690618d5083.tar.zst
catskill-b16cf0fc98940554ef0febfe443ef690618d5083.zip
Implement Visitor system for syntax tree, with re-written tree printer as first usage
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'boot/catboot.c')
-rw-r--r--boot/catboot.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/boot/catboot.c b/boot/catboot.c
index 79a5e2b..7ab9c4f 100644
--- a/boot/catboot.c
+++ b/boot/catboot.c
@@ -24,6 +24,7 @@
 #include "lex.c"
 #include "tree.c"
 #include "parse.c"
+#include "visit.c"
 
 const ascii*
 read_file(const ascii* path)
@@ -81,6 +82,8 @@ main(const int32 argc, const ascii* argv[])
     }
 
     tree_print(&tree);
+    printf("\n");
+    tree_printer(&tree);
 
     return EXIT_SUCCESS;
 }