encode_dc_stream

Function encode_dc_stream 

Source
pub fn encode_dc_stream(expr: &FormatExpr) -> Vec<DcToken>
Expand description

Encodes a FormatExpr into a canonical slice of DcTokens using succinct prefix notation.

Fixed-arity binary operators (301, 302, 303) are emitted without group delimiters. Variable-arity operators (300 &, 516 |) emit a terminating 299 only when needed to disambiguate from subsequent operands in an enclosing expression.