#state-machine #brainfuck #macro #rsfk

rsfk-core

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

1 unstable release

0.1.0 Apr 2, 2024

#73 in #brainfuck


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