A brainfuck interpreter and brainfuck-to-JVM compiler written in Kotlin.
- Kotlin 76.4%
- Brainfuck 23.6%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| gradle/wrapper | ||
| samplePrograms | ||
| src/main/kotlin/com/grappenmaker/brainfuck | ||
| .gitattributes | ||
| .gitignore | ||
| build.gradle.kts | ||
| gradlew | ||
| gradlew.bat | ||
| hell.png | ||
| LICENSE.md | ||
| README.md | ||
| settings.gradle.kts | ||
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:
