-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementation of additional proposed control operators and wasm bindings for validator #79
Conversation
5f1cecc
to
c800bc1
Compare
Is adding .abnf/.abnfb part of your plans? |
@cabo indeed it is |
That is great to hear, because that will help us with moving forward on that internet-draft! |
90dd016
to
c50aa68
Compare
So is the non-ABNF part of this ready for prime time? |
@cabo not quite ready yet. Still got some kinks to iron out, even for existing control operators. Case in point, #88. Since there don't seem to be any Rust crates that can validate a string against an ABNF grammar (there's https://crates.io/crates/abnf but it only parses ABNF), my current approach is to use https://crates.io/crates/abnf_to_pest to convert the ABNF to a Pest grammar, and then validate the string against Pest per pest-parser/pest#432. This isn't ideal, but the ABNF options in Rust are limited. |
(That is pretty much the way I have been implementing ABNF: I have the ABNF to treetop translator in the |
95b095c
to
7d0bff6
Compare
Moving this out of draft status. All control operators as of draft-ietf-cbor-cddl-control-05 have been implemented. Still missing some more unit tests before merging. |
Implements additional control operators as proposed in draft-ietf-cbor-cddl-control-05. CC @cabo
JSON:
CBOR:
Also includes wasm bindings for the validator module (#83), fixes for multiline byte strings and #88 and a rework of the CLI. Fixes #82 as well.