Skip to content

HipyCas/brainrs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

brainrs - 🦀 Rust 🧠 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) + more commands

  • 📦 Available as library for use inside Rust

  • ⌨️ Easy to use CLI

  • ⚡ 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:

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:

# 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

Releases

No releases published

Languages