From a960b6d3e75f3b844b3bbe04a5a6aa6da522ca2c Mon Sep 17 00:00:00 2001 From: MrLetsplay Date: Thu, 18 Apr 2024 21:15:57 +0200 Subject: [PATCH] Add TODO --- parser.go | 1 + 1 file changed, 1 insertion(+) diff --git a/parser.go b/parser.go index a3166b3..9c1fef9 100644 --- a/parser.go +++ b/parser.go @@ -748,6 +748,7 @@ func (p *Parser) tryAssignmentExpression() (*Expression, error) { } if *op != Operator_Equals { + // TODO: incorrect, evaluates lhs twice operation := getOperation(*op) expr = &Expression{Type: Expression_Binary, Value: BinaryExpression{Left: *lhs, Right: *expr, Operation: operation}, Position: lhs.Position} }