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.spanis the tile statement’s position, used for diagnostics. - render_
template - Render pieces back to template text under
opts, the inverse ofparse_templateup to whitespace inside directives.