You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I ensure there is whitespace surrounding the label names I can work around this using the following approach, but it is adding some additional computation to the program:
goto @died + (( @cont - @died ) and t>78)
I think this would be ideal if it could be implemented:
The current zmakebas doesn't really do parsing as such. Instead of parsing it simply substitutes strings with tokens. However I really like your idea so I'll have a go at implementing it without a rewrite :)
Compensating for the lack of IF THEN ELSE in Sinclair BASIC, some programmers use arithmetic GO TO jumps within nested conditional logic as below:
Would it be possible to express this with labels, and have zmakebas work out the necessary arithmetic operation automatically?
e.g. something like:
or maybe:
resulting in:
The text was updated successfully, but these errors were encountered: