Skip to content

A Brainfuck REPL and compiler targeted to Java Virtual Machine

License

Notifications You must be signed in to change notification settings

geeksilva97/brainjuck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BrainJuck: The Ultra Master Brainfuck JVM Compiler

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).

Brainfuck Compiler Demo

Features

  • Compiles Brainfuck source code to executable JVM .class files
  • Supports all standard Brainfuck commands (+, -, >, <, [, ], ., ,)
  • Command-line interface for compiling and running Brainfuck programs
  • Cross-platform: runs anywhere the JVM is available

Getting Started

Prerequisites

  • Java 8 or higher installed
  • Node.js v22 or higher installed

Clone the repository:

git clone https://github.com/geeksilva97/brainjuck.git
cd brainjuck

Demo, video below:

Brainfuck Compiler Demo

Usage

Compile a Brainfuck Program

./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 is CompiledBrainfuck).

Run the Generated Class

java OutputClassName

Examples

Compile and run the classic "Hello, World!":

./brainjuck samples/helloworld.bf HelloWorld
java HelloWorld

Made with ❤️ by geeksilva97

About

A Brainfuck REPL and compiler targeted to Java Virtual Machine

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published