Skip to content

Commit

Permalink
-05: encoding indicators, chunked strings, ip'', 999()
Browse files Browse the repository at this point in the history
Discussion of roundtripping
ip''/IP'': upper case/lower case application literals
999(): application extension stand-in
888(): ellipsis and ellipsis stand-in
editorial and ABNF improvements
  • Loading branch information
cabo committed Oct 17, 2023
1 parent f4f8502 commit f8e8110
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
3 changes: 2 additions & 1 deletion cbor-diag-parser.abnf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ app-prefix = lcalpha *lcalnum ; including h and b64
/ ucalpha *ucalnum ; tagged variant, if defined
app-string = app-prefix sqstr
sqstr = "'" *single-quoted "'"
bstr = app-string / sqstr / embedded; app could be any type
bstr = app-string / sqstr / embedded
; app-string could be any type
tstr = DQUOTE *double-quoted DQUOTE
embedded = "<<" seq ">>"

Expand Down
18 changes: 8 additions & 10 deletions draft-ietf-cbor-edn-literals.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ title: >
abbrev: >
CBOR EDN: Literals and ABNF
docname: draft-ietf-cbor-edn-literals-latest
date: 2023-10-01
date: 2023-10-17

keyword: Internet-Draft
cat: info
Expand Down Expand Up @@ -142,6 +142,8 @@ The term "CDDL" refers to the data definition language defined in
{{-cddl}} and its registered extensions (such as those in {{RFC9165}}), as
well as {{-cddlupd}}.

{::boilerplate bcp14-tagged}

## (Non-)Objectives of this Document

{{Section 8 of -cbor}} states the objective of defining a
Expand Down Expand Up @@ -492,7 +494,7 @@ that wraps an array of string fragments alternating with ellipsis
indicators:

~~~ cbor-diag
{ "contract": /CPA/888(["Herewith I buy", 888(null), 888("gned: Alice & Bob")]),
{ "contract": /CPA/888(["Herewith I buy", 888(null), "gned: Alice & Bob"]),
"signature": 888([h'4711', 888(null), h'0815']),
}
~~~
Expand Down Expand Up @@ -737,10 +739,6 @@ Security considerations {#seccons}

The security considerations of {{-cbor}} and {{-cddl}} apply.

[^todo2]

[^todo2]: Anything else meaningful to say here?

--- back

ABNF Definitions {#grammars}
Expand Down Expand Up @@ -811,8 +809,8 @@ The following additional items should help in the interpretation:

* `string` and the rules preceding it in the same block realize both
the representation of strings that are split up into multiple chunks
{{Section G.4 of -cbor}} and the use of ellipses to represent elisions
[elision]. The semantic processing of these rules is relatively
({{Section G.4 of -cbor}}) and the use of ellipses to represent elisions
({{elision}}). The semantic processing of these rules is relatively
complex:
* A single `...` is a general ellipsis, which can stand for any data
item.
Expand Down Expand Up @@ -932,8 +930,8 @@ title="ABNF Definition of RFC3339 Representation of a Date/Time"
### ip: ABNF Definition of Textual Representation of an IP Address {#ip-grammar}

The syntax of the content of `ip` literals can be described by the
ABNF for `IPv4address` and `IPv6address` in {{Section 3.2.2 of -uri}}, as reproduced
in {{abnf-grammar-ip}}.
ABNF for `IPv4address` and `IPv6address` in {{Section 3.2.2 of -uri}},
as included in slightly updated form in {{abnf-grammar-ip}}.

~~~ abnf
app-string-ip = IPaddress ["/" uint]
Expand Down

0 comments on commit f8e8110

Please sign in to comment.