Cane Code

From Esolang
(Redirected from CaneCode)
Jump to navigation Jump to search

Cane Code is a Brainfuck like language, created by Mihail Podivilov in 2013 year. Cane Code is opensource.

Command set

Cane Code command set was created by Mihail Podivilov. Only numbers.

Command Description
1 Increment the data pointer (+ 1 in cell)
2 Decrement the data pointer (- 1 in cell)
3 Move the pointer to the left
4 Move the pointer to the right
5 If the byte at the data pointer is zero, then instead of moving the instruction pointer forward to the next command, jump it forward to the command after the matching 6 command
6 If the byte at the data pointer is nonzero, then instead of moving the instruction pointer forward to the next command, jump it back to the command after the matching 5 command
7 Accept one byte of input, storing its value in the byte at the data pointer
8 Output the byte at the data pointer
9 User custom command or clear memory
0 User custom command or terminate programm execution

The Cane Code is cross-platform.

In the language Cane Code, you can write a full program or operating system. There are three ways to execute code: interpreter, compiler or compiler LOL LOL hex code into machine code. ANSI can be enabled or disabled by user.

Example, print Mihail

1111111152411111111364111111111111183114111113641118282
222222811111111811183

Example, fibonacci numbers

1111111111141444411111111111111111111111111111111111111
1111114111111111111111111111111111111113333335454444441
4133333332644444445333333314444444263541111111111523254
4141333264445333144426135452635266453354441333264452663
3644454414133326444533314442613545263526645331445266333
3333644444511111111111111111111111111111111111111111111
1111852661111111111352423641111111111111111111111111111
1111111111111111111185263333333333335444141333326444453
3331444426325448483335266335441413332644453331444263353
1426453142633326

External resources