sd

From Esolang
Jump to navigation Jump to search


How it works

There are two variables, known as variable1 and variable2. You change these to manipulate code, output ASCII characters and change your position in the code. Your code fails if it reads something which isn't a command.

Commands

Command Result
+ Add 1 to variable1.
- Take 1 from variable1.
* Add 1 to variable2.
/ Take 1 from variable2.
. Replace the command in the position equal to variable2 with the ASCII character equal to the value of variable1.
, Replace the command in the position equal to variable1 with the ASCII character equal to the value of variable2.
: Set variable1 to user input.
; Set variable2 to user input.
! Prints all code before the last read location marker.
@ Marks location for ! command

Basic Examples

Hello World

+++++++++++++@+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+++++++++++++++++++++++++++++*.+++++++*.*.+++*.-------------------------------------------------------------------*.------------*.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.--------*.+++*.------*.--------*.------------------------------------------------------*.!

Resources

Python Interpreter