cddl-codegen
cddl-codegen copied to clipboard
@newtype doesn't work with .size/etc
foo = uint .size 2 ; @newtype
Will not work, and will instead generate a type alias as if the @newtype wasn't there.
The parsing logic in general needs a lookover and possible refactor as similar things are handled in multiple places (leading to cases like this not being handled). Especially the comment DSL, but also tags + cbor control operators.