We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Ulilang

From Esolang
Jump to navigation Jump to search

commands

ulilang     |code
---------------
0,l         |goto l
1,l         |l:
2,x,y,l     |if x==y{goto l}
3,x,y,l     |if x>y{goto l}
4,x,n       |x=n
5,x,y       |x=y

where l is a goto label x and y are variables n is a literal

io

there is none

examples

truth-machine

4,0,0
4,input,0(or 1)
2,0,input,skipper
1,loop
0,loop
1,skipper

logic gates

4,0,0
4,1,1
4,2,2
4,gate,0(or any number in between 1 and 3 inclusive)
4,in1,0(or 1)
4,in2,0(or 1)
2,gate,0,not
2,gate,1,and
2,gate,2,or
2,in1,0,xorb
2,in2,0,xorc
4,out,0
0,ret
1,xorb
5,out,in2 
0,ret
1,xorc
4,out,1
0,ret
1,not
2,in1,0,notb
4,out,0
0,ret
1,notb
4,out,1
0,ret
1,and
2,in1,0,andb
5,out,in2
0,ret
1,andb
4,out,0
0,ret
1,or
2,in1,0,orb
4,out,1
0,ret

where out is the output