type 'run' to run program type 'clear' to clear program type 'help' for... yknow... help typing a command without a line number executes it immediately up/down to scroll TEST PROGRAMS: hello world ☺ 5 print "hello world \c1" hello user 5 out "What is your name? " 10 prompt 15 join "Hello, " $0 20 join $0 "!" 25 print $0 bel 5 "\a" count to 10 / loop 5 mem 1 0 10 add $1 1 15 mem 1 $0 20 print $1 25 pause 0.5 30 lst $1 10 35 if $0 goto 10 subroutines! (this one increments a memory slot) 5 goto 30 10 add $$1 1 # increment, we take slot $1 as our argument 15 mem $1 $0 # set memory 20 return 25 mem 2 0 # our memory slot is 0 30 mem 1 2 # set the memory to be incremented to $2 35 gosub 10 40 join "incremented memory slot: " $$1 45 out $0 # expected output: 1 (0+1=1) fancy hello world with subroutine 5 cls # clear screen 10 goto 70 15 mem 2 0 # index 20 add $2 1 25 mem 2 $0 # increment index 30 add $2 1 35 slice $1 $2 $0 # get next character 40 out $0 # print character 45 pause 0.1 # wait a bit 50 len $1 55 lst $2 $0 # is index < length / are there more chars 60 if $0 goto 20 # if so repeat 65 return 70 mem 1 "hello\n" # our text 75 gosub 15 80 mem 1 "world\n" # our other text 85 gosub 15
UPDATE 2: WARNING found bugs when interacting with other applications. the order in which the scripts run matters, so if the order is disturbed there can be an (ugly) discrepancy between the positions of the stamped and cloned elements while dragging. do not use until patched please contact me if you have created a patch UPDATE: oh no im screwed scratch.mit.edu/projects/505149165/ i hate patching suckless wm at least i didnt have to make it scratch is evolving, just backwards really bad ripoff of BASIC at least it works font source //int10h.org/blog/2015/12/bigblue-terminal-oldschool-fixed-width-font/ fullscreen kinda ish recommended it kinda distorts the font a bit on my screen ty to Microsoft for... yknow... making BASIC yay stealing microsofts ideas ;) #shell