[][src]Module cddl_cat::flatten

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

flatten

Convert an already-parsed cddl AST into a (name, rules) map.

flatten_from_str

Convert a CDDL schema in UTF-8 form into a structured rule set.

slice_flatten

Convert an already-parsed cddl AST into a (name, (rule, rule-string)) map.

slice_flatten_from_str

Convert a CDDL schema in UTF-8 form into a structured rule set, preserving the CDDL text.

Type Definitions

FlattenResult

The result of a flatten operation.