fix(parser): correct swapped postfix ++/-- reciprocals

This commit is contained in:
Guillem L. Jara
2026-04-30 03:33:49 +02:00
parent 8d2d4b4f0d
commit 66ea375649
+2 -2
View File
@@ -571,12 +571,12 @@ impl<'a> Parser<'a> {
}
lex.next();
lhs = Expr::node(
operation.expr(
reciprocal.expr(
Expr::node(
PlaceOperator::Assignment.expr(
rhs,
Expr::node(
reciprocal.expr(Expr::leaf(rhs), Expr::leaf(1.)),
operation.expr(Expr::leaf(rhs), Expr::leaf(1.)),
self.arena,
),
),