https://github.com/swz-git/rsbf
Quick optimizing brainfuck interpreter and C transpiler
https://github.com/swz-git/rsbf
brainfuck interpreter rust transpiler
Last synced: about 1 year ago
JSON representation
Quick optimizing brainfuck interpreter and C transpiler
- Host: GitHub
- URL: https://github.com/swz-git/rsbf
- Owner: swz-git
- License: mit
- Created: 2022-07-13T21:44:50.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-10-11T23:24:27.000Z (over 2 years ago)
- Last Synced: 2025-02-17T12:15:49.220Z (over 1 year ago)
- Topics: brainfuck, interpreter, rust, transpiler
- Language: Rust
- Homepage:
- Size: 67.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fast (JIT & non-JIT) brainfuck interpreter and "compiler" written in rust
Rsbf includes 2 binaries, rsbfi and rsbfc. Rsbfi is a fast (both JIT and non-JIT) optimizing brainfuck interpreter. Rsbfc is a brainfuck to C transpiler that compiles the transpiled C code using clang to a binary executable.
## Runtime dependencies (rsbfc)
- [clang](https://clang.llvm.org/) (make sure it is in [PATH](https://en.wikipedia.org/wiki/PATH_(variable)))
## Install
`cargo install --git https://github.com/swz-git/rsbf`
## Usage
`rsbfc --help` or `rsbfi --help`
## Future plans
- [ ] Custom [cranelift](https://cranelift.dev/)-powered compiler