summaryrefslogtreecommitdiff
path: root/tnslc/test.tnsl
diff options
context:
space:
mode:
authorKai Gunger <kgunger12@gmail.com>2026-07-11 06:08:40 -0400
committerKai Gunger <kgunger12@gmail.com>2026-07-11 06:08:40 -0400
commitbc52debb9566d4c4cbdb398837c3244e53b81e75 (patch)
tree3f05abb8b5cb1b0c7f68903ae2ec648df3b850c0 /tnslc/test.tnsl
parent4fbc5d6511a404319a5392f96b105823a63de893 (diff)
[tnslc] bootstrap parser
Diffstat (limited to 'tnslc/test.tnsl')
-rw-r--r--tnslc/test.tnsl9
1 files changed, 5 insertions, 4 deletions
diff --git a/tnslc/test.tnsl b/tnslc/test.tnsl
index 7570215..b515c49 100644
--- a/tnslc/test.tnsl
+++ b/tnslc/test.tnsl
@@ -28,10 +28,11 @@ usage:
utils.File fin
fin.init(argv{1})
- utils.Vector vec = parse.gen_token_list(~fin)
- parse.print_token_list(~vec)
- parse.end_token_list(~vec)
-
+ parse.Node ast = parse.generate_ast(~fin)
+ ast.update_children()
+ parse.print_ast(~ast)
+ ast.end()
+
fin.end()
return 0