shrinko8
shrinko8 copied to clipboard
shorthand parser bugs in pico8
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)