Trait bf::traits::PeepholeCompilable[][src]

pub trait PeepholeCompilable {
    fn with_rle<F, R>(&self, k: F) -> R
    where
        F: FnOnce(&Program) -> R
; fn peephole_compile(&self) -> Box<Program> { ... } }

Program forms that can be compiled to the peephole AST.

Required Methods

Compile the given program into RLE AST to prepare for peephole optimization.

Provided Methods

Peephole optimize the given program.

Implementors