Crate brainoxide

Source
Expand description

§BrainOxide - An optimizing Brainfuck compiler/interpreter

NOTE! This is a command line program. This library does NOT provide a stable API, or even an API meant to be consumed by external code at all.

You have been warned.

Re-exports§

pub use types::BfNum;
pub use types::TapeAddr;
pub use types::TapeAddrError;

Modules§

ast
Types and functions for the AST.
equation
Represents a recursive equation
settings
Settings defining what to do
tape
Implementations of the BF tape
types
Fundamental data types used throughout brainoxide

Enums§

ExecuteCallbackData
Data sent to execution callback
ExecuteCallbackResult
Reply type for callback
ExecutionError
Error type for execution
ParseError
Errors during parsing

Functions§

execute
Simple recursive interpreter implementation
generate_c
Generate C code
optimize
Run optimisation passes.
parse_source
Parse source code into AST