X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
Delivered-To: barryleiba.mailing.lists@gmail.com
Received: by 10.58.6.233 with SMTP id e9csp115173vea;
        Tue, 28 May 2013 07:57:54 -0700 (PDT)
X-Received: by 10.68.225.170 with SMTP id rl10mr34474227pbc.152.1369753073888;
        Tue, 28 May 2013 07:57:53 -0700 (PDT)
Return-Path: <abnf-discuss-bounces@ietf.org>
Received: from mail.ietf.org (mail.ietf.org. [2001:1890:123a::1:1e])
        by mx.google.com with ESMTP id yh2si23803647pab.148.2013.05.28.07.57.53
        for <multiple recipients>;
        Tue, 28 May 2013 07:57:53 -0700 (PDT)
Received-SPF: pass (google.com: domain of abnf-discuss-bounces@ietf.org designates 2001:1890:123a::1:1e as permitted sender) client-ip=2001:1890:123a::1:1e;
Authentication-Results: mx.google.com;
       spf=pass (google.com: domain of abnf-discuss-bounces@ietf.org designates 2001:1890:123a::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 [IPv6:::1])
	by ietfa.amsl.com (Postfix) with ESMTP id DA59B21F8E93;
	Tue, 28 May 2013 07:57:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1;
	t=1369753072; bh=qvlWNlOjPYDRwvuW8ItoeGS6JxSn0CbunE5TylKBhsw=;
	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=WmPui9XyUvTavRRilEjdPIfsZ/qTqdaB6czb8p8sWWU7BZrLxq+3CX+Ma0UwhMJnX
	 KGh+GUOk+2b6E7VYc8gHgNqqlYA1NOkVw4IdWJhj3bpDZ97QO/BjqsRTXeXWyQhihg
	 Unp11/pqlXdNNMvRI69xslfPrYHy7qvsvkieMAuI=
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 1567821F8E3C
	for <abnf-discuss@ietfa.amsl.com>; Tue, 28 May 2013 07:57:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.19
X-Spam-Level: 
X-Spam-Status: No, score=-0.19 tagged_above=-999 required=5 tests=[AWL=0.247, 
	BAYES_00=-2.599, FH_RELAY_NODNS=1.451, HELO_MISMATCH_NET=0.611, 
	RDNS_NONE=0.1]
Received: from mail.ietf.org ([12.22.58.30])
	by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id Qv-wdSCDhxJn for <abnf-discuss@ietfa.amsl.com>;
	Tue, 28 May 2013 07:57:47 -0700 (PDT)
Received: from qmta09.westchester.pa.mail.comcast.net
	(qmta09.westchester.pa.mail.comcast.net
	[IPv6:2001:558:fe14:43:76:96:62:96])
	by ietfa.amsl.com (Postfix) with ESMTP id B429421F8E2C
	for <abnf-discuss@ietf.org>; Tue, 28 May 2013 07:57:47 -0700 (PDT)
Received: from omta06.westchester.pa.mail.comcast.net ([76.96.62.51])
	by qmta09.westchester.pa.mail.comcast.net with comcast
	id hNx21l00516LCl059Sxmcy; Tue, 28 May 2013 14:57:46 +0000
Received: from Paul-Kyzivats-MacBook-Pro.local ([50.138.229.164])
	by omta06.westchester.pa.mail.comcast.net with comcast
	id hSxm1l00V3ZTu2S3SSxmz6; Tue, 28 May 2013 14:57:46 +0000
Message-ID: <51A4C5EA.7050106@alum.mit.edu>
Date: Tue, 28 May 2013 10:57:46 -0400
From: Paul Kyzivat <pkyzivat@alum.mit.edu>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7;
	rv:17.0) Gecko/20130509 Thunderbird/17.0.6
MIME-Version: 1.0
To: abnf-discuss@ietf.org
References: <mjn7q81hks92uvmm7ckq82pkea9dckbfmc@hive.bjoern.hoehrmann.de>
	<51A4AC66.4070307@alum.mit.edu>
	<CABSMSPVPPwz5jWs__cqaVZUOsg9Ez4T=BC-71+b75+gQfSb-AA@mail.gmail.com>
In-Reply-To: <CABSMSPVPPwz5jWs__cqaVZUOsg9Ez4T=BC-71+b75+gQfSb-AA@mail.gmail.com>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;
	s=q20121106; t=1369753066;
	bh=T8Qvi8NpDVHQGBXBYs87pClP0p4o16WFK/CN0FjLSTU=;
	h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject:
	Content-Type;
	b=fQI8NcpbP9ABLMY+YieW052J49/GeMTmUd5TpSA6tAZ/ZcSsFTBpECoLgRrqePfqr
	Is5WfOWigcu9A+oqxFH5xr3aKNqUf0DW8QZ9xVj2q3SFZtmMj0wCFWKRXWO+GvSx75
	6vwuuQbmpDeHN81q5Q92vX4MzPiPmHrXJ40pahI1RAkmzTA/aEKUI6kWyuJkqhZYIJ
	DkXSJpU+IpzuL1B0V6nP2oRHQ1L88dwIPFj6m/eOUDZXgdMy9pVKLgI7PJFFWz60zJ
	I89U22KJF228xD78pd9FpPto80DfO8swFllHgNsR907rwk5gMRUyTo5uUWhjGFX84S
	262FDP/bwjedQ==
Subject: Re: [abnf-discuss] Web service to convert ABNF to RELAX NG-like XML
 format
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: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: abnf-discuss-bounces@ietf.org
Errors-To: abnf-discuss-bounces@ietf.org

On 5/28/13 9:20 AM, Riccardo Bernardini wrote:
> On Tue, May 28, 2013 at 3:08 PM, Paul Kyzivat <pkyzivat@alum.mit.edu> wrote:
>> Why would you want to do this???
>
> Why not?

Because the ABNF is more concise and readable.
And it is formally defined so that it is easily parsed.

> Seriously, I can see a case where this could be useful: if
> you want to write some software that takes as input an ABNF grammar, I
> think it is easier to parse the XML (mainly because there are
> libraries ready off-the-shelf to do this) than the raw ABNF.  I agree
> that the procedure would turn out a bit convoluted....

Yes, you can consider the XML form to be a parse tree for the ABNF.
And if you have xml-based tools that let you do useful things with it, 
then fine.

There seem to be different schools of thought about the purpose of xml. 
IMO it is a machine representation - intended for processing by 
computers. IMO it ought to be *generated* by computers too.

But some people seem to consider it a representation for people. IMO, 
while it more suitable for people than a binary representation would be, 
it is still a very poor one for people.

	Thanks,
	Paul

>> On 5/27/13 6:35 PM, Bjoern Hoehrmann wrote:
>>>
>>> Hi,
>>>
>>>     My http://search.cpan.org/dist/Parse-ABNF/ comes with a demo tool that
>>> converts ABNF grammars into an undocumented RELAX NG-like XML format, a
>>> rule like `a = b / c d` would come out as
>>>
>>>     <define name="a">
>>>       <choice>
>>>         <ref name="b"></ref>
>>>         <group>
>>>           <ref name="c"></ref>
>>>           <ref name="d"></ref>
>>>         </group>
>>>       </choice>
>>>     </define>
>>>
>>> At http://www.websitedev.de/abnf/abnf2xml/ is a CGI wrapper around the
>>> code. I tested it with the http://tools.ietf.org/abnf/ output for RFC
>>> 3987 (IRI) and RFC 4627 (JSON) and it seems to work well enough.
>>>
>>> regards,
>>>
>>
>> _______________________________________________
>> 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
>

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

