A brainfuck interpreter and brainfuck-to-JVM compiler written in Kotlin.
  • Kotlin 76.4%
  • Brainfuck 23.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-06-06 00:31:45 +02:00
gradle/wrapper Fix and modernize gradle and kotlin 2026-06-06 00:31:45 +02:00
samplePrograms Initial commit 2022-02-25 10:16:17 +01:00
src/main/kotlin/com/grappenmaker/brainfuck Initial commit 2022-02-25 10:16:17 +01:00
.gitattributes Initial commit 2022-02-25 10:16:17 +01:00
.gitignore Initial commit 2022-02-25 10:16:17 +01:00
build.gradle.kts Fix and modernize gradle and kotlin 2026-06-06 00:31:45 +02:00
gradlew Fix and modernize gradle and kotlin 2026-06-06 00:31:45 +02:00
gradlew.bat Fix and modernize gradle and kotlin 2026-06-06 00:31:45 +02:00
hell.png Initial commit 2022-02-25 10:16:17 +01:00
LICENSE.md Add LICENSE 2022-02-25 10:23:35 +01:00
README.md Initial commit 2022-02-25 10:16:17 +01:00
settings.gradle.kts Initial commit 2022-02-25 10:16:17 +01:00

brainfuck-kt

My wacky implementation of a brainfuck intepreter in Kotlin. Supports streaming the program, when doing so the program must be terminated with an EOF (Ctrl-D).
Some example programs can be found here.
Credits to this guide for information about brainfuck and examples.

Check out Bf2Jvm.kt for a brainfuck to JVM .class file compiler. This only supports reading and writing to files. The compiler generates obviously very unoptimized code, and the decompiler then generates even more hell: Hell