Math operators (#1601)

* Add some math operations

* WIP for adding compound expressions

* precedence parsing

* paren expressions

* better lhs handling

* add compound comparisons and shorthand lefthand parsing

* Add or comparison and shorthand paths
This commit is contained in:
Jonathan Turner
2020-04-18 13:50:58 +12:00
committed by GitHub
parent 52d2d2b888
commit 7974e09eeb
21 changed files with 721 additions and 193 deletions

View File

@ -97,7 +97,7 @@ async fn host(tag: Tag) -> Value {
// Uptime
if let Ok(uptime) = uptime_result {
let uptime = uptime.get::<time::second>().round() as u64;
let uptime = uptime.get::<time::second>().round() as i64;
dict.insert_untagged("uptime", UntaggedValue::duration(uptime));
}