blob: f9b26c7e094601ffa43469198944b0596c6e3b4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
:import "c_wrap_linux.tnsl"
/; module utils
:import "vector.tnsl"
:import "file.tnsl"
;/
:import "compile/compile.tnsl"
/; main [int]
utils.Vector vec
vec.init(1)
vec.push_char('h')
vec.push_char('e')
vec.push_char('l')
vec.push_char('l')
vec.push_char('o')
vec.push_char(' ')
vec.push_char('w')
vec.push_char('o')
vec.push_char('r')
vec.push_char('l')
vec.push_char('d')
vec.push_char('\n')
vec.push_char(0)
_printf(vec.data)
vec.end()
return 0
;/
|