Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/pastly/brainfuck-rs

Brainfuck interpreter, currently just an MVP
https://github.com/pastly/brainfuck-rs

Last synced: 15 days ago
JSON representation

Brainfuck interpreter, currently just an MVP

Awesome Lists containing this project

README

        

# Brainfuck Interpreter, Matt Traudt (pastly)

Currently this code serves as a minimally-viable product version of a brainfuck
interpreter.

The only optimization I'm currently planning on:

- [x] coalescing repeated instructions,
- [.] transforming trivial/obvious instruction series (e.g. `[-]`) into a pseudo-instruction
- [x] `[-]` into `SetValue(0)`

Next steps (if I don't just forget about this and do other things):

- write a script to test my interpreter behaves the same as some other popular
interpreter(s).

## Examples

Some or all of the examples are taken from
[this repo](https://github.com/fabianishere/brainfuck).

## Running

$ cargo run --release -- examples/hello.bf
$ cargo run --release -- examples/head.bf < src/bin/bf.rs

## License

This work is released to the public domain "under" the unlicense. See
`LICENSE`.