usability improvements to env and def

* env prints variables and functions in seperate columns
* run/stl seperation of concerns significantly better
* def doesnt store lists or lambdas in the environment
This commit is contained in:
Ava Apples Affine 2023-05-21 23:53:00 +00:00
parent 825854fd42
commit 6969ea63bc
7 changed files with 309 additions and 131 deletions

View file

@ -23,7 +23,7 @@ mod stl;
mod sym;
pub mod ast {
pub use crate::run::{run, load_defaults, load_environment};
pub use crate::run::run;
pub use crate::eval::eval;
pub use crate::lex::lex;
pub use crate::segment::{Ctr, Seg, Type};
@ -31,7 +31,21 @@ pub mod ast {
}
pub mod stdlib {
pub use crate::stl::{dynamic_stdlib, static_stdlib};
pub use crate::stl::{};
pub use crate::stl::{
dynamic_stdlib, static_stdlib,
load_defaults, load_environment,
CONSOLE_XDIM_VNAME,
CONSOLE_YDIM_VNAME,
POSIX_CFG_VNAME,
MODENV_CFG_VNAME,
L_PROMPT_VNAME,
R_PROMPT_VNAME,
PROMPT_DELIM_VNAME,
CFG_FILE_VNAME,
RELISH_DEFAULT_CONS_HEIGHT,
RELISH_DEFAULT_CONS_WIDTH,
};
}
pub mod aux {