Rearranged code, created lib.rs

This commit is contained in:
2023-09-20 13:18:41 -07:00
parent 2f1f8a0801
commit fde1220a96
9 changed files with 402 additions and 409 deletions

View File

@@ -1,7 +1,7 @@
// Many of these have been borrowed from insect.
use crate::parser;
use crate::evaluate::evaluate;
use crate::context::Context;
use daisycalc::parser;
use daisycalc::evaluate;
use daisycalc::Context;
fn eval_to_str(s: &str) -> Result<String, ()> {
let g = match parser::parse_no_context(&String::from(s)) {