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

Support "?" short-print statements #39

dansanderson opened this Issue Feb 4, 2018 · 0 comments


None yet
1 participant
Copy link

dansanderson commented Feb 4, 2018

Pico-8 has another preprocessor macro that treats

? x,y,z



As with short-if, this requires that the statement be on its own line. Short-print is mostly intended for use at the command prompt, but some carts use it in cart code because it's one token shorter than print with parens, and fewer chars.

For completeness, maybe Picotool should attempt to support this. I probably wouldn't want to do this unless I remove short-if from the grammar and more properly treat both macros as actual preprocessing steps--taking extra care to flag the AST so it dumps the original short-form statement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.