diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2023-02-16 05:14:31 -0500 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2023-02-16 05:14:31 -0500 |
commit | 09df1bb48823631228af3df647111af1eebc854b (patch) | |
tree | ef091fc942b00b224f7d66aacb0c3db0ab4d490c /tnslc/copy.tnsl | |
parent | c94edbe007910755087e71cbb1a6a349d75e9b85 (diff) |
Collapse tnslc into a single file
Diffstat (limited to 'tnslc/copy.tnsl')
-rw-r--r-- | tnslc/copy.tnsl | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/tnslc/copy.tnsl b/tnslc/copy.tnsl deleted file mode 100644 index 0cc594e..0000000 --- a/tnslc/copy.tnsl +++ /dev/null @@ -1,30 +0,0 @@ -/# - Proof of concept that the language can copy any file. - - For testing with executibles to make sure that the language's current state - would be able to produce one from data alone. - - Seems to work. -#/ - -/; main ({}{}uint8 args) [int] - /; if (len args < 2) - ;tnsl.io.println("Usage: copy [file to copy] [path to copy to]") - ;return 1 - ;/ - - ;tnsl.io.File in = tnsl.io.readFile(args{0}) - ;tnsl.io.File out = tnsl.io.writeFile(args{1}) - - /; loop (int chk = in.read(); chk !< 0) [chk = in.read()] - ;uint8 write = chk - ;out.write(write) - ;/ - - ;tnsl.io.println("Copy complete.") - - ;in.close() - ;out.close() - - ;return 0 -;/ |