SplitLang

From Esolang
Jump to navigation Jump to search

SplitLang is a programming language that uses splitting, or forking

Split command

#going to line 2
split: #wait what, there is another me on line 4
#ok I guess ill go here, line 3
split2: #hi other code pointer on line 2
#i will also go to line 5

Join command

#ok I will go to line 2
split: #hi line 3 code pointer
split2: #hi I am going to line 4
join split #wait I am merging with the other code pointer
#ok I am back on line 5 doing normal stuff

Vars

#ok I'm going to line 2
a = 10 #ok so I know a is 10
split: #ok splitting again
split2: #oh, a is 10
join split #back to normal
#yay I still know a is 10, but twice?

Goto

#Ok everything's normal
split: #i am splitting, wait I'm here again, wait I'm here again, wait I'm here again, wait I'm here again, wait I'm here again, wait I'm here again, wait I'm here again, wait I'm here again, wait I'm here again, wait I'm here again, wait I'm here again, wait I'm here again, wait I'm here again, wait I'm here again, wait I'm here again, wait I'm here again, wait I'm here again, wait I'm here again, wait I'm here again, wait I'm here again, wait I'm here again, wait I'm here again, wait I'm here again, wait I'm here again
goto 2 #wait I am here, I am here again, I am here again, I am here again, I am here again, I am here again, I am here again, I am here again, I am here again, I am here again, I am here again, I am here again, I am here again, I am here again, I am here again, I am here again, I am here again, I am here again, I am here again, I am here again, I am here again, I am here again, I am here again, I am here again, I am here again, I am here again, I am here again, I am here again, I am here again, I am here again, I am here again, I am here againn
split2:
#infinite code pointers here