Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shorthand parser bugs in pico8 #37

Open
pancelor opened this issue May 9, 2024 · 0 comments
Open

shorthand parser bugs in pico8 #37

pancelor opened this issue May 9, 2024 · 0 comments

Comments

@pancelor
Copy link
Contributor

pancelor commented May 9, 2024

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant