Skip to content

Examples for CDDL Matching

cabo edited this page Nov 4, 2017 · 1 revision

This wiki page could be used to collect isolated examples for CDDL matching.

E.g.,

a = { 5: int //
      (5: text,
       6: bytes)
    }

matches:

{5: "alligator", 6: h'54657472616E7963687573'}
{5: "unrepartable", 6: h'6865726F6E6572'}
{5: 3613}
{5: "epigrammatize", 6: h'666C75696469736D'}
{5: 4652}
{5: -371}
{5: "Melica", 6: h'7570636F636B'}
{5: "tukra", 6: h'756E636F6E7369676E6564'}
{5: "behorn", 6: h'61646D696E6963756C617279'}
{5: "professionalist", 6: h'416C62'}
Clone this wiki locally