summaryrefslogtreecommitdiff
path: root/tnslc/tnslc_wrapped.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2023-08-31 01:00:44 -0400
committerKyle Gunger <kgunger12@gmail.com>2023-08-31 01:00:44 -0400
commit3bfdbd26958e3b8193500dd5fad8dcd58c5a8457 (patch)
tree59329ed9c362afc504d20f38a51e95bf93704202 /tnslc/tnslc_wrapped.tnsl
parent346bc784bedcd00ca8037b5c5a4194c0af9757fb (diff)
Updates to include new c_wrap
Diffstat (limited to 'tnslc/tnslc_wrapped.tnsl')
-rw-r--r--tnslc/tnslc_wrapped.tnsl31
1 files changed, 4 insertions, 27 deletions
diff --git a/tnslc/tnslc_wrapped.tnsl b/tnslc/tnslc_wrapped.tnsl
index e82581a..5bffcb8 100644
--- a/tnslc/tnslc_wrapped.tnsl
+++ b/tnslc/tnslc_wrapped.tnsl
@@ -1,34 +1,11 @@
-:include "c_wrap.tnsl"
+:include "c_wrap_linux.tnsl"
:include "logging.tnsl"
-:include "vector.tnsl"
:include "utils.tnsl"
+:include "vector.tnsl"
:include "tokenizer.tnsl"
:include "compiler.tnsl"
-{}uint8 m_usage = "Usage: tnslc [file to compile] [output asm]\n\0"
-
/; main (int argc, ~~uint8 argv) [int]
- asm "mov r8, rcx"
- asm "mov r9, rdx"
-
- /; if (argc < 3)
- _printf(~m_usage{0})
- return 1
- ;/
-
- Path in
- Path out
-
- in.start(argv{0})
- out.start(argv{0})
-
- in.relative_file(argv{1})
- out.relative_file(argv{2})
-
- compile(in, out)
-
- in._del()
- out._del()
-
- return 0
+
+ return 0
;/