BrainSwift is a simple, arguably very ineffective BrainFuck interpreter written in the Swift programming language.
- clone this repo to you machine
git clone https://github.com/DominikGrodl/BrainSwift.gitorgit clone [email protected]:DominikGrodl/BrainSwift.gitif using ssh - in Terminal, run
swift run BrainSwift {path-to-brainfuck-file}. You can use thehelloworld.bfexample file included in this repo. - Additionally, you can pass in flags to get some additional program information when executing. You can use the
--output-intermediate-representationflag to see the intermediate representation the program is parsed to, and--output-memoryto output the state of the program memory when it finishes execution.