io library file creation

This commit is contained in:
Add00
2023-08-02 22:19:09 -04:00
parent 9b469e6eb0
commit 36b4a494ae
6 changed files with 26 additions and 0 deletions

1
test/scripts/lib/io.toy Normal file
View File

@@ -0,0 +1 @@
print "Nothing is here";

View File

@@ -19,6 +19,7 @@
#include "../repl/lib_random.h"
#include "../repl/lib_runner.h"
#include "../repl/lib_math.h"
#include "../repl/lib_io.h"
//supress the print output
static void noPrintFn(const char* output) {
@@ -78,6 +79,7 @@ int main() {
{"runner.toy", "runner", Toy_hookRunner},
{"random.toy", "random", Toy_hookRandom},
{"math.toy", "math", Toy_hookMath},
{"io.toy", "io", Toy_hookIO},
{NULL, NULL, NULL}
};