Added define operator

This commit is contained in:
2023-06-14 20:18:28 -07:00
parent b6343db0d6
commit 6bd7043971
10 changed files with 124 additions and 60 deletions

View File

@@ -10,7 +10,7 @@ fn eval_to_str(s: &str) -> Result<String, ()> {
};
//let out_str = g.print();
return match evaluate(&g, &Context::new()) {
return match evaluate(&g, &mut Context::new()) {
Ok(x) => Ok(x.to_string_outer()),
Err(_) => Err(())
};