use shm_rs::{Lexer, SchemeInit, DynEnvironment}; fn main() { let mut curdir = std::env::current_dir().unwrap(); curdir.push("examples/error_descr_test/incorr_schm.shm"); println!("{}", curdir.display()); let lex = Lexer::from_file(curdir).unwrap(); let schm = SchemeInit::new().unwrap(); let res = schm.run(&lex, None).unwrap(); let ser = res.get("errtest1").unwrap().clone(); let mut curdir = std::env::current_dir().unwrap(); curdir.push("examples/error_descr_test/incor_data.shm"); let (_dynenv, dyn_res) = DynEnvironment::from_file(curdir, ser.clone()).unwrap(); }