molang icon indicating copy to clipboard operation
molang copied to clipboard

Postfix Operators

Open Tschipp opened this issue 3 years ago • 1 comments

Adds postfix operatorts ++ and --, which are compiled to (v.x=v.x+1;0)+v.x-1 and (v.x=v.x-1;0)+v.x+1 respectively. Test 'v.x = 1 + v.y++ + 2;': 'v.x=1+(v.y=v.y+1;0)+v.y-1+2;' still fails, because the parse order is incorrect.

Tschipp avatar Sep 23 '22 11:09 Tschipp

Not sure why the previous two commits are also included here

Tschipp avatar Sep 23 '22 11:09 Tschipp