This is a simple Brainfuck interpreter implemented in Java. Brainfuck is an esoteric programming language known for its minimalism, consisting of just eight commands.
- Interprets standard Brainfuck code
- Handles memory management automatically
- Provides clear error messages for common issues
- Supports file-based input
You can run the interpreter by either building the project from source or downloading the pre-built JAR file from the Releases tab.
java -jar birp.jar test.bfThe following Brainfuck code:
>++++++++[<+++++++++>-]<.
>++++[<+++++++>-]<+.
+++++++..
+++.
>>++++++[<+++++++>-]<++.
------------.
>++++++[<+++++++++>-]<+.
<.
+++.
------.
--------.
>>>++++[<++++++++>-]<+.When interpreted, outputs:
Hello, World!
You can build the project using Gradle:
./gradlew buildThis will create a JAR file in the libs directory that can be executed to interpret Brainfuck code.
src/main/java/com/arithefirst/Birp.java: Main entry pointsrc/main/java/com/arithefirst/BfInterpreter.java: Interpreter implementation