Expand description
Tapir is a one-function, zero-dependency Brainfuck interpreter.
Enums§
- Enhanced
Input Error - The type of errors generated by
enhanced_input. Wraps the error typeEof the underlying iterator inInputException<E>. - Tapir
Error - The type of errors encountered/generated by
interpretduring 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
TapirErroralong with the index intoprogramof the last instruction executed.