implement basic control flow, error handling from functions, many tests

Signed-off-by: Ava Hahn <ava@aidanis.online>
This commit is contained in:
Ava Hahn 2023-02-27 22:53:54 -08:00
parent ae365ad63c
commit 09e3546ba6
Signed by untrusted user who does not match committer: affine
GPG key ID: 3A4645B8CF806069
14 changed files with 315 additions and 488 deletions

View file

@ -15,16 +15,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*mod append;
mod config;
*/
//mod config;
mod eval;
mod lex;
mod segment;
mod sym;
mod stl;
/*mod stl;
mod str;*/
pub mod ast {
pub use crate::eval::eval;
@ -36,12 +33,9 @@ pub mod ast {
};
}
/*pub mod stdlib {
pub use crate::append::get_append;
pub use crate::stl::get_stdlib;
pub use crate::str::{get_concat, get_echo};
pub use crate::vars::get_export;
}*/
pub mod stdlib {
pub use crate::stl::{static_stdlib, dynamic_stdlib};
}
/*pub mod aux {
pub use crate::config::configure;