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

VSCode shows error when its not #106

Open
Archaegeo opened this issue Sep 8, 2021 · 3 comments
Open

VSCode shows error when its not #106

Archaegeo opened this issue Sep 8, 2021 · 3 comments
Labels
game incompatibility This does not work like inside starbase

Comments

@Archaegeo
Copy link

Archaegeo commented Sep 8, 2021

VSCode interface shows this as erroneous code but it works fine in game endendgotoe (thats end end goto e)

Also shows andn in (n>0andn<=a) as error but it works fine.

(BTW, thanks for the awesome tool)

@Archaegeo Archaegeo added the bug Something isn't working label Sep 8, 2021
@Archaegeo
Copy link
Author

Follow up, this level of compression runs in game ifothenw=:w1 ifsthen:w1=tendelsew=:w2 ifsthen:w2=tendendgotoe

@dbaumgarten
Copy link
Owner

The first example seems to be a duplicate of #84 . Statements on one line should usually be seperated by spaces, except when not. This could theoretically be "fixed", but it would be such a dirty hack, that I am not sure if I really want to fix it.

Are you really sure about the second one? I tested the whole space-requirement thing pretty thoroughly and came to the conclusion that "and" and "or" need to be surrounded by non-identifier characters (spaces, parenthesis etc.).

Your third snippet looks really horrible. I had to read it like 5 times to understand what is going on...
The issue here are things like "othen". The tokenizer has no chance to decide if this is a variable, or actually "o then". To do this it would need context-sensitive parsing, like the game does it. But something I really don't want to do. Thats just evil and pure madness.

@Archaegeo
Copy link
Author

This is live code running that works, shrug, just providing the feedback.
https://github.com/Archaegeo/Starbase/blob/main/ISAN-Waypoint%20System/30WPIncrement.yolol

@dbaumgarten dbaumgarten added game incompatibility This does not work like inside starbase and removed bug Something isn't working labels Sep 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
game incompatibility This does not work like inside starbase
Projects
None yet
Development

No branches or pull requests

2 participants