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} }