Parsing tests

This commit is contained in:
Yehuda Katz
2019-06-02 09:28:40 -07:00
parent f7590d924e
commit b9159f033b
11 changed files with 516 additions and 126 deletions

View File

@ -39,6 +39,7 @@ fn evaluate_leaf(leaf: &ast::Leaf) -> Value {
Leaf::Bare(path) => Value::string(path.to_string()),
Leaf::Boolean(b) => Value::boolean(*b),
Leaf::Int(i) => Value::int(*i),
Leaf::Unit(i, unit) => unit.compute(*i),
}
}