This is a BrainFuck interpreter implemented in Rust. BrainFuck is an esoteric programming language known for its minimalism and extreme simplicity.
The bfint-cli run command supports two options:
[FILE]
: Specifies the file containing the BrainFuck code to run.-c --code <CODE>
: Positional an argument with BrainFuck code.
Running BrainFuck code with positional argument:
bfint-cli -c "--<-<<+[+[<+>--->->->-<<<]>]<<--.<++++++.<<-..<<.<+.>>.>>.<<<.+++.>>.>>-.<<<+."
Running BrainFuck code from a file:
bfint-cli ./examples/hello_world.bf
- hello_world.b - displays "Hello World!"
- fib.b - outputs arbitrarily many Fibonacci numbers
- qsort.b - implements a Quicksort program
- random.b - a random number generator based on a cellular automaton
- shortest_hello_world.b - shortest version of hello world program in brainfuck
- Write interpreter core
- Write tests for interpreter
- Add examples
- Add ci/cd
- Add normal README
- Add normal cli to project
If you'd like to contribute to this project, feel free to fork the repository and submit a pull request.
Please make sure to write tests for any new functionality you add, and ensure that all existing tests continue to pass.
This project is licensed under the MIT License - see the LICENSE file for details.