X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
Delivered-To: barryleiba.mailing.lists@gmail.com
Received: by 10.59.3.41 with SMTP id bt9csp235755ved;
        Fri, 4 Jan 2013 10:48:29 -0800 (PST)
X-Received: by 10.68.189.233 with SMTP id gl9mr162830462pbc.166.1357325309267;
        Fri, 04 Jan 2013 10:48:29 -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 bs8si51757160pab.176.2013.01.04.10.48.28;
        Fri, 04 Jan 2013 10:48:29 -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 12CF021F8750;
	Fri,  4 Jan 2013 10:48:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1;
	t=1357325308; bh=G36m4hMRXsjJ7PcY42QA/1rVBSiye8Chr6JiON79g1c=;
	h=Message-ID:Date:To:From:References:In-Reply-To:MIME-Version:
	 Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:
	 List-Subscribe:Content-Type:Sender;
	b=c0PRJAZk27PPDMVLrxUzZdwUN9Xm24a1O5bJ71fz4ZL7jmtioAV/pv7DiTjk0BRey
	 sZBl7h+miWhrKpaso0qoHAy4XKLhahQcwHHlkekEVHWtAplNMJK+e1nv3qZsV1wlRs
	 DTqeWhNiJ9S9aFCXkfl0hsHghBmvttRvsIE7yel4=
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 29E4F21F8749
	for <abnf-discuss@ietfa.amsl.com>; Fri,  4 Jan 2013 10:48:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.061
X-Spam-Level: 
X-Spam-Status: No, score=0.061 tagged_above=-999 required=5
	tests=[BAYES_00=-2.599, HELO_MISMATCH_UK=1.749,
	HOST_MISMATCH_NET=0.311, J_CHICKENPOX_57=0.6]
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 vx4IfB1TllIX for <abnf-discuss@ietfa.amsl.com>;
	Fri,  4 Jan 2013 10:48:25 -0800 (PST)
Received: from mail.o2.co.uk (sidious.london.02.net [82.132.130.152])
	by ietfa.amsl.com (Postfix) with ESMTP id 458A321F8732
	for <abnf-discuss@ietf.org>; Fri,  4 Jan 2013 10:48:25 -0800 (PST)
Received: from paul.bayleaf.org.uk (188.223.199.212) by mail.o2.co.uk
	(8.5.140.03) (authenticated as paul_overell)
	id 50BCF24308990637 for abnf-discuss@ietf.org;
	Fri, 4 Jan 2013 18:48:23 +0000
Message-ID: <tk0GjBDTOy5QFAkk@paul.bayleaf.org.uk>
Date: Fri, 4 Jan 2013 18:46:43 +0000
To: abnf-discuss@ietf.org
From: Paul Overell <paul@bayleaf.org.uk>
References: <20130103171755.20983.75939.idtracker@ietfa.amsl.com>
	<50E5BF59.9000207@alum.mit.edu> <50E5D4C5.8010800@alum.mit.edu>
In-Reply-To: <50E5D4C5.8010800@alum.mit.edu>
MIME-Version: 1.0
User-Agent: Turnpike/6.07-M (<1COohtf5GCYhcmjZhdKp0ToTGp>)
Subject: Re: [abnf-discuss] A proposal for adding import and scopping to ABNF
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: multipart/mixed; boundary="===============8167387564274873767=="
Sender: abnf-discuss-bounces@ietf.org
Errors-To: abnf-discuss-bounces@ietf.org

This is a PGP signed message sent according to RFC3156 [PGP/MIME]

--===============8167387564274873767==
Content-Type: multipart/signed;boundary="=_Turnpike_zEUBr5CROy5Q5LX1=";
 protocol="application/pgp-signature";micalg=pgp-sha1

This is a PGP signed message sent according to RFC3156 [PGP/MIME]

--=_Turnpike_zEUBr5CROy5Q5LX1=
Content-Type: text/plain;charset=us-ascii;format=flowed
Content-Transfer-Encoding: quoted-printable


Hi,

In message <50E5D4C5.8010800@alum.mit.edu>, Paul Kyzivat=20
<pkyzivat@alum.mit.edu> writes

I think this is a very interesting idea, to formalize import and export=20
of ABNF between documents.  Some thoughts, questions and quibbles:


1)

>       named-rulelist =3D
>          rulelist-name *WSP "{" rulelist "}" c-nl
>
>       rulelist-import =3D
>          (basic-import / named-import) c-nl

I think there is a minor problem with the syntax here, it doesn't allow=20
*WSP before the c-nl.  But be very careful when fixing this as the=20
original syntax contains some ambiguity concerning white space, which is=20
subject to an errata:=20
http://www.rfc-editor.org/errata_search.php?rfc=3D5234&rec_status=3D2&prese=
nt
ation=3Drecords.

2)

>   o  The <basic-import> simply inserts all the ABNF from the=20
>referenced
>      document.
>   o  The <named-import> is similar, but does the import within a new
>      <named-rulelist>.  This is just syntactic sugar, but is
>      convenient.  E.g. the following:
>
>       CORE@"urn:ietf:rfc:5234"
>
>      is equivalent to:
>
>       CORE {
>          @"urn:ietf:rfc:5234"
>       }

This doesn't seem to allow importing just a named-rulelist from another=20
document.  E.g if document 1 has
SYNTAX1 {
    doc1syntax1 =3D ...
}
SYNTAX2 {
    doc1syntax2 =3D ...
}

How do I specify in document 2 that I wish to import just SYNTAX1, and=20
not SYNTAX2?

The named-import seems to import ALL the ABNF from another document into=20
a new namespace - or have I misunderstood?

4)

Have you considered an import syntax to specify importing just a=20
specific rule or list of rules?  E.g. Importing from RFC5234 one might=20
just want some of the core rules from Appendix B, but not want the ABNF=20
Definition of ABNF in section 4.

5)

What are the semantics of importing a rulelist that itself imports a=20
rulelist?  Is circularity allowed (doc1 import from doc2, doc2 imports=20
from doc1)?  If so is a parser expected to detect circularity to avoid=20
an infinite loop?


Regards
--=20
Paul Overell

--=_Turnpike_zEUBr5CROy5Q5LX1=
Content-Type: application/pgp-signature
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: PGP SDK 3.2.2

iQA/AwUAUOcjkR8WRy+wdge+EQLgvQCg6lHcPj0zLMczu5Ez2+FYhX4W5kYAoIBz
rxg5um5kFOne4U8DjD/l5JeM
=MBpQ
-----END PGP SIGNATURE-----

--=_Turnpike_zEUBr5CROy5Q5LX1=--

--===============8167387564274873767==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
abnf-discuss mailing list
abnf-discuss@ietf.org
https://www.ietf.org/mailman/listinfo/abnf-discuss

--===============8167387564274873767==--

