
From nobody Wed Nov 15 03:54:43 2017
Return-Path: <dev+ietf@seantek.com>
X-Original-To: abnf-discuss@ietfa.amsl.com
Delivered-To: abnf-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 90681129454 for <abnf-discuss@ietfa.amsl.com>; Wed, 15 Nov 2017 03:54:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ed0t6wGPVpSv for <abnf-discuss@ietfa.amsl.com>; Wed, 15 Nov 2017 03:54:40 -0800 (PST)
Received: from smtp-out-1.mxes.net (smtp-out-1.mxes.net [67.222.241.250]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B6B8F126B6E for <abnf-discuss@ietf.org>; Wed, 15 Nov 2017 03:54:40 -0800 (PST)
Received: from dhcp-894b.meeting.ietf.org (dhcp-894b.meeting.ietf.org [31.133.137.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id AC60B274F7 for <abnf-discuss@ietf.org>; Wed, 15 Nov 2017 06:54:39 -0500 (EST)
From: Sean Leonard <dev+ietf@seantek.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\))
Message-Id: <97E6D6C0-7010-46D6-8641-670F10A2504C@seantek.com>
Date: Wed, 15 Nov 2017 19:54:36 +0800
To: ABNF-Discuss <abnf-discuss@ietf.org>
X-Mailer: Apple Mail (2.3273)
Archived-At: <https://mailarchive.ietf.org/arch/msg/abnf-discuss/g3nMGkoB4ISYm_fBqoTW-RGvYmY>
Subject: [abnf-discuss] ABNF colloquialism for end-of-line
X-BeenThere: abnf-discuss@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "General discussion about tools, activities and capabilities involving the ABNF meta-language" <abnf-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/abnf-discuss/>
List-Post: <mailto:abnf-discuss@ietf.org>
List-Help: <mailto:abnf-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 15 Nov 2017 11:54:42 -0000

Hello ABNF =E2=80=9CDoctors=E2=80=9D:

On a recent thread on cbor@ =
<https://mailarchive.ietf.org/arch/msg/cbor/ZL2NvalH6jmSVqfvkBH4af3BHsE>, =
the following question arose:
What is the best ABNF colloquialism for end-of-line?

CR LF is the =E2=80=9CInternet standard newline=E2=80=9D, with rule name =
<CRLF> [RFC5234]. However, there is a desire amongst some specification =
writers to admit Unix LF as well. I have not heard of people clamoring =
for bare CR; however if bare LF is on the table then bare CR might be on =
the table too, for completeness. A quite small minority of published RFC =
specifications define an end-of-line production as CRLF / LF, and an =
even smaller minority of published RFC specifications allow for bare CR =
as well.

So I just wanted to see what ABNF people=E2=80=99s opinions are on this =
one.

Thanks,

Sean

~~~~~~~
2017-11-15 Facts about CRLF and new lines in ABNF in RFC Series
Sean Leonard

Facts about CRLF and new lines:

Surveyed ABNF of all RFCs between RFC 2000 to RFC 7999.

=E2=80=9CWhat is the end-of-line marker called, other than CRLF?=E2=80=9D =
(by search of CRLF)

Answer: Most call it CRLF. Amongst the minority, EOL is the most common, =
followed by line-break or lineBreak. Most define the end-of-line marker =
as CR LF; in the minority, most in the minority use CRLF / LF, and a =
smaller subset uses CR / LF (aka any of bare CR, bare LF, or CRLF).

RFC	Hint	Name	=3D	Definition
2705	Megaco	EOL	=3D	CRLF / LF
2967*	TISDAG	nl	=3D	%d13 %d10
2967*	TISDAG	SEP	=3D	(CR LF) | LF   <-- NOT actually ABNF=20
3108	SDP	EOL	=3D	(CR / LF / CRLF)
3435	Megaco	EOL	=3D	CRLF / LF
3780	SMIng	lineBreak =3D	CRLF / LF
4997	ROHC-FN	CRLF	=3D	%x0A / %x0D.0A
4997	ROHC-FN	NL	=3D	COMMENT / CRLF
4997	ROHC-FN	COMMENT	=3D	"//" *(SP / HTAB / VCHAR) CRLF
5228*	Sieve	(Sieve explicitly limits to CRLF-only in text)
5234*	ABNF	c-nl	=3D	comment / CRLF
5234*	ABNF	comment =3D	";" *(WSP / VCHAR) CRLF
6020	YANG	line-break =3D	CRLF / LF
7208*	SPF	CRLF	=3D	<standard end-of-line token as per =
[RFC5322]>
7468	PKIXt	eol	=3D	CRLF / CR / LF
7468	PKIXt	eolWSP	=3D	WSP / CR / LF
7468	PKIXt	W	=3D	WSP / CR / LF / %x0B / %x0C


=E2=80=9CHow is =E2=80=98nl=E2=80=99 defined?=E2=80=9D (by search of =
=E2=80=98nl=E2=80=99)

Answer: Always CRLF.

RFC	Hint	Name	=3D	Definition
2957	whoispp	nl	=3D	%d13 %d10
2958	whoispp	nl	=3D	%d13 %d10
2967*	TISDAG	nl	=3D	%d13 %d10
4997	ROHC-FN	NL	=3D	COMMENT / CRLF
5234*	ABNF	c-nl	=3D	comment / CRLF
5234*	ABNF	comment =3D	";" *(WSP / VCHAR) CRLF
6787*	MRCPv2	phrase-nl =3D	"Phrase-NL" ":" 1*UTFCHAR CRLF


=E2=80=9CHow is =E2=80=99newline=E2=80=99 used?=E2=80=9D (by search of =
=E2=80=98newline=E2=80=99)=20

Answer: =E2=80=98newline=E2=80=99 is never defined as a rule name. When =
it appears in comments, it is *always* associated with CR LF only. (Same =
as =E2=80=98nl=E2=80=99.)

=E2=80=9CHow is =E2=80=980A=E2=80=99 used?=E2=80=9D (by search of 0A)

Answer: =E2=80=980A=E2=80=99 is almost always defined as LF or used as =
LF; no additional interesting variations were uncovered. The only =
interesting variation is RFC 4464, which has %x0a / %x0d / (others) as =
whitespace generically, but that protocol is not line-oriented.

* items do not address the premise of the inquiry, but is included =
anyway for completeness.
~~~~~~~=


From nobody Wed Nov 15 07:37:17 2017
Return-Path: <dcrocker@gmail.com>
X-Original-To: abnf-discuss@ietfa.amsl.com
Delivered-To: abnf-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DF151126CC7 for <abnf-discuss@ietfa.amsl.com>; Wed, 15 Nov 2017 07:37:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level: 
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8DvSaS0PZ9DZ for <abnf-discuss@ietfa.amsl.com>; Wed, 15 Nov 2017 07:37:13 -0800 (PST)
Received: from mail-oi0-x22d.google.com (mail-oi0-x22d.google.com [IPv6:2607:f8b0:4003:c06::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4E4401200FC for <abnf-discuss@ietf.org>; Wed, 15 Nov 2017 07:37:13 -0800 (PST)
Received: by mail-oi0-x22d.google.com with SMTP id h6so16264664oia.10 for <abnf-discuss@ietf.org>; Wed, 15 Nov 2017 07:37:13 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=subject:to:references:from:cc:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=202FTylKquGl9maQguY4zHM+3luelN5XpAHakGWV5WA=; b=DNhRz5bnzsVg+5BFFNwzdZ2R5av652/pbPcSO+KGqj+651O0ARSd5CrekFMXN2K5TI O71cHNA49COkv8tKYqhbVPd1K3YTDRSl/LugEABzcskbEZ5Esh4HNlYECOpvfBeuvYaj gT1+CJqDLT7Yel6ePTVOgOm8B+1CEVrA4guRJFji9q7kF5+vD7GydTcxB/SfxWjEQfdO 4ta2OaOa3eSBRwCdqwY2dJ82Ur7J9m5DtRbx/6iNfZhyT0jzEy2FrRt4Kc9/lqvw5jna WkH2hAlqrmdbn5yeCL0IzrdqTNqWNSqKT9kj8MCIcNaEa/4U3RN1CMLv6cnAYEeRGStc SINg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:cc:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=202FTylKquGl9maQguY4zHM+3luelN5XpAHakGWV5WA=; b=CVuGzY11eyIUS5Lih9KtPtecrCyl0+pUFiTX4NFaCp09esDxJ1C83CVEt6Oj7cgQxV dYfD9Tp35bqLAx/WSk3BkKDSZvhiUK9FZHGJeYBeCswaguq1ls8Ugx0lH6vHAgnqiNEd m9rSh/ACiNPmvqUfCXszhRzrbA3L1zN01ozDoSKIA+AfTn/cO1Av6vI7nuneu03pnipN styVV4fFjK8iSAKTS2+xH1+6TTI47vbxctbSY/eKTXJpWlAyqACmKSgCQqDjNzFsYv/T fs92HRcoy11yPhS7oJdmDgQ6GCqybYnLL4GnhmHnlFteATLdegBcJ6iTyL0YhYRYGaoP 9WZA==
X-Gm-Message-State: AJaThX7s1MKBcM+3eiD14cGxEqALOEN3IFocoeOObYdoterndGRPBkv8 vAfodzba+U5m1NT5CIcD1fM9OGhX
X-Google-Smtp-Source: AGs4zMZh2L8pRoOVsRohtYJk3ziSDdL5jKGM0PJmKf7noivpP31unD1+jRUfYxwyzgJYAtFfHVVl2g==
X-Received: by 10.202.215.130 with SMTP id o124mr6113864oig.228.1510760232015;  Wed, 15 Nov 2017 07:37:12 -0800 (PST)
Received: from ?IPv6:2602:304:cda0:8800:c4e8:d795:bbab:6d47? ([2602:304:cda0:8800:c4e8:d795:bbab:6d47]) by smtp.gmail.com with ESMTPSA id f21sm5036898otj.39.2017.11.15.07.37.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Nov 2017 07:37:10 -0800 (PST)
To: Sean Leonard <dev+ietf@seantek.com>
References: <97E6D6C0-7010-46D6-8641-670F10A2504C@seantek.com>
From: Dave Crocker <dcrocker@gmail.com>
Cc: ABNF-Discuss <abnf-discuss@ietf.org>
Message-ID: <3fbd228d-c6cf-be73-c7f2-f6b15979b852@gmail.com>
Date: Wed, 15 Nov 2017 07:37:06 -0800
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0
MIME-Version: 1.0
In-Reply-To: <97E6D6C0-7010-46D6-8641-670F10A2504C@seantek.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/abnf-discuss/jgpFl10fuRaaTMhH1Xq4yqXE7jU>
Subject: Re: [abnf-discuss] ABNF colloquialism for end-of-line
X-BeenThere: abnf-discuss@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "General discussion about tools, activities and capabilities involving the ABNF meta-language" <abnf-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/abnf-discuss/>
List-Post: <mailto:abnf-discuss@ietf.org>
List-Help: <mailto:abnf-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 15 Nov 2017 15:37:15 -0000

On 11/15/2017 3:54 AM, Sean Leonard wrote:
> Hello ABNF “Doctors”:
> 
> On a recent thread on cbor@ <https://mailarchive.ietf.org/arch/msg/cbor/ZL2NvalH6jmSVqfvkBH4af3BHsE>, the following question arose:
> What is the best ABNF colloquialism for end-of-line?
> 
> CR LF is the “Internet standard newline”, with rule name <CRLF> [RFC5234]. However, there is a desire amongst some specification writers to admit Unix LF as well. I have not heard of people clamoring for bare CR; however if bare LF is on the table then bare CR might be on the table too, for completeness. A quite small minority of published RFC specifications define an end-of-line production as CRLF / LF, and an even smaller minority of published RFC specifications allow for bare CR as well.
> 
> So I just wanted to see what ABNF people’s opinions are on this one.


Let's start from first principles:

      Interoperability is improved by simplicity. Simplicity is improved 
by having a single, canonical form for data; participants that do not 
use that form as their 'native' form convert to the canonical form. Core 
ABNF rules are designed to aid simplicity.

      When designing abnf rulesets decide whether the goal is 
interoperability -- that is, common representation for participants in a 
standardized protocol -- or is to describe raw, non-canonical data; that 
is, the goal is describing a range of native data.  Clarity about this 
distinction aids in making design choices for rules.


Given that the thread in CBOR says 'matching rules', I'm guessing that 
the goal here is to describe freeform data coming from the net.  Hence, 
requiring a simple, canonicalized data form is not appropriate.  (This 
is an essential point; if it's not correct, then what follows won't be 
either.)

Note that the term "Internet standard newline" in RFC5234 is merely a 
comment to the ABNF Core Rule definition of CRLF.

What you most definitely do /not/ want is to redefine crlf to cover both 
crlf and lf.

But I gather you /do/ want a rule that covers both CRLF and LF.

So define one.

For example:

    cbor-nl:  crlf / lf

Is there some problem with using this?

d/

-- 
Dave Crocker
Brandenburg InternetWorking
bbiw.net


From nobody Wed Nov 15 15:36:02 2017
Return-Path: <dev+ietf@seantek.com>
X-Original-To: abnf-discuss@ietfa.amsl.com
Delivered-To: abnf-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A1154128D8B for <abnf-discuss@ietfa.amsl.com>; Wed, 15 Nov 2017 15:36:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Fa3quTR8X30Z for <abnf-discuss@ietfa.amsl.com>; Wed, 15 Nov 2017 15:35:58 -0800 (PST)
Received: from smtp-out-2.mxes.net (smtp-out-2.mxes.net [67.222.241.249]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 419F6126CD8 for <abnf-discuss@ietf.org>; Wed, 15 Nov 2017 15:35:58 -0800 (PST)
Received: from dhcp-9e97.meeting.ietf.org (dhcp-9e97.meeting.ietf.org [31.133.158.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 1472D2750C; Wed, 15 Nov 2017 18:35:55 -0500 (EST)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\))
From: Sean Leonard <dev+ietf@seantek.com>
In-Reply-To: <3fbd228d-c6cf-be73-c7f2-f6b15979b852@gmail.com>
Date: Thu, 16 Nov 2017 07:35:52 +0800
Cc: ABNF-Discuss <abnf-discuss@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <2329FFC4-0791-4B70-A8D2-E6FC33F6C483@seantek.com>
References: <97E6D6C0-7010-46D6-8641-670F10A2504C@seantek.com> <3fbd228d-c6cf-be73-c7f2-f6b15979b852@gmail.com>
To: Dave Crocker <dcrocker@gmail.com>
X-Mailer: Apple Mail (2.3273)
Archived-At: <https://mailarchive.ietf.org/arch/msg/abnf-discuss/uGh55JGfUv2KSILbRUtjqnKcoQc>
Subject: Re: [abnf-discuss] ABNF colloquialism for end-of-line
X-BeenThere: abnf-discuss@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "General discussion about tools, activities and capabilities involving the ABNF meta-language" <abnf-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/abnf-discuss/>
List-Post: <mailto:abnf-discuss@ietf.org>
List-Help: <mailto:abnf-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 15 Nov 2017 23:36:00 -0000

Hello Dave,

> On Nov 15, 2017, at 11:37 PM, Dave Crocker <dcrocker@gmail.com> wrote:
>=20
> On 11/15/2017 3:54 AM, Sean Leonard wrote:
>> Hello ABNF =E2=80=9CDoctors=E2=80=9D:
>> On a recent thread on cbor@ =
<https://mailarchive.ietf.org/arch/msg/cbor/ZL2NvalH6jmSVqfvkBH4af3BHsE>, =
the following question arose:
>> What is the best ABNF colloquialism for end-of-line?
>> CR LF is the =E2=80=9CInternet standard newline=E2=80=9D, with rule =
name <CRLF> [RFC5234]. However, there is a desire amongst some =
specification writers to admit Unix LF as well. I have not heard of =
people clamoring for bare CR; however if bare LF is on the table then =
bare CR might be on the table too, for completeness. A quite small =
minority of published RFC specifications define an end-of-line =
production as CRLF / LF, and an even smaller minority of published RFC =
specifications allow for bare CR as well.
>> So I just wanted to see what ABNF people=E2=80=99s opinions are on =
this one.
>=20
>=20
> Let's start from first principles:
>=20
>     Interoperability is improved by simplicity. Simplicity is improved =
by having a single, canonical form for data; participants that do not =
use that form as their 'native' form convert to the canonical form. Core =
ABNF rules are designed to aid simplicity.
>=20
>     When designing abnf rulesets decide whether the goal is =
interoperability -- that is, common representation for participants in a =
standardized protocol -- or is to describe raw, non-canonical data; that =
is, the goal is describing a range of native data.  Clarity about this =
distinction aids in making design choices for rules.
>=20
>=20
> Given that the thread in CBOR says 'matching rules', I'm guessing that =
the goal here is to describe freeform data coming from the net.  Hence, =
requiring a simple, canonicalized data form is not appropriate.  (This =
is an essential point; if it's not correct, then what follows won't be =
either.)

The original thread was about the Matching Rules appendix, which was =
based on the adjacent ABNF grammar for CDDL (CBOR Data Definition =
Language, or whatever the acronym is these days). It=E2=80=99s really to =
describe the grammar that specification writers are to write, akin to =
ABNF itself, ASN.1, programming language code, etc.

>=20
> Note that the term "Internet standard newline" in RFC5234 is merely a =
comment to the ABNF Core Rule definition of CRLF.

Yes. Oh, I forgot the reference that standardizes CRLF as the actual =
Internet standard; I guess the latest is RFC 5198?

>=20
> What you most definitely do /not/ want is to redefine crlf to cover =
both crlf and lf.

Yeah, I think that is dumb, but (as I documented) a handful of RFCs do =
just that.

>=20
> But I gather you /do/ want a rule that covers both CRLF and LF.
>=20
> So define one.
>=20
> For example:
>=20
>   cbor-nl:  crlf / lf
>=20
> Is there some problem with using this?

My opinion is that newline =3D=3D=3D CRLF in IETF Internet standards, =
and since ABNF is an Internet standard, the concept of newline =3D=3D=3D =
CRLF. In a local operating environment, one can convert CRLF to whatever =
else. For example, the C standard library treats \n (aka LF) as the =
end-of-line marker, and converts appropriately on ingress/egress. Ditto =
for HTML/XML. (This is congruent with your first paragraph on =
simplicity.)

I understand why people want to define EOL =3D CRLF / LF; however, ABNF =
producers such as abnfgen will (probably) randomly output sample data =
with mixed line endings. The author=E2=80=99s intent of EOL =3D CRLF / =
LF is to say that a format (rather than a wire protocol) ought to accept =
either CRLF or LF as line endings in a file, but it has the effect of =
saying that CRLF/LF can be randomly interspersed in the same PDU. (And, =
in so doing, it privileges LF but denies CR, or NEL, or LS / PS, which =
don=E2=80=99t have anything better or worse for them going when it comes =
to line endings.)

In my own RFC 7468, I said:
 eol        =3D CRLF / CR / LF
 eolWSP     =3D WSP / CR / LF
 W          =3D WSP / CR / LF / %x0B / %x0C ; whitespace

and while I don=E2=80=99t view that as a mistake necessarily, I=E2=80=99m =
just pointing out that probably a better way to handle the issue would =
have been to say that CRLF *is* the end-of-line marker, and that when =
ingressing/egressing data, to treat whatever the local convention is, as =
if it=E2=80=99s CRLF in the ABNF.

One reason to have a uniform ABNF for line endings (i.e., CRLF) is =
inter-specification reuse. For example, one protocol such as URI =
[RFC3986] has ABNF productions that are reused throughout many other =
specifications, including specs that are CRLF oriented (mail...) and =
specs that are just LF oriented (HTML). URIs do not include line breaks, =
but if you want to reuse a production that includes line breaks in one =
RFC, but the line ending specs don=E2=80=99t match, then it will be a =
problem.

Sean

>=20
> d/
>=20
> --=20
> Dave Crocker
> Brandenburg InternetWorking
> bbiw.net
>=20
> _______________________________________________
> abnf-discuss mailing list
> abnf-discuss@ietf.org
> https://www.ietf.org/mailman/listinfo/abnf-discuss


From nobody Wed Nov 15 18:18:08 2017
Return-Path: <phluid61@gmail.com>
X-Original-To: abnf-discuss@ietfa.amsl.com
Delivered-To: abnf-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 414FF1241F3 for <abnf-discuss@ietfa.amsl.com>; Wed, 15 Nov 2017 18:18:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.15
X-Spam-Level: 
X-Spam-Status: No, score=-2.15 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FORGED_FROMDOMAIN=0.199, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ju6CTMucevz8 for <abnf-discuss@ietfa.amsl.com>; Wed, 15 Nov 2017 18:18:05 -0800 (PST)
Received: from mail-it0-x235.google.com (mail-it0-x235.google.com [IPv6:2607:f8b0:4001:c0b::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4FFD9120227 for <abnf-discuss@ietf.org>; Wed, 15 Nov 2017 18:18:05 -0800 (PST)
Received: by mail-it0-x235.google.com with SMTP id y15so4157985ita.4 for <abnf-discuss@ietf.org>; Wed, 15 Nov 2017 18:18:05 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=0InDkWmBW1LpuAgYGGNahAGdXwyMAlM/fCU7Vk1UpK0=; b=IklPzlptat7W0X9BGkZZUbc8XQZlmnqWSa2FDxR+iHHcxGl6QUNsIxcIPFT2V9Vp2B X4CnH+ctvFm9MUR6wiQ+VGueDj7H3Qq+pR/elFhbVuUUo+qpuB6FiFkL7kFZbt5d7DeP qiXQfcacnjAbixxDG1ZnaRrRfbD+DSNRajhr06Ci46SAHQDC12DNsM39GByD+1uoQWlq xOEeYIxImbB7zI6Xl0kMtDSAebZnYIK1yduLmCy+who2yOGbRkwliTndFQDkVJJvOdDr pLXHyPNamfPxp2OrjVL2U2BQl3lsz+U783ntvEQOk3hxH9qar4u5IYGtc82LsQXUiQ2z uKVA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=0InDkWmBW1LpuAgYGGNahAGdXwyMAlM/fCU7Vk1UpK0=; b=IoRBYfDStkFLI6IiJPz6yeCa8FT7YYeNZgUtZRAfnhddj27KDC5yvE0Y0VuFyfJ+OG pmQ4J7ZV1E+pNNMAYcsTnlpoj4VAZwukLTVS86oHicyhE30qqyVvt0cRIMDE5EaCkBXU PR2lczLK18QPWIiigMh1oTMX6Drj41E96ZPk4TmYLyPVDIfPjrByB090j/vvBv8IrI96 Uk3srKRE/2keZ9vSpE0S0NqzjBBtR1u+98Jw7R4MD6Vt0uK19kq/MEv5YBbh7Czp+rHB xvbLa4uNcCQCbDC/bYyThkLhDU0NHkDbWAudagnVA7lsFGWbJVTbZWCAFl4FeXrPdTTb k4+g==
X-Gm-Message-State: AJaThX6yNtV5LI3erwQOTOn1X2ySbzpNKN01qvUD4mCvm1dSzk8hwX0o Gp2ReQ1YVqJxik66019flmXIJEUPTfS35qSSlLYQipWd
X-Google-Smtp-Source: AGs4zMZF3InFA6pjPt5EgAafdqoZYXVX92q/ADhbBE7vvaqhCJJGmtVtLJlLl+b4HArBo6XD3qikCOKM/aGR5DLb7wc=
X-Received: by 10.36.252.68 with SMTP id b65mr585465ith.151.1510798684561; Wed, 15 Nov 2017 18:18:04 -0800 (PST)
MIME-Version: 1.0
Sender: phluid61@gmail.com
Received: by 10.107.183.130 with HTTP; Wed, 15 Nov 2017 18:18:04 -0800 (PST)
In-Reply-To: <2329FFC4-0791-4B70-A8D2-E6FC33F6C483@seantek.com>
References: <97E6D6C0-7010-46D6-8641-670F10A2504C@seantek.com> <3fbd228d-c6cf-be73-c7f2-f6b15979b852@gmail.com> <2329FFC4-0791-4B70-A8D2-E6FC33F6C483@seantek.com>
From: Matthew Kerwin <matthew@kerwin.net.au>
Date: Thu, 16 Nov 2017 12:18:04 +1000
X-Google-Sender-Auth: 2M7oJ8GkzZ9tyM-DdFIL20Bydi8
Message-ID: <CACweHNAs+HioKXokQa9vx4rSsK7QHHGkMmpD3_DSctLPuhdJAA@mail.gmail.com>
To: Sean Leonard <dev+ietf@seantek.com>
Cc: Dave Crocker <dcrocker@gmail.com>, ABNF-Discuss <abnf-discuss@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/abnf-discuss/P5GTRpcwd4Hf44-a7u2EeuTUewE>
Subject: Re: [abnf-discuss] ABNF colloquialism for end-of-line
X-BeenThere: abnf-discuss@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "General discussion about tools, activities and capabilities involving the ABNF meta-language" <abnf-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/abnf-discuss/>
List-Post: <mailto:abnf-discuss@ietf.org>
List-Help: <mailto:abnf-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 16 Nov 2017 02:18:07 -0000

Hi Sean,

[trimming a bunch]

On 16 November 2017 at 09:35, Sean Leonard <dev+ietf@seantek.com> wrote:
>
>> On Nov 15, 2017, at 11:37 PM, Dave Crocker <dcrocker@gmail.com> wrote:
>>
>> But I gather you /do/ want a rule that covers both CRLF and LF.
>>
>> So define one.
>>
>> For example:
>>
>>   cbor-nl:  crlf / lf
>>
>> Is there some problem with using this?
>
> My opinion is that newline =3D=3D=3D CRLF in IETF Internet standards, and=
 since ABNF is an Internet standard, the concept of newline =3D=3D=3D CRLF.=
 In a local operating environment, one can convert CRLF to whatever else. F=
or example, the C standard library treats \n (aka LF) as the end-of-line ma=
rker, and converts appropriately on ingress/egress. Ditto for HTML/XML. (Th=
is is congruent with your first paragraph on simplicity.)
>
> I understand why people want to define EOL =3D CRLF / LF; however, ABNF p=
roducers such as abnfgen will (probably) randomly output sample data with m=
ixed line endings. The author=E2=80=99s intent of EOL =3D CRLF / LF is to s=
ay that a format (rather than a wire protocol) ought to accept either CRLF =
or LF as line endings in a file, but it has the effect of saying that CRLF/=
LF can be randomly interspersed in the same PDU. (And, in so doing, it priv=
ileges LF but denies CR, or NEL, or LS / PS, which don=E2=80=99t have anyth=
ing better or worse for them going when it comes to line endings.)
>

[aside]
... except that they don't have 7-bit ASCII codes (NEL collides with U+2026=
).
[/aside]

>
> In my own RFC 7468, I said:
>  eol        =3D CRLF / CR / LF
>  eolWSP     =3D WSP / CR / LF
>  W          =3D WSP / CR / LF / %x0B / %x0C ; whitespace
>
> and while I don=E2=80=99t view that as a mistake necessarily, I=E2=80=99m=
 just pointing out that probably a better way to handle the issue would hav=
e been to say that CRLF *is* the end-of-line marker, and that when ingressi=
ng/egressing data, to treat whatever the local convention is, as if it=E2=
=80=99s CRLF in the ABNF.
>

An "end-of-line marker" is different from a "newline character," so if
you want a 'best' colloquialism I'd say some variation of "newline" is
the way to go.  But there's no standard definition of "newline" in any
core ABNF specs, because there's no standard definition outside of
ABNF.

If authors want to write rules for parsing a byte sequence into
tokens, defined in ABNF, and they want to allow Windows or UNIX or
Apple][ newlines, I'm completely with your and Dave's `CRLF / LF /
CR`-type of definitions.  If they want to use reuse the same ABNF for
*generating* byte sequences, and want to mandate/suggest/implore that
implementers use one or other as the canonical form, can they not do
that by talking to the human reader?

~~~
   foobar  =3D freb *( blat ) foobar-newline
   foobar-newline =3D ( CRLF / LF / CR )  # when parsing liberally
                 / CRLF    # when generating conservatively
~~~

I think that's the point you're making... but I don't quite get why
there's any source for confusion.  As a wild stab, is it because of an
over-reliance on tools to turn ABNF into running code?

>
> One reason to have a uniform ABNF for line endings (i.e., CRLF) is inter-=
specification reuse. For example, one protocol such as URI [RFC3986] has AB=
NF productions that are reused throughout many other specifications, includ=
ing specs that are CRLF oriented (mail...) and specs that are just LF orien=
ted (HTML). URIs do not include line breaks, but if you want to reuse a pro=
duction that includes line breaks in one RFC, but the line ending specs don=
=E2=80=99t match, then it will be a problem.
>

[aside]
HTML isn't particularly LF-oriented, unless you consider &#10; vs
&#13; a significant skew.

<https://www.w3.org/TR/html5/syntax.html#newlines>:
~~~
Newlines in HTML may be represented either as "CR" (U+000D)
characters, "LF" (U+000A) characters, or pairs of "CR" (U+000D), "LF"
(U+000A) characters in that order.
Where character references are allowed, a character reference of a
"LF" (U+000A) character (but not a "CR" (U+000D) character) also
represents a newline.
~~~
[/aside]

But yeah, I think there's a good reason CRLF is called "CRLF".
There's nothing stopping someone from minting a compelling and useful
"NEWLINE" ABNF rule that ends up being widely adopted, aside from
natural forces.

Cheers
--=20
  Matthew Kerwin
  http://matthew.kerwin.net.au/


From nobody Wed Nov 15 18:36:01 2017
Return-Path: <cabo@tzi.org>
X-Original-To: abnf-discuss@ietfa.amsl.com
Delivered-To: abnf-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 58704129413 for <abnf-discuss@ietfa.amsl.com>; Wed, 15 Nov 2017 18:35:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level: 
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id q6FfzyOS0X6B for <abnf-discuss@ietfa.amsl.com>; Wed, 15 Nov 2017 18:35:58 -0800 (PST)
Received: from mailhost.informatik.uni-bremen.de (mailhost.informatik.uni-bremen.de [IPv6:2001:638:708:30c9::12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A5FE6120227 for <abnf-discuss@ietf.org>; Wed, 15 Nov 2017 18:35:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at informatik.uni-bremen.de
Received: from submithost.informatik.uni-bremen.de (submithost.informatik.uni-bremen.de [134.102.201.11]) by mailhost.informatik.uni-bremen.de (8.14.5/8.14.5) with ESMTP id vAG2Zr7u001653; Thu, 16 Nov 2017 03:35:53 +0100 (CET)
Received: from [IPv6:2001:67c:370:128:f1d7:b99a:4881:c8ca] (unknown [IPv6:2001:67c:370:128:f1d7:b99a:4881:c8ca]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by submithost.informatik.uni-bremen.de (Postfix) with ESMTPSA id 3ycljN6RwLzDXsg; Thu, 16 Nov 2017 03:35:52 +0100 (CET)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <3fbd228d-c6cf-be73-c7f2-f6b15979b852@gmail.com>
Date: Thu, 16 Nov 2017 10:35:48 +0800
Cc: Sean Leonard <dev+ietf@seantek.com>, ABNF-Discuss <abnf-discuss@ietf.org>
X-Mao-Original-Outgoing-Id: 532492548.849602-8ea77adbabec889b201036552d915312
Content-Transfer-Encoding: quoted-printable
Message-Id: <477FA5E8-FBAA-47D4-98A6-79DBAE4498C7@tzi.org>
References: <97E6D6C0-7010-46D6-8641-670F10A2504C@seantek.com> <3fbd228d-c6cf-be73-c7f2-f6b15979b852@gmail.com>
To: Dave Crocker <dcrocker@gmail.com>
X-Mailer: Apple Mail (2.3273)
Archived-At: <https://mailarchive.ietf.org/arch/msg/abnf-discuss/-garyUssviPb9Ktd6_SQO4QpAIo>
Subject: Re: [abnf-discuss] ABNF colloquialism for end-of-line
X-BeenThere: abnf-discuss@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "General discussion about tools, activities and capabilities involving the ABNF meta-language" <abnf-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/abnf-discuss/>
List-Post: <mailto:abnf-discuss@ietf.org>
List-Help: <mailto:abnf-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 16 Nov 2017 02:35:59 -0000

Hi Dave,

On Nov 15, 2017, at 23:37, Dave Crocker <dcrocker@gmail.com> wrote:
>=20
> Given that the thread in CBOR says 'matching rules', I'm guessing that =
the goal here is to describe freeform data coming from the net.  Hence, =
requiring a simple, canonicalized data form is not appropriate.  (This =
is an essential point; if it's not correct, then what follows won't be =
either.)

The thread title unfortunately is misleading.

The ABNF is not for on-the wire packets, but for defining the syntax of =
the CDDL language (which then defines the syntax of the on-the-wire data =
items).

So this ABNF is about files on computers, which probably run a form of =
Linux/Unix or Windows (and very likely not pre-2001 classic MacOS).  So

   EOL =3D [CR] LF

is probably the right way to describe line ends for these files.

The context for this (with one exception) is

   NL =3D COMMENT / EOL
   COMMENT =3D ";" *(SP / VCHAR) EOL
   VCHAR =3D %x21-7E

Maybe NL is not the best name for the encompassing rule, but it is used =
only in one additional rule:

   WS =3D SP / NL

Gr=C3=BC=C3=9Fe, Carsten


PS.: If ABNF had cuts, I=E2=80=99d write

   EOL =3D [CR ^] LF

to get better errors on stray CRs.  Maybe not so important these days.


From nobody Thu Nov 16 07:32:00 2017
Return-Path: <dcrocker@gmail.com>
X-Original-To: abnf-discuss@ietfa.amsl.com
Delivered-To: abnf-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 45E6C129410 for <abnf-discuss@ietfa.amsl.com>; Thu, 16 Nov 2017 07:31:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level: 
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9,  DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3675QVgPN512 for <abnf-discuss@ietfa.amsl.com>; Thu, 16 Nov 2017 07:31:57 -0800 (PST)
Received: from mail-ot0-x231.google.com (mail-ot0-x231.google.com [IPv6:2607:f8b0:4003:c0f::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0B0F8129A9F for <abnf-discuss@ietf.org>; Thu, 16 Nov 2017 07:31:25 -0800 (PST)
Received: by mail-ot0-x231.google.com with SMTP id u10so15471323otc.12 for <abnf-discuss@ietf.org>; Thu, 16 Nov 2017 07:31:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=F2TY6eDlGfAUJ3oYg19Nv5YmAtGDt1a1BDArIhcnP3o=; b=CYX9R1U1DhRlBMS0qu1lFy3dNLCs3Y44VSGYoJszGXPKtLuBLI2kRsaf39BxGi3WD2 Op+BgSuFwOtS6PTxbLxvOpDB6Xyy7F1H8F5poSCYAZj9Q+Y7ZNZbG7PfeKhIkce3WKaq V4J74gvOxIrGEZChWbS9ugAdUd8AEIogfR80Eo8JyyeSnsvMAMWCoaET8LWVaAk/bSqw tDdEjmit5vK1ohq3DYSEwLWtmoWHS5XSLqnCcNiD6uHKF3PctBgoD//YzxJyaTOSn6Cr P7AlJFmI42iUyj15MTgERHqdQ3MH7hXfFkbv1xGWvQqbIMG8IfcCVsMe7or9+lK+TsSx JoXA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=F2TY6eDlGfAUJ3oYg19Nv5YmAtGDt1a1BDArIhcnP3o=; b=pL/QZ1Crps9HG3ZzyA/4Ik3fLNRziF9D04xdYaCfUt6CnwDIfurqNizx7vygD1xMIS yMKcPIni2glrW3VsBNJpno4k9bOYNpqj0s3Vnqb4lDfCn7wWsv4Wm1Maf/NOQU1kiaXk kS8pYiN322u+6VYXXVD0dBuZCCBGwE+XqOa4taDVWYMZr6iu/4k/G0auhf3jaH94ftze IP+cH1v1FQ1M9SuiahD85jYJk70tB4/Bq2r+WA6R2GHKP2eqbrzoG2x83O8vXvA+DuNK JzinnOfHLop2opRRZ72Wt06th5q1Ihgz5Y/ndr1/S8n8Fbnir4GK+FZuV+W9ydgGUzR9 uxng==
X-Gm-Message-State: AJaThX6llC02T5pdtAX7kD/nZI17aw5enJNgDsK5uWVpbDNwftr0zcjr mRC9O1qq7JfdRHB0MiDKVzU=
X-Google-Smtp-Source: AGs4zMYRha4QOkjVh2DczyQXUNue9g6CGeAdTrksfv/lxJ3N12xtZiwGyOtSRBO9WeMtWO/VUnhxrw==
X-Received: by 10.157.7.202 with SMTP id 68mr1373384oto.289.1510846283932; Thu, 16 Nov 2017 07:31:23 -0800 (PST)
Received: from ?IPv6:2602:304:cda0:8800:19a4:c255:db4e:853e? ([2602:304:cda0:8800:19a4:c255:db4e:853e]) by smtp.gmail.com with ESMTPSA id d42sm566962ote.45.2017.11.16.07.31.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Nov 2017 07:31:22 -0800 (PST)
To: Carsten Bormann <cabo@tzi.org>
Cc: ABNF-Discuss <abnf-discuss@ietf.org>, Sean Leonard <dev+ietf@seantek.com>
References: <97E6D6C0-7010-46D6-8641-670F10A2504C@seantek.com> <3fbd228d-c6cf-be73-c7f2-f6b15979b852@gmail.com> <477FA5E8-FBAA-47D4-98A6-79DBAE4498C7@tzi.org>
From: Dave Crocker <dcrocker@gmail.com>
Message-ID: <7db503ef-3db4-9a72-6d14-001831742600@gmail.com>
Date: Thu, 16 Nov 2017 07:31:19 -0800
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0
MIME-Version: 1.0
In-Reply-To: <477FA5E8-FBAA-47D4-98A6-79DBAE4498C7@tzi.org>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/abnf-discuss/UESvCA64XTUI_6Iv-E-R5d0tSpY>
Subject: Re: [abnf-discuss] ABNF colloquialism for end-of-line
X-BeenThere: abnf-discuss@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "General discussion about tools, activities and capabilities involving the ABNF meta-language" <abnf-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/abnf-discuss/>
List-Post: <mailto:abnf-discuss@ietf.org>
List-Help: <mailto:abnf-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 16 Nov 2017 15:31:59 -0000

Carsten,

On 11/15/2017 6:35 PM, Carsten Bormann wrote:
> Hi Dave,
> 
> On Nov 15, 2017, at 23:37, Dave Crocker <dcrocker@gmail.com> wrote:
>>
>> Given that the thread in CBOR says 'matching rules', I'm guessing that the goal here is to describe freeform data coming from the net.  Hence, requiring a simple, canonicalized data form is not appropriate.  (This is an essential point; if it's not correct, then what follows won't be either.)
> 
> The thread title unfortunately is misleading.
> 
> The ABNF is not for on-the wire packets, but for defining the syntax of the CDDL language (which then defines the syntax of the on-the-wire data items).
> 
> So this ABNF is about files on computers, which probably run a form of Linux/Unix or Windows (and very likely not pre-2001 classic MacOS).  So

I take your point, but suspect there is still an issue.  At the least, 
being clear /and explicit/ about this in the specification document(s) 
will be helpful.

The issue I suspect is the intended portability of the file.  If the 
file is intended to be portable, then it, too, needs to be in a 
canonical form.  It's a type of 'over the wire' even though it isn't 
part of a wire protocol.

This, then, would require separate translation from native, local 
representation to the canonical form.  But that's a pretty simple 
definition effort.


>     EOL = [CR] LF
> 
> is probably the right way to describe line ends for these files.

Possibly, unless folk really want

    EOL = *CR LF


> 
> The context for this (with one exception) is
> 
>     NL = COMMENT / EOL
>     COMMENT = ";" *(SP / VCHAR) EOL
>     VCHAR = %x21-7E
> 
> Maybe NL is not the best name for the encompassing rule, but it is used only in one additional rule:
> 
>     WS = SP / NL

Yeah, maybe not the best.  If ruleset is not really treating it 
semantically as end of line.

So while there is an historical basis for saying EOL, I'd think that in 
this context, it would sufficient and simpler just to have:

   WS = SP / CR / LF

(why not also include TAB?)



> PS.: If ABNF had cuts, I’d write
> 
>     EOL = [CR ^] LF
> 
> to get better errors on stray CRs.  Maybe not so important these days.

Sorry.  Not sure what you mean.  "cuts"? "^"?

d/


-- 
Dave Crocker
Brandenburg InternetWorking
bbiw.net


From nobody Thu Nov 16 13:26:45 2017
Return-Path: <dev+ietf@seantek.com>
X-Original-To: abnf-discuss@ietfa.amsl.com
Delivered-To: abnf-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 630EC128DF3 for <abnf-discuss@ietfa.amsl.com>; Thu, 16 Nov 2017 13:26:44 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id D7mjIZ0P7zoW for <abnf-discuss@ietfa.amsl.com>; Thu, 16 Nov 2017 13:26:42 -0800 (PST)
Received: from smtp-out-2.mxes.net (smtp-out-2.mxes.net [67.222.241.249]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 70F061200F1 for <abnf-discuss@ietf.org>; Thu, 16 Nov 2017 13:26:42 -0800 (PST)
Received: from dhcp-9e97.meeting.ietf.org (dhcp-9e97.meeting.ietf.org [31.133.158.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 2F23C274FB; Thu, 16 Nov 2017 16:26:39 -0500 (EST)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 11.1 \(3445.4.7\))
From: Sean Leonard <dev+ietf@seantek.com>
In-Reply-To: <7db503ef-3db4-9a72-6d14-001831742600@gmail.com>
Date: Fri, 17 Nov 2017 05:26:34 +0800
Cc: Carsten Bormann <cabo@tzi.org>, ABNF-Discuss <abnf-discuss@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <62B9A765-E6EE-4C20-9A4E-58ADA9FDE975@seantek.com>
References: <97E6D6C0-7010-46D6-8641-670F10A2504C@seantek.com> <3fbd228d-c6cf-be73-c7f2-f6b15979b852@gmail.com> <477FA5E8-FBAA-47D4-98A6-79DBAE4498C7@tzi.org> <7db503ef-3db4-9a72-6d14-001831742600@gmail.com>
To: Dave Crocker <dcrocker@gmail.com>
X-Mailer: Apple Mail (2.3445.4.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/abnf-discuss/iTOIQWSAuRFWa8K2UmefnAV6h_w>
Subject: Re: [abnf-discuss] ABNF colloquialism for end-of-line
X-BeenThere: abnf-discuss@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "General discussion about tools, activities and capabilities involving the ABNF meta-language" <abnf-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/abnf-discuss/>
List-Post: <mailto:abnf-discuss@ietf.org>
List-Help: <mailto:abnf-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 16 Nov 2017 21:26:44 -0000

> On Nov 16, 2017, at 11:31 PM, Dave Crocker <dcrocker@gmail.com> wrote:
>=20
> Carsten,
>=20
> On 11/15/2017 6:35 PM, Carsten Bormann wrote:
>> Hi Dave,
>> On Nov 15, 2017, at 23:37, Dave Crocker <dcrocker@gmail.com> wrote:
>>>=20
>>> [...]
>=20
>> PS.: If ABNF had cuts, I=E2=80=99d write
>>    EOL =3D [CR ^] LF
>> to get better errors on stray CRs.  Maybe not so important these =
days.
>=20
> Sorry.  Not sure what you mean.  "cuts"? "^=E2=80=9D?

To add some color to this point, =E2=80=9Ccuts=E2=80=9D was discussed in =
the CBOR WG in the context of CDDL. It is a technique from Parsing =
Expression Grammars. Here is overview:

http://www.romanredz.se/papers/CSP2014.pdf

https://en.wikipedia.org/wiki/Parsing_expression_grammar
(see soft cut)

Basically it commits the parser at a particular point, so that it does =
not backtrack.

However, PEGs are ordered; ABNF is unordered. With ABNF (as presently =
constituted), all alternatives in a choice are considered simultaneously =
(order is not relevant). Even if you match one alternative, you=E2=80=99re=
 supposed to try all other alternatives.

EOL =3D [CR ~CUT~] LF
EOL =3D CR ~CUT~ LF / LF

are equivalent: the point being that once a CR is encountered, LF is =
supposed to follow...and if LF does not follow, then the parser fails =
but throws an error that EOL did not match because there was no LF after =
the CR (because it=E2=80=99s more specific). However, cuts also takes =
the initial production CR out of the equation, so if you have:

EOL =3D CR ~CUT~ LF / LF / CR "foo"

the last alternative will never be reached, because it=E2=80=99s =
order-sensitive: the ~CUT~ will consume the first CR, so CR "foo" can =
never be matched. The equivalent technology in regular expressions is =
=E2=80=9Catomic grouping=E2=80=9D.

With a context-free grammar, it is better to think about all =
alternatives simultaneously.

Sean


From nobody Sat Nov 18 01:57:37 2017
Return-Path: <cabo@tzi.org>
X-Original-To: abnf-discuss@ietfa.amsl.com
Delivered-To: abnf-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B36B61273B1 for <abnf-discuss@ietfa.amsl.com>; Sat, 18 Nov 2017 01:57:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level: 
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9WZXoZ78lwYq for <abnf-discuss@ietfa.amsl.com>; Sat, 18 Nov 2017 01:57:34 -0800 (PST)
Received: from mailhost.informatik.uni-bremen.de (mailhost.informatik.uni-bremen.de [IPv6:2001:638:708:30c9::12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C581B12025C for <abnf-discuss@ietf.org>; Sat, 18 Nov 2017 01:57:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at informatik.uni-bremen.de
Received: from submithost.informatik.uni-bremen.de (submithost.informatik.uni-bremen.de [IPv6:2001:638:708:30c9::b]) by mailhost.informatik.uni-bremen.de (8.14.5/8.14.5) with ESMTP id vAI9vSRq027820; Sat, 18 Nov 2017 10:57:28 +0100 (CET)
Received: from [10.54.145.203] (unknown [88.128.81.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by submithost.informatik.uni-bremen.de (Postfix) with ESMTPSA id 3yf9Q01gkCzDX2n; Sat, 18 Nov 2017 10:57:28 +0100 (CET)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <7db503ef-3db4-9a72-6d14-001831742600@gmail.com>
Date: Sat, 18 Nov 2017 10:57:27 +0100
Cc: ABNF-Discuss <abnf-discuss@ietf.org>, Sean Leonard <dev+ietf@seantek.com>
X-Mao-Original-Outgoing-Id: 532691847.56698-af050791fccabba5afa89cd0fffb210c
Content-Transfer-Encoding: quoted-printable
Message-Id: <8733D93A-58A9-4D6C-BF1C-CE02F221DEA1@tzi.org>
References: <97E6D6C0-7010-46D6-8641-670F10A2504C@seantek.com> <3fbd228d-c6cf-be73-c7f2-f6b15979b852@gmail.com> <477FA5E8-FBAA-47D4-98A6-79DBAE4498C7@tzi.org> <7db503ef-3db4-9a72-6d14-001831742600@gmail.com>
To: Dave Crocker <dcrocker@gmail.com>
X-Mailer: Apple Mail (2.3273)
Archived-At: <https://mailarchive.ietf.org/arch/msg/abnf-discuss/rCZQQVf8ZeCT9AiAysnLYAlZOKA>
Subject: Re: [abnf-discuss] ABNF colloquialism for end-of-line
X-BeenThere: abnf-discuss@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "General discussion about tools, activities and capabilities involving the ABNF meta-language" <abnf-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/abnf-discuss/>
List-Post: <mailto:abnf-discuss@ietf.org>
List-Help: <mailto:abnf-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 18 Nov 2017 09:57:35 -0000

On Nov 16, 2017, at 23:31, Dave Crocker <dcrocker@gmail.com> wrote:
>=20
> Carsten,
>=20
> On 11/15/2017 6:35 PM, Carsten Bormann wrote:
>> Hi Dave,
>> On Nov 15, 2017, at 23:37, Dave Crocker <dcrocker@gmail.com> wrote:
>>>=20
>>> Given that the thread in CBOR says 'matching rules', I'm guessing =
that the goal here is to describe freeform data coming from the net.  =
Hence, requiring a simple, canonicalized data form is not appropriate.  =
(This is an essential point; if it's not correct, then what follows =
won't be either.)
>> The thread title unfortunately is misleading.
>> The ABNF is not for on-the wire packets, but for defining the syntax =
of the CDDL language (which then defines the syntax of the on-the-wire =
data items).
>> So this ABNF is about files on computers, which probably run a form =
of Linux/Unix or Windows (and very likely not pre-2001 classic MacOS).  =
So
>=20
> I take your point, but suspect there is still an issue.  At the least, =
being clear /and explicit/ about this in the specification document(s) =
will be helpful.

Right.


> The issue I suspect is the intended portability of the file.  If the =
file is intended to be portable, then it, too, needs to be in a =
canonical form.  It's a type of 'over the wire' even though it isn't =
part of a wire protocol.

Well, software development has focused on Unix line ends, tolerating DOS =
line ends in some spaces, for a while.
That seems to work for so many languages, we can just emulate that.

Let=E2=80=99s take a page from RFC 7950 (YANG 1.1):

   line-break          =3D CRLF / LF

That is essentially the same I was proposing, but the explicit name =
=E2=80=9Cline-break=E2=80=9D is probably better than NL by some.

> This, then, would require separate translation from native, local =
representation to the canonical form.  But that's a pretty simple =
definition effort.

Again, I think that most source control systems and programmers=E2=80=99 =
editors know how to do that.

>>    EOL =3D [CR] LF
>> is probably the right way to describe line ends for these files.
>=20
> Possibly, unless folk really want
>=20
>   EOL =3D *CR LF

We don=E2=80=99t want to tolerate more than one CR here; these would be =
isolated CRs in todays line end worlds.

> So while there is an historical basis for saying EOL, I'd think that =
in this context, it would sufficient and simpler just to have:
>=20
>  WS =3D SP / CR / LF

That generally works, except in certain strings, where it is good to =
identify actual line ends.

> (why not also include TAB?)

I can=E2=80=99t find the string TAB in RFC 20; I think you probably mean =
HT.
HT is evil(**) and, approximately since the time 300 bit/s LA36 =
terminals(***) went out of use, should never be used(*).
Easy fix as applied here: Simply don=E2=80=99t allow HT in specification =
source files.

Gr=C3=BC=C3=9Fe, Carsten

(*) Outside certain very sheltered environments such as Linux Kernel =
development.
(**) RFC 7386/7396 should be proof enough here.
(***) https://archive.org/details/handbookofintera00duan p. 82; =
additionally insert fond memories here=E2=80=A6


From nobody Sat Nov 18 09:54:38 2017
Return-Path: <pkyzivat@alum.mit.edu>
X-Original-To: abnf-discuss@ietfa.amsl.com
Delivered-To: abnf-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 06A0212025C for <abnf-discuss@ietfa.amsl.com>; Sat, 18 Nov 2017 09:54:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.301
X-Spam-Level: 
X-Spam-Status: No, score=-2.301 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MDtkUwNPEShr for <abnf-discuss@ietfa.amsl.com>; Sat, 18 Nov 2017 09:54:35 -0800 (PST)
Received: from alum-mailsec-scanner-2.mit.edu (alum-mailsec-scanner-2.mit.edu [18.7.68.13]) by ietfa.amsl.com (Postfix) with ESMTP id 01963120713 for <abnf-discuss@ietf.org>; Sat, 18 Nov 2017 09:54:34 -0800 (PST)
X-AuditID: 1207440d-86bff70000000f42-44-5a1073d7cdba
Received: from outgoing-alum.mit.edu (OUTGOING-ALUM.MIT.EDU [18.7.68.33]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by alum-mailsec-scanner-2.mit.edu (Symantec Messaging Gateway) with SMTP id DC.35.03906.8D3701A5; Sat, 18 Nov 2017 12:54:32 -0500 (EST)
Received: from PaulKyzivatsMBP.localdomain (c-24-62-227-142.hsd1.ma.comcast.net [24.62.227.142]) (authenticated bits=0) (User authenticated as pkyzivat@ALUM.MIT.EDU) by outgoing-alum.mit.edu (8.13.8/8.12.4) with ESMTP id vAIHsUmv000794 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for <abnf-discuss@ietf.org>; Sat, 18 Nov 2017 12:54:31 -0500
To: abnf-discuss@ietf.org
References: <97E6D6C0-7010-46D6-8641-670F10A2504C@seantek.com> <3fbd228d-c6cf-be73-c7f2-f6b15979b852@gmail.com> <477FA5E8-FBAA-47D4-98A6-79DBAE4498C7@tzi.org> <7db503ef-3db4-9a72-6d14-001831742600@gmail.com> <8733D93A-58A9-4D6C-BF1C-CE02F221DEA1@tzi.org>
From: Paul Kyzivat <pkyzivat@alum.mit.edu>
Message-ID: <edef3996-ccbd-9596-6cf6-c04e3091af77@alum.mit.edu>
Date: Sat, 18 Nov 2017 12:54:30 -0500
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:52.0) Gecko/20100101 Thunderbird/52.4.0
MIME-Version: 1.0
In-Reply-To: <8733D93A-58A9-4D6C-BF1C-CE02F221DEA1@tzi.org>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrCIsWRmVeSWpSXmKPExsUixO6iqHuzWCDK4O5pPounh36wOTB6LFny kymAMYrLJiU1J7MstUjfLoErY1nLDuaCibIVa2eFNDD2i3cxcnJICJhITDg8kaWLkYtDSGAH k8SF981MEM5fJomlK+4wglQJC9hJzDl9jAnEFhGQlDiz8iobiC0k0MYk0dGfB2KzCWhJzDn0 nwXE5hWwlzh+awGYzSKgKnFt3ilWEFtUIE3izoyHTBA1ghInZz4Bq+EUsJb40PMMbCazgJnE vM0PmSFscYlbT+YzQdjyEs1bZzNPYOSfhaR9FpKWWUhaZiFpWcDIsopRLjGnNFc3NzEzpzg1 Wbc4OTEvL7VI10gvN7NELzWldBMjJCh5dzD+XydziFGAg1GJh/cCE3+UEGtiWXFl7iFGSQ4m JVHeg+uBQnxJ+SmVGYnFGfFFpTmpxYcYJTiYlUR4c5MEooR4UxIrq1KL8mFS0hwsSuK8akvU /YQE0hNLUrNTUwtSi2CyMhwcShK814uAGgWLUtNTK9Iyc0oQ0kwcnCDDeYCG8xeDDC8uSMwt zkyHyJ9iNObo6bnxh4nj2czXDcxCLHn5ealS4rzRIKUCIKUZpXlw02CJ5RWjONBzwrx7QZby AJMS3LxXQKuYgFa5XOAHWVWSiJCSamD05ngwj2exu+OHm0ZHqh8tsFM903vny8TSWNFrW54J rrvOkFZjtLZM9o5OLa9iZNqWNbP7g9y0LT7umR6zXvv4bGPH+XpJf13ObJRszZxx1nqS4gUb 8cTbzT29V+TvVznfKDm96uOqp/a70+KWhy5Yv2KTuJz+jM/Su+rZHC/c+V0r3T9z8Q4rJZbi jERDLeai4kQAeDm3kgcDAAA=
Archived-At: <https://mailarchive.ietf.org/arch/msg/abnf-discuss/s0uN2AXbWoImbFAsSZSBXo9hlm0>
Subject: Re: [abnf-discuss] ABNF colloquialism for end-of-line
X-BeenThere: abnf-discuss@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "General discussion about tools, activities and capabilities involving the ABNF meta-language" <abnf-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/abnf-discuss/>
List-Post: <mailto:abnf-discuss@ietf.org>
List-Help: <mailto:abnf-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 18 Nov 2017 17:54:37 -0000

 From a practical perspective, when parsing things that need EOL marks, 
ISTM that you can generally get good results by treating LF as EOL, and 
CR as WS. It works for CRLF, LFCR and naked LF. (I don't recall anything 
in the last few decades that treats a naked CR as EOL.)

This of course isn't enough to know what forms to produce when 
generating text.

	Thanks,
	Paul

On 11/18/17 4:57 AM, Carsten Bormann wrote:
> On Nov 16, 2017, at 23:31, Dave Crocker <dcrocker@gmail.com> wrote:
>>
>> Carsten,
>>
>> On 11/15/2017 6:35 PM, Carsten Bormann wrote:
>>> Hi Dave,
>>> On Nov 15, 2017, at 23:37, Dave Crocker <dcrocker@gmail.com> wrote:
>>>>
>>>> Given that the thread in CBOR says 'matching rules', I'm guessing that the goal here is to describe freeform data coming from the net.  Hence, requiring a simple, canonicalized data form is not appropriate.  (This is an essential point; if it's not correct, then what follows won't be either.)
>>> The thread title unfortunately is misleading.
>>> The ABNF is not for on-the wire packets, but for defining the syntax of the CDDL language (which then defines the syntax of the on-the-wire data items).
>>> So this ABNF is about files on computers, which probably run a form of Linux/Unix or Windows (and very likely not pre-2001 classic MacOS).  So
>>
>> I take your point, but suspect there is still an issue.  At the least, being clear /and explicit/ about this in the specification document(s) will be helpful.
> 
> Right.
> 
> 
>> The issue I suspect is the intended portability of the file.  If the file is intended to be portable, then it, too, needs to be in a canonical form.  It's a type of 'over the wire' even though it isn't part of a wire protocol.
> 
> Well, software development has focused on Unix line ends, tolerating DOS line ends in some spaces, for a while.
> That seems to work for so many languages, we can just emulate that.
> 
> Let’s take a page from RFC 7950 (YANG 1.1):
> 
>     line-break          = CRLF / LF
> 
> That is essentially the same I was proposing, but the explicit name “line-break” is probably better than NL by some.
> 
>> This, then, would require separate translation from native, local representation to the canonical form.  But that's a pretty simple definition effort.
> 
> Again, I think that most source control systems and programmers’ editors know how to do that.
> 
>>>     EOL = [CR] LF
>>> is probably the right way to describe line ends for these files.
>>
>> Possibly, unless folk really want
>>
>>    EOL = *CR LF
> 
> We don’t want to tolerate more than one CR here; these would be isolated CRs in todays line end worlds.
> 
>> So while there is an historical basis for saying EOL, I'd think that in this context, it would sufficient and simpler just to have:
>>
>>   WS = SP / CR / LF
> 
> That generally works, except in certain strings, where it is good to identify actual line ends.
> 
>> (why not also include TAB?)
> 
> I can’t find the string TAB in RFC 20; I think you probably mean HT.
> HT is evil(**) and, approximately since the time 300 bit/s LA36 terminals(***) went out of use, should never be used(*).
> Easy fix as applied here: Simply don’t allow HT in specification source files.
> 
> Grüße, Carsten
> 
> (*) Outside certain very sheltered environments such as Linux Kernel development.
> (**) RFC 7386/7396 should be proof enough here.
> (***) https://archive.org/details/handbookofintera00duan p. 82; additionally insert fond memories here…
> 
> _______________________________________________
> abnf-discuss mailing list
> abnf-discuss@ietf.org
> https://www.ietf.org/mailman/listinfo/abnf-discuss
> 


From nobody Sun Nov 19 10:56:23 2017
Return-Path: <dcrocker@gmail.com>
X-Original-To: abnf-discuss@ietfa.amsl.com
Delivered-To: abnf-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2384B12025C for <abnf-discuss@ietfa.amsl.com>; Sun, 19 Nov 2017 10:56:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level: 
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9,  DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OzdK1YMHUaXj for <abnf-discuss@ietfa.amsl.com>; Sun, 19 Nov 2017 10:56:20 -0800 (PST)
Received: from mail-ot0-x22a.google.com (mail-ot0-x22a.google.com [IPv6:2607:f8b0:4003:c0f::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7F3571200E5 for <abnf-discuss@ietf.org>; Sun, 19 Nov 2017 10:56:20 -0800 (PST)
Received: by mail-ot0-x22a.google.com with SMTP id d27so5963524ote.11 for <abnf-discuss@ietf.org>; Sun, 19 Nov 2017 10:56:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=yMMpsWYjW445p9ZSvzHqke//GNs7zxVCe5jrQKUuwJM=; b=PUk1/sZTGeicJZH9sQZlRqbOmNUTowRZDq6evXMxgKqIorZxkeSzwGgnRJY6xEPqpL eRfI84a++iXGXdU+i9grJL3nwOy8HlX1MvFueIDZrH8kSY7m9RxLSETq+6Qp0OQxl+tM XmnvnvvPtn4K9SgFln6/TzNeFbHckb7PGTc+Upf3QyejT4kjDQSaiWguLM/ORUa4i4z0 1Oggaht8XAQsEd2upcZC+aH4jFmMKbWp22+VuQ9dyjylnFeKsURM4ub00eFS4b5V6EKf ymXRbQ07LStr94BCJBF22G18/wkWF7pH2Gn5Fb+5YQI/O1RC4m6tVRg++hit8RXJeCgA CFAw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=yMMpsWYjW445p9ZSvzHqke//GNs7zxVCe5jrQKUuwJM=; b=UyQb+J80ywh5Z5T2LXcF8Avr6Ft5d9htCQ+MZ9itQOQ/RZkEH65Xqrqm871nedUOza ZDCNlJRhay8/Z69iFS5zBcDUiEPoPQy+kh54WzuLLayKfOL25GIi5ZZ3x8BI7Bc6CjQy jt1xxsNbrt1aDrQOCNqkTPmTUwSF+o9kpX41u9AV/24xU9oMX7LIinsl6MUzqlOmcBV1 VJUhy5iZb5TcLxuZfkIxVUrjjoOHpG9oX1IvCxguwfHrqhdzmXM0HYfklTIC7ntT4fsQ V5M25688gmdyfIbOkzLUzjt5MfNBI3d8ey+86wtXv1FK8XzsdXpt3pvdLRLrUCC2AU0I kSxw==
X-Gm-Message-State: AJaThX7HgqeqOkgyAsCRgPrAmLi9epouy99KXhY7nIrp5enmLCv1LlOL PtvUTDMKa4oTqiPWKe+56zScebY4
X-Google-Smtp-Source: AGs4zMbBygOzBhrKBw77fsSRemCpNpZXW8Sa/AyJ9Y6Q0rsGJGlYmZJTiEDEFKJEScsHIl1yKboMnA==
X-Received: by 10.157.15.253 with SMTP id m58mr5939844otd.212.1511117778952; Sun, 19 Nov 2017 10:56:18 -0800 (PST)
Received: from ?IPv6:2602:304:cda0:8800:c4e8:d795:bbab:6d47? ([2602:304:cda0:8800:c4e8:d795:bbab:6d47]) by smtp.gmail.com with ESMTPSA id t124sm3770831oih.48.2017.11.19.10.56.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Nov 2017 10:56:16 -0800 (PST)
To: Sean Leonard <dev+ietf@seantek.com>
Cc: Carsten Bormann <cabo@tzi.org>, ABNF-Discuss <abnf-discuss@ietf.org>
References: <97E6D6C0-7010-46D6-8641-670F10A2504C@seantek.com> <3fbd228d-c6cf-be73-c7f2-f6b15979b852@gmail.com> <477FA5E8-FBAA-47D4-98A6-79DBAE4498C7@tzi.org> <7db503ef-3db4-9a72-6d14-001831742600@gmail.com> <62B9A765-E6EE-4C20-9A4E-58ADA9FDE975@seantek.com>
From: Dave Crocker <dcrocker@gmail.com>
Message-ID: <c10a79f2-5e42-fc00-ed5a-4459064b5af4@gmail.com>
Date: Sun, 19 Nov 2017 10:56:10 -0800
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0
MIME-Version: 1.0
In-Reply-To: <62B9A765-E6EE-4C20-9A4E-58ADA9FDE975@seantek.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/abnf-discuss/qQ0ZnQICmsmDxvuVvWCZ9z9fJdY>
Subject: Re: [abnf-discuss] ABNF colloquialism for end-of-line
X-BeenThere: abnf-discuss@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "General discussion about tools, activities and capabilities involving the ABNF meta-language" <abnf-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/abnf-discuss/>
List-Post: <mailto:abnf-discuss@ietf.org>
List-Help: <mailto:abnf-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 19 Nov 2017 18:56:22 -0000

On 11/16/2017 1:26 PM, Sean Leonard wrote:
> To add some color to this point, “cuts” was discussed in the CBOR WG in the context of CDDL. It is a technique from Parsing Expression Grammars. Here is overview:
...
> Basically it commits the parser at a particular point, so that it does not backtrack.
> 
> However, PEGs are ordered; ABNF is unordered. With ABNF (as presently constituted), all alternatives in a choice are considered simultaneously (order is not relevant). Even if you match one alternative, you’re supposed to try all other alternatives.


(Disclaimer:  What follows is pure personal opinion.)


I'll offer this for consideration, without also offering any specific 
action...

Why did ABNF become popular?

(For a time, RFC 733 and then RFC 822 were the most-cited RFCs.  It 
turned out this was not due to the email portion but folk were re-using 
the ABNF meta-specification, which is why the later, revision effort to 
RFC 822 split the ABNF text out into its own RFC.)

At the time ABNF was defined in the latter 1970s, most specs provided 
their own variation of BNF.  Everyone wanted tailoring to the basic 
tool.  But while folk have often wanted to enhance ABNF, over the years, 
the 'let's define a new variant' tendency mostly died out -- ignoring 
the much more recent move towards JSON...  Why did this popularity happen?

Languages need to balance expressive power against human usage 
complexity.  Enough but not too much, of each.  ABNF seemed to strike a 
good balance.  (I like to think the documentation clarity in RFC 733 
also helped, but then I'm quite biased about this, given how much effort 
I put into that aspect of the work...)

I think the biggest danger in creating a meta-language is specification 
obscurity.  The tendency to want to add features can too-easily create 
too much complexity for easy human comprehension.  The result is that 
seemingly-simple specifications can too-easily have implications that 
are not understood by most readers.

Computers are not the target audience for computer languages.  Human 
readers are.  Subtle effects (nevermind side-effects) are very easily 
missed by human readers.

d/
-- 
Dave Crocker
Brandenburg InternetWorking
bbiw.net


From nobody Sun Nov 19 13:08:30 2017
Return-Path: <cabo@tzi.org>
X-Original-To: abnf-discuss@ietfa.amsl.com
Delivered-To: abnf-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id ED73A126B6E for <abnf-discuss@ietfa.amsl.com>; Sun, 19 Nov 2017 13:08:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level: 
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0Zi-jpA1UtRs for <abnf-discuss@ietfa.amsl.com>; Sun, 19 Nov 2017 13:08:28 -0800 (PST)
Received: from mailhost.informatik.uni-bremen.de (mailhost.informatik.uni-bremen.de [IPv6:2001:638:708:30c9::12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E7E161241F5 for <abnf-discuss@ietf.org>; Sun, 19 Nov 2017 13:08:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at informatik.uni-bremen.de
Received: from submithost.informatik.uni-bremen.de (submithost.informatik.uni-bremen.de [134.102.201.11]) by mailhost.informatik.uni-bremen.de (8.14.5/8.14.5) with ESMTP id vAJL8O1S020365; Sun, 19 Nov 2017 22:08:24 +0100 (CET)
Received: from [192.168.217.119] (p5DC7FC78.dip0.t-ipconnect.de [93.199.252.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by submithost.informatik.uni-bremen.de (Postfix) with ESMTPSA id 3yg4Fg5tC5zDXGK; Sun, 19 Nov 2017 22:08:23 +0100 (CET)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <c10a79f2-5e42-fc00-ed5a-4459064b5af4@gmail.com>
Date: Sun, 19 Nov 2017 22:08:23 +0100
Cc: Sean Leonard <dev+ietf@seantek.com>, ABNF-Discuss <abnf-discuss@ietf.org>
X-Mao-Original-Outgoing-Id: 532818502.899273-d83bac1fd58dab57000da39c1ebe3628
Content-Transfer-Encoding: quoted-printable
Message-Id: <6BF6E482-7EAD-4564-B273-44ADC13E7375@tzi.org>
References: <97E6D6C0-7010-46D6-8641-670F10A2504C@seantek.com> <3fbd228d-c6cf-be73-c7f2-f6b15979b852@gmail.com> <477FA5E8-FBAA-47D4-98A6-79DBAE4498C7@tzi.org> <7db503ef-3db4-9a72-6d14-001831742600@gmail.com> <62B9A765-E6EE-4C20-9A4E-58ADA9FDE975@seantek.com> <c10a79f2-5e42-fc00-ed5a-4459064b5af4@gmail.com>
To: Dave Crocker <dcrocker@gmail.com>
X-Mailer: Apple Mail (2.3273)
Archived-At: <https://mailarchive.ietf.org/arch/msg/abnf-discuss/Rjsp6nc6r6qLKJsf1jyO9Bzsedc>
Subject: Re: [abnf-discuss] ABNF colloquialism for end-of-line
X-BeenThere: abnf-discuss@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "General discussion about tools, activities and capabilities involving the ABNF meta-language" <abnf-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/abnf-discuss/>
List-Post: <mailto:abnf-discuss@ietf.org>
List-Help: <mailto:abnf-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 19 Nov 2017 21:08:30 -0000

> On Nov 19, 2017, at 19:56, Dave Crocker <dcrocker@gmail.com> wrote:
>=20
> Computers are not the target audience for computer languages.  Human =
readers are. =20

+10k.

This is so obvious once one starts to think about why we need these =
languages in the first place.
Unfortunately, considerations about implementation dominate the =
literature about formal languages.

(Computer history aficionados will remember Algol68, a ground-breaking, =
highly innovative, but also very practical computer language.  =
Unfortunately, the theoretically brilliant, but an unusable for humans, =
two-level Van Wijngaarden grammar was used to specify it.  This =
completely destroyed adoption of Algol 68.)

> Subtle effects (nevermind side-effects) are very easily missed by =
human readers.

This is one of the reasons why context-free grammars are so practical.
(In reality they are usually a bit of whitewashing because symbol tables =
are invariably used to add some context-sensitivity, but that can be =
considered to be on the semantic level, even if it sometimes isn=E2=80=99t=
.)

Cuts were initially invented to limit the decision space of Prolog =
programs to fit the memory available.
When Parse Expression Grammars became implementable, the same approach =
was useful to limit their memory requirements as well.
Two implementation concerns.

Cuts also have been used to improve error messages from Parse Expression =
Grammars. =20
Now this is about usability of a tool (such as a compiler or validator) =
for humans and thus highly relevant.

In CDDL, we have discussed cuts also for improving error messages, which =
maybe is something that can be left for a CDDL 2.0.  However, it =
recently became clear that CDDL users actually do want some =
context-sensitive properties for the grammar =E2=80=94 being =
context-free is counter-intuitive in certain limited situations (the =
=E2=80=9Cmap=E2=80=9D container CBOR inherited from JSON also is =
inherently context sensitive).  Hence our renewed interest in cuts here, =
for actually obtaining those limited forms of context sensitivity.  (We =
are still discussing how to do this without turning CDDL into a monster; =
certainly we don=E2=80=99t want another van Wijngaarden effect.)

Gr=C3=BC=C3=9Fe, Carsten


From nobody Sun Nov 19 16:19:52 2017
Return-Path: <pkyzivat@alum.mit.edu>
X-Original-To: abnf-discuss@ietfa.amsl.com
Delivered-To: abnf-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CBBEE1205F1 for <abnf-discuss@ietfa.amsl.com>; Sun, 19 Nov 2017 16:19:50 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.201
X-Spam-Level: 
X-Spam-Status: No, score=-4.201 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g5eCTYPdCEeQ for <abnf-discuss@ietfa.amsl.com>; Sun, 19 Nov 2017 16:19:49 -0800 (PST)
Received: from alum-mailsec-scanner-2.mit.edu (alum-mailsec-scanner-2.mit.edu [18.7.68.13]) by ietfa.amsl.com (Postfix) with ESMTP id 7A97A1201FA for <abnf-discuss@ietf.org>; Sun, 19 Nov 2017 16:19:49 -0800 (PST)
X-AuditID: 1207440d-853ff70000000f42-d3-5a121fa2db27
Received: from outgoing-alum.mit.edu (OUTGOING-ALUM.MIT.EDU [18.7.68.33]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by alum-mailsec-scanner-2.mit.edu (Symantec Messaging Gateway) with SMTP id EB.51.03906.3AF121A5; Sun, 19 Nov 2017 19:19:47 -0500 (EST)
Received: from PaulKyzivatsMBP.localdomain (c-24-62-227-142.hsd1.ma.comcast.net [24.62.227.142]) (authenticated bits=0) (User authenticated as pkyzivat@ALUM.MIT.EDU) by outgoing-alum.mit.edu (8.13.8/8.12.4) with ESMTP id vAK0JjOf015151 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for <abnf-discuss@ietf.org>; Sun, 19 Nov 2017 19:19:46 -0500
To: abnf-discuss@ietf.org
References: <97E6D6C0-7010-46D6-8641-670F10A2504C@seantek.com> <3fbd228d-c6cf-be73-c7f2-f6b15979b852@gmail.com> <477FA5E8-FBAA-47D4-98A6-79DBAE4498C7@tzi.org> <7db503ef-3db4-9a72-6d14-001831742600@gmail.com> <62B9A765-E6EE-4C20-9A4E-58ADA9FDE975@seantek.com> <c10a79f2-5e42-fc00-ed5a-4459064b5af4@gmail.com> <6BF6E482-7EAD-4564-B273-44ADC13E7375@tzi.org>
From: Paul Kyzivat <pkyzivat@alum.mit.edu>
Message-ID: <b979026d-cb07-ad36-58ab-1ba82c0e8263@alum.mit.edu>
Date: Sun, 19 Nov 2017 19:19:45 -0500
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:52.0) Gecko/20100101 Thunderbird/52.4.0
MIME-Version: 1.0
In-Reply-To: <6BF6E482-7EAD-4564-B273-44ADC13E7375@tzi.org>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrGIsWRmVeSWpSXmKPExsUixO6iqLtEXijKYNdxZounh36wOTB6LFny kymAMYrLJiU1J7MstUjfLoErY+eWM8wFlzgrLv/9wNbAeJu9i5GTQ0LARGLprx7mLkYuDiGB HUwSj/8fZYRw/jJJfDzwggWkSlhAUeLv7sPMILaIgKTEmZVX2SCK3jFJnP2zhhEkwSagJTHn 0H+wBl4Be4ldO1YxgdgsAqoS55p+gtmiAmkSd2Y8ZIKoEZQ4OfMJWD2ngLXEnp2/wRYwC5hJ zNv8EMoWl7j1ZD4ThC0vsf3tHOYJjPyzkLTPQtIyC0nLLCQtCxhZVjHKJeaU5urmJmbmFKcm 6xYnJ+blpRbpGunlZpbopaaUbmKEBCbvDsb/62QOMQpwMCrx8H7gEYoSYk0sK67MPcQoycGk JMp7cD1/lBBfUn5KZUZicUZ8UWlOavEhRgkOZiURXksXwSgh3pTEyqrUonyYlDQHi5I4r9oS dT8hgfTEktTs1NSC1CKYrAwHh5IEb4Ic0B7BotT01Iq0zJwShDQTByfIcB6g4X0gNbzFBYm5 xZnpEPlTjMYcPT03/jBxPJv5uoFZiCUvPy9VSpzXAqRUAKQ0ozQPbhosubxiFAd6Tpg3CKSK B5iY4Oa9AlrFBLTK5QI/yKqSRISUVAOjm1L8ysY1VYW+fwMfGFwLrBM5E7joz7OPPhvqY69r Lv3wL+BI2c6bVVffv9temeP39lmF/a6fOt1qVlE/mD6dfjOJd4X3ovaLBSut513d3bAtQmNS 55NzFY87Sld8uL/xvuR5T51tC1+3nT0TfNzF/Mj1ozYv/vxIOc09JY3LX9mE77P0jFPCOUos xRmJhlrMRcWJAJTpfeAJAwAA
Archived-At: <https://mailarchive.ietf.org/arch/msg/abnf-discuss/DlkHf1lzJMetepr6TnE43Ags4ic>
Subject: [abnf-discuss] Target audience for ABNF
X-BeenThere: abnf-discuss@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "General discussion about tools, activities and capabilities involving the ABNF meta-language" <abnf-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/abnf-discuss/>
List-Post: <mailto:abnf-discuss@ietf.org>
List-Help: <mailto:abnf-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 20 Nov 2017 00:19:51 -0000

On 11/19/17 4:08 PM, Carsten Bormann wrote:
> 
>> On Nov 19, 2017, at 19:56, Dave Crocker <dcrocker@gmail.com> wrote:
>>
>> Computers are not the target audience for computer languages.  Human readers are.
> 
> +10k.

I agree that the human audience is of major importance.
But mechanical verifiability of ABNF is also important.

The existing ABNF definition fits that need if you don't do something 
when using it to break that verifiability. Unfortunately, the ABNF as 
used in the IETF is rarely completely verifiable without a bunch of 
manual tweaking.

The end result of this is that often the ABNF in drafts either isn't 
formally verified (relying on eyeballing by reviewers), or is 
incompletely verified. (Superficially verifying that the ANBF text in a 
draft is well formed with the exception of undefined references that, 
based on informal notation in the text, are defined elsewhere.)

Going beyond that requires a bunch of manual work that is error prone.

Ideally IdNits would verify ABNF in drafts as a matter of course. IIUC 
doing so has been included as a requirement for the new tooling. Given 
the current situation what IdNits can potentially do is very limited.

	Thanks,
	Paul


From nobody Sun Nov 19 16:54:16 2017
Return-Path: <dcrocker@gmail.com>
X-Original-To: abnf-discuss@ietfa.amsl.com
Delivered-To: abnf-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8CB12124319 for <abnf-discuss@ietfa.amsl.com>; Sun, 19 Nov 2017 16:54:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level: 
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pORj_bdDICGX for <abnf-discuss@ietfa.amsl.com>; Sun, 19 Nov 2017 16:54:13 -0800 (PST)
Received: from mail-ot0-x235.google.com (mail-ot0-x235.google.com [IPv6:2607:f8b0:4003:c0f::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 00F23120721 for <abnf-discuss@ietf.org>; Sun, 19 Nov 2017 16:54:12 -0800 (PST)
Received: by mail-ot0-x235.google.com with SMTP id s12so6365865otc.0 for <abnf-discuss@ietf.org>; Sun, 19 Nov 2017 16:54:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=7OGS4tBjCyz/4QH5qd0o8Swqfk2KaFQ/OocJ3g9wqnA=; b=o2YcvRClwmTnGsMXKeJRLWzooAwE3jt6GzHeU/qlY/rmK91TsgqEj8HqytWikRxnxr oUQ3r7hNyzVRnPmEa07jF59S12O0DhImfnNlsduysns4K+ZQZWZ/UqLqec483Itvbbfi xDOkQowoK9wvka7cXMXpkqe/OrLjGKfFb8+SNC56KtgMOHKEQ4f1k0XzIY29RMQvmy94 K/315JYm1dmj+oI9VcsGqgtbJdVZ8QbMfv6eM42TU06OG0M8zPIv8XNJrvMvboG/SY/I pjZ+VCuruN3vAbXYaxn9qLOVay4Ue9ls0MMBEPa4cPWsqqVkR0Ca64ThIBqAwOilg7GW NpmA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=7OGS4tBjCyz/4QH5qd0o8Swqfk2KaFQ/OocJ3g9wqnA=; b=LqvezOstXfugIJRAR+ZnYWAe1PxF0yW2kjmg5liITtGSPk7MEYouiGSBcFhVuT15/Y 2E+zUBj3rL4AMDVAU6jukuFYI8UtbUKYLPzXhC8rTgHUY1kUq35LCdG/tUYKBhs1cz/G 9G4PA8VqZLPQ3ypxvT3RCg7i4ZZLohpKiOzsTWnWTkl/IQU3RHlmnuH9jc9z0JVrkIo0 /KFADAi6O0X49wjZ+8FNY4nX9/ZzU9W6hzIIGjnkIFOkIo7kV5TtPwpr2mDNOvwjpdtl 8kwXrAzMuVJqsiD052EtL1QkQytpwpKtRf3yhBuxJkMexydgjUwjGngxkVZneQrntbXM 5nAA==
X-Gm-Message-State: AJaThX77WQOTAIIY45COZshctLq00t1nPLt7pCbYKgTdyMw5y41VyNzA QYIpHRtmFbHs71HDMbY4camlrFg1
X-Google-Smtp-Source: AGs4zMb8mj9n2U6pHcVD3zCCMoAFfQTab8dx5Go+gOJoMaHryX8CuKMiENsQ5F+/FuQ4RESm4Id5/Q==
X-Received: by 10.157.9.196 with SMTP id 4mr7110567otz.173.1511139251754; Sun, 19 Nov 2017 16:54:11 -0800 (PST)
Received: from ?IPv6:2602:304:cda0:8800:c4e8:d795:bbab:6d47? ([2602:304:cda0:8800:c4e8:d795:bbab:6d47]) by smtp.gmail.com with ESMTPSA id h7sm4231708oti.76.2017.11.19.16.54.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Nov 2017 16:54:10 -0800 (PST)
To: Paul Kyzivat <pkyzivat@alum.mit.edu>, abnf-discuss@ietf.org
References: <97E6D6C0-7010-46D6-8641-670F10A2504C@seantek.com> <3fbd228d-c6cf-be73-c7f2-f6b15979b852@gmail.com> <477FA5E8-FBAA-47D4-98A6-79DBAE4498C7@tzi.org> <7db503ef-3db4-9a72-6d14-001831742600@gmail.com> <62B9A765-E6EE-4C20-9A4E-58ADA9FDE975@seantek.com> <c10a79f2-5e42-fc00-ed5a-4459064b5af4@gmail.com> <6BF6E482-7EAD-4564-B273-44ADC13E7375@tzi.org> <b979026d-cb07-ad36-58ab-1ba82c0e8263@alum.mit.edu>
From: Dave Crocker <dcrocker@gmail.com>
Message-ID: <f370948e-b738-06fd-7d39-82bf068499f4@gmail.com>
Date: Sun, 19 Nov 2017 16:54:08 -0800
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0
MIME-Version: 1.0
In-Reply-To: <b979026d-cb07-ad36-58ab-1ba82c0e8263@alum.mit.edu>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/abnf-discuss/5hRH_GB-ZrFVZZkXzyDlYBkXqn8>
Subject: Re: [abnf-discuss] Target audience for ABNF
X-BeenThere: abnf-discuss@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "General discussion about tools, activities and capabilities involving the ABNF meta-language" <abnf-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/abnf-discuss/>
List-Post: <mailto:abnf-discuss@ietf.org>
List-Help: <mailto:abnf-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 20 Nov 2017 00:54:14 -0000

On 11/19/2017 4:19 PM, Paul Kyzivat wrote:
> On 11/19/17 4:08 PM, Carsten Bormann wrote:
>>
>>> On Nov 19, 2017, at 19:56, Dave Crocker <dcrocker@gmail.com> wrote:
>>>
>>> Computers are not the target audience for computer languages.  Human 
>>> readers are.
>>
>> +10k.
> 
> I agree that the human audience is of major importance.
> But mechanical verifiability of ABNF is also important.

I of course do not mean that computers are irrelevant.  However 
'verifiability' invokes formal methods and those typically aren't a 
concern for typical specification efforts.  Machine processing, yes. 
Mathematical proofs, no.

I gather you are claiming otherwise.  I haven't noticed any history of 
formal verification for IETF-related specifications, so perhaps you have 
some pointers?


> Ideally IdNits would verify ABNF in drafts as a matter of course. IIUC 
> doing so has been included as a requirement for the new tooling. Given 
> the current situation what IdNits can potentially do is very limited.

IdNits hardly seems to qualify as 'verification'.  So I'm probably not 
understanding exactly what problem you are concerned about.  Details?

d/


-- 
Dave Crocker
Brandenburg InternetWorking
bbiw.net


From nobody Sun Nov 19 17:13:50 2017
Return-Path: <pkyzivat@alum.mit.edu>
X-Original-To: abnf-discuss@ietfa.amsl.com
Delivered-To: abnf-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0E911120721 for <abnf-discuss@ietfa.amsl.com>; Sun, 19 Nov 2017 17:13:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.201
X-Spam-Level: 
X-Spam-Status: No, score=-4.201 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8nAUO2Tl0oLj for <abnf-discuss@ietfa.amsl.com>; Sun, 19 Nov 2017 17:13:47 -0800 (PST)
Received: from alum-mailsec-scanner-4.mit.edu (alum-mailsec-scanner-4.mit.edu [18.7.68.15]) by ietfa.amsl.com (Postfix) with ESMTP id 6E45C1201F8 for <abnf-discuss@ietf.org>; Sun, 19 Nov 2017 17:13:47 -0800 (PST)
X-AuditID: 1207440f-a43ff70000007960-64-5a122c48fcd7
Received: from outgoing-alum.mit.edu (OUTGOING-ALUM.MIT.EDU [18.7.68.33]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by alum-mailsec-scanner-4.mit.edu (Symantec Messaging Gateway) with SMTP id 24.5A.31072.94C221A5; Sun, 19 Nov 2017 20:13:45 -0500 (EST)
Received: from PaulKyzivatsMBP.localdomain (c-24-62-227-142.hsd1.ma.comcast.net [24.62.227.142]) (authenticated bits=0) (User authenticated as pkyzivat@ALUM.MIT.EDU) by outgoing-alum.mit.edu (8.13.8/8.12.4) with ESMTP id vAK1DhwK017688 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sun, 19 Nov 2017 20:13:44 -0500
To: Dave Crocker <dcrocker@gmail.com>, abnf-discuss@ietf.org
References: <97E6D6C0-7010-46D6-8641-670F10A2504C@seantek.com> <3fbd228d-c6cf-be73-c7f2-f6b15979b852@gmail.com> <477FA5E8-FBAA-47D4-98A6-79DBAE4498C7@tzi.org> <7db503ef-3db4-9a72-6d14-001831742600@gmail.com> <62B9A765-E6EE-4C20-9A4E-58ADA9FDE975@seantek.com> <c10a79f2-5e42-fc00-ed5a-4459064b5af4@gmail.com> <6BF6E482-7EAD-4564-B273-44ADC13E7375@tzi.org> <b979026d-cb07-ad36-58ab-1ba82c0e8263@alum.mit.edu> <f370948e-b738-06fd-7d39-82bf068499f4@gmail.com>
From: Paul Kyzivat <pkyzivat@alum.mit.edu>
Message-ID: <c6e9c6df-0b35-a4df-57ef-8c04e9637acf@alum.mit.edu>
Date: Sun, 19 Nov 2017 20:13:42 -0500
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:52.0) Gecko/20100101 Thunderbird/52.4.0
MIME-Version: 1.0
In-Reply-To: <f370948e-b738-06fd-7d39-82bf068499f4@gmail.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrHIsWRmVeSWpSXmKPExsUixO6iqOulIxRl8HIqu8XTQz/YLDp/72B0 YPLYOesuu8eSJT+ZApiiuGxSUnMyy1KL9O0SuDLmzL/AUnCdt2L3jJ1sDYy/uboYOTkkBEwk Js2/xdzFyMUhJLCDSWLL7/esIAkhgYdMEjO2JYHYwkBFE3qOMoLYIgI2ErsmfmSDaLjOLPGw oZ8JJMEmoCUx59B/FhCbV8Be4vCBW+wgNouAqsTx+0vZQGxRgTSJOzMeMkHUCEqcnPkEqJ6D g1PAVuLMlgqQMLOAmcS8zQ+ZIWxxiVtP5jNB2PISzVtnM09g5J+FpHsWkpZZSFpmIWlZwMiy ilEuMac0Vzc3MTOnODVZtzg5MS8vtUjXRC83s0QvNaV0EyMkUPl3MHatlznEKMDBqMTD+4FH KEqINbGsuDL3EKMkB5OSKO/B9fxRQnxJ+SmVGYnFGfFFpTmpxYcYJTiYlUR4LV0Eo4R4UxIr q1KL8mFS0hwsSuK86kvU/YQE0hNLUrNTUwtSi2CyMhwcShK8d7WA9ggWpaanVqRl5pQgpJk4 OEGG8wANZ9UGquEtLkjMLc5Mh8ifYjTm6Om58YeJ49nM1w3MQix5+XmpUuK8ViDjBEBKM0rz 4KbBks0rRnGg54R5fUEG8gATFdy8V0CrmIBWuVzgB1lVkoiQkmpgrEyIjw73PLcx8oLJv3+O E6Lmn2R4ULOJI9Jt8Zk7rLO0AqRZBWPPni5QXm4Y+mmfh2d8+eHnqhdrPB8ybLzBUbg3aCOX 2R/fh7/1Vp2RTgzKvleYdmKy53OOPVdDdl9ZmJ/pGDVz4UqJezX83Cdm8ib+nrQvpyA24mbx 6tlflS7M/fBMfeczXiWW4oxEQy3mouJEAAeLMkARAwAA
Archived-At: <https://mailarchive.ietf.org/arch/msg/abnf-discuss/jf_cxzEU0OJInDZS4aXnknxiLSE>
Subject: Re: [abnf-discuss] Target audience for ABNF
X-BeenThere: abnf-discuss@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "General discussion about tools, activities and capabilities involving the ABNF meta-language" <abnf-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/abnf-discuss/>
List-Post: <mailto:abnf-discuss@ietf.org>
List-Help: <mailto:abnf-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 20 Nov 2017 01:13:49 -0000

Dave,

On 11/19/17 7:54 PM, Dave Crocker wrote:
> On 11/19/2017 4:19 PM, Paul Kyzivat wrote:
>> On 11/19/17 4:08 PM, Carsten Bormann wrote:
>>>
>>>> On Nov 19, 2017, at 19:56, Dave Crocker <dcrocker@gmail.com> wrote:
>>>>
>>>> Computers are not the target audience for computer languages.  Human 
>>>> readers are.
>>>
>>> +10k.
>>
>> I agree that the human audience is of major importance.
>> But mechanical verifiability of ABNF is also important.
> 
> I of course do not mean that computers are irrelevant.  However 
> 'verifiability' invokes formal methods and those typically aren't a 
> concern for typical specification efforts.  Machine processing, yes. 
> Mathematical proofs, no.
> 
> I gather you are claiming otherwise.  I haven't noticed any history of 
> formal verification for IETF-related specifications, so perhaps you have 
> some pointers?
> 
> 
>> Ideally IdNits would verify ABNF in drafts as a matter of course. IIUC 
>> doing so has been included as a requirement for the new tooling. Given 
>> the current situation what IdNits can potentially do is very limited.
> 
> IdNits hardly seems to qualify as 'verification'.  So I'm probably not 
> understanding exactly what problem you are concerned about.  Details?

I'm not talking about verifying/proving that the ABNF does what was 
"intended". I'm willing to grant (for purposes of IETF documents) that 
verifying the ABNF reflects the *intent* is done by the human review 
process.

I'm simply talking about verifying that the ABNF is entirely well 
formed, that all rulenames have definitions, and that there are no 
multiple definitions. (Multiple instances of the same rulename on the 
left of  an "=".)

	Thanks,
	Paul


From nobody Sun Nov 19 17:20:15 2017
Return-Path: <dcrocker@gmail.com>
X-Original-To: abnf-discuss@ietfa.amsl.com
Delivered-To: abnf-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C4C121241FC for <abnf-discuss@ietfa.amsl.com>; Sun, 19 Nov 2017 17:20:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level: 
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XdhUaXu8QMQW for <abnf-discuss@ietfa.amsl.com>; Sun, 19 Nov 2017 17:20:11 -0800 (PST)
Received: from mail-oi0-x22c.google.com (mail-oi0-x22c.google.com [IPv6:2607:f8b0:4003:c06::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9D7841201F2 for <abnf-discuss@ietf.org>; Sun, 19 Nov 2017 17:20:11 -0800 (PST)
Received: by mail-oi0-x22c.google.com with SMTP id n16so5180430oig.3 for <abnf-discuss@ietf.org>; Sun, 19 Nov 2017 17:20:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=E3B4c5hC9pNCzTBSP6QHb8iOGwGNTzlo4Vi6nHvywiE=; b=q/m8nl44geyrfAtHEsOvs5mh/EEuY55EAcaoh5GwarvX7aNHfvckCMmxBD/kru3Nli 54p+R6HBW3zwnmEJKS4h3rwV8SrWYr8N8xy+WpPSlyMsYzrYiJUVdOwpuDNH9TLt3jx6 CQDxaHvzJ8YrsGiF6fdoBPU6JmGLvHAAVjU7zJaXpKJ6rgKw4W0n3rdPVSmXf5XPkSMk +RBrtICJ5JGP2f7+A1MKVQm3ruExPwzclbWIG5l6socLXN6VsyXsd1ZJUM5zjOjvLuUR y4MExKXwYnAU7nB1R4TiuOzncWLtd1IHwmDDn9Vr8kdx1t9AvWuJKcU+t2R61BRoJVAd f9/A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=E3B4c5hC9pNCzTBSP6QHb8iOGwGNTzlo4Vi6nHvywiE=; b=jPs+oSIDHZX70iiVecv2MENfHbFKCDbTFYYCltbmQtXzVGM5Il75FXfpEnwkfdddkD TKB+H+MzYkFB7wv1kMvIu3qVUZIy3jUNVoolkQ//3qz9Yced9yNlNK72Tnyzj6JP9mN0 Bqxfi0D/RwifGZ2JEgdEMN7VbY/E4NYCd4BpFq7hJg7ewpywAe7tZmJoF74Kzs74q59h BDXr1VKmxg9E+a0ITJzUxZEec9V1blJzZWNtYFVUNXDSPdWzTE4xn8uCjE/NfYoeDiLe z8NcqJlji722OAHKtl1Wrq3d1HPC4QM37cybsMnnTEiDwExDlIzrOPjYKF8KpePt8EHx MbjQ==
X-Gm-Message-State: AJaThX74GWyT66WMuletgpxjkBuNB48AcS3bmcI6VNI6ci5Lgb8C1AAA tCGHs5Po7brjoPM2bl1dGqIJ6Q5L
X-Google-Smtp-Source: AGs4zMaZFnXhFVAyHFG4i9d0eNOvWnDDxvuYkuIBU8JMjBGLflPfoknLP0eyiIJJP+0H37MhuDIZhw==
X-Received: by 10.202.72.216 with SMTP id v207mr5853643oia.222.1511140810331;  Sun, 19 Nov 2017 17:20:10 -0800 (PST)
Received: from ?IPv6:2602:304:cda0:8800:c4e8:d795:bbab:6d47? ([2602:304:cda0:8800:c4e8:d795:bbab:6d47]) by smtp.gmail.com with ESMTPSA id t29sm4437723otc.46.2017.11.19.17.20.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Nov 2017 17:20:09 -0800 (PST)
To: Paul Kyzivat <pkyzivat@alum.mit.edu>
References: <97E6D6C0-7010-46D6-8641-670F10A2504C@seantek.com> <3fbd228d-c6cf-be73-c7f2-f6b15979b852@gmail.com> <477FA5E8-FBAA-47D4-98A6-79DBAE4498C7@tzi.org> <7db503ef-3db4-9a72-6d14-001831742600@gmail.com> <62B9A765-E6EE-4C20-9A4E-58ADA9FDE975@seantek.com> <c10a79f2-5e42-fc00-ed5a-4459064b5af4@gmail.com> <6BF6E482-7EAD-4564-B273-44ADC13E7375@tzi.org> <b979026d-cb07-ad36-58ab-1ba82c0e8263@alum.mit.edu> <f370948e-b738-06fd-7d39-82bf068499f4@gmail.com> <c6e9c6df-0b35-a4df-57ef-8c04e9637acf@alum.mit.edu>
Cc: abnf-discuss@ietf.org
From: Dave Crocker <dcrocker@gmail.com>
Message-ID: <371e53e2-af6f-aae5-ba12-7f5d455210b0@gmail.com>
Date: Sun, 19 Nov 2017 17:20:07 -0800
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0
MIME-Version: 1.0
In-Reply-To: <c6e9c6df-0b35-a4df-57ef-8c04e9637acf@alum.mit.edu>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/abnf-discuss/6_H0IAK1zA2eF5PxljWz1heRb48>
Subject: Re: [abnf-discuss] Target audience for ABNF
X-BeenThere: abnf-discuss@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "General discussion about tools, activities and capabilities involving the ABNF meta-language" <abnf-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/abnf-discuss/>
List-Post: <mailto:abnf-discuss@ietf.org>
List-Help: <mailto:abnf-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 20 Nov 2017 01:20:14 -0000

On 11/19/2017 5:13 PM, Paul Kyzivat wrote:
> I'm simply talking about verifying that the ABNF is entirely well 
> formed, that all rulenames have definitions, and that there are no 
> multiple definitions. (Multiple instances of the same rulename on the 
> left of  an "=".)

ahh. syntactic validation.  Hmmm... I'd had the impression that that was 
pretty common these days.

d/

-- 
Dave Crocker
Brandenburg InternetWorking
bbiw.net


From nobody Sun Nov 19 22:50:18 2017
Return-Path: <cabo@tzi.org>
X-Original-To: abnf-discuss@ietfa.amsl.com
Delivered-To: abnf-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 134581293DF for <abnf-discuss@ietfa.amsl.com>; Sun, 19 Nov 2017 22:50:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level: 
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W_ddd667_aGr for <abnf-discuss@ietfa.amsl.com>; Sun, 19 Nov 2017 22:50:14 -0800 (PST)
Received: from mailhost.informatik.uni-bremen.de (mailhost.informatik.uni-bremen.de [IPv6:2001:638:708:30c9::12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C1ABC1293DB for <abnf-discuss@ietf.org>; Sun, 19 Nov 2017 22:50:12 -0800 (PST)
X-Virus-Scanned: amavisd-new at informatik.uni-bremen.de
Received: from submithost.informatik.uni-bremen.de (submithost.informatik.uni-bremen.de [134.102.201.11]) by mailhost.informatik.uni-bremen.de (8.14.5/8.14.5) with ESMTP id vAK6o3XM023703; Mon, 20 Nov 2017 07:50:03 +0100 (CET)
Received: from [192.168.217.124] (p5DC7FC78.dip0.t-ipconnect.de [93.199.252.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by submithost.informatik.uni-bremen.de (Postfix) with ESMTPSA id 3ygK8q13RczDXKT; Mon, 20 Nov 2017 07:50:03 +0100 (CET)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <c6e9c6df-0b35-a4df-57ef-8c04e9637acf@alum.mit.edu>
Date: Mon, 20 Nov 2017 07:50:02 +0100
Cc: Dave Crocker <dcrocker@gmail.com>, abnf-discuss@ietf.org
X-Mao-Original-Outgoing-Id: 532853402.108186-73cf2df3556b099355236717facfa722
Content-Transfer-Encoding: quoted-printable
Message-Id: <4D0B3FB6-988B-4772-B0AB-C6FA22D7E102@tzi.org>
References: <97E6D6C0-7010-46D6-8641-670F10A2504C@seantek.com> <3fbd228d-c6cf-be73-c7f2-f6b15979b852@gmail.com> <477FA5E8-FBAA-47D4-98A6-79DBAE4498C7@tzi.org> <7db503ef-3db4-9a72-6d14-001831742600@gmail.com> <62B9A765-E6EE-4C20-9A4E-58ADA9FDE975@seantek.com> <c10a79f2-5e42-fc00-ed5a-4459064b5af4@gmail.com> <6BF6E482-7EAD-4564-B273-44ADC13E7375@tzi.org> <b979026d-cb07-ad36-58ab-1ba82c0e8263@alum.mit.edu> <f370948e-b738-06fd-7d39-82bf068499f4@gmail.com> <c6e9c6df-0b35-a4df-57ef-8c04e9637acf@alum.mit.edu>
To: Paul Kyzivat <pkyzivat@alum.mit.edu>
X-Mailer: Apple Mail (2.3273)
Archived-At: <https://mailarchive.ietf.org/arch/msg/abnf-discuss/bOx36BmL9BPrc5bHdDfC6Vs34pE>
Subject: Re: [abnf-discuss] Target audience for ABNF
X-BeenThere: abnf-discuss@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "General discussion about tools, activities and capabilities involving the ABNF meta-language" <abnf-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/abnf-discuss/>
List-Post: <mailto:abnf-discuss@ietf.org>
List-Help: <mailto:abnf-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 20 Nov 2017 06:50:16 -0000

> On Nov 20, 2017, at 02:13, Paul Kyzivat <pkyzivat@alum.mit.edu> wrote:
>=20
> Dave,
>=20
> On 11/19/17 7:54 PM, Dave Crocker wrote:
>> On 11/19/2017 4:19 PM, Paul Kyzivat wrote:
>>> On 11/19/17 4:08 PM, Carsten Bormann wrote:
>>>>=20
>>>>> On Nov 19, 2017, at 19:56, Dave Crocker <dcrocker@gmail.com> =
wrote:
>>>>>=20
>>>>> Computers are not the target audience for computer languages.  =
Human readers are.
>>>>=20
>>>> +10k.
>>>=20
>>> I agree that the human audience is of major importance.
>>> But mechanical verifiability of ABNF is also important.
>> I of course do not mean that computers are irrelevant.  However =
'verifiability' invokes formal methods and those typically aren't a =
concern for typical specification efforts.  Machine processing, yes. =
Mathematical proofs, no.
>> I gather you are claiming otherwise.  I haven't noticed any history =
of formal verification for IETF-related specifications, so perhaps you =
have some pointers?
>>> Ideally IdNits would verify ABNF in drafts as a matter of course. =
IIUC doing so has been included as a requirement for the new tooling. =
Given the current situation what IdNits can potentially do is very =
limited.
>> IdNits hardly seems to qualify as 'verification'.  So I'm probably =
not understanding exactly what problem you are concerned about.  =
Details?
>=20
> I'm not talking about verifying/proving that the ABNF does what was =
"intended". I'm willing to grant (for purposes of IETF documents) that =
verifying the ABNF reflects the *intent* is done by the human review =
process.

Right, but tools like abnfgen can help enormously in this task =E2=80=94 =
the reviewer generates a few matching instances and eyeballs whether =
they look like what was intended.  Validating a few manually generated =
instances against the ABNF is the other computer-assisted process in =
validation.

> I'm simply talking about verifying that the ABNF is entirely well =
formed, that all rulenames have definitions, and that there are no =
multiple definitions. (Multiple instances of the same rulename on the =
left of  an "=3D=E2=80=9C.)

If the YANG people can do validation automatically upon submission, why =
can=E2=80=99t we?

(That would probably need the XML, with properly marked up =
[type=3D=E2=80=9Cabnf=E2=80=9D] artwork elements.  But we could =
encourage submitting the XML for drafts that cite RFC 5234 normatively.)

Gr=C3=BC=C3=9Fe, Carsten


From nobody Mon Nov 20 00:37:58 2017
Return-Path: <dev+ietf@seantek.com>
X-Original-To: abnf-discuss@ietfa.amsl.com
Delivered-To: abnf-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 558931294BD for <abnf-discuss@ietfa.amsl.com>; Mon, 20 Nov 2017 00:37:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id s5zXnIFk0ze2 for <abnf-discuss@ietfa.amsl.com>; Mon, 20 Nov 2017 00:37:54 -0800 (PST)
Received: from smtp-out-1.mxes.net (smtp-out-1.mxes.net [67.222.241.250]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 81AF8127B60 for <abnf-discuss@ietf.org>; Mon, 20 Nov 2017 00:37:54 -0800 (PST)
Received: from [192.168.123.7] (cpe-76-90-60-238.socal.res.rr.com [76.90.60.238]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 3B61D275A7 for <abnf-discuss@ietf.org>; Mon, 20 Nov 2017 03:37:52 -0500 (EST)
To: abnf-discuss@ietf.org
References: <97E6D6C0-7010-46D6-8641-670F10A2504C@seantek.com> <3fbd228d-c6cf-be73-c7f2-f6b15979b852@gmail.com> <477FA5E8-FBAA-47D4-98A6-79DBAE4498C7@tzi.org> <7db503ef-3db4-9a72-6d14-001831742600@gmail.com> <62B9A765-E6EE-4C20-9A4E-58ADA9FDE975@seantek.com> <c10a79f2-5e42-fc00-ed5a-4459064b5af4@gmail.com> <6BF6E482-7EAD-4564-B273-44ADC13E7375@tzi.org> <b979026d-cb07-ad36-58ab-1ba82c0e8263@alum.mit.edu> <f370948e-b738-06fd-7d39-82bf068499f4@gmail.com> <c6e9c6df-0b35-a4df-57ef-8c04e9637acf@alum.mit.edu> <4D0B3FB6-988B-4772-B0AB-C6FA22D7E102@tzi.org>
From: Sean Leonard <dev+ietf@seantek.com>
Message-ID: <093d889d-1932-c5f7-c91f-0e13693a63dc@seantek.com>
Date: Mon, 20 Nov 2017 00:35:52 -0800
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0
MIME-Version: 1.0
In-Reply-To: <4D0B3FB6-988B-4772-B0AB-C6FA22D7E102@tzi.org>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/abnf-discuss/PoBO46bHHfXRcEGSNThvk3woiNE>
Subject: Re: [abnf-discuss] Target audience for ABNF
X-BeenThere: abnf-discuss@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "General discussion about tools, activities and capabilities involving the ABNF meta-language" <abnf-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/abnf-discuss/>
List-Post: <mailto:abnf-discuss@ietf.org>
List-Help: <mailto:abnf-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 20 Nov 2017 08:37:56 -0000

On 11/19/2017 10:50 PM, Carsten Bormann wrote:
>> On Nov 20, 2017, at 02:13, Paul Kyzivat <pkyzivat@alum.mit.edu> wrote:=

>>
>> Dave,
>>
>> On 11/19/17 7:54 PM, Dave Crocker wrote:
>>> On 11/19/2017 4:19 PM, Paul Kyzivat wrote:
>>>> On 11/19/17 4:08 PM, Carsten Bormann wrote:
>>>>>> On Nov 19, 2017, at 19:56, Dave Crocker <dcrocker@gmail.com> wrote=
:
>>>>>>
>>>>>> Computers are not the target audience for computer languages.  Hum=
an readers are.
>>>>> +10k.
>>>> I agree that the human audience is of major importance.
>>>> But mechanical verifiability of ABNF is also important.
>>> I of course do not mean that computers are irrelevant.  However 'veri=
fiability' invokes formal methods and those typically aren't a concern fo=
r typical specification efforts.  Machine processing, yes. Mathematical p=
roofs, no.
>>> I gather you are claiming otherwise.  I haven't noticed any history o=
f formal verification for IETF-related specifications, so perhaps you hav=
e some pointers?
>>>> Ideally IdNits would verify ABNF in drafts as a matter of course. II=
UC doing so has been included as a requirement for the new tooling. Given=
 the current situation what IdNits can potentially do is very limited.
>>> IdNits hardly seems to qualify as 'verification'.  So I'm probably no=
t understanding exactly what problem you are concerned about.  Details?
>> I'm not talking about verifying/proving that the ABNF does what was "i=
ntended". I'm willing to grant (for purposes of IETF documents) that veri=
fying the ABNF reflects the *intent* is done by the human review process.=

> Right, but tools like abnfgen can help enormously in this task =E2=80=94=
 the reviewer generates a few matching instances and eyeballs whether the=
y look like what was intended.  Validating a few manually generated insta=
nces against the ABNF is the other computer-assisted process in validatio=
n.
>
>> I'm simply talking about verifying that the ABNF is entirely well form=
ed, that all rulenames have definitions, and that there are no multiple d=
efinitions. (Multiple instances of the same rulename on the left of  an "=
=3D=E2=80=9C.)
> If the YANG people can do validation automatically upon submission, why=
 can=E2=80=99t we?
>
> (That would probably need the XML, with properly marked up [type=3D=E2=80=
=9Cabnf=E2=80=9D] artwork elements.  But we could encourage submitting th=
e XML for drafts that cite RFC 5234 normatively.)

Note: reaex (SeanTek's Regular Expression-Based ABNF Extractor)=20
<https://tools.ietf.org/tools/table> properly and accurately grabs ABNF=20
out of plain text RFCs and Internet-Drafts each and every time. Includes =

automatic comment generation to annotate where in the RFC the ABNF came=20
from. Tested on all of the RFCs in the RFC series.*

Sean

*Succeeds when it's actually ABNF. Skips over stuff that is not actually =

ABNF (including ABNF typos). I think a few superseded RFCs had typos and =

they don't count.



From nobody Mon Nov 20 01:19:21 2017
Return-Path: <dev+ietf@seantek.com>
X-Original-To: abnf-discuss@ietfa.amsl.com
Delivered-To: abnf-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 93A601294F0 for <abnf-discuss@ietfa.amsl.com>; Mon, 20 Nov 2017 01:19:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lf5ZqpDO0UZO for <abnf-discuss@ietfa.amsl.com>; Mon, 20 Nov 2017 01:19:19 -0800 (PST)
Received: from smtp-out-1.mxes.net (smtp-out-1.mxes.net [67.222.241.250]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0FFD31294D4 for <abnf-discuss@ietf.org>; Mon, 20 Nov 2017 01:19:18 -0800 (PST)
Received: from [192.168.123.7] (cpe-76-90-60-238.socal.res.rr.com [76.90.60.238]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 37BD6274F7 for <abnf-discuss@ietf.org>; Mon, 20 Nov 2017 04:19:18 -0500 (EST)
To: abnf-discuss@ietf.org
References: <97E6D6C0-7010-46D6-8641-670F10A2504C@seantek.com> <3fbd228d-c6cf-be73-c7f2-f6b15979b852@gmail.com> <477FA5E8-FBAA-47D4-98A6-79DBAE4498C7@tzi.org> <7db503ef-3db4-9a72-6d14-001831742600@gmail.com> <62B9A765-E6EE-4C20-9A4E-58ADA9FDE975@seantek.com> <c10a79f2-5e42-fc00-ed5a-4459064b5af4@gmail.com>
From: Sean Leonard <dev+ietf@seantek.com>
Message-ID: <c9a7213d-0412-2280-6e24-dacaa00b4ee3@seantek.com>
Date: Mon, 20 Nov 2017 01:17:18 -0800
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0
MIME-Version: 1.0
In-Reply-To: <c10a79f2-5e42-fc00-ed5a-4459064b5af4@gmail.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/abnf-discuss/2rDcbfsBe1ulrN1pwFetaaE6rRw>
Subject: Re: [abnf-discuss] ABNF colloquialism for end-of-line
X-BeenThere: abnf-discuss@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "General discussion about tools, activities and capabilities involving the ABNF meta-language" <abnf-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/abnf-discuss/>
List-Post: <mailto:abnf-discuss@ietf.org>
List-Help: <mailto:abnf-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 20 Nov 2017 09:19:20 -0000

With respect to the original topic about end-of-line, I think the=20
solution has only 10% to do with ABNF per-se, and 90% to do with the=20
surrounding computing environment. Therefore, I have come up with the=20
following conventions based on inspection of a large quantity of RFCs:

Some protocols are binary-oriented (unit is based on octet), others are=20
text-oriented (unit is based on code point, e.g., ASCII, or Unicode/UTF-8=
).

Within the text-oriented protocols, some are line-oriented and some are=20
whitespace-oriented. (Some are oriented towards both.)

CRLF is the Internet standard newline. (RFC 5198) LF is the XML standard =

newline. (https://www.w3.org/TR/xml/ Section 2.11) CRLF is the Windows=20
standard newline. LF is the Unix standard newline. (No citations=20
necessary.) And etc.

A format is a "protocol" for our purposes if the format is sent over the =

Internet. Specifically, RFC 2046 says:

    The canonical form of any MIME "text" subtype MUST always represent a=

    line break as a CRLF sequence.  Similarly, any occurrence of CRLF in
    MIME "text" MUST represent a line break.  Use of CR and LF outside of=

    line break sequences is also forbidden.



Therefore:
When ABNF is used to describe a line-oriented protocol that has to do=20
with the Internet, it ought to use <CRLF>.

When ABNF is used to describe a line-oriented protocol that does not=20
have to do with the Internet, it can define line markers "to taste"; a=20
common convention is <EOL>. But don't define EOL =3D CRLF because there i=
s=20
no point. EOL is an indication to the reader that something is going on=20
with end-of-line markers, but there needs to be a good reason. Don't=20
redefine CRLF (or LF for that matter) either, because that confuses reade=
rs.

When ABNF is used to describe a whitespace-oriented (but not=20
line-oriented) protocol, it is acceptable to define whitespace as a glob =

of any of SP, HTAB, CR, and LF. A key example is JSON RFC 7159, which is =

whitespace-oriented, but does not care about lines. It is media-typed as =

application/json, not text/json, for that and related reasons.

When ABNF is used to describe a binary protocol, do whatever, but don't=20
use <CRLF> or <EOL> rule names in a binary protocol definition since=20
those conventions imply a text-oriented protocol.

When in doubt, ask: "If this format were to be dumped into a MIME part,=20
would this format foreseeably be transmitted as text/* such as=20
text/plain or message/* such as message/http? Or is it going to have to=20
be transmitted as application/* such as application/xml?" And there's a=20
reasonable guide.

If there is disagreement about line endings and it matters to the=20
protocol, say something about that during "preprocessing", rather than=20
in the (A)BNF definition. Example is CSS3: Section 3.3 of=20
<https://www.w3.org/TR/css-syntax-3/>.

Regards,

Sean

On 11/19/2017 10:56 AM, Dave Crocker wrote:
> On 11/16/2017 1:26 PM, Sean Leonard wrote:
>> To add some color to this point, =E2=80=9Ccuts=E2=80=9D was discussed =
in the CBOR WG=20
>> in the context of CDDL. It is a technique from Parsing Expression=20
>> Grammars. Here is overview:
> ...
>> Basically it commits the parser at a particular point, so that it=20
>> does not backtrack.
>>
>> However, PEGs are ordered; ABNF is unordered. With ABNF (as presently =

>> constituted), all alternatives in a choice are considered=20
>> simultaneously (order is not relevant). Even if you match one=20
>> alternative, you=E2=80=99re supposed to try all other alternatives.
>
>
> (Disclaimer:=C2=A0 What follows is pure personal opinion.)
>
>
> I'll offer this for consideration, without also offering any specific=20
> action...
>
> Why did ABNF become popular?
>
> (For a time, RFC 733 and then RFC 822 were the most-cited RFCs. It=20
> turned out this was not due to the email portion but folk were=20
> re-using the ABNF meta-specification, which is why the later, revision =

> effort to RFC 822 split the ABNF text out into its own RFC.)
>
> At the time ABNF was defined in the latter 1970s, most specs provided=20
> their own variation of BNF.=C2=A0 Everyone wanted tailoring to the basi=
c=20
> tool.=C2=A0 But while folk have often wanted to enhance ABNF, over the =

> years, the 'let's define a new variant' tendency mostly died out --=20
> ignoring the much more recent move towards JSON... Why did this=20
> popularity happen?
>
> Languages need to balance expressive power against human usage=20
> complexity.=C2=A0 Enough but not too much, of each.=C2=A0 ABNF seemed t=
o strike=20
> a good balance.=C2=A0 (I like to think the documentation clarity in RFC=
 733=20
> also helped, but then I'm quite biased about this, given how much=20
> effort I put into that aspect of the work...)
>
> I think the biggest danger in creating a meta-language is=20
> specification obscurity.=C2=A0 The tendency to want to add features can=
=20
> too-easily create too much complexity for easy human comprehension.=C2=A0=
=20
> The result is that seemingly-simple specifications can too-easily have =

> implications that are not understood by most readers.
>
> Computers are not the target audience for computer languages. Human=20
> readers are.=C2=A0 Subtle effects (nevermind side-effects) are very eas=
ily=20
> missed by human readers.
>
> d/




From nobody Mon Nov 20 09:35:39 2017
Return-Path: <pkyzivat@alum.mit.edu>
X-Original-To: abnf-discuss@ietfa.amsl.com
Delivered-To: abnf-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8EFC2129577 for <abnf-discuss@ietfa.amsl.com>; Mon, 20 Nov 2017 09:35:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.201
X-Spam-Level: 
X-Spam-Status: No, score=-4.201 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HRc_EOYUF60D for <abnf-discuss@ietfa.amsl.com>; Mon, 20 Nov 2017 09:35:36 -0800 (PST)
Received: from alum-mailsec-scanner-4.mit.edu (alum-mailsec-scanner-4.mit.edu [18.7.68.15]) by ietfa.amsl.com (Postfix) with ESMTP id BFEB4126E7A for <abnf-discuss@ietf.org>; Mon, 20 Nov 2017 09:35:35 -0800 (PST)
X-AuditID: 1207440f-a5bff70000007960-fd-5a1312652f2f
Received: from outgoing-alum.mit.edu (OUTGOING-ALUM.MIT.EDU [18.7.68.33]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by alum-mailsec-scanner-4.mit.edu (Symantec Messaging Gateway) with SMTP id 37.BE.31072.562131A5; Mon, 20 Nov 2017 12:35:34 -0500 (EST)
Received: from PaulKyzivatsMBP.localdomain (c-24-62-227-142.hsd1.ma.comcast.net [24.62.227.142]) (authenticated bits=0) (User authenticated as pkyzivat@ALUM.MIT.EDU) by outgoing-alum.mit.edu (8.13.8/8.12.4) with ESMTP id vAKHZVZk030780 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 20 Nov 2017 12:35:32 -0500
To: Carsten Bormann <cabo@tzi.org>
Cc: Dave Crocker <dcrocker@gmail.com>, abnf-discuss@ietf.org
References: <97E6D6C0-7010-46D6-8641-670F10A2504C@seantek.com> <3fbd228d-c6cf-be73-c7f2-f6b15979b852@gmail.com> <477FA5E8-FBAA-47D4-98A6-79DBAE4498C7@tzi.org> <7db503ef-3db4-9a72-6d14-001831742600@gmail.com> <62B9A765-E6EE-4C20-9A4E-58ADA9FDE975@seantek.com> <c10a79f2-5e42-fc00-ed5a-4459064b5af4@gmail.com> <6BF6E482-7EAD-4564-B273-44ADC13E7375@tzi.org> <b979026d-cb07-ad36-58ab-1ba82c0e8263@alum.mit.edu> <f370948e-b738-06fd-7d39-82bf068499f4@gmail.com> <c6e9c6df-0b35-a4df-57ef-8c04e9637acf@alum.mit.edu> <4D0B3FB6-988B-4772-B0AB-C6FA22D7E102@tzi.org>
From: Paul Kyzivat <pkyzivat@alum.mit.edu>
Message-ID: <b44a3940-9317-07e8-ba4e-2e6e0d92f800@alum.mit.edu>
Date: Mon, 20 Nov 2017 12:35:30 -0500
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:52.0) Gecko/20100101 Thunderbird/52.4.0
MIME-Version: 1.0
In-Reply-To: <4D0B3FB6-988B-4772-B0AB-C6FA22D7E102@tzi.org>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprMKsWRmVeSWpSXmKPExsUixO6iqJsmJBxlMOuArMXTQz/YLI5Muctq 0fl7B6MDs8fOWXfZPZYs+cnkMW1RZgBzFJdNSmpOZllqkb5dAlfGwZbXTAXrFCpal91hbWCc KtXFyMkhIWAi8Wj1c/YuRi4OIYEdTBKvOm8ygySEBB4ySWzZ5Q1iCwMVTeg5yghiiwgoSVy4 uIYNxGYWsJFY9B+kHqR5H4vEuq7lLCAJNgEtiTmH/gPZHBy8AvYSz74qgoRZBFQlGo8+AZsj KpAmcWfGQyYQm1dAUOLkzCdgrZwC1hJ/nrcxQ8w3k5i3+SGULS5x68l8JghbXqJ562zmCYwC s5C0z0LSMgtJyywkLQsYWVYxyiXmlObq5iZm5hSnJusWJyfm5aUW6Zro5WaW6KWmlG5ihIQ0 /w7GrvUyhxgFOBiVeHg/8AhFCbEmlhVX5h5ilORgUhLlXfUbKMSXlJ9SmZFYnBFfVJqTWnyI UYKDWUmEVy0KKMebklhZlVqUD5OS5mBREudVX6LuJySQnliSmp2aWpBaBJOV4eBQkuDtEhSO EhIsSk1PrUjLzClBSDNxcIIM5wEaPgOkhre4IDG3ODMdIn+K0Zijp+fGHyaOZzNfNzALseTl 56VKifPGgZQKgJRmlObBTYOlpVeM4kDPCfOeEQCq4gGmNLh5r4BWMQGtcrnAD7KqJBEhJdXA yHdxgfvUIzkd2Wxrpn170D31daPQZc+Gpy6betxzjApa9lRrCD1IexymfFw74P7VyaGvD0/a e4zLRKHk4zsl6fNOX8PO7ldr2CbyWoF7+uYvdQeX3W0u2NK2boY8p6Zw12b1+k2JG/9XuDcb Vi2v/yTgF3jL2+JBgkSO3MpF52y+LJo1N0PkkRJLcUaioRZzUXEiANjumQYmAwAA
Archived-At: <https://mailarchive.ietf.org/arch/msg/abnf-discuss/tjKctdylz-XvSmX1W17h6iSMLHM>
Subject: Re: [abnf-discuss] Target audience for ABNF
X-BeenThere: abnf-discuss@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "General discussion about tools, activities and capabilities involving the ABNF meta-language" <abnf-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/abnf-discuss/>
List-Post: <mailto:abnf-discuss@ietf.org>
List-Help: <mailto:abnf-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 20 Nov 2017 17:35:37 -0000

On 11/20/17 1:50 AM, Carsten Bormann wrote:
> 
>> On Nov 20, 2017, at 02:13, Paul Kyzivat <pkyzivat@alum.mit.edu> wrote:
>>
>> Dave,
>>
>> On 11/19/17 7:54 PM, Dave Crocker wrote:
>>> On 11/19/2017 4:19 PM, Paul Kyzivat wrote:
>>>> On 11/19/17 4:08 PM, Carsten Bormann wrote:
>>>>>
>>>>>> On Nov 19, 2017, at 19:56, Dave Crocker <dcrocker@gmail.com> wrote:
>>>>>>
>>>>>> Computers are not the target audience for computer languages.  Human readers are.
>>>>>
>>>>> +10k.
>>>>
>>>> I agree that the human audience is of major importance.
>>>> But mechanical verifiability of ABNF is also important.
>>> I of course do not mean that computers are irrelevant.  However 'verifiability' invokes formal methods and those typically aren't a concern for typical specification efforts.  Machine processing, yes. Mathematical proofs, no.
>>> I gather you are claiming otherwise.  I haven't noticed any history of formal verification for IETF-related specifications, so perhaps you have some pointers?
>>>> Ideally IdNits would verify ABNF in drafts as a matter of course. IIUC doing so has been included as a requirement for the new tooling. Given the current situation what IdNits can potentially do is very limited.
>>> IdNits hardly seems to qualify as 'verification'.  So I'm probably not understanding exactly what problem you are concerned about.  Details?
>>
>> I'm not talking about verifying/proving that the ABNF does what was "intended". I'm willing to grant (for purposes of IETF documents) that verifying the ABNF reflects the *intent* is done by the human review process.
> 
> Right, but tools like abnfgen can help enormously in this task — the reviewer generates a few matching instances and eyeballs whether they look like what was intended.  Validating a few manually generated instances against the ABNF is the other computer-assisted process in validation.
> 
>> I'm simply talking about verifying that the ABNF is entirely well formed, that all rulenames have definitions, and that there are no multiple definitions. (Multiple instances of the same rulename on the left of  an "=“.)
> 
> If the YANG people can do validation automatically upon submission, why can’t we?
> 
> (That would probably need the XML, with properly marked up [type=“abnf”] artwork elements.  But we could encourage submitting the XML for drafts that cite RFC 5234 normatively.)

Yes, and I gather that is what is being planned for the future. This 
will work ok if the ABNF is complete and self contained. But there are 
large numbers of important RFCs where it isn't, and in a practical sense 
can't be. For instance RFC6665 is an extension to RFC3261. It includes 
the following as a prelude to the ABNF it includes:

    The Augmented BNF [RFC5234] definitions for the various new and
    modified syntax elements follows.  The notation is as used in
    [RFC3261], and any elements not defined in this section are as
    defined in SIP and the documents to which it refers.

The end result of this is that if you attempt to verify the syntax in a 
standalone way all of the referenced rules are undefined.

(This RFC has the additional issue of using '=' to redefine a rule 
defined in RFC3261. This is historic - it is a revision of RFC3265 that 
was defined prior to the addition of '=/' to ABNF.

There are large number of RFCs that use techniques something like this. 
More modern ones use '=/' and sometimes do something like:

	foo = <defined in RFCxxxx>

That construct eliminates the undefined rules, but the verification then 
fails to check lots of other things.

Another issue is that there is ambiguity about the status of the Core 
Rules defined in RFC5234. Can anyone writing an ABNF grammar assume that 
the core rules are predefined for their use? Or must the grammar 
indicate specifically (how?) that it is implicitly including their 
definitions? If they are automatically present, then they are reserved 
rule names, and cannot be defined differently in any ABNF grammar.

These are impediments to thorough verification of ABNF syntax.

	Thanks,
	Paul


From nobody Mon Nov 20 09:45:31 2017
Return-Path: <cabo@tzi.org>
X-Original-To: abnf-discuss@ietfa.amsl.com
Delivered-To: abnf-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CEC79129C4D for <abnf-discuss@ietfa.amsl.com>; Mon, 20 Nov 2017 09:45:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level: 
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id quEJ3FDGot_z for <abnf-discuss@ietfa.amsl.com>; Mon, 20 Nov 2017 09:45:27 -0800 (PST)
Received: from mailhost.informatik.uni-bremen.de (mailhost.informatik.uni-bremen.de [IPv6:2001:638:708:30c9::12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8EDA712E040 for <abnf-discuss@ietf.org>; Mon, 20 Nov 2017 09:45:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at informatik.uni-bremen.de
Received: from submithost.informatik.uni-bremen.de (submithost.informatik.uni-bremen.de [IPv6:2001:638:708:30c9::b]) by mailhost.informatik.uni-bremen.de (8.14.5/8.14.5) with ESMTP id vAKHjJLf004865; Mon, 20 Nov 2017 18:45:19 +0100 (CET)
Received: from [192.168.217.119] (p5DC7FC78.dip0.t-ipconnect.de [93.199.252.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by submithost.informatik.uni-bremen.de (Postfix) with ESMTPSA id 3ygbhv4KpgzDXXj; Mon, 20 Nov 2017 18:45:19 +0100 (CET)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <b44a3940-9317-07e8-ba4e-2e6e0d92f800@alum.mit.edu>
Date: Mon, 20 Nov 2017 18:45:18 +0100
Cc: Dave Crocker <dcrocker@gmail.com>, abnf-discuss@ietf.org
X-Mao-Original-Outgoing-Id: 532892718.591879-2fc6f67018b1d6b0b0d819749ba41866
Content-Transfer-Encoding: quoted-printable
Message-Id: <87E95822-E99C-4C86-A699-6B2FBFC8A6E7@tzi.org>
References: <97E6D6C0-7010-46D6-8641-670F10A2504C@seantek.com> <3fbd228d-c6cf-be73-c7f2-f6b15979b852@gmail.com> <477FA5E8-FBAA-47D4-98A6-79DBAE4498C7@tzi.org> <7db503ef-3db4-9a72-6d14-001831742600@gmail.com> <62B9A765-E6EE-4C20-9A4E-58ADA9FDE975@seantek.com> <c10a79f2-5e42-fc00-ed5a-4459064b5af4@gmail.com> <6BF6E482-7EAD-4564-B273-44ADC13E7375@tzi.org> <b979026d-cb07-ad36-58ab-1ba82c0e8263@alum.mit.edu> <f370948e-b738-06fd-7d39-82bf068499f4@gmail.com> <c6e9c6df-0b35-a4df-57ef-8c04e9637acf@alum.mit.edu> <4D0B3FB6-988B-4772-B0AB-C6FA22D7E102@tzi.org> <b44a3940-9317-07e8-ba4e-2e6e0d92f800@alum.mit.edu>
To: Paul Kyzivat <pkyzivat@alum.mit.edu>
X-Mailer: Apple Mail (2.3273)
Archived-At: <https://mailarchive.ietf.org/arch/msg/abnf-discuss/f5gz95P0XVjdq7cnwMFc3_ThnCw>
Subject: Re: [abnf-discuss] Target audience for ABNF
X-BeenThere: abnf-discuss@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "General discussion about tools, activities and capabilities involving the ABNF meta-language" <abnf-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/abnf-discuss/>
List-Post: <mailto:abnf-discuss@ietf.org>
List-Help: <mailto:abnf-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 20 Nov 2017 17:45:30 -0000

Hi Paul,

I think these are good observations for a future FDT (ABNFplus :-) or =
CDDL 2.0).

> Yes, and I gather that is what is being planned for the future. This =
will work ok if the ABNF is complete and self contained. But there are =
large numbers of important RFCs where it isn't, and in a practical sense =
can't be. For instance RFC6665 is an extension to RFC3261. It includes =
the following as a prelude to the ABNF it includes:
>=20
>   The Augmented BNF [RFC5234] definitions for the various new and
>   modified syntax elements follows.  The notation is as used in
>   [RFC3261], and any elements not defined in this section are as
>   defined in SIP and the documents to which it refers.

Of course, YANG solves this by defining an import/export interface.
ABNF could grow a convention that makes something like

> 	foo =3D <defined in RFCxxxx>

actually well-defined.
(We have discussed this for CDDL and didn=E2=80=99t want to include this =
in this round.)

> Another issue is that there is ambiguity about the status of the Core =
Rules defined in RFC5234. Can anyone writing an ABNF grammar assume that =
the core rules are predefined for their use? Or must the grammar =
indicate specifically (how?) that it is implicitly including their =
definitions? If they are automatically present, then they are reserved =
rule names, and cannot be defined differently in any ABNF grammar.

Right.  In CDDL, we have a defined =E2=80=9Cprelude=E2=80=9D that is =
added to all specifications, effectively becoming a set of reserved =
names.  ABNF could use the above convention with RFC 5234 as the source, =
or grow a wholesale =E2=80=9Cimport RFC5234=E2=80=9D style statement.

Gr=C3=BC=C3=9Fe, Carsten


From nobody Mon Nov 20 10:04:45 2017
Return-Path: <pkyzivat@alum.mit.edu>
X-Original-To: abnf-discuss@ietfa.amsl.com
Delivered-To: abnf-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D13FD12E048 for <abnf-discuss@ietfa.amsl.com>; Mon, 20 Nov 2017 10:04:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.201
X-Spam-Level: 
X-Spam-Status: No, score=-4.201 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZvnogMwK1_BX for <abnf-discuss@ietfa.amsl.com>; Mon, 20 Nov 2017 10:04:41 -0800 (PST)
Received: from alum-mailsec-scanner-8.mit.edu (alum-mailsec-scanner-8.mit.edu [18.7.68.20]) by ietfa.amsl.com (Postfix) with ESMTP id DBC5E12E039 for <abnf-discuss@ietf.org>; Mon, 20 Nov 2017 10:04:40 -0800 (PST)
X-AuditID: 12074414-0d3ff70000006ddf-89-5a131937b78e
Received: from outgoing-alum.mit.edu (OUTGOING-ALUM.MIT.EDU [18.7.68.33]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by alum-mailsec-scanner-8.mit.edu (Symantec Messaging Gateway) with SMTP id 3B.76.28127.739131A5; Mon, 20 Nov 2017 13:04:39 -0500 (EST)
Received: from PaulKyzivatsMBP.localdomain (c-24-62-227-142.hsd1.ma.comcast.net [24.62.227.142]) (authenticated bits=0) (User authenticated as pkyzivat@ALUM.MIT.EDU) by outgoing-alum.mit.edu (8.13.8/8.12.4) with ESMTP id vAKI4bwl032297 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 20 Nov 2017 13:04:38 -0500
To: Carsten Bormann <cabo@tzi.org>
Cc: Dave Crocker <dcrocker@gmail.com>, abnf-discuss@ietf.org
References: <97E6D6C0-7010-46D6-8641-670F10A2504C@seantek.com> <3fbd228d-c6cf-be73-c7f2-f6b15979b852@gmail.com> <477FA5E8-FBAA-47D4-98A6-79DBAE4498C7@tzi.org> <7db503ef-3db4-9a72-6d14-001831742600@gmail.com> <62B9A765-E6EE-4C20-9A4E-58ADA9FDE975@seantek.com> <c10a79f2-5e42-fc00-ed5a-4459064b5af4@gmail.com> <6BF6E482-7EAD-4564-B273-44ADC13E7375@tzi.org> <b979026d-cb07-ad36-58ab-1ba82c0e8263@alum.mit.edu> <f370948e-b738-06fd-7d39-82bf068499f4@gmail.com> <c6e9c6df-0b35-a4df-57ef-8c04e9637acf@alum.mit.edu> <4D0B3FB6-988B-4772-B0AB-C6FA22D7E102@tzi.org> <b44a3940-9317-07e8-ba4e-2e6e0d92f800@alum.mit.edu> <87E95822-E99C-4C86-A699-6B2FBFC8A6E7@tzi.org>
From: Paul Kyzivat <pkyzivat@alum.mit.edu>
Message-ID: <6b5dae66-93ec-0260-9350-c96add3e1e52@alum.mit.edu>
Date: Mon, 20 Nov 2017 13:04:37 -0500
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:52.0) Gecko/20100101 Thunderbird/52.4.0
MIME-Version: 1.0
In-Reply-To: <87E95822-E99C-4C86-A699-6B2FBFC8A6E7@tzi.org>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprMKsWRmVeSWpSXmKPExsUixO6iqGsuKRxl0P1MwuLpoR9sFkem3GW1 6Py9g9GB2WPnrLvsHkuW/GTymLYoM4A5issmJTUnsyy1SN8ugStj6WmDgo8CFZ+ezGJvYNzC 28XIwSEhYCLxYbFzFyMXh5DADiaJQxuPsUE4D5kkJnRcYe1i5OQQBiqa0HOUEcQWEVCSuHBx DRuIzSxgI7Ho/01miIalrBIPzx8CS7AJaEnMOfSfBcTmFbCXaJi7EizOIqAqsXF9H9hQUYE0 iTszHjJB1AhKnJz5BKyeU8Ba4vWMg0wQC8wk5m1+yAxhi0vcejIfKi4v0bx1NvMERoFZSNpn IWmZhaRlFpKWBYwsqxjlEnNKc3VzEzNzilOTdYuTE/PyUot0LfRyM0v0UlNKNzFCQlpkB+OR k3KHGAU4GJV4eD/wCEUJsSaWFVfmHmKU5GBSEuVd9RsoxJeUn1KZkVicEV9UmpNafIhRgoNZ SYRXLQoox5uSWFmVWpQPk5LmYFES5/22WN1PSCA9sSQ1OzW1ILUIJivDwaEkwZsgIRwlJFiU mp5akZaZU4KQZuLgBBnOAzQ8BaSGt7ggMbc4Mx0if4rRmKOn58YfJo5nM183MAux5OXnpUqJ 8wqDlAqAlGaU5sFNg6WlV4ziQM8J80qCVPEAUxrcvFdAq5iAVrlc4AdZVZKIkJJqYLR1956w /soLp327GJYo3a6LkZ5xeILOx2Z9xTXTH2bdE3VasL9xXuI+ftu7og+Ej1TMYPRLrtadKe2Q Ef2zW6pJaNWTRMnLsROvfPzQdijbq3Hjx9O1m8oFnD5MkMx22HzsSYZxpkwDc0XCdJWWrdES HWornt8znMFaO3v+1RdzcnaXlFwJWq7EUpyRaKjFXFScCAAonxK6JgMAAA==
Archived-At: <https://mailarchive.ietf.org/arch/msg/abnf-discuss/EpWK7MrYlzQYqAoF_av9i-b_VKM>
Subject: Re: [abnf-discuss] Target audience for ABNF
X-BeenThere: abnf-discuss@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "General discussion about tools, activities and capabilities involving the ABNF meta-language" <abnf-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/abnf-discuss/>
List-Post: <mailto:abnf-discuss@ietf.org>
List-Help: <mailto:abnf-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 20 Nov 2017 18:04:44 -0000

On 11/20/17 12:45 PM, Carsten Bormann wrote:
> Hi Paul,
> 
> I think these are good observations for a future FDT (ABNFplus :-) or CDDL 2.0).
> 
>> Yes, and I gather that is what is being planned for the future. This will work ok if the ABNF is complete and self contained. But there are large numbers of important RFCs where it isn't, and in a practical sense can't be. For instance RFC6665 is an extension to RFC3261. It includes the following as a prelude to the ABNF it includes:
>>
>>    The Augmented BNF [RFC5234] definitions for the various new and
>>    modified syntax elements follows.  The notation is as used in
>>    [RFC3261], and any elements not defined in this section are as
>>    defined in SIP and the documents to which it refers.
> 
> Of course, YANG solves this by defining an import/export interface.
> ABNF could grow a convention that makes something like
> 
>> 	foo = <defined in RFCxxxx>
> 
> actually well-defined.
> (We have discussed this for CDDL and didn’t want to include this in this round.)
> 
>> Another issue is that there is ambiguity about the status of the Core Rules defined in RFC5234. Can anyone writing an ABNF grammar assume that the core rules are predefined for their use? Or must the grammar indicate specifically (how?) that it is implicitly including their definitions? If they are automatically present, then they are reserved rule names, and cannot be defined differently in any ABNF grammar.
> 
> Right.  In CDDL, we have a defined “prelude” that is added to all specifications, effectively becoming a set of reserved names.  ABNF could use the above convention with RFC 5234 as the source, or grow a wholesale “import RFC5234” style statement.
> 
> Grüße, Carsten

Indeed it is possible to address these issues with some extensions to 
ABNF. But there is resistance to making extensions to ABNF for fear of 
making it too complex or "formal" for users.

What I'm trying to do here is make the case that there are some issues 
that need solutions. If we can get agreement on those then we can 
discuss how to do so without confusing users.

	Thanks,
	Paul

