#brainfuck #state-machine #macro #rsfk

rsfk-core

Dependency of the rsfk project. Contains a brainfuck state machine.

1 unstable release

0.1.0 Apr 2, 2024

#63 in #brainfuck

Download history 166/week @ 2024-04-02 2/week @ 2024-04-09

168 downloads per month
Used in rsfk

MIT license

3KB

rsfk-core ♋

Brainfuck state machine. Dependency of rsfk

How to use this project?

Prerequisite

Command

  • cargo run to execute main.rs

Usage

** This library contains no implementation for loop instructions [ and ] **
(In rsfk, the loop of Rust loop {} is used when expanding the macro)

Struct

BrainfuckState::new() -> BrainfuckState::<u8>

Methods

BrainfuckState::mv_left(usize) -> ()
BrainfuckState::mv_right(usize) -> ()
BrainfuckState<T>::add(T) -> ()
BrainfuckState<T>::sub(T) -> ()
BrainfuckState::out(usize) -> ()
BrainfuckState::inp(usize) -> ()

Dependencies

~475KB