afw-org / afw

Adaptive Framework
https://afw.tools
MIT License
4 stars 1 forks source link

++ and -- assignment operator #24

Closed mike000000000 closed 1 year ago

mike000000000 commented 1 year ago

Allow ++ and -- to be used as an assignment operator. This only needs to work as an assignment, not as part of an expression.

loc i = 1;
i++;
println(i);
i--;
println(i);

Result: 2 1

JeremyGrieshop commented 1 year ago

Looking good!