Skip to main content

Module tile

Module tile 

Source
Expand description

The tile template grammar (SRD 114 §2.2): holes, projections, branches, and the doubled-open escape, parsed over configurable delimiters and sigil. The textual front end for Polytile; the structural front end (§3) lowers to the same pieces.

Functions§

parse_hole_expr
parse_template
Parse a tile body into pieces under opts. span is the tile statement’s position, used for diagnostics.
render_template
Render pieces back to template text under opts, the inverse of parse_template up to whitespace inside directives.