Cleanup, added to_string_outer

This commit is contained in:
2023-04-10 11:10:27 -07:00
parent a38293c247
commit ae05ebb5ff
5 changed files with 33 additions and 10 deletions

View File

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