Trait bf::bytecode::BytecodeCompilable [−][src]
pub trait BytecodeCompilable { fn with_peephole<F, R>(&self, k: F) -> R
where
F: FnOnce(&Program) -> R; fn bytecode_compile(&self) -> Box<Program> { ... } }
Program forms that can be compiled to bytecode.
Required Methods
fn with_peephole<F, R>(&self, k: F) -> R where
F: FnOnce(&Program) -> R,
F: FnOnce(&Program) -> R,
Compile the given program into the peephole AST to prepare for bytecode compilation.
Provided Methods
ⓘImportant traits for Box<R>
fn bytecode_compile(&self) -> Box<Program>
Compile the given program to bytecode.
Implementors
impl BytecodeCompilable for Program
impl<T: PeepholeCompilable + ?Sized> BytecodeCompilable for T