Skip to content

moulins/brainfuck-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

brainfuck-rs

Yet Another Brainfuck Interpreter written in Rust, because why the f$%* not? (And it's a good way to learn a new language)
If you don't know brainfuck yet, go here.

This program uses the impl Trait feature, and so must be compiled with rustc nightly.
Compile with the --release flag for better performance.

Implementation

For now, the interpreter supports only a 30,000-cell memory, and will panic when a brainfuck program tries to access cells outside this range.

The cells are 8 bits wide and are wrapping, so that 255 + 1 = 0.

Executing the , instruction on EOF will set the current cell to 0.

About

Yet Another Brainfuck Interpreter (in Rust)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published