Module parser

Module parser 

Source
Expand description

Text parser for format specification DSL expressions.

Enforces strict grouping and disambiguation rules as defined in docs/file-info.md:

  • Operational operators (>, !, :) bind left-to-right.
  • Conjunction (&) and alternation (|) cannot be mixed with each other without explicit parentheses.
  • Conjunction and alternation cannot be mixed with operational operators without explicit parentheses.
  • Supports @chain(...) directive wrapper in source data.

Functionsยง

parse_format_expr
Parses a format specification expression from a string slice.