yodk icon indicating copy to clipboard operation
yodk copied to clipboard

Syntax stuff again <3

Open liperium opened this issue 2 years ago • 8 comments

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

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

liperium avatar Aug 15 '21 15:08 liperium

image

liperium avatar Aug 15 '21 15:08 liperium

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

dbaumgarten avatar Aug 15 '21 16:08 dbaumgarten

image For example.

liperium avatar Aug 15 '21 17:08 liperium

Works in game too :)

liperium avatar Aug 15 '21 17:08 liperium

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 avatar Aug 15 '21 17:08 dbaumgarten

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 avatar Aug 15 '21 17:08 dbaumgarten

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.

dbaumgarten avatar Aug 15 '21 17:08 dbaumgarten

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

liperium avatar Aug 15 '21 18:08 liperium