diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2023-08-31 01:00:44 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2023-08-31 01:00:44 -0400 |
commit | 3bfdbd26958e3b8193500dd5fad8dcd58c5a8457 (patch) | |
tree | 59329ed9c362afc504d20f38a51e95bf93704202 /tnslc/tnslc_wrapped.tnsl | |
parent | 346bc784bedcd00ca8037b5c5a4194c0af9757fb (diff) |
Updates to include new c_wrap
Diffstat (limited to 'tnslc/tnslc_wrapped.tnsl')
-rw-r--r-- | tnslc/tnslc_wrapped.tnsl | 31 |
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 ;/ |