cddl-codegen icon indicating copy to clipboard operation
cddl-codegen copied to clipboard

@newtype doesn't work with .size/etc

Open rooooooooob opened this issue 2 years ago • 0 comments

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.

rooooooooob avatar Mar 16 '23 05:03 rooooooooob