Function stak_compiler::compile_bare

source ·
pub fn compile_bare(
    source: impl Read,
    target: impl Write
) -> Result<(), CompileError>
Expand description

Compiles a program in Scheme into bytecodes with only built-ins.

§Examples

let source = "($$define x 42)";
let mut target = vec![];

stak_compiler::compile_bare(source.as_bytes(), &mut target).unwrap();