A modified brainfuck implementation that can compile to JVM bytecode, and allow for object-oriented programming.
Brainfrick provides a gradle plugin for compiling brainfrick code, and the runtime libraries are available on maven central. To use, apply the plugin and add the runtime libraries as a dependency:
plugins {
id 'io.github.lukebemish.brainfrick' version '<plugin-version>'
}
repositories {
mavenCentral()
}
dependencies {
implementation 'io.github.lukebemish.brainfrick:brainfrick-runtime:<version>'
}
Brainfrick code can be written in .frick
files inside of the brainfrick
folder within a source set: for instance, src/main/brainfrick/helloWorld.frick
. Brainmaps are referenced from .frick
files by relative path, and should have the .map
extension.