pub fn parse_cddl(input: &str) -> Result<Cddl, ParseError>
The main entry point for parsing CDDL text.
If successful, it will return a Cddl instance containing all the rules from the input text.
Cddl
use cddl_cat::parse_cddl; let input = "map = { name: tstr }"; assert!(parse_cddl(input).is_ok());