diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2024-03-25 21:56:52 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2024-03-25 21:56:52 -0400 |
commit | 12679f9be4bd3a924ca0859a7ad133178513bace (patch) | |
tree | d671fb3b5ce776474fc5eaf691805008e87b29a5 /tnslc/main.tnsl | |
parent | 00f4940ff1c19f3659779b2db078b85f178cb5ab (diff) |
Better tmp handling
Diffstat (limited to 'tnslc/main.tnsl')
-rw-r--r-- | tnslc/main.tnsl | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/tnslc/main.tnsl b/tnslc/main.tnsl index c7e8c95..cf2e8ac 100644 --- a/tnslc/main.tnsl +++ b/tnslc/main.tnsl @@ -1,15 +1,30 @@ :import "c_wrap_linux.tnsl" :import "vector.tnsl" -/; main [int] +/; push_char(Vector` a, uint8 c) + a.push(~c) +;/ +/; main [int] Vector a a.init(1) - + push_char(~a, 'h') + push_char(~a, 'e') + push_char(~a, 'l') + push_char(~a, 'l') + push_char(~a, 'o') + push_char(~a, ' ') + push_char(~a, 'w') + push_char(~a, 'o') + push_char(~a, 'r') + push_char(~a, 'l') + push_char(~a, 'd') + push_char(~a, '\n') + push_char(~a, 0) + _printf(a.data) a.end() - return 0 ;/ |