brainfuck/lib.rs
1mod instruction;
2mod optlevel;
3mod precompiler;
4mod interpreter;
5mod debug_format;
6
7pub use instruction::*;
8pub use optlevel::*;
9pub use precompiler::*;
10pub use interpreter::*;
11pub use debug_format::*;
12
13// We typically don't expect to see more than this many levels of nested jumps
14// based on an analysis of some brainfuck programs
15// More than this many is okay, we just preallocate this many to avoid the cost of
16// reallocating later.
17const MAX_NESTED_JUMPS: usize = 15;