Skip to content

dfreedm/brainf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

BrainF is a BrainFuck interpreter written in only ~100 lines
Usage: scala BrainFParser "brainfuckline"
Example: $ scala BrainFParser "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>."
Hello World

Also, can be used within a scala project (or the interpreter).
Example:
scala> var a = new BrainF
scala> a.parse("++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.")
Hello World

So far, it only handles correctly formatted input, with unmatched brackets failing silently.

About

Scala BrainFuck Interpreter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages