- Swift 97.4%
- Brainfuck 2.6%
| Brainflip.xcodeproj | reformat everything | |
| Docs |
prep BrainflipDocument for becoming a struct
|
|
| Sources/Brainflip |
add isEditable focused value
|
|
| .gitattributes | rename .gitattributes.txt to .gitattributes | |
| .gitignore | update license headers | |
| .swiftlint.yml | add reducer to WhitespaceList | |
| License.md | the first commit in a _very_ long time | |
| Readme.md | fix readme badges | |
| target.xcconfig | update license headers | |
🧠 Brainflip
Swift 6.1 macOS Tahoe Xcode 26
a human-usable brainf**k interpreter for macOS
Overview
We've all heard of brainf**k -- you know, that "programming language" where
the standard Hello, World! program looks like this:
>++++++++[<+++++++++>-]<.>++++[<+++++++>-]<+.+++++++..+++.>>++++++[<+++++++>-]<++.------------.>++++++[<+++++++++>-]<+.<.+++.------.--------.>>>++++[<++++++++>-]<+.Not very enticing, is it? 🫤
Brainflip attempts (attempts) to remedy that.
You're provided with a relatively full-fledged editor to do your (削除) evildoings (削除ここまで)
programming with. You can run programs, trim those programs to make them
really unreadable, step through programs to identify that one stupid
instruction that's breaking everything, and inspect just about every aspect of
the interpreter, from the total instructions executed to the exact contents of
the array.
Oh, and did I mention it's highly configurable? It's highly configurable. Like, really highly configurable. Like, so ridiculously configurable it's excessive.
Brainflip's interpreter settings.
(A somewhat full list of features can be found in
Features.md.)
Building and Running
Open Xcode, clone this repo,
and open Brainflip.xcodeproj. Once Xcode's done with package resolution, hit
⌘R to build and run the project.
References
I used the epistle to the implementors as a reference when putting together the interpreter and some of its settings.