Skip to main content

Module parse

Module parse 

Source
Expand description

Body-grammar parser for the workload readouts: block. See SRD-63 §5.1.

Push 3’s grammar:

  • Items are whitespace-separated. Each item is one of:
    1. Readout call — bare lower-snake-case identifier matching a registered readout name. Followed (optionally) by space-separated key=value options up to the next non-key= token.
    2. Parameterised form — name:arg is sugar for name pattern=arg (the readout’s primary option, currently the metric:pattern shorthand — generalised in Push 4).
    3. Quoted literal — "text" or 'text'. Preserved verbatim.
    4. Bare punctuation — a non-identifier byte at an item boundary becomes a single-character literal.

Push 3 punts:

  • Color directives (@RED, [#hex]) — Push 4.
  • Wildcard event-slot bindings — Push 4.
  • Composition / override resolver (+-prefix) — Push 4.

Functions§

bake
Parse a body string into a BakedBody.