X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
Delivered-To: barryleiba.mailing.lists@gmail.com
Received: by 10.112.48.104 with SMTP id k8csp193779lbn;
        Wed, 13 Jun 2012 03:57:55 -0700 (PDT)
Received: by 10.68.233.102 with SMTP id tv6mr49390134pbc.153.1339585074960;
        Wed, 13 Jun 2012 03:57:54 -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 gk6si3477586pbc.314.2012.06.13.03.57.54;
        Wed, 13 Jun 2012 03:57:54 -0700 (PDT)
Received-SPF: fail (google.com: domain of abnf-discuss-bounces@ietf.org does not designate 2001:1890:123a::1:1e as permitted sender) client-ip=2001:1890:123a::1:1e;
Authentication-Results: mx.google.com; spf=hardfail (google.com: domain of abnf-discuss-bounces@ietf.org does not designate 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 [127.0.0.1])
	by ietfa.amsl.com (Postfix) with ESMTP id CB41F21F852C;
	Wed, 13 Jun 2012 03:57:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1;
	t=1339585073; bh=jzJrBko6rHUh15QWhrTat0RYgcW0umT4+FKkwuIRZEY=;
	h=Date:From:To:In-Reply-To:Message-ID:References:MIME-Version:Cc:
	 Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:
	 List-Subscribe:Content-Type:Content-Transfer-Encoding:Sender;
	b=nUjXPwzcV6JKk0sPoUZQNiBY6W2PGWTRM+TmW9uswnwTgYhnNqLJmlnHeBU4bQmXj
	 6aKPLykQ9CI1XsqnUKGqIwVOVKaFcsy3GmuGDt5m9nFtN2VQn8CMsaQV+1mB8S1Nnl
	 i/nAgc4kMzIwRBsAGppInLF4cwCCCa7qpCwmv7ho=
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 C5B6121F8478
	for <abnf-discuss@ietfa.amsl.com>; Wed, 13 Jun 2012 03:57:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.949
X-Spam-Level: 
X-Spam-Status: No, score=-5.949 tagged_above=-999 required=5 tests=[AWL=0.650, 
	BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
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 eX5vKpdg6ilb for <abnf-discuss@ietfa.amsl.com>;
	Wed, 13 Jun 2012 03:57:48 -0700 (PDT)
Received: from ppsw-51.csi.cam.ac.uk (ppsw-51.csi.cam.ac.uk [131.111.8.151])
	by ietfa.amsl.com (Postfix) with ESMTP id 9D4C721F8474
	for <abnf-discuss@ietf.org>; Wed, 13 Jun 2012 03:57:48 -0700 (PDT)
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: not scanned
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from hermes-2.csi.cam.ac.uk ([131.111.8.54]:42858)
	by ppsw-51.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.158]:25)
	with esmtpa (EXTERNAL:fanf2) id 1SelGk-0007zr-YM (Exim 4.72)
	(return-path <fanf2@hermes.cam.ac.uk>); Wed, 13 Jun 2012 11:57:46 +0100
Received: from fanf2 (helo=localhost) by hermes-2.csi.cam.ac.uk
	(hermes.cam.ac.uk) with local-esmtp id 1SelGk-0005L4-EL (Exim 4.67)
	(return-path <fanf2@hermes.cam.ac.uk>); Wed, 13 Jun 2012 11:57:46 +0100
Date: Wed, 13 Jun 2012 11:57:46 +0100
From: Tony Finch <dot@dotat.at>
X-X-Sender: fanf2@hermes-2.csi.cam.ac.uk
To: Paul Kyzivat <pkyzivat@alum.mit.edu>
In-Reply-To: <4FD79FAD.8040409@alum.mit.edu>
Message-ID: <alpine.LSU.2.00.1206131151160.10149@hermes-2.csi.cam.ac.uk>
References: <2CCD27F5-B8D5-4C51-A830-54E6E2676029@lineone.net>
	<4FD79FAD.8040409@alum.mit.edu>
User-Agent: Alpine 2.00 (LSU 1167 2008-08-23)
MIME-Version: 1.0
Cc: abnf-discuss@ietf.org
Subject: Re: [abnf-discuss] Unordered lists with specific cardinality
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: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: abnf-discuss-bounces@ietf.org
Errors-To: abnf-discuss-bounces@ietf.org

Paul Kyzivat <pkyzivat@alum.mit.edu> wrote:
>
> It would be nice to extend ABNF with some syntax to help with this. But no
> good syntax for this leaps into my mind.

This would make ABNF no longer straightforwardly translatable into other
BNF-alikes. I don't think it would be worth it.

An example from the C standard shows it is normal to deal with this kind
of problem with a constraint described in the text.


  6.7 Declarations

  Syntax

         declaration:
                 declaration-specifiers init-declarator-listopt ";"
         declaration-specifiers:
                 storage-class-specifier declaration-specifiersopt
                 type-specifier declaration-specifiersopt
                 type-qualifier declaration-specifiersopt
                 function-specifier declaration-specifiersopt
         init-declarator-list:
                 init-declarator
                 init-declarator-list "," init-declarator
         init-declarator:
                 declarator
                 declarator "=" initializer

  6.7.1 Storage-class specifiers

  Syntax

         storage-class-specifier:
                  "typedef"
                  "extern"
                  "static"
                  "auto"
                  "register"
  Constraints

  At most, one storage-class specifier may be given in the declaration
  specifiers in a declaration.


Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
Humber, Thames, Dover, Wight, Portland, Plymouth: Variable 3 or 4, becoming
southeast 4 or 5 later in Plymouth. Slight or moderate. Rain or showers.
Moderate or good.
_______________________________________________
abnf-discuss mailing list
abnf-discuss@ietf.org
https://www.ietf.org/mailman/listinfo/abnf-discuss

