A Brainfuck-to-JVM bytecode compiler written in JavaScript (Node.js). This project enables you to compile Brainfuck source code into JVM bytecode, allowing Brainfuck programs to run on the Java Virtual Machine (JVM).
- Compiles Brainfuck source code to executable JVM
.classfiles - Supports all standard Brainfuck commands (
+,-,>,<,[,],.,,) - Command-line interface for compiling and running Brainfuck programs
- Cross-platform: runs anywhere the JVM is available
- Java 8 or higher installed
- Node.js v22 or higher installed
Clone the repository:
git clone https://github.com/geeksilva97/brainjuck.git
cd brainjuckDemo, video below:
./brainjuck your-brainfuck-file.bf [<output-class-name>]your-brainfuck-file.bf: The Brainfuck source file you want to compile.<output-class-name>: Optional. The name of the output class file (default isCompiledBrainfuck).
java OutputClassNameCompile and run the classic "Hello, World!":
./brainjuck samples/helloworld.bf HelloWorld
java HelloWorldMade with ❤️ by geeksilva97

