From 09df1bb48823631228af3df647111af1eebc854b Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Thu, 16 Feb 2023 05:14:31 -0500 Subject: Collapse tnslc into a single file --- tnslc/copy.tnsl | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 tnslc/copy.tnsl (limited to 'tnslc/copy.tnsl') 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 -;/ -- cgit v1.2.3