shrinko8 icon indicating copy to clipboard operation
shrinko8 copied to clipboard

shorthand parser bugs in pico8

Open pancelor opened this issue 9 months ago • 0 comments

This is maybe more of an "fyi" than an issue, but here's two parser bugs I found recently:

if (false)?1 --hi

this causes issues on the next line: https://www.lexaloffle.com/bbs/?tid=142148

This mostly doesn't matter for shrinko8 since trailing spaces and comments are removed (under most use cases)

if (1)<2 print"a"

this works -- surprising! https://www.lexaloffle.com/bbs/?tid=142179

This doesn't work in shrinko8 but it's not a big issue, I'll just change my source code. (and hopefully pico8 will make this a syntax error)

pancelor avatar May 09 '24 01:05 pancelor