X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
Delivered-To: barryleiba.mailing.lists@gmail.com
Received: by 10.59.3.41 with SMTP id bt9csp138348ved;
        Wed, 2 Jan 2013 09:14:39 -0800 (PST)
X-Received: by 10.66.75.100 with SMTP id b4mr138413041paw.0.1357146878991;
        Wed, 02 Jan 2013 09:14:38 -0800 (PST)
Return-Path: <abnf-discuss-bounces@ietf.org>
Received: from mail.ietf.org (mail.ietf.org. [2001:1890:126c::1:1e])
        by mx.google.com with ESMTP id ax10si44989333pbd.14.2013.01.02.09.14.38;
        Wed, 02 Jan 2013 09:14:38 -0800 (PST)
Received-SPF: pass (google.com: domain of abnf-discuss-bounces@ietf.org designates 2001:1890:126c::1:1e as permitted sender) client-ip=2001:1890:126c::1:1e;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of abnf-discuss-bounces@ietf.org designates 2001:1890:126c::1:1e as permitted sender) smtp.mail=abnf-discuss-bounces@ietf.org; dkim=pass (test mode) header.i=@ietf.org
Received: from ietfa.amsl.com (localhost [127.0.0.1])
	by ietfa.amsl.com (Postfix) with ESMTP id 0ED1D21F86E7;
	Wed,  2 Jan 2013 09:14:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1;
	t=1357146878; bh=RFFqEp6CiNuWHdpVOEC/81Mi9xRyHO4NQE8w+GBUMO8=;
	h=MIME-Version:In-Reply-To:References:Date:Message-ID:From:To:
	 Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:
	 List-Subscribe:Content-Type:Content-Transfer-Encoding:Sender;
	b=iyGGl7nO2LbCq827W+4oBR+j6D0UyzIkpXEWOLjiyUabsa6jbwySHBX0v/wpyHJ3B
	 Q4qfDQPqWtKDgWLRJOzbOsN6n7mG0KeDQhHP4RWbW8bjvqX6+qfQC2lvDWEh7b5xdu
	 5jE/P7Fc5euFJYGBUGom1iqV+/olOSY1zoAQsD0o=
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 6764521F86E6
	for <abnf-discuss@ietfa.amsl.com>; Wed,  2 Jan 2013 09:14:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5
	tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([64.170.98.30])
	by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id H0rwMDNAdYPG for <abnf-discuss@ietfa.amsl.com>;
	Wed,  2 Jan 2013 09:14:35 -0800 (PST)
Received: from mail-la0-f46.google.com (mail-la0-f46.google.com
	[209.85.215.46])
	by ietfa.amsl.com (Postfix) with ESMTP id 4156821F86DD
	for <abnf-discuss@ietf.org>; Wed,  2 Jan 2013 09:14:35 -0800 (PST)
Received: by mail-la0-f46.google.com with SMTP id fq13so6446456lab.19
	for <abnf-discuss@ietf.org>; Wed, 02 Jan 2013 09:14:34 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type; bh=sKyNswEQxcXKoKhRt4WWoSPQ+Jw2qIToGR5SgSDMOWg=;
	b=a71ckLhHyckL8F62PrRZodLf2cSf8JghfoKfqc4oxOIHpeUPlxHHiegTc58ubowHIx
	JsQTN9EuZQoCideRfmxNRMGhtDiuGVY+jOjOHBJrXy/7A6IsaOkKmoA4WLNYYcoQZdLQ
	MX9AT30OpsE42r5MbH0yiRqRWp+9/VN0aBPAsYDg1jXJ3x3PRZcrjXy1q0a8edBjASBM
	vBpQxRnG03C1FGbHpoYepMkFDujrlyJ1jHnkANXoVLUpOlZAbR5NFqhWLJauRk51dmaT
	rMylqbPt0Nm7hxBpsiMWjaTaHZXWnx+xbMRsdT7lM/YMktK8gMtXkdtrMCzLrzOVLKh4
	pMeg==
MIME-Version: 1.0
Received: by 10.112.85.35 with SMTP id e3mr17831033lbz.106.1357146874109; Wed,
	02 Jan 2013 09:14:34 -0800 (PST)
