Skip to main content

compile_to_scalar_words

Function compile_to_scalar_words 

Source
pub fn compile_to_scalar_words(source: &str) -> Result<Vec<u32>, String>
Expand description

Compile a .lg source string all the way to soft_core_scalar imem words, through the SAME front-end and oracle-driven compiler the VM uses (so the chip runs byte-identically to vm_outcome). Err if it doesn’t parse/compile, or uses anything outside the function-free scalar subset.