diff options
| author | nic-gaffney <gaffney_nic@protonmail.com> | 2023-04-27 17:19:54 -0500 |
|---|---|---|
| committer | nic-gaffney <gaffney_nic@protonmail.com> | 2023-04-27 17:19:54 -0500 |
| commit | ac8c9abab30d66ff208a623d0a6de8869373a554 (patch) | |
| tree | 8d2d20d9a5312a1e2fad73d9a6ee7294b0c27dc2 /crates/sloth_vm/src/sloth_std/mod.rs | |
| parent | 757e804671ef3dcb2e0f1295e385780b5feae2ca (diff) | |
| parent | af02ccd056754c60131d13d74b9fac0e23b2af31 (diff) | |
| download | sloth-ac8c9abab30d66ff208a623d0a6de8869373a554.tar.gz | |
Merge branch 'standard-library' of github.com-Nic:slothlang/sloth into standard-library
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); |
