Crate crain

Source
Expand description

Crain – A brainfuck compiler/interpreter/tool.

 ++++  +++++    +[   - >    +
+    + +    +  +  >  - ->   +
+      +    < <    < ] > +  +
+      ++++.  [->++> + <  < ]
>    . >   .  <    - - -   --
 ----  .    + +    + + +    .

Crain is a brainfuck compiler/interpreter/development tool written in Rust, dedicated to providing a fast, reliable, and ready-to-use execution environment for brainfuck programs.

Re-exports§

pub use bfic::BfCode;
pub use interp::eval_file;
pub use interp::eval_string;
pub use interp::BfFrame;
pub use interp::BfVm;
pub use celltype::*;

Modules§

bfic
The definition and parsing of the intermediate code for brainfuck.
celltype
The definition of the cell types for brainfuck VM.
interp
The definition of the run function.

Enums§

InterpError
Errors that may occur during interpretation, including parsing and VM errors.
ParseError
Errors that may occur when parsing Brainfuck code.
VmError
Errors that may occur during Brainfuck VM execution.

Functions§

main_func
The main func of Crain in effect.