[−][src]Module cddl_cat::parser
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
ParseError | An error that occurred during CDDL parsing. |
Enums
ErrorKind | The "kind" of error generated during CDDL parsing. |
Functions
parse_cddl | The main entry point for parsing CDDL text. |
slice_parse_cddl | An entry point for parsing CDDL text, preserving rule strings |