Crate binter

Source
Expand description

This module exports brainfuck machine and interpreter implementations.

Structsยง

BrainfuckMachine
This struct is used as an implementation of a brainfuck-compatible Turing-like machine that supports basic operations needed for such compilations. This machine works under an assumption that chars can be converted into u8 freely through ASCII decoding and encoding.
Interpreter
A brainfuck interpreter class that reads code from a file / BufRead instance, parses, optimizes and runs it.