summaryrefslogtreecommitdiff
path: root/tnslc/tnslc_wrapped.tnsl
blob: 2d5df69da92810b3ca4d60b671afaf30ef32cf14 (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
:include "c_wrap_linux.tnsl"
:include "logging.tnsl"
:include "utils.tnsl"
:include "vector.tnsl"
# :include "tokenizer.tnsl"
:include "compiler_structs.tnsl"
# :include "compiler.tnsl"

{}uint8 w_usage = "Usage: tnslc [file to compile] [file to write]"

/; main (int argc, ~~uint8 argv) [int]
	asm "mov r8, rdi"
	asm "mov r9, rsi"

	/; if (argc < 3)
		_printf(~w_usage{0})
		reutrn 1
	;/

	Path in, out
	in.start(argv{1})
	out.start(argv{2})

	in._del()
	out._del()

	return 0
;/