From 12f274a8523d99481106aff3a652d3b583f38551 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Thu, 28 Mar 2024 16:43:08 -0400 Subject: Vector updates --- tnslc/tnslc.tnsl | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'tnslc/tnslc.tnsl') 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 ;/ -- cgit v1.2.3