X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
Delivered-To: barryleiba.mailing.lists@gmail.com
Received: by 10.59.3.41 with SMTP id bt9csp181935ved;
        Thu, 3 Jan 2013 08:06:56 -0800 (PST)
X-Received: by 10.68.217.4 with SMTP id ou4mr152632034pbc.88.1357229215412;
        Thu, 03 Jan 2013 08:06:55 -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 qu6si47873020pbc.105.2013.01.03.08.06.54;
        Thu, 03 Jan 2013 08:06:55 -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 32E0D21F8C9D;
	Thu,  3 Jan 2013 08:06:54 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1;
	t=1357229214; bh=L9dTgdnB0LwnxVJ8D5f3vCW+J7RjcW7CCwc1+YICDkQ=;
	h=Message-ID:Date:From:MIME-Version:To:References:In-Reply-To:Cc:
	 Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:
	 List-Subscribe:Content-Transfer-Encoding:Content-Type:Sender;
	b=bm3TyWNtaBxb20OjFIPTMQLHJsiv7ucaVsFIasBNAXefy9mn5kTdpxx8Avo6X490h
	 7t6xNkazVCuVK+QphHzgwn+xAoq/Cj9p5BCrewpGJ4tF81HdKnMnLjL2+DGWMVgqbj
	 7UIua1xrqQOW2a6dCg7EFtTOI5RMJyq35vbHo1jE=
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 E7C7021F8C97
	for <abnf-discuss@ietfa.amsl.com>; Thu,  3 Jan 2013 08:06:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.397
X-Spam-Level: 
X-Spam-Status: No, score=-0.397 tagged_above=-999 required=5 tests=[AWL=0.040, 
	BAYES_00=-2.599, FH_RELAY_NODNS=1.451, HELO_MISMATCH_NET=0.611, 
	RDNS_NONE=0.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 gJrzlpsRe5MX for <abnf-discuss@ietfa.amsl.com>;
	Thu,  3 Jan 2013 08:06:52 -0800 (PST)
Received: from qmta02.westchester.pa.mail.comcast.net
	(qmta02.westchester.pa.mail.comcast.net
	[IPv6:2001:558:fe14:43:76:96:62:24])
	by ietfa.amsl.com (Postfix) with ESMTP id 2B26621F8C74
	for <abnf-discuss@ietf.org>; Thu,  3 Jan 2013 08:06:51 -0800 (PST)
Received: from omta19.westchester.pa.mail.comcast.net ([76.96.62.98])
	by qmta02.westchester.pa.mail.comcast.net with comcast
	id jRHz1k00627AodY51U6r5i; Thu, 03 Jan 2013 16:06:51 +0000
Received: from Paul-Kyzivats-MacBook-Pro.local ([50.138.229.164])
	by omta19.westchester.pa.mail.comcast.net with comcast
	id jU6q1k01S3ZTu2S3fU6rFc; Thu, 03 Jan 2013 16:06:51 +0000
Message-ID: <50E5AC9A.3020605@alum.mit.edu>
Date: Thu, 03 Jan 2013 11:06:50 -0500
From: Paul Kyzivat <pkyzivat@alum.mit.edu>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7;
	rv:17.0) Gecko/17.0 Thunderbird/17.0
MIME-Version: 1.0
To: Tony Finch <dot@dotat.at>
References: <50E4A900.1070408@alum.mit.edu>
	<alpine.LSU.2.00.1301030943590.15409@hermes-1.csi.cam.ac.uk>
In-Reply-To: <alpine.LSU.2.00.1301030943590.15409@hermes-1.csi.cam.ac.uk>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;
	s=q20121106; t=1357229211;
	bh=M1i/R3TQ5B95M3ZRg0sYKn+YtXyVbZiSTkco5P0/kCI=;
	h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject:
	Content-Type;
	b=b/745+xMrdzEBEJYlTB7zoj3RcdCQPXaGUALT9xILUoxu9MqKq/5L+6miTDI4b7Qn
	GbxyKWNlG3tN8qu2x2Et21L4BN9gHr2ICzGUHyPNC8pRGPwhaLB5bGEuFwFEveP1Gt
	DPDZDmWSwNIdUmo2MlWQSJZawlS0agji3rPeoObk74Mz9MLDNRzXJaO7HOGO+pydjE
	RYaJ+9BBDqZYQ9i4qcIq0HOofSyAc89EQO5NQho9HvNkk4G90bpPii6IsILcHnAaZ8
	yX1SQyBlAQa0Gn33aOPhTwcEnCxJ8oOb1McYL1LWrJ+hEWb5pKrAsfx7W8oeOnpPJz
	dy2V3UN2mLIfQ==
Cc: "abnf-discuss@ietf.org" <abnf-discuss@ietf.org>
Subject: Re: [abnf-discuss] How to indent ABNF figures in draft?
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 1/3/13 5:09 AM, Tony Finch wrote:
> Paul Kyzivat <pkyzivat@alum.mit.edu> wrote:
>>
>> The ABNF syntax requires rules to start at the beginning of a line with no
>> preceding whitespace.
>
> Well, sort of. That's what the grammar says but there is an informal
> permission to indent in RFC 5234 section 2.2:
>
>     For visual ease, rule definitions are left aligned.  When a rule
>     requires multiple lines, the continuation lines are indented.  The
>     left alignment and indentation are relative to the first lines of the
>     ABNF rules and need not match the left margin of the document.

I guess it is a matter of how you read this.
It doesn't *look* normative. I took it to be describing a display 
convention for the document itself rather than an alteration to the 
syntax rules.

> This would ideally be part of the ABNF grammar.

It isn't possible to express *that* syntax rule in ABNF.

> Apart from comments, I don't think there is any need for ABNF to be
> sensitive to newlines or indentation, though a parser would need two
> tokens of lookahead to tell the difference between the end of a rule
> (rulename defined-as) and a continued rule (rulename anything-else).

Yes, that is a possible direction.

> I suggest the following, which still requires rules to start on new lines
> but removes sensitivity to horizontal white space.
>
>           rulelist       =  1*( *c-wsp rule ) *c-wsp
>
>           rule           =  rulename defined-as elements c-nl
>
>           c-wsp          =  WSP / c-nl

Maybe. I like this better than allowing multiple rules per line with no 
explicit separators.

	Thanks,
	Paul

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

