Jump anywhere: Difference between revisions

Added Tiny BASIC
(Added Chipmunk Basic, GW-BASIC, True BASIC, Quite BASIC, Minimal BASIC and MSX Basic.)
(Added Tiny BASIC)
Line 533:
300 GOTO : REM NO LINE NUMBER, JUMPS TO LINE 0</syntaxhighlight>
<syntaxhighlight lang="applesoftbasic">CONT : REM CONTINUE, JUMP BACK TO WHERE THE PROGRAM STOPPED</syntaxhighlight>
 
==={{header|BASIC256}}===
BASIC256 supports both <code>goto</code> and <code>gosub</code>.
{{works with|QBasic}}
{{works with|Yabasic}}
<syntaxhighlight lang="freebasic">print "First line."
gosub sub1
print "Fifth line."
goto Ending
 
sub1:
print "Second line."
gosub sub2
print "Fourth line."
return
 
Ending:
print "We're just about done..."
goto Finished
 
sub2:
print "Third line."
return
 
Finished:
print "... with goto and gosub, thankfully."
end</syntaxhighlight>
{{out}}
<pre>Igual que la entrada de FutureBasic.</pre>
 
==={{header|Chipmunk Basic}}===
Line 561 ⟶ 590:
 
==={{header|GW-BASIC}}===
GW-BASIC supports both <code>goto</code> and <code>gosub</code>.
{{works with|Applesoft BASIC}}
{{works with|BASICA}}
{{works with|Chipmunk Basic}}
Line 647 ⟶ 678:
<pre>Same as FutureBasic entry.</pre>
 
==={{headerHeader|BASIC256Tiny BASIC}}===
The [[#GW-BASIC|GW-BASIC]] solution works without any changes.
BASIC256 supports both <code>goto</code> and <code>gosub</code>.
{{works with|QBasic}}
{{works with|Yabasic}}
<syntaxhighlight lang="freebasic">print "First line."
gosub sub1
print "Fifth line."
goto Ending
 
sub1:
print "Second line."
gosub sub2
print "Fourth line."
return
 
Ending:
print "We're just about done..."
goto Finished
 
sub2:
print "Third line."
return
 
Finished:
print "... with goto and gosub, thankfully."
end</syntaxhighlight>
{{out}}
<pre>Igual que la entrada de FutureBasic.</pre>
 
=={{header|BQN}}==
2,130

edits