From 5df0ebb938c629317af4b930c98b2372dacd673d Mon Sep 17 00:00:00 2001 From: 0xb-s <145866191+0xb-s@users.noreply.github.com> Date: Wed, 18 Sep 2024 06:44:00 -0700 Subject: [PATCH] Update tokenizer.rs --- src/tokenizer.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tokenizer.rs b/src/tokenizer.rs index 35a5803..63fd187 100644 --- a/src/tokenizer.rs +++ b/src/tokenizer.rs @@ -22,6 +22,10 @@ pub fn tokenize(input: &str) -> Result, String> { tokens.push(Token::Minus); idx += 1; } + '^' => { + tokens.push(Token::Pow); + idx += 1; + } '*' => { tokens.push(Token::Star); idx += 1;