Skip to main content

Module interpolation

Module interpolation 

Source
Expand description

Shared {expr} brace-scanning used by both the compile-time interpolation parser and the runtime translation-template evaluator.

Both sites need to walk a raw string looking for {…} placeholders; this module provides one implementation that they both call.

Enums§

BraceSegment
A segment produced by scanning {expr} interpolation syntax.

Functions§

scan_brace_segments
Scans text for {expr} placeholder syntax, yielding segments in order.