diff --git a/asklyphe-frontend/src/math.rs b/asklyphe-frontend/src/math.rs index 860fcaa..7103782 100644 --- a/asklyphe-frontend/src/math.rs +++ b/asklyphe-frontend/src/math.rs @@ -17,6 +17,8 @@ pub struct Calculation { pub result: String, } +// TODO: handle partial match in query where (valid equation) gets parsed +// TODO: have some option to switch between degrees and radians in the settings/search query params (or maybe have a function that converts between them instead?) pub fn calculate(query: &str) -> Option { debug!("Got query {}", query); let mut parser = Parser::new(Lexer::new(query));