Received: by 10.112.108.133 with HTTP; Wed, 2 Jan 2013 09:14:33 -0800 (PST)
In-Reply-To: <50E460D0.1020308@gmail.com>
References: <50DCD850.3020106@alum.mit.edu>
	<alpine.LSU.2.00.1301021022570.15409@hermes-1.csi.cam.ac.uk>
	<50E45623.9060607@gmail.com>
	<alpine.LSU.2.00.1301021552190.15409@hermes-1.csi.cam.ac.uk>
	<50E45B21.20509@gmail.com>
	<alpine.LSU.2.00.1301021611070.15409@hermes-1.csi.cam.ac.uk>
	<50E460D0.1020308@gmail.com>
Date: Wed, 2 Jan 2013 18:14:33 +0100
Message-ID: <CABSMSPXthVjLT1e6MgoAwK+3W6-kSimE+XJ_UnKA4ZQgm3vjqA@mail.gmail.com>
From: Riccardo Bernardini <framefritti@gmail.com>
To: abnf-discuss@ietf.org
Subject: Re: [abnf-discuss] Some thoughts about how to make ABNF more
 convenient to use
X-BeenThere: abnf-discuss@ietf.org
X-Mailman-Version: 2.1.12
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: <http://www.ietf.org/mail-archive/web/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>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: abnf-discuss-bounces@ietf.org
Errors-To: abnf-discuss-bounces@ietf.org

On Wed, Jan 2, 2013 at 5:31 PM, Dave Crocker <dcrocker@gmail.com> wrote:
>
>
> On 1/2/2013 8:24 AM, Tony Finch wrote:
>>
>> Dave Crocker <dcrocker@gmail.com> wrote:
>>>
>>> On 1/2/2013 7:57 AM, Tony Finch wrote:
>>>>
>>>> Dave Crocker <dcrocker@gmail.com> wrote:
>>>>>
>>>>>
>>>>> It would need to be able to distinguish among potentially
>>>>> independent sets of rules, within a spec. We don't currently have a
>>>>> way to indicate that.
>>>>
>>>>
>>>> Has there ever been any need for it?
>>>
>>>
>>> Well, ummm, RFC822 had several parsers, such as for addresses versus
>>> dates
>>> versus free-form like Subject.  Applications often need this, I believe.
>>
>>
>> Hmm, well I would describe those as sub-languages whereas I thought we
>> were talking about independent languages. But in both cases they can be
>> defined / identified using the transitive closure from the starting rule,
>> without revising ABNF.
>
>
> I don't think so.  The parsing rules for a date field are quite different
> than for an an address field, in 822.  They share some lexical constructs,
> of course, but I don't find that very significant for the current topic.
>
>
>
>> I can see that rule sets might be useful for importing collections of
>> low-level rules, like the ABNF core rules.
>
>
> The choice, here, is between a formally flat namespace versus one that is
> formally able to be partitioned.  Simplicity is the major benefit of the
> first, of course.  Rigor and the ability to enforce the package boundaries
> that are actually present are the benefits of the latter.
>
>
>
>>> What I don't know is whether there will be the community will to pursue
>>> it --
>>> will we see enough operational benefit?
>>
>>
>> I think a formal import mechanism would be very useful and could be quite
>> easy to deploy. Adding namespaces will be a lot of work.
>
>
> ack.
>
> Given the effort to make /any/ changes to a package like abnf, I thought it
> worth raising the additional issue, since it seemed to develop pretty
> naturally from the thread.  But again, I don't have any idea whether anyone
> else thinks it's worth pursuing...
>

I like the idea of namespaces. It is true that you can live without
them and you can use informal PMNS (Poor Man Name Space) by adding a
prefix; nevertheless, I think that formally defined namespaces are a
definite plus.

I speak from experience: I worked both with languages (like C) without
namespaces where, to avoid clashes, you must resort to the "prefix
trick" and languages (like Ada) where every package has its own
namespace and I must say that it is much easier to work with the
latter...

BTW, inspired by Ada, you could use the RFC number as the namespace
itself, e.g., RFC4566.proto-version.  More complex RFCs with different
languages could define sub-spaces, e.g.,
RFC9999.fictional-namespace.foo.  This convention could (potentially)
be automatically checkable and maybe hyper-links automatically
inserted in the HTML/PDF version.

Since I am here, I would add a "desiderata" that is more about xml2rfc
than ABNF: the last time I used xml2rfc (maybe things changed since
then), if the ABNF section was not strictly correct, xml2rfc would
give a warning like "warning: not strictly conformant,"  without being
more specific and giving as reference the first line of the ABNF
section.  A more detailed message would help.

Riccardo

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

