From 3bfdbd26958e3b8193500dd5fad8dcd58c5a8457 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Thu, 31 Aug 2023 01:00:44 -0400 Subject: Updates to include new c_wrap --- tnslc/tnslc_wrapped.tnsl | 31 ++++--------------------------- 1 file changed, 4 insertions(+), 27 deletions(-) (limited to 'tnslc/tnslc_wrapped.tnsl') 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 ;/ -- cgit v1.2.3