Skip to content

Commit

Permalink
🐛 fix parser bug
Browse files Browse the repository at this point in the history
  • Loading branch information
KPMGE committed Mar 15, 2024
1 parent 60ac5cb commit b2665c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ impl Parser {

fn parse_infix_expression(&mut self, left_expression: Expression) -> Option<Expression> {
let operator = self.current_token.clone();
let precedence = self.current_token.precedence();
let precedence = self.next_token.precedence();

self.advance_tokens();

Expand Down

0 comments on commit b2665c5

Please sign in to comment.