Open nslowell opened 1 year ago
Thanks for reporting this @nslowell. I need to add support for hex, octal and binary numbers which is why 0b1..0o4
isn't parsing correctly.
Some of your CDDL looks a bit wonky too. You're using a lot of (key: value)
syntax that is confusing the parser. Anything in the form of key: value
is a group entry but you're trying to use that syntax to describe types. For example, the #6.10(boolval: bool)
is invalid CDDL because the boolval: bool
tag type you've specified is not actually a type but rather a group entry.
Thanks for responding. I will highlight again that this is CDDL from the creators of zcbor, it's not my direct CDDL. My actual CDDL is simpler--though perhaps still a little "wonky"--but it runs through zcbor without error, so I assumed it was acceptable CDDL. Perhaps there is some interpretation confusion with the RFC.
I will ask NordicSemiconductor for their input, but in the meantime, I welcome any updates. Thanks, again.
I have successfully used https://github.com/NordicSemiconductor/zcbor for generating C code from CDDLs, but my CDDLs and their provided test cases are getting error messages when I try to run them through this tool or the website.
Can you provide some clarification on why the errors are occurring? Is this tool missing support?
Example for https://github.com/NordicSemiconductor/zcbor/blob/main/tests/cases/corner_cases.cddl: