-
Notifications
You must be signed in to change notification settings - Fork 0
ABrambleNinja/ruby-brainfuck
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This is my attempt at a Brainfuck interpreter in Ruby. As far as I know, it's fully functional.
To run a program, store the Brainfuck code in a string and call Brainfuck::run on it. Here's an example:
Brainfuck::run("++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.") # code from Wikipedia
prints Hello World!
The code is currently pretty messy, but I will be working on cleaning it up shortly. I first wanted to get the basic algorithm working.
About
ruby brainfuck interpreter
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published