A Brainfuck interpreter written in Python 3.
Yet another Brainfuck interpreter ¯_(ツ)_/¯
** Requires Python 3 **
OS X & Linux:
./bf [-h] [--input [INPUT [INPUT ...]]] [--log] [source]Windows:
bf.bat [-h] [--input [INPUT [INPUT ...]]] [--log] [source]"Brainfuck is an esoteric programming language created in 1993 by Urban Müller, and is notable for its extreme minimalism" - Wikipedia
Wanna learn how to write Brainfuck programs? Click here.
Brainfuck uses only 8 operators:
+: Increment current memory value
-: Decrement current memory value
<: Shift memory pointer to the left
>: Shift memory pointer to the right
,: Reads user input
.: Print current memory value as ASCII
[: Start loop
]: Ends loop if current memory value is equal to zero
You won't need any library outside of standard python 3, so grab your favorite code editor and have fun.
Runnin testS:
make testsor
python3 -m unittest discover test/- 0.1.2
- Command Line arguments
- 0.1.1
- Readind files
- 0.1.0
- REPL Interpreter
- 0.0.1
- Work in progress
Francisco Cidade – /in/francisco-cid
Distributed under the MIT license. See LICENSE.md for more information.
https://github.com/franciscocid/brainfuckpy
- Fork it (https://github.com/yourname/yourproject/fork)
- Create your feature branch (
git checkout -b feature/fooBar) - Commit your changes (
git commit -am 'Add some fooBar') - Push to the branch (
git push origin feature/fooBar) - Create a new Pull Request
