Keya

From Esolang
Jump to: navigation, search
This article is a stub, which means that it is not detailed enough and needs to be expanded. Please help us by adding some more information.

Keya is a language based on the idea of Brainfuck invented by Krishna Sudhakar. it is like Brainfuck, but with a 2-D memory grid instead of an array.

Commands

Keya is not compatible with programs written in Brainfuck. The command set is as follows:

Command Description
8 Move pointer up by one row.
2 Move pointer down by one row.
4 Move pointer left by one cell.
6 Move pointer right by one cell.
r Reset to initial configuration.
. Output the data at the Pointer.
, Input data at Pointer.
+ Increment byte at the Pointer.
- Decrement byte at the Pointer.
> Copy data to next cell to the right of the Pointer.
< Copy data to next cell to the left of the Pointer.
^ Copy data to next cell above the Pointer.
_ Copy data to next cell below the Pointer.
[ If the byte at the Pointer is zero, then instead of moving the instruction pointer forward to next command, skip it forward to the command after the next corresponding ] command.
] If the byte at the pointer is nonzero, then instead of moving the instruction pointer forward to the next command, skip it back to the command after the previous corresponding [ command.

External resources