Vars
Jump to navigation
Jump to search
Vars is a simple esolang where varibles are defined by a number which by default is zero
(Note: numbers cannot be used in the code and variable number 0 is treated as empty (so you can access it (#())))
Commands:
#(x) varible number x +(x) add one to variable number x -(x) subtract one from varible number x [x:code] while variable number x is not 0 run code ?(code) 50% chance of running code $(x) print variable number x %(x) set variable number x to input
Programs
Truth-machine
%()[:$()]$()
Cat program
+()[:%()$()+()]