Re: [apps-discuss] Review of: draft-yevstifeyev-abnf-separated-lists-02

"Thomson, Martin" <Martin.Thomson@andrew.com> Mon, 13 December 2010 22:11 UTC

Return-Path: <Martin.Thomson@andrew.com>
X-Original-To: apps-discuss@core3.amsl.com
Delivered-To: apps-discuss@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 927DD3A6D38 for <apps-discuss@core3.amsl.com>; Mon, 13 Dec 2010 14:11:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.561
X-Spam-Level:
X-Spam-Status: No, score=-2.561 tagged_above=-999 required=5 tests=[AWL=0.038, BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id A-OkdiDwC+ez for <apps-discuss@core3.amsl.com>; Mon, 13 Dec 2010 14:11:45 -0800 (PST)
Received: from csmailgw1.commscope.com (csmailgw1.commscope.com [198.135.207.244]) by core3.amsl.com (Postfix) with ESMTP id 3BE053A6E12 for <apps-discuss@ietf.org>; Mon, 13 Dec 2010 14:11:45 -0800 (PST)
Received: from [10.86.20.103] ([10.86.20.103]:62283 "EHLO ACDCE7HC2.commscope.com") by csmailgw1.commscope.com with ESMTP id S40061160Ab0LMWNX (ORCPT <rfc822; apps-discuss@ietf.org>); Mon, 13 Dec 2010 16:13:23 -0600
Received: from SISPE7HC1.commscope.com (10.97.4.12) by ACDCE7HC2.commscope.com (10.86.20.103) with Microsoft SMTP Server (TLS) id 8.1.436.0; Mon, 13 Dec 2010 16:13:23 -0600
Received: from SISPE7MB1.commscope.com ([fe80::9d82:a492:85e3:a293]) by SISPE7HC1.commscope.com ([fe80::8a9:4724:f6bb:3cdf%10]) with mapi; Tue, 14 Dec 2010 06:13:21 +0800
From: "Thomson, Martin" <Martin.Thomson@andrew.com>
To: Julian Reschke <julian.reschke@gmx.de>, "dcrocker@bbiw.net" <dcrocker@bbiw.net>
Date: Tue, 14 Dec 2010 06:13:18 +0800
Thread-Topic: [apps-discuss] Review of: draft-yevstifeyev-abnf-separated-lists-02
Thread-Index: Acuaq/28mkEFgBeMT0CW5g1z/qX+tgAZfIvg
Message-ID: <8B0A9FCBB9832F43971E38010638454F03F34FAC7A@SISPE7MB1.commscope.com>
References: <4D028FE0.20906@bbiw.net> <4D03A25E.9060709@dcrocker.net> <4D05EDB8.6090901@gmx.de>
In-Reply-To: <4D05EDB8.6090901@gmx.de>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-BCN: Meridius 1000 Version 3.4 on csmailgw1.commscope.com
X-BCN-Sender: Martin.Thomson@andrew.com
Cc: Mykyta Yevstifeyev <evnikita2@gmail.com>, "apps-discuss@ietf.org" <apps-discuss@ietf.org>
Subject: Re: [apps-discuss] Review of: draft-yevstifeyev-abnf-separated-lists-02
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 13 Dec 2010 22:11:46 -0000

On 2010-12-13 at 20:56:08, Julian Reschke wrote:
> "Wherever this construct is used, null elements are allowed, but do not
> contribute to the count of elements present. That is, "(element), ,
> (element) " is permitted, but counts as only two elements. Therefore,
> where at least one element is required, at least one non-null element
> MUST be present. Default values are 0 and infinity so that "#element"
> allows any number, including zero; "1#element" requires at least one;
> and "1#2element" allows one or two." --
> <http://greenbytes.de/tech/webdav/rfc2616.html#rfc.section.2.1>

For HTTP, the # rule can be handled with some tweaking...

  a = #b

->

  a = *LWS *^(*LWS "," *LWS)[b]

It means that this isn't as directly usable by HTTP, though establishing a convention would make this a little easier.

  a = *LWS *^COMMA[b]