Reversable
Jump to navigation
Jump to search
Reversable is an esoteric programming language created by User:Dulph on April 1st, 2026. It is extremely similar to REVERSE and most of the commands are the same. However, it doesn't support floating point numbers. It was used as a base for 2D-Reversable and 2D-Reversable 2.
Syntax
Commands
All instructions should be on the same line, separated by a unique space. Program ends itself upon reaching end of the line in one direction or the other.
| Instruction | Desc |
|---|---|
| NOP | Does nothing |
| SKIP | Skips next instruction |
| REVERSE | Reverses the read direction |
| REVERSE<IA | Reverses the read direction if IA > 0 (IA being of type integer) |
| REVERSE<SA | Reverses the read direction if SA is not an empty string (SA being of type empty string) |
| GET-PX | Asks for input and stores it in var PX as P type |
| OUT-PX | Prints the value of var PX |
| IA+IB | Sets IA to IA + IB |
| IA-IB | Sets IA to IA - IB |
| IA*IB | Sets IA to IA * IB |
| IA%IB | Sets IA to the remainder of IA divided by IB |
Variable types
Only 2 variable types are supported by Reversable :
- Integers, named with prefix I
- Caracters, named with prefix S
Examples
Cat
SKIP REVERSE GET-SA SKIP OUT-SA REVERSE<SA
Implementations
- Python Implementation : Original implementation by User:Dulph