https://github.com/bbuck/brainfuck-rb
A ruby interpreter for brainfuck
https://github.com/bbuck/brainfuck-rb
Last synced: 11 months ago
JSON representation
A ruby interpreter for brainfuck
- Host: GitHub
- URL: https://github.com/bbuck/brainfuck-rb
- Owner: bbuck
- Created: 2013-07-22T19:45:32.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-07-22T19:48:51.000Z (over 12 years ago)
- Last Synced: 2025-03-24T11:55:19.392Z (11 months ago)
- Language: Ruby
- Size: 113 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Information
This is a simple Intepreter for Brainfuck written in Ruby.
I recently read Marc-Andre's [Create Your Own Prog Lang](http://createyourproglang.com/)
book (which is great, by the way) and wanted to test
out the knowledge gained on a simple language.
There is a lot of room for improvment, I'm aware, so if you have any suggestions just let me know.
# Installation
Right now it's extremely basic, I may or may not do improvements of the executable.
`hello.bf` (Extention does not matter)
```brainfuck
+++++ +++++ \n
>
H
+++++ +++++ +++++ +++++ +++++ +++++ +++++ +++++ +++++ +++++
+++++ +++++ +++++ +++++ ++
>
E
+++++ +++++ +++++ +++++ +++++ +++++ +++++ +++++ +++++ +++++
+++++ +++++ +++++ ++++
>
L
+++++ +++++ +++++ +++++ +++++ +++++ +++++ +++++ +++++ +++++
+++++ +++++ +++++ +++++ +++++ +
>
L
+++++ +++++ +++++ +++++ +++++ +++++ +++++ +++++ +++++ +++++
+++++ +++++ +++++ +++++ +++++ +
>
O
+++++ +++++ +++++ +++++ +++++ +++++ +++++ +++++ +++++ +++++
+++++ +++++ +++++ +++++ +++++ ++++
<<<<
.>.>.>.>. Print hello
<<<<<. Print \n
```
```
gem install brainfuck-rb
brainfuck file_with_brainfuck.bf
```