Module passerine::compiler::gen[][src]


Compiler is a bytecode generator that walks an SST and produces (unoptimized) Bytecode. There are plans to add a bytecode optimizer in the future. Note that this struct should not be controlled manually, use the gen function instead.


Simple function that generates unoptimized bytecode from an SST. Exposes the functionality of the Compiler.

Generates unoptimized bytecode from a SST, Given a specific FFI. Note that this doesn’t even assume the core ffi, So it’s required you generate a core ffi with core::ffi_core(), Then merge it with your ffi with FFI::combine(...).