[−][src]Function lasm::assemble
pub fn assemble(target: impl Target, asm_code: impl Display) -> Result<String>
assemble takes an assembly target, and the assembly code an object that implements display
This function will
- parse the assembly code and convert it into an abstract syntax tree
- convert the abstract syntax tree into a list of executable assembly instructions
- transform the list of assembly instructions into output code using the assembly target