Expand description
The lowered-trees table, into which a backend’s lowering stage writes its result, and the address of a node inside a lowered tree.
A table is typed data that one stage writes beside the frozen trees and
other stages read; its identity is its registered dotted name, and that
name is also a capability (Table; see frozen trees and computed
data).
Every backend uses the table type of this module, LoweredTrees,
with an instance of its own named flm.lowered.<backend>
(lowered_table_name, lowered_table). For each document tree, the
table holds the lowered tree (LoweredTree), the identifiers of the
definitions its rules required (style and script definitions on HTML,
package requests and definition pieces on LaTeX), and how many rounds
lowering ran. LoweredAddr is the address of one node inside a lowered
tree; the text backend’s position marks use it.
Structs§
- Lowered
Addr - The address of a node of a lowered tree: the document tree it was lowered from, and the node’s position in that tree’s lowered form (its index in storage order).
- Lowered
Tree - The lowered form of one document tree: the tree an emitter walks, the requirements its rules recorded, and how many rounds lowering took.
- Lowered
Trees - The lowered trees of one backend, keyed by the document tree each was
lowered from — the table
flm.lowered.<backend>.
Functions§
- lowered_
table - The typed handle through which a stage reads or writes
backend’s lowered trees. - lowered_
table_ name - The name of
backend’s lowered-trees table,flm.lowered.<backend>— both the table’s name and the capability that writing it provides.