[][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

  1. parse the assembly code and convert it into an abstract syntax tree
  2. convert the abstract syntax tree into a list of executable assembly instructions
  3. transform the list of assembly instructions into output code using the assembly target