0.1.2 |
|
---|---|
0.1.1 |
|
0.1.0 |
|
#76 in #brainfuck
9KB
125 lines
bf3D
brainfuck in 3D space
Instruction set
Character | Meaning |
---|---|
> |
Move data pointer on Ox "to right". |
< |
Move data pointer on Ox "to left". |
^ |
Move data pointer on Oy "up". |
_ |
Move data pointer on Oy "down". |
/ |
Move data pointer on Oz "deep" |
\ |
Move data pointer on Oz "shallow" |
+ |
Increment the byte at the data pointer. |
- |
Decrement the byte at the data pointer. |
. |
Output the byte at the data pointer. |
, |
Accept one byte of input, storing its value in the byte at the data pointer. |
[ |
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 ] command. |
] |
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 [ command. |
License
bf3D is published under MIT license.
Running
cargo install bf3d
- Create file with bf3d code
bf3d <file>
where is your bf3d code
To Do
- Shell mode