From 44506e1f5a60ff939a448b1edc12282be403d316 Mon Sep 17 00:00:00 2001 From: Valk Richard Li <48872266+ValKmjolnir@users.noreply.github.com> Date: Mon, 1 Jun 2020 01:22:04 +0800 Subject: [PATCH] Delete io.nas --- balloon/lib/io.nas | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 balloon/lib/io.nas diff --git a/balloon/lib/io.nas b/balloon/lib/io.nas deleted file mode 100644 index 8024f87..0000000 --- a/balloon/lib/io.nas +++ /dev/null @@ -1,29 +0,0 @@ -# the function print is written by Cpp: std::cout -# the function input is written by Cpp: std::cin -# so the code is fake XD but the definitions are of great use -# the definitions are set to avoid redefinition -# made by github user: ValKmjolnir - -# print function use dynamic parameters -var print=func(args...) -{ - return __call_cpp_ostream_std_cout(args); -}; - -# the return type of input is __var_string -var input=func() -{ - return __call_cpp_istream_std_cin(); -}; - -# read from file and return a vector of strings -var read=func(filename) -{ - return __call_Cpp_ifstream(filename); -}; - -# write a vector of strings into a file -var write=func(filename,vector) -{ - return __call_Cpp_ofstream(filename,vector); -}; \ No newline at end of file