diff options
| author | nic-gaffney <gaffney_nic@protonmail.com> | 2023-04-18 09:08:49 -0500 |
|---|---|---|
| committer | nic-gaffney <gaffney_nic@protonmail.com> | 2023-04-18 09:08:49 -0500 |
| commit | b0ffef5124c88d52d81cbd2f8c96c019ce84ad47 (patch) | |
| tree | 2c386ab8d561459723d10f4961cc8a8f6772565e /crates/sloth_vm/src/sloth_std/mod.rs | |
| parent | 19fefeb732d559195edb01ebc36170c0cf9a0308 (diff) | |
| download | sloth-b0ffef5124c88d52d81cbd2f8c96c019ce84ad47.tar.gz | |
Need to write tests for it, but hopefully function docs work now
Diffstat (limited to 'crates/sloth_vm/src/sloth_std/mod.rs')
| -rw-r--r-- | crates/sloth_vm/src/sloth_std/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/sloth_vm/src/sloth_std/mod.rs b/crates/sloth_vm/src/sloth_std/mod.rs index 56e166c..982017d 100644 --- a/crates/sloth_vm/src/sloth_std/mod.rs +++ b/crates/sloth_vm/src/sloth_std/mod.rs @@ -5,6 +5,7 @@ use once_cell::sync::Lazy; use crate::native::NativeFunction; pub mod file; +pub mod misc; pub mod rand; pub mod stdio; pub mod term; @@ -27,6 +28,8 @@ pub static NATIVE_LIBRARY: Lazy<HashMap<&'static str, NativeFunction>> = Lazy::n map.insert("term$setpos", term::TERM_SETPOS); // filesystem + // TODO: Make the files commands work by making a global file variable with + // certain permissions created by 'file.open' instead of just reading the file. map.insert("file$read", file::FILE_READ); map.insert("file$write", file::FILE_WRITE); |
