Skip to content

DominikGrodl/BrainSwift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BrainSwift

BrainSwift is a simple, arguably very ineffective BrainFuck interpreter written in the Swift programming language.

How to use

  1. clone this repo to you machine git clone https://github.com/DominikGrodl/BrainSwift.git or git clone [email protected]:DominikGrodl/BrainSwift.git if using ssh
  2. in Terminal, run swift run BrainSwift {path-to-brainfuck-file}. You can use the helloworld.bf example file included in this repo.
  3. 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.

Please let me know if you find any issues, or anything you would have done differently. This is the first pass-through for this project, so there are I suppose many edge cases which are not correctly handled.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published