Module cddl_cat::flatten

source ·
Expand description

Tools for converting the ast (syntax tree) into an ivt (intermediate validation tree).

This module is called “flatten” because its goal is to flatten syntax tree detail that’s not useful for validation.

Functions

  • Convert an already-parsed cddl AST into a (name, rules) map.
  • Convert a CDDL schema in UTF-8 form into a structured rule set.
  • Convert an already-parsed cddl AST into a (name, (rule, rule-string)) map.
  • Convert a CDDL schema in UTF-8 form into a structured rule set, preserving the CDDL text.

Type Aliases