Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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