Module column_spec

Module column_spec 

Source
Expand description

Unified parser and validator for the overloaded Aliases / Base / Chain / Syntax column.

This column appears as Column 6 in Format category tables ("Base/Related Format/Category, Chain (@), or Syntax (:)") and Column 9 in Dc category tables and unified schemas ("Aliases; >=xref, <=decompos., :=Dc syntax, @chain").

It parses comma-separated directives:

  • @implies(...): Logically implied format, supertype, or capability requirement using Dc shorthand syntax.
  • @based_on(...): Historical ancestry, lineage, or parent format reference using Dc shorthand syntax.
  • @chain(...) or @(...): Format composition specification DSL.
  • :<syntax>: Document Character syntax rule DSL.
  • ><xref>: Cross-reference.
  • <<tag>payload>: Decomposition tag (<approx>, <equiv>, <semantic>, etc.).
  • Bare words: Permitted as aliases in Character tables; disallowed in Format tables.

Structs§

ParsedAliasesOrBaseColumn
Structured representation of parsed elements from an Aliases / Base / Chain / Syntax cell.
ParsedFormalAlias
Parsed formal alias with kind and alias name.

Functions§

parse_aliases_or_base_column
Parses and validates the contents of an Aliases / Base / Chain / Syntax column cell.