forked from asklyphe-public/asklyphe
add todos
This commit is contained in:
parent
a8c86790fc
commit
c4cf11a5ef
1 changed files with 2 additions and 0 deletions
|
@ -17,6 +17,8 @@ pub struct Calculation {
|
||||||
pub result: String,
|
pub result: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: handle partial match in query where <words> (valid equation) <words> 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<Calculation> {
|
pub fn calculate(query: &str) -> Option<Calculation> {
|
||||||
debug!("Got query {}", query);
|
debug!("Got query {}", query);
|
||||||
let mut parser = Parser::new(Lexer::new(query));
|
let mut parser = Parser::new(Lexer::new(query));
|
||||||
|
|
Loading…
Add table
Reference in a new issue