Skip to content

Commit

Permalink
Update tokenizer.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
0xb-s authored Sep 18, 2024
1 parent f5dfda3 commit 5df0ebb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tokenizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ pub fn tokenize(input: &str) -> Result<Vec<Token>, String> {
tokens.push(Token::Minus);
idx += 1;
}
'^' => {
tokens.push(Token::Pow);
idx += 1;
}
'*' => {
tokens.push(Token::Star);
idx += 1;
Expand Down

0 comments on commit 5df0ebb

Please sign in to comment.