dansanderson / picotool

Tools and Python libraries for manipulating Pico-8 game files. http://www.lexaloffle.com/pico-8.php
MIT License
376 stars 45 forks source link

New Integer division operator "\" causes syntax error #71

Closed Liquidream closed 3 years ago

Liquidream commented 4 years ago

The new integer division "\" operator, introduced in PICO-8 v0.2 fails with the following syntax error:

Syntax error (remaining:b'\\8\n') at line 292 char 15

Not too surprising, as it is probably treating it as an escape char.

Trouble is, this new command is useful for saving tokens (and avoids the need for flr()) - but alas, I cannot use this (and other new API features) as luamin/picotool is, sadly, quite out of date.

If I knew how to resolve this myself in python - I'd have a stab, but I do not (also, there are a number of PR's still open, so I wouldn't wanna add to the pile for now 😉 )

dansanderson commented 3 years ago

I added the newer binary operators in 54b84fe74b95c98a562822b2c42f6b3e9f4c0690.