Re: [abnf-discuss] constrained-01 - advantage?

Sean Leonard <dev+ietf@seantek.com> Fri, 18 November 2016 19:55 UTC

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 8911B1294F9 for <abnf-discuss@ietfa.amsl.com>; Fri, 18 Nov 2016 11:55:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.601
X-Spam-Level:
X-Spam-Status: No, score=-2.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_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 iXNaYkiU95ct for <abnf-discuss@ietfa.amsl.com>; Fri, 18 Nov 2016 11:55:52 -0800 (PST)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) (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 2419412975C for <abnf-discuss@ietf.org>; Fri, 18 Nov 2016 11:55:52 -0800 (PST)
Received: from [10.35.141.224] (unknown [58.123.138.206]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id BADC150A73; Fri, 18 Nov 2016 14:55:50 -0500 (EST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
From: Sean Leonard <dev+ietf@seantek.com>
In-Reply-To: <582F3F77.5000501@gmail.com>
Date: Sat, 19 Nov 2016 04:55:49 +0900
Content-Transfer-Encoding: quoted-printable
Message-Id: <A314D216-3A62-430D-8BC7-41E7D5B19E77@seantek.com>
References: <5828DD42.8010009@gmail.com> <36FC0A35-2ADA-4710-ABFB-08E8B916718E@seantek.com> <58292EE9.2040308@gmail.com> <1A928BF2-22AB-4EA1-9DCD-58B6F646259F@seantek.com> <017b01d23e53$7c13b640$743b22c0$@hansfords.net> <8554FBCB-D327-4398-AAE0-DBD513B1FD1D@seantek.com> <02cb01d241b3$4629ed70$d27dc850$@hansfords.net> <582F3F77.5000501@gmail.com>
To: Doug Royer <douglasroyer@gmail.com>
X-Mailer: Apple Mail (2.3124)
Archived-At: <https://mailarchive.ietf.org/arch/msg/abnf-discuss/E8MlYrxNW-9hjId_O4QZ0mXFQUs>
Cc: abnf-discuss@ietf.org
Subject: Re: [abnf-discuss] constrained-01 - advantage?
X-BeenThere: abnf-discuss@ietf.org
X-Mailman-Version: 2.1.17
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: Fri, 18 Nov 2016 19:55:53 -0000

Hello Doug:

Thank you...I think?

ABNF is already “machine-parsable”. A couple of months ago, I published (ss)reaex, which is a machine parser (extractor, specifically). Other people have written full parser-compilers (apg, bap). The fact that a compiler “can” be written for ABNF has always been there, although perhaps it was not a design goal of RFC x234.

I suppose that a goal of draft-seantek-constrained-abnf is to help authors make ABNF more machine-parsable, but, that is not the only goal. Another goal is to assist specification writers with making their ABNF clearer for (human) readers, which means introducing a minimum amount of new syntax for specification writers to learn. There are other IETFers who do not feel that machine parsing is a (strong) design goal. To that end, another design criteria is that ABNF still meets all the criteria of BNF: a context-free grammar notation.

There are other enhancements to RFC 5234 that have been proposed, which do take the language further:
RFC 7405
draft-seantek-unicode-in-abnf
draft-seantek-abnf-more-core-rules

Can you describe what you mean by “needing to go much further”?

Regards,

Sean

> On Nov 19, 2016, at 2:50 AM, Doug Royer <douglasroyer@gmail.com> wrote:
> 
> 
> I do not have a problem with making ABNF machine parsable.
> 
> This draft makes it possible to make ABNF that is still not machine parsable. Because the old difficult to parse methods are still valid.
> 
> In my opinion, if this draft is going to go forward, this draft will need to go much further, because its going to make a confusing mess of mixed ABNF usage in future drafts.
> 
> And much further, its going to be more controversial.
> 
> -- 
> 
> Doug Royer - (http://DougRoyer.US)
> DouglasRoyer@gmail.com
> 714-989-6135
> 
> _______________________________________________
> abnf-discuss mailing list
> abnf-discuss@ietf.org
> https://www.ietf.org/mailman/listinfo/abnf-discuss