Skip to main content

Module transform

Module transform 

Source
Expand description

Program transforms: host intentions expressed as changes to the program rather than as runtime behavior around it.

A host that wants to inject a value, observe a scope, or otherwise shape a run does so by rewriting the program and compiling the result. The program’s own typing, lifecycle classification, and engine selection then apply to the host’s additions exactly as they apply to the author’s.

Functions§

apply_tile_defaults
Give every tile that declares no delimiters or sigil of its own the host’s defaults (SRD 114 §5.6, §10), re-reading its body under them.
assign_values
Assign name=value text to externs and inputs by rewriting their declarations.
parse_assignment
Split name=value text into its parts.