diff --git a/Cargo.lock b/Cargo.lock index 92b679d..0af1a0b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -755,7 +755,7 @@ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" [[package]] name = "val" -version = "0.3.1" +version = "0.3.2" dependencies = [ "anyhow", "ariadne", diff --git a/Cargo.toml b/Cargo.toml index f4006f3..9f5967d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "val" -version = "0.3.1" +version = "0.3.2" authors = ["Liam "] categories = ["science", "parser-implementations", "command-line-interface"] description = "An arbitrary precision calculator language" diff --git a/README.md b/README.md index fd90d74..bffae10 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ Below is the output of `val --help`, which describes some of the arguments/options we support: ```present cargo run -- --help -val 0.3.1 +val 0.3.2 Liam An arbitrary precision calculator language diff --git a/src/evaluator.rs b/src/evaluator.rs index d6e207d..45739fc 100644 --- a/src/evaluator.rs +++ b/src/evaluator.rs @@ -282,6 +282,7 @@ impl<'a> Evaluator<'a> { } self.inside_loop = old_inside_loop; + Ok(EvalResult::Value(result)) } }