Crate tapir_bf

Crate tapir_bf 

Source
Expand description

Tapir is a one-function, zero-dependency Brainfuck interpreter.

Enums§

EnhancedInputError
The type of errors generated by enhanced_input. Wraps the error type E of the underlying iterator in InputException<E>.
TapirError
The type of errors encountered/generated by interpret during execution, representing I/O failures as well as invalid Brainfuck programs/interpreter states.

Functions§

enhanced_input
Wraps any valid input stream with a line-based preprocessor.
interpret
Runs a Brainfuck program to completion, or produces an error in the form of a TapirError along with the index into program of the last instruction executed.