pub trait Compile {
// Required method
fn compile(&self, compiler: &mut Compiler) -> Result<(), Error>;
}Expand description
Trait for types that can be compiled into bytecode Instructions.
The compiler is responsible for converting a CalcScript abstract syntax tree into a bytecode
representation that can be executed by the
Vm. The available instructions are
defined in the InstructionKind enum.