Skip to content

Commit

Permalink
solve slight error
Browse files Browse the repository at this point in the history
  • Loading branch information
nulluser committed Jun 14, 2024
1 parent f25f5fc commit 3333d40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frontend/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ impl Parser {
}

fn parse_relational_expr(&mut self) -> Expr {
let mut left = self.parse_additive_expr();
let mut left = self.parse_concatenation_expr();
while matches!(
self.at(),
Token::Operator(Operator::GreaterThan)
Expand All @@ -297,7 +297,7 @@ impl Parser {
process::exit(1);
}
};
let right = self.parse_additive_expr();
let right = self.parse_concatenation_expr();
left = Expr::BinaryOp {
op: operator,
left: Box::new(left),
Expand Down

0 comments on commit 3333d40

Please sign in to comment.