pemsa icon indicating copy to clipboard operation
pemsa copied to clipboard

+=, /=, etc. should respect order of operations

Open cominixo opened this issue 2 years ago • 1 comments

These tokens should be processed with parentheses around the second value, for example, from a += b to a = a + (b), otherwise something like this:

a=2
a=a/(7-4/2)
print(a)
a=2
a/=7-4/2
print(a)

will print different things in pemsa, but they're the same value in PICO-8.

cominixo avatar Oct 31 '21 01:10 cominixo