Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/pastly/brainfuck-rs
- Owner: pastly
- License: unlicense
- Created: 2021-01-07T19:37:52.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-07T23:08:31.000Z (over 2 years ago)
- Last Synced: 2023-02-26T18:56:06.168Z (almost 2 years ago)
- Language: Brainfuck
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`.