Crate hornbeam_ir

source ·
Expand description

The Hornbeam IR crate contains a definition for an Intermediate Representation for templates. The crate also contains a facility to take AST nodes from the grammar and convert them to IR, as well as to (lightly) optimise the IR.

The IR has roughly the same control flow structures as available in Rust since Rust is intended to be a compilation target eventually.

For using the IR, see hornbeam_interpreter (dynamic) or hornbeam_macros (code gen).

Modules§

Enums§

Functions§