diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2024-03-14 01:11:23 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2024-03-14 01:11:23 -0400 |
commit | e25b738656928b38781458ed85880e8ae7bdd5a6 (patch) | |
tree | 3c21849a0139d778a65923081cf37a2ead9f03fb /tnslc/main.tnsl | |
parent | 392984c0cf53fff4a64bc74e3f32ccba4c93dba8 (diff) |
Test vector impl
Diffstat (limited to 'tnslc/main.tnsl')
-rw-r--r-- | tnslc/main.tnsl | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/tnslc/main.tnsl b/tnslc/main.tnsl index 1abedb3..ac56836 100644 --- a/tnslc/main.tnsl +++ b/tnslc/main.tnsl @@ -1,14 +1,11 @@ :import "c_wrap_linux.tnsl" +:import "vector.tnsl" -~uint8 str_a = "Hello World\n\0" -~uint8 str_b = "!\n\0" +/; main [int] -/; main (int argc, ~~uint8 argv) [int] - _printf(str_a) + Vector a + a.init(1) - /; if (argc > 2) - _printf(str_b) - ;/ - return 0 ;/ + |