Function lower

Source
pub fn lower(ast: &Program, template: &str) -> Result<Tx, Error>
Expand description

Lowers the Tx3 language to the intermediate representation.

This function takes an AST and converts it into the intermediate representation (IR) of the Tx3 language.

§Arguments

  • ast - The AST to lower

§Returns

  • Result<ir::Program, Error> - The lowered intermediate representation