Expand description

This module contains a CDDL parser.

The only public items here are the function parse_cddl and the error ParseError and its child enum ErrorKind.

Examples

use cddl_cat::parse_cddl;

let input = "map = { name: tstr }";
assert!(parse_cddl(input).is_ok());

Structs

An error that occurred during CDDL parsing.

Enums

The “kind” of error generated during CDDL parsing.

Functions

The main entry point for parsing CDDL text.

An entry point for parsing CDDL text, preserving rule strings