Added "ans" variable

This commit is contained in:
2023-06-14 14:04:32 -07:00
parent d00679c44a
commit 2dec478b74
7 changed files with 62 additions and 29 deletions

View File

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