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.git
orgit clone [email protected]:DominikGrodl/BrainSwift.git
if using ssh - in Terminal, run
swift run BrainSwift {path-to-brainfuck-file}
. You can use thehelloworld.bf
example 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-representation
flag to see the intermediate representation the program is parsed to, and--output-memory
to output the state of the program memory when it finishes execution.