Erase
Jump to navigation
Jump to search
Erase is an esolang where you erase
Commands
erase <x> - erases the character at x print <x> - prints the character at x if <x> <y> <z> - goes to z if character at x is y, yes newline is a character write <a> <x> - write a at x goto <x> - goes to x
Program
helo wrd print 0 print 1 print 2 print 2 print 3 print 4 print 5 print 3 print 6 print 2 print 7
Truth machine
input: 0 print 7 if 7 1 9
Note
$line number - start of line x, 0 being first
100 10 1 program
100 print 0 print 1 print 2 print 3 if 2 0 $9 if 2 0 $11 if 2 0 $13 goto $14 erase 2 goto $1 erase 1 goto $1 erase 0 goto $1 end