Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/HipyCas/brainrs
A blazing fast Brainf**k interpreter
https://github.com/HipyCas/brainrs
brainfuck cli interpreter rust
Last synced: 2 months ago
JSON representation
A blazing fast Brainf**k interpreter
- Host: GitHub
- URL: https://github.com/HipyCas/brainrs
- Owner: HipyCas
- Created: 2021-10-04T09:05:53.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-12T12:08:38.000Z (almost 3 years ago)
- Last Synced: 2024-08-02T05:23:15.841Z (6 months ago)
- Topics: brainfuck, cli, interpreter, rust
- Language: Rust
- Homepage: https://hipycas.github.io/brainrs
- Size: 29.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-blazingly-fast - brainrs - A blazing fast Brainf**k interpreter (Rust)
README
# brainrs - :crab: Rust :brain: Brainf\*\*k interpreter
`brainrs` is a simple and blazing fast Brainf\*\*k interpreter written in pure Rust.
**`brainrs` is still WIP, and is by far not complete nor stable, expect errors and bugs**
## Features
- :electron: Core commands ([spec](http://brainfuck.org/brainfuck.html)) + more commands
- :package: Available as library for use inside Rust
- :keyboard: Easy to use CLI
- :zap: Extremely fast with millisecond times
## Usage
`brainrs` reads the code from the standard input, meaning you have to pipe in the file contents. The easiest way is to use the `<` character, like seen below:
```sh
brainrs < file.bf
```Another option is putting `brainrs` on the recieving side of the pipe, which may allow you to use another command to process the input first, as seen below:
```sh
# Pass one-line script directly in the terminal
echo "+++++>+>+<<[>[>>+<<-]>[>+<<+>-]>[<+>-]<<<-]++++[>>+++++ +++++ ++<<-]>>." | brainrs
# Fetch a file from the internet and execute it
curl https://location.online/of/file.fb | brainrs
```