Skip to content

Assignments in Expressions #5

@nicolasrod

Description

@nicolasrod

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions