From c4cf11a5efd2321e63dbcb1ef610673b13ba9efb Mon Sep 17 00:00:00 2001 From: Book-reader Date: Sun, 7 Sep 2025 13:12:22 +1200 Subject: [PATCH] add todos --- asklyphe-frontend/src/math.rs | 2 ++ 1 file changed, 2 insertions(+) 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));