summaryrefslogtreecommitdiff
path: root/tnslc/tnslc.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2022-09-20 00:03:32 -0400
committerKyle Gunger <kgunger12@gmail.com>2022-09-20 00:03:32 -0400
commitbe9813b1062c1f9b2c0d13a76d56c41ba984c1db (patch)
treefbfa5b93495c14c646009c92c3b403e639ad9161 /tnslc/tnslc.tnsl
parent5582d6427e2bc09b9975615f87cace64ce2d29ca (diff)
Generate a dummy file
Diffstat (limited to 'tnslc/tnslc.tnsl')
-rw-r--r--tnslc/tnslc.tnsl6
1 files changed, 4 insertions, 2 deletions
diff --git a/tnslc/tnslc.tnsl b/tnslc/tnslc.tnsl
index ec6fa04..2a19f20 100644
--- a/tnslc/tnslc.tnsl
+++ b/tnslc/tnslc.tnsl
@@ -24,8 +24,8 @@
/; main ({}{}charp args) [int]
- /; if (len args < 1)
- ;tnsl.io.println(string_from_int(97265))
+ /; if (len args < 2)
+ ;tnsl.io.println("Usage: tnslc [file in] [file out]")
;return 1
;/
@@ -39,5 +39,7 @@
# ;tnslc.Node tree_node = tnslc.ast.make_tree(psrc, args{0})
+ ;tnslc.do_compile(args{1}, psrc)
+
;return 0
;/