From b6acbcee6bea23533bf596b4b1b5440c9ad1318e Mon Sep 17 00:00:00 2001 From: Mark Date: Thu, 6 Apr 2023 10:31:02 -0700 Subject: [PATCH] Cleanup --- src/parser/mod.rs | 2 -- src/tokens/function.rs | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/parser/mod.rs b/src/parser/mod.rs index 7635733..eb8b404 100644 --- a/src/parser/mod.rs +++ b/src/parser/mod.rs @@ -155,10 +155,8 @@ pub fn parse( let tokens = tokenize(s); let (_, tokens) = find_subs(tokens); let g = groupify(tokens)?; - println!("{:#?}", g); let g = treeify(g)?; - return Ok(g); } diff --git a/src/tokens/function.rs b/src/tokens/function.rs index e6eac16..4efd14a 100644 --- a/src/tokens/function.rs +++ b/src/tokens/function.rs @@ -2,7 +2,6 @@ use std::collections::VecDeque; use crate::tokens::Token; use crate::tokens::Operator; -//use crate::quantity::Quantity; #[derive(Debug)] @@ -12,8 +11,7 @@ pub enum Function { Floor, Ceil, Round, - - // TODO: Add arbitrary log + NaturalLog, TenLog,