summaryrefslogtreecommitdiff
path: root/tnslc/tnslc_wrapped.tnsl
blob: cf5b59b408021f3bdb5d098fef0950461e3ba6a7 (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
:include "c_wrap.tnsl"
:include "logging.tnsl"
:include "vector.tnsl"
:include "utils.tnsl"
:include "tokenizer.tnsl"
# :include "compiler.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')

    Vector tokens = tokenize_file(open_handle, write_handle)
    # TODO: do compilation

    log_one_nl('a')
    _close_file(open_handle)
    _close_file(write_handle)

    return 0
;/