SKVERSE
Jump to navigation
Jump to search
SKVERSE (SKip and reVERSE) is a programming language that uses skip and reverse to do stuff:
Stuff
Skip
Skips a command
skip print "this will not be ran"
Reverse
Reverses the direction of the code
print "start" #runs at the start skip #skips reverse reverse #infinite loop v print "loop" #runs forever reverse #infinite loop ^ print "end" #never runs
Skverse
Skips a command and reverses the direction of the code
print "ok" #only ran once skverse
End
Ends the program
skip end reverse
Start
Starts the program
end start skip reverse
Line
Labels a line + Refers to a line using names
line 1 skip line 3 line 3
Edit
Edits a line that is labeled
line 1 #ran as print "hello" after line 2 edit line 1 print "hello" reverse
Run
Runs a line that is labeled
line 1 edit line 1 print "hello" run line 1 #print "hello"
Line#
Refers to a line using 0 based indexing
line a line 1 line 2 line 3 edit line a 2 edit line 1 10 edit line 2 20 edit line 3 30 print line# (line a) #line 2 so 20
Group
Groups lines
group line# 2 line# 4 as group1 skip print "this is in group1" skip print "so is this" skip print "but not this" run group1 #print this is in group1 and so is this
Reversed?
If Reversed 1, else 0
print reversed #print 0 then 1 reverse
Split
Split depending on if 0 or 1, if 1, do first jump, else do second jump
skip split reversed line# 4 line# 6 skip print "reversed" skip print "not" skip reverse