summaryrefslogtreecommitdiff
path: root/tnslc/tnslc.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2024-03-28 16:43:08 -0400
committerKyle Gunger <kgunger12@gmail.com>2024-03-28 16:43:08 -0400
commit12f274a8523d99481106aff3a652d3b583f38551 (patch)
treea1b30a5239ffa8e7b3850f69ee16832c3a6529f4 /tnslc/tnslc.tnsl
parentf4da286b9ea4abae997e03cd0ce1f2e1ef534b7c (diff)
Vector updates
Diffstat (limited to 'tnslc/tnslc.tnsl')
-rw-r--r--tnslc/tnslc.tnsl20
1 files changed, 12 insertions, 8 deletions
diff --git a/tnslc/tnslc.tnsl b/tnslc/tnslc.tnsl
index 8fb65c3..efc8922 100644
--- a/tnslc/tnslc.tnsl
+++ b/tnslc/tnslc.tnsl
@@ -17,6 +17,8 @@ usage:
\0"
+~uint8 split_test = "test/whatever/file.tnsl\0"
+
/; main (int argc, ~~uint8 argv) [int]
asm "mov r10, rdi"
asm "mov r11, rsi"
@@ -26,16 +28,18 @@ usage:
return 1
;/
- utils.File in, out
+ utils.Artifact art
+
+ art.init()
+ # art.push(split_test)
+ # _printf(art.strings{0})
- in.init(argv{1})
- /; if (argc < 3)
- out.init(argv{2})
- ;; else
- out.init(DEFAULT_FOUT)
- ;/
+ art.split_cstr(split_test, '/')
+ ~uint8 file = art.to_cstr('/')
+ _printf(file)
+ _delete(file)
- compile.generate(in, out)
+ art.end()
return 0
;/