summaryrefslogtreecommitdiff
path: root/tnslc/tnslc_wrapped.tnsl
blob: d58c045b230fb445da76c01ae1e81eb89a74dbab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
:include "c_wrap.tnsl"
:include "logging.tnsl"
:include "vector.tnsl"
:include "utils.tnsl"
:include "tokenizer.tnsl"

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

    ~void open_handle = _open_file(argv{1})
    ~void write_handle = _create_file(argv{2})
    log_one_nl('a')
    tokenize_file(open_handle, write_handle)
    log_one_nl('a')
    _close_file(open_handle)
    _close_file(write_handle)

    return 0
;/