X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
Delivered-To: barryleiba.mailing.lists@gmail.com
Received: by 10.112.12.166 with SMTP id z6csp531736lbb;
        Thu, 27 Dec 2012 19:34:08 -0800 (PST)
X-Received: by 10.66.85.101 with SMTP id g5mr95304391paz.17.1356665647486;
        Thu, 27 Dec 2012 19:34:07 -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 g1si31200636paw.216.2012.12.27.19.34.05;
        Thu, 27 Dec 2012 19:34:07 -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 5D9E121F8BD1;
	Thu, 27 Dec 2012 19:34:05 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1;
	t=1356665645; bh=YG5nRZPcQoJDODYoX1nZlE5lCYwkOLWAT85XjB5XWnc=;
	h=Message-ID:Date:From:MIME-Version:To:References:In-Reply-To:
	 Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:
	 List-Subscribe:Content-Transfer-Encoding:Content-Type:Sender;
	b=qkJurPhMRvCljY3KOI/q3ewxhZvMBbUcxR4HZFqxzSdvQRFndvntLs8rK86K8DjQj
	 /OT0V9g9RC5HPaIs6ZxA3LxTNYXhnhL+iLZ+FI7uxUaA1Z0VkECwBgTMgL/1ITIUYo
	 d0Uvj7gRMKLtQx7jE2UJBRoviwG+QLhyO3HLAcXQ=
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 7BAB721F8B38
	for <abnf-discuss@ietfa.amsl.com>; Thu, 27 Dec 2012 19:34:04 -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 nZ6eoW6+R+kt for <abnf-discuss@ietfa.amsl.com>;
	Thu, 27 Dec 2012 19:34:04 -0800 (PST)
Received: from mail-da0-f47.google.com (mail-da0-f47.google.com
	[209.85.210.47])
	by ietfa.amsl.com (Postfix) with ESMTP id E6DCF21F8A92
	for <abnf-discuss@ietf.org>; Thu, 27 Dec 2012 19:34:03 -0800 (PST)
Received: by mail-da0-f47.google.com with SMTP id s35so4585241dak.6
	for <abnf-discuss@ietf.org>; Thu, 27 Dec 2012 19:34:03 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=x-received:message-id:date:from:user-agent:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	bh=2Rh7MwZDDwleicaU+TfsKAlyTKwcvyv6W+DPk9ulA+U=;
	b=tSBawmrxpgyIxpOMbxW6/MorucUtAjwvhVRaTqc01gkIFxkSC3L3JgBl3uWV5vwveC
	WLBK/pbIrf1du1VrfMXYka2kw95ciXZrYMXWP2Mkj+boKcHeAFDxD9nZ2lhEiKbt/ZHn
	Z+4ef7OOQok2HvEzksMhnKH9kWs+PM9VglrzDk1ICVC/6UEYsi3yT/gaRIcxJnxBIk6b
	8YmW+T6DwFrzw2l9EawrFOlO39T7goUadNWsVj2DfxrAYQBar8XmCI9eg7kZR5wflfC2
	ZGilwl8klMgFO4vlFyMQGs4FhT/AxFFKO3DU5MxDClWKTdR42FeTeeIMBhgiwFOGbVLZ
	FgEw==
X-Received: by 10.68.242.38 with SMTP id wn6mr100492819pbc.28.1356665643528;
	Thu, 27 Dec 2012 19:34:03 -0800 (PST)
Received: from [192.168.44.3] (58-7-198-3.dyn.iinet.net.au. [58.7.198.3])
	by mx.google.com with ESMTPS id yi9sm18865196pbc.39.2012.12.27.19.34.01
	(version=SSLv3 cipher=OTHER); Thu, 27 Dec 2012 19:34:02 -0800 (PST)
Message-ID: <50DD1326.5040100@gmail.com>
Date: Fri, 28 Dec 2012 11:33:58 +0800
From: Daniel van Vugt <vanvugt@gmail.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:17.0) Gecko/17.0 Thunderbird/17.0
MIME-Version: 1.0
To: Paul Kyzivat <pkyzivat@alum.mit.edu>, abnf-discuss@ietf.org
References: <50DCD850.3020106@alum.mit.edu>
In-Reply-To: <50DCD850.3020106@alum.mit.edu>
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-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="windows-1252"; Format="flowed"
Sender: abnf-discuss-bounces@ietf.org
Errors-To: abnf-discuss-bounces@ietf.org

I like the idea of automating retrieval of a complete grammar from =

multiple documents. However if the end goal is to give the grammar to a =

checker/compiler then maybe that issue needs to be considered =

holistically first...

Even if your grammar compiles and is not ambiguous in any way, you =

cannot really be confident of its correctness for the intended task =

without some test input. Where does that come from? If there is no test =

input (presumably from the same documents) then what is the value in =

automation?

It sounds like you could only automate a syntax check in most cases. Is =

that a sufficiently strong end goal? I'm concerned for more subtle =

errors such as ambiguities I found in the ABNF RFC and XML spec when =

building Dapar[1]. Those require test cases to accompany the grammar.

[1] http://sourceforge.net/projects/dapar/

- Daniel


On 28/12/12 07:22, Paul Kyzivat wrote:
> [Is this list live? As best I can tell there has only been one message,
> ever.]
>
> I've been observing problems with the mechanics of using ABNF for ietf
> drafts, and contemplating some changes that could make things better.
> But I'd like to get some support and feedback before doing much about it.
>
> I would like to better support current practice where one draft or RFC
> extends the ABNF from another draft or RFC, or references ABNF rules
> defined elsewhere when defining something new.
>
> In my experience this is done using comments that identify the source of
> the referenced definitions. Formally processing this requires manual
> actions to cut and paste definitions from multiple documents in order to
> create a single ABNF source that can be processed for formal tools.
>
> With the enhancements I have in mind, it will be possible to build ABNF
> tools that automatically extract the required definitions.
>
> Also, often RFCs prefer to interleave ABNF rule definitions with
> descriptive text. But that makes it difficult to process. Sometimes
> rules are interleaved, and then also gathered together into a full ABNF,
> but this runs a risk of divergence. I'd also like to help with that.
>
> The enhancements I have in mind are:
>
> Extend ABNF syntax with:
> =95 A way to assign a name to a rule list within a document.
>    This allows multiple independent groups of rules to be defined
>    within a single document and referenced independently.
>
> =95 A way to reference a rule defined in a named collection of rules.
>
> =95 A way to import rule definitions from another document.
>    Optionally reference a specific named rule list within that document.
>
> Extend xml2rfc with:
> =95 A way to tag sections of the document that contain ABNF, so that
>    its easy to extract just the ABNF from the XML document.
>
> With these changes, an ABNF checker/compiler could be given the name of
> a draft or rfc, and could directly process the ABNF within. And that
> draft could reference and extend ABNF in another draft or rfc, and the
> checker/compiler could automatically retrieve that as well.
>
> Do others think this would be useful?
>
>      Thanks,
>      Paul
> _______________________________________________
> 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

