aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lex/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lex/mod.rs b/src/lex/mod.rs
index af5ff06..7fd5e33 100644
--- a/src/lex/mod.rs
+++ b/src/lex/mod.rs
@@ -100,6 +100,8 @@ pub fn lexer(input: &str) -> Result<Vec<Token>, String> {
100 "ln" => result.push(Function::token_from_fn("ln".into(), |x| x.ln())), 100 "ln" => result.push(Function::token_from_fn("ln".into(), |x| x.ln())),
101 "log" => result.push(Function::token_from_fn("log".into(), |x| x.log10())), 101 "log" => result.push(Function::token_from_fn("log".into(), |x| x.log10())),
102 "sqrt" => result.push(Function::token_from_fn("sqrt".into(), |x| x.sqrt())), 102 "sqrt" => result.push(Function::token_from_fn("sqrt".into(), |x| x.sqrt())),
103 "floor" => result.push(Function::token_from_fn("floor".into(), |x| x.floor())),
104 "ceil" => result.push(Function::token_from_fn("ceil".into(), |x| x.ceil())),
103 _ => return Err(format!("Unexpected function {}", funct)) 105 _ => return Err(format!("Unexpected function {}", funct))
104 } 106 }
105 char_vec.clear(); 107 char_vec.clear();