1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//! # 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.

pub mod ast;
mod bbdag;
#[doc(hidden)]
pub mod byte_utils;
mod codegen;
pub mod equation;
mod interpreter;
mod opt_types;
mod optimizers;
mod parser;
pub mod settings;
pub mod tape;
#[doc(hidden)]
pub mod test_utils;
pub mod types;

// Re-export some symbols.
pub use codegen::generate_c;
pub use interpreter::{execute, ExecuteCallbackData, ExecuteCallbackResult, ExecutionError};
pub use optimizers::optimize;
pub use parser::{parse_source, ParseError};
pub use types::{BfNum, TapeAddr, TapeAddrError};