dbaumgarten / yodk

Development Kit for Starbase's ingame programming language YOLOL
MIT License
57 stars 16 forks source link

Syntax stuff again <3 #84

Closed liperium closed 4 days ago

liperium commented 3 years ago

This should work image But it's highlighted red :(

Thanks again. Last bug for syntax I've got ;P

liperium commented 3 years ago

image

dbaumgarten commented 3 years ago

Can you provide the full script? The snippets you have provided are (without any further context) invalid synatx.

liperium commented 3 years ago

image For example.

liperium commented 3 years ago

Works in game too :)

dbaumgarten commented 3 years ago

Can you provide any code that prooves that this really works ingame? Because the rule that "all statements on a line must be separated by spaces" is a pretty fundamental one. I would be pretty surprised if there is an excpetion specifically for if-statements. (Given the brokenness of their parser it isn't impossible, but I think its unlikely)

dbaumgarten commented 3 years ago

Ok, so i have done my own tests for this. It seems that a goto immediately after an end does indeed work without a space. But all other combinations of statements strictly require that space... This is so damn weird.

dbaumgarten commented 3 years ago

Addition: Assignments to global (but not local) variables also seem to be possible without a space after an end.

This is so stupid that I am tempted to just leave everything as it is. Screw that damn absent space.

liperium commented 3 years ago

Yeah I can totally understand that, just an easy way to squeeze more stuff ahaha.