Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pdsouza/pbfi
Preetam's BrainFuck Interpreter
https://github.com/pdsouza/pbfi
Last synced: about 16 hours ago
JSON representation
Preetam's BrainFuck Interpreter
- Host: GitHub
- URL: https://github.com/pdsouza/pbfi
- Owner: pdsouza
- Created: 2013-03-07T22:43:07.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-03-08T02:24:10.000Z (over 11 years ago)
- Last Synced: 2023-03-13T12:04:08.072Z (over 1 year ago)
- Language: C
- Size: 125 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
pbfi
====## What?
Preetam's BrainFuck Interpreter.
## Why?
Good question.
## How?
Write some [brainfuck](http://en.wikipedia.org/wiki/Brainfuck) and put it in a file. Here's the mandatory "Hello World!":
```brainfuck
+++++ +++++
[
> +++++ ++
> +++++ +++++
> +++
> +
<<<< -
]
> ++ .
> + .
+++++ ++ .
.
+++ .
> ++ .
<< +++++ +++++ +++++ .
> .
+++ .
----- - .
----- --- .
> + .
> .
```Then pass it to pbfi:
```
$ ./pbfi bf/hello.bf
Hello World!
```## TODO
1. Error handling: weird shit can happen with unbalanced brackets, illegal data ptr increments and decrements
2. REPL-style so you can somewhat know what is going on