| Crates.io | blazefuck |
| lib.rs | blazefuck |
| version | 1.0.0 |
| created_at | 2022-05-14 17:52:53.103447+00 |
| updated_at | 2022-05-14 17:52:53.103447+00 |
| description | A blazingly-fast (interactive) Brainfuck interpreter. |
| homepage | |
| repository | https://github.com/poopsicles/blazefuck |
| max_upload_size | |
| id | 586729 |
| size | 44,637 |
A blazingly-fast (interactive) Brainfuck interpreter, written in Rust.
A tiny, efficient Brainfuck interpreter, with a REPL for easy, on-the-fly evaluation
Brainfuck is a simple esoteric language with a minimal subset of commands, you can read more here.
~/.cargo/bin (Linux) or %USERPROFILE\.cargo\bin (Windows).cargo install blazefuck at a terminal and it'll be installed from crates.io.blazefuck at a prompt$ blazefuck
blazefuck 1.0.0 on windows, run with "-h" or "--help" for more information.
Use "cells" to show the cell stack and "exit" to exit the interpreter.
>>> _
| > | Increment the data pointer (to point to the next cell to the right). |
| < | Decrement the data pointer (to point to the next cell to the left). |
| + | Increment (increase by one) the byte at the data pointer. |
| - | Decrement (decrease by one) 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. |
Also cells and exit will show the current cell stack and exit the REPL, respectively.
blazefuck [FILE], some examples can be found here.$ blazefuck hello.bf
Hello World!
$ _
-d, --debug Shows the cell stack after every command
-s, --strict Activates strict mode
$ git clone https://github.com/poopsicles/blazefuck
$ cd ./blazefuck
$ cargo build
./target/debug/blazefuckThis project is licensed under the MIT License, more details here.