diff --git a/src/interface.rs b/src/interface.rs index d3006d8..d68616f 100644 --- a/src/interface.rs +++ b/src/interface.rs @@ -53,11 +53,10 @@ pub fn eval_with_context(source: &str, context: &mut VariableMap) -> Vec { + let raw = value_snippet.parse::().unwrap_or_default(); + + Ok(Value::Float(raw)) + } "empty" => Ok(Value::Empty), _ => Err(Error::UnexpectedSourceNode { - expected: "raw value", + expected: "integer, string, boolean or empty", actual: child.kind(), }), }