Idego
Jump to navigation
Jump to search
Idego(Increment decrement goto) is OISC by User:ChuckEsoteric08.
Commands
The code of program is this:
a b c d
Which means:
Increment cell b
by a
if positive, else decrement. Goto c
if cell is d
. If there isn't d
in line:
a b c
Then goto c
if not 0.
Cell will not increment/decrement if a
is:
Value | Meaning |
---|---|
IN |
input character and set cell to input |
OUT |
output cell as ASCII character |
If there is only
a b
Then not goto any command.
Examples
Hello, World!
72 1 OUT 1 29 1 OUT 1 7 1 OUT 1 OUT 1 3 1 OUT 1 -111 1 44 1 OUT 1 -12 1 OUT 1 55 1 OUT 1 24 1 OUT 1 3 1 OUT 1 -6 1 OUT 1 -8 1 OUT 1 -100 1 33 1 OUT 1
Cat program
An infinitely repeating cat program, which terminates for an input of zero, constitutes the following:
IN 1 OUT 1 1
Truth-machine
The following program implements a truth-machine:
IN 1 0 1 5 48 OUT 1 0 1 3 49 OUT 1
Computational class
It is Turing-complete, because it is easy to convert every BF program to it
Interpreter
- Common Lisp implementation of the Idego programming language.