Better errors and more fleshed out semantics

This commit is contained in:
Yehuda Katz
2019-05-29 21:19:46 -07:00
parent 8f5d959692
commit b7d15c2afd
14 changed files with 1844 additions and 1793 deletions

View File

@ -32,7 +32,7 @@ fn evaluate_leaf(leaf: &ast::Leaf) -> Value {
match leaf {
Leaf::String(s) => Value::string(s),
Leaf::Bare(s) => Value::string(s),
Leaf::Bare(path) => Value::string(path.to_string()),
Leaf::Boolean(b) => Value::boolean(*b),
Leaf::Int(i) => Value::int(*i),
}