summaryrefslogtreecommitdiff
path: root/tnslc/parse/parse.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2022-04-13 17:29:33 -0400
committerKyle Gunger <kgunger12@gmail.com>2022-04-13 17:29:33 -0400
commit658c2fa36f3359325665c744ebe57478d539b28d (patch)
tree84806babb5febe4a3306c9c0bfc0e4e9da1159e0 /tnslc/parse/parse.tnsl
parent6674b44eb75218e1f00a1cc63a82aab82c641806 (diff)
Include ast, add function to print tokens
Diffstat (limited to 'tnslc/parse/parse.tnsl')
-rw-r--r--tnslc/parse/parse.tnsl10
1 files changed, 1 insertions, 9 deletions
diff --git a/tnslc/parse/parse.tnsl b/tnslc/parse/parse.tnsl
index 52fd0c7..5d3bfa5 100644
--- a/tnslc/parse/parse.tnsl
+++ b/tnslc/parse/parse.tnsl
@@ -21,15 +21,7 @@
/; print_tokens(~{}parse.Token dat)
/;loop (int i = 0; i < len dat`) [i++]
- ;tnsl.io.print("{ ")
- ;tnsl.io.print(dat`{i}.token_type)
- ;tnsl.io.print(" ")
- ;tnsl.io.print(dat`{i}.data`)
- ;tnsl.io.print(" ")
- ;tnsl.io.print(dat`{i}.line)
- ;tnsl.io.print(" ")
- ;tnsl.io.print(dat`{i}.col)
- ;tnsl.io.print(" } ")
+ ;dat`{i}.print()
;/
;tnsl.io.print("\n")
;/