Re: I-D ACTION:draft-crocker-abnf-rfc2234bis-00.txt

Bruce Lilly <blilly@erols.com> Thu, 07 April 2005 19:56 UTC

Received: from ietf-mx.ietf.org (ietf-mx.ietf.org [132.151.6.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA02463; Thu, 7 Apr 2005 15:56:35 -0400 (EDT)
Received: from megatron.ietf.org ([132.151.6.71]) by ietf-mx.ietf.org with esmtp (Exim 4.33) id 1DJdFr-0000Lx-U8; Thu, 07 Apr 2005 16:05:32 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=megatron.ietf.org) by megatron.ietf.org with esmtp (Exim 4.32) id 1DJd2j-0005fR-Dp; Thu, 07 Apr 2005 15:51:57 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by megatron.ietf.org with esmtp (Exim 4.32) id 1DJd2h-0005fM-Ge for ietf@megatron.ietf.org; Thu, 07 Apr 2005 15:51:56 -0400
Received: from ietf-mx.ietf.org (ietf-mx.ietf.org [132.151.6.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA02048 for <ietf@ietf.org>; Thu, 7 Apr 2005 15:51:53 -0400 (EDT)
Received: from ns2a.townisp.com ([216.195.0.134] helo=ns2.townisp.com) by ietf-mx.ietf.org with esmtp (Exim 4.33) id 1DJdBJ-0008W2-Ti for ietf@ietf.org; Thu, 07 Apr 2005 16:00:50 -0400
Received: from mail.blilly.com (dhcp-0-8-a1-c-fa-f7.cpe.townisp.com [216.49.158.220]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "marty.blilly.com", Issuer "Bruce Lilly" (not verified)) by ns2.townisp.com (Postfix) with ESMTP id B97632991F; Thu, 7 Apr 2005 15:51:53 -0400 (EDT)
Received: from marty.blilly.com (localhost [127.0.0.1]) by mail.blilly.com with ESMTP id j37JpnVZ020911(8.13.1/8.13.1/mail.blilly.com sendmail.mc.mail 1.23 2005/03/23 20:35:49) (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) ; Thu, 7 Apr 2005 15:51:50 -0400
Received: from marty.blilly.com (localhost [127.0.0.1]) (authenticated (0 bits)) by marty.blilly.com with ESMTP id j37Jpmkv020908(8.13.1/8.13.1/blilly.com submit.mc 1.2 2005/03/17 23:41:52) (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) ; Thu, 7 Apr 2005 15:51:49 -0400
From: Bruce Lilly <blilly@erols.com>
Organization: Bruce Lilly
To: ietf@ietf.org
Date: Thu, 07 Apr 2005 15:51:44 -0400
User-Agent: KMail/1.8
References: <200503151501.KAA22519@ietf.org>
In-Reply-To: <200503151501.KAA22519@ietf.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200504071551.45596.blilly@erols.com>
X-Spam-Score: 0.0 (/)
X-Scan-Signature: b5d20af10c334b36874c0264b10f59f1
Content-Transfer-Encoding: 7bit
Cc: paulo@turnpike.com, dcrocker@bbiw.net
Subject: Re: I-D ACTION:draft-crocker-abnf-rfc2234bis-00.txt
X-BeenThere: ietf@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: ietf@ietf.org
List-Id: IETF-Discussion <ietf.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/ietf>, <mailto:ietf-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:ietf@ietf.org>
List-Help: <mailto:ietf-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/ietf>, <mailto:ietf-request@ietf.org?subject=subscribe>
Sender: ietf-bounces@ietf.org
Errors-To: ietf-bounces@ietf.org
X-Spam-Score: 0.0 (/)
X-Scan-Signature: cf3becbbd6d1a45acbe2ffd4ab88bdc2
Content-Transfer-Encoding: 7bit
Status: O

On Tue March 15 2005 10:01, Internet-Drafts@ietf.org wrote:
> A New Internet-Draft is available from the on-line Internet-Drafts directories.
> 
> 
> 	Title		: Augmented BNF for Syntax Specifications: ABNF
> 	Author(s)	: D. Crocker, P. Overell
> 	Filename	: draft-crocker-abnf-rfc2234bis-00.txt
> 	Pages		: 15
> 	Date		: 2005-3-10

Comments:

Section 1, first paragraph, first sentences refers to "format syntax".
Should that be "formal syntax"?

Same section and paragraph refers to RFCs 733 and 822 as "email
specifications".  Technically, both are message format specifications
(email also includes transport protocol specifications).

The first paragraph after "Changes in the latest version" includes two
non-ASCII octets.  In the same paragraph, "correct" should be
"corrected".

Section 2.2 (and section 4 definitions of c-nl and comment) refer to
crlf line endings.  However, Internet-Drafts and RFCs which specify ABNF
in fact have newline line endings (no CR), as can be verified by
retrieval from the IETF ftp site using IMAGE (a.k.a. binary) transfer
mode.  Technically, to correspond to that actual use, crlf
(case-insensitive) should be replaced with LF in those places (while
retaining the definition of CRLF in the core rules).  To accommodate
local end-of-line conventions including CR by ABNF parsers, it might be
desirable to instead change crlf to ([CR]LF).

Also in section 2.2, "end-of- line" should be "end-of-line".

In the section 2.3 phrase "ABNF permits specifying literal text string
directly", "string" should be "strings".

There is an extraneous extra period after the last sentence of the note
in section 3.2.

An extraneous space appears before the word "independent" in section
3.3.

In section 3.4, to avoid confusion, "end of line" should be "CRLF".

One rule in the section 4 definition of ABNF causes serious ambiguities:

           rulelist       =  1*( rule / (*c-wsp c-nl) )

That permits comment-only lines which are part of the rulelist, but not
affiliated with a specific rule.  That itself is not a concern.
However, it permits a rulelist such as:

        ; stand-alone comment
     ; another stand-alone comment
  first-rule = foo
        ; comment intended to be associated with first-rule
        ; comment intended to be stand-alone
  second-rule = bar

One problem is that the provision for leading whitespace in a
stand-alone comment in conjunction with the section 2.2 (last paragraph)
indentation rules ("left alignment and indentation are relative to the
first lines") introduces an ambiguity regarding the amount of
indentation.

A second issue is the ambiguity regarding both comments which appear
between the two rules in the example above.  One cannot determine
whether the first comment matches the second alternative in the rulelist
production (and is therefore a stand-alone comment), or if it is
comprised of *c-wsp from the end of the "elements" production in the
first rule, followed by the c-nl production which is an integral part of
the "rule" production (and therefore is part of the first rule).  If the
first of those comments is stand-alone, then the second must also be
stand-alone.  However, if the first is part of the frst rule, the second
might or might not be stand-alone -- the ambiguity continues.

Both problems can be avoided by requiring stand-alone comments to have
no (extra) leading whitespace:

           rulelist       =  1*( rule / c-nl )

In that case, the example above would have to be revised as:

  ; stand-alone comment
  ; another stand-alone comment
  first-rule = foo
        ; comment intended to be associated with first-rule
  ; comment intended to be stand-alone
  second-rule = bar

And the ambiguities are thus removed.

_______________________________________________
Ietf mailing list
Ietf@ietf.org
https://www1.ietf.org/mailman/listinfo/ietf