Skip to main content

Module ir

Module ir 

Source
Expand description

Intermediate representation for the teksu! DSL.

The parser builds an IR tree; the lowering walks the tree and emits the final builder-call token stream. Keeping parse and lower separate keeps span handling predictable: each IR node carries the span of the user token it originated from.

Structs§

TeksiElement
An element: Type[::ctor](args...) { body }.
TeksiFor
TeksiIf
TeksiMatch
TeksiMatchArm
TeksiProperty
TeksiRoot
The root of a teksu! invocation.

Enums§

BodyItem
One item in an element’s body block.
PropArg
A property argument. Expr and Element both emit .prop_name(...); Escape and Binding force the _id slot suffix per spec §A.3 and hoist the binding when present.
RustShape
TeksiElse