summaryrefslogtreecommitdiff
path: root/tnslc/tnslc_wrapped.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2023-09-12 23:18:14 -0400
committerKyle Gunger <kgunger12@gmail.com>2023-09-12 23:18:14 -0400
commit145ea4aa42f54d2c13f936e0ad6166b1ed0a5a51 (patch)
treeb95a328c8d85a634fcee5b8936b958f3e680a4fe /tnslc/tnslc_wrapped.tnsl
parent093045f77f80c9c63c8464dbf5d7b9310ba03b55 (diff)
Fix structs, seperate other compiler funcs
Diffstat (limited to 'tnslc/tnslc_wrapped.tnsl')
-rw-r--r--tnslc/tnslc_wrapped.tnsl23
1 files changed, 20 insertions, 3 deletions
diff --git a/tnslc/tnslc_wrapped.tnsl b/tnslc/tnslc_wrapped.tnsl
index 5bffcb8..2d5df69 100644
--- a/tnslc/tnslc_wrapped.tnsl
+++ b/tnslc/tnslc_wrapped.tnsl
@@ -2,10 +2,27 @@
:include "logging.tnsl"
:include "utils.tnsl"
:include "vector.tnsl"
-:include "tokenizer.tnsl"
-:include "compiler.tnsl"
+# :include "tokenizer.tnsl"
+:include "compiler_structs.tnsl"
+# :include "compiler.tnsl"
+
+{}uint8 w_usage = "Usage: tnslc [file to compile] [file to write]"
/; main (int argc, ~~uint8 argv) [int]
-
+ asm "mov r8, rdi"
+ asm "mov r9, rsi"
+
+ /; if (argc < 3)
+ _printf(~w_usage{0})
+ reutrn 1
+ ;/
+
+ Path in, out
+ in.start(argv{1})
+ out.start(argv{2})
+
+ in._del()
+ out._del()
+
return 0
;/