Assignments in Expressions
nicolasrod opened this issue · 0 comments
nicolasrod commented
Convert any assignment to an assignment and a statement. For example:
$a = 1;
if ($a++ > 1) {
echo 'a is greater than 1';
}
Turns into:
a = 1
if a > 1:
a += 1
Some expressions are already translated. It is needed to evaluate every potential place where Python is expecting an expression and if an assignment is found, deal with it.