Implemented a basic random library

This commit is contained in:
2023-02-23 19:19:17 +11:00
parent e0547474b8
commit 92c71a374d
8 changed files with 241 additions and 53 deletions

7
repl/lib_random.h Normal file
View File

@@ -0,0 +1,7 @@
#pragma once
#include "toy_interpreter.h"
int Toy_hookRandom(Toy_Interpreter* interpreter, Toy_Literal identifier, Toy_Literal alias);
#define TOY_OPAQUE_TAG_RANDOM 200