Nullus157 / cbor-diag-rs

Support for parsing/encoding CBOR diagnostic notation and annotated hex
https://cbor.nemo157.com
Apache License 2.0
9 stars 6 forks source link

Retaining comments #117

Open Nemo157 opened 2 years ago

Nemo157 commented 2 years ago

I'm undecided whether this is worthwhile, but the AST could have nodes added to retain comments when parsing extended diagnostic notation. These could then be included when outputting either diagnostic notation, or as part of the annotated hex output.

This wouldn't really help with what I see as the main usecases though, converting EDN -> bytes for tooling that wants human writeable input, or converting bytes -> {EDN, annotated hex} for tooling that wants to show human readable output.