File operations

* read
* write
* append
* exists?
* tests for each
This commit is contained in:
Ava Apples Affine 2023-06-19 07:32:55 +00:00
parent 25db2aac47
commit 64be70b3af
5 changed files with 261 additions and 6 deletions

View file

@ -32,6 +32,7 @@ pub mod control;
pub mod decl;
pub mod math;
pub mod strings;
pub mod file;
pub const CONSOLE_XDIM_VNAME: &str = "_RELISH_WIDTH";
pub const CONSOLE_YDIM_VNAME: &str = "_RELISH_HEIGHT";
@ -66,6 +67,7 @@ pub fn static_stdlib(syms: &mut SymTable) {
control::add_control_lib(syms);
boolean::add_bool_lib(syms);
math::add_math_lib(syms);
file::add_file_lib(syms);
syms.insert(
"call".to_string(),