X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
Delivered-To: barryleiba.mailing.lists@gmail.com
Received: by 10.107.163.148 with SMTP id m142csp272804ioe;
        Mon, 11 Aug 2014 08:31:25 -0700 (PDT)
X-Received: by 10.68.242.202 with SMTP id ws10mr39832485pbc.32.1407771085621;
        Mon, 11 Aug 2014 08:31:25 -0700 (PDT)
Return-Path: <abnf-discuss-bounces@ietf.org>
Received: from mail.ietf.org (mail.ietf.org. [2001:1900:3001:11::2c])
        by mx.google.com with ESMTPS id qa10si9166792pdb.174.2014.08.11.08.31.24
        for <multiple recipients>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Mon, 11 Aug 2014 08:31:25 -0700 (PDT)
Received-SPF: pass (google.com: domain of abnf-discuss-bounces@ietf.org designates 2001:1900:3001:11::2c as permitted sender) client-ip=2001:1900:3001:11::2c;
Authentication-Results: mx.google.com;
       spf=pass (google.com: domain of abnf-discuss-bounces@ietf.org designates 2001:1900:3001:11::2c as permitted sender) smtp.mail=abnf-discuss-bounces@ietf.org;
       dkim=pass header.i=@ietf.org
Received: from ietfa.amsl.com (localhost [IPv6:::1])
	by ietfa.amsl.com (Postfix) with ESMTP id 589441A063F;
	Mon, 11 Aug 2014 08:31:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1;
	t=1407771083; bh=nyAH8q3uyet+cLFKBUv21SO3Gzc/KPAE4F9mOvyDXZQ=;
	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=rTokkzGJ8fqFdg0GA16oe9Wj06elm7iTKDT1psp8P/w/SM9jepAiHu5AmOpbhssMl
	 PvCMlP4nGcgolMVAD38Jhu6N74NcgLKZPmFsXERfyPh6iPu2NBpT/FrAOhqjARd+Mv
	 zt+LFrdECsGLysOwWSQrvOOXFT3RdES3Sk88iCCc=
X-Original-To: abnf-discuss@ietfa.amsl.com
Delivered-To: abnf-discuss@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1])
 by ietfa.amsl.com (Postfix) with ESMTP id 7DC181A05C0
 for <abnf-discuss@ietfa.amsl.com>; Mon, 11 Aug 2014 08:31:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.235
X-Spam-Level: 
X-Spam-Status: No, score=-1.235 tagged_above=-999 required=5
 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
 SPF_SOFTFAIL=0.665] autolearn=no
Received: from mail.ietf.org ([4.31.198.44])
 by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id JHluB7rK0Rbz for <abnf-discuss@ietfa.amsl.com>;
 Mon, 11 Aug 2014 08:31:20 -0700 (PDT)
Received: from qmta05.westchester.pa.mail.comcast.net
 (qmta05.westchester.pa.mail.comcast.net [IPv6:2001:558:fe14:43:76:96:62:48])
 by ietfa.amsl.com (Postfix) with ESMTP id 929F61A063C
 for <abnf-discuss@ietf.org>; Mon, 11 Aug 2014 08:31:20 -0700 (PDT)
Received: from omta24.westchester.pa.mail.comcast.net ([76.96.62.76])
 by qmta05.westchester.pa.mail.comcast.net with comcast
 id dRNh1o0041ei1Bg55TXLtX; Mon, 11 Aug 2014 15:31:20 +0000
Received: from Paul-Kyzivats-MacBook-Pro.local ([50.138.229.164])
 by omta24.westchester.pa.mail.comcast.net with comcast
 id dTXK1o00Z3ZTu2S3kTXK5z; Mon, 11 Aug 2014 15:31:20 +0000
Message-ID: <53E8E1C7.3050807@alum.mit.edu>
Date: Mon, 11 Aug 2014 11:31:19 -0400
From: Paul Kyzivat <pkyzivat@alum.mit.edu>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7;
 rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: Christer Holmberg <christer.holmberg@ericsson.com>, 
 "abnf-discuss@ietf.org" <abnf-discuss@ietf.org>
References: <53E3B22E.5000708@alum.mit.edu>
 <7594FB04B1934943A5C02806D1A2204B1D3E5BBC@ESESSMB209.ericsson.se>
In-Reply-To: <7594FB04B1934943A5C02806D1A2204B1D3E5BBC@ESESSMB209.ericsson.se>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;
 s=q20140121; t=1407771080;
 bh=RMqaJqykK75kKhjSmY5wj+v+sf8y1LQhWAPtMXxbuyc=;
 h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject:
 Content-Type;
 b=UFsSoA/8x9nGmT6LtZPCGEA1TCX2XpG0ipfNB94HWDR91kLTtm5/FKhVEpayXxO9A
 r/vlDg5EhiXM+jhLMLqqh5EttkyCqDRFPv9u/Nqmry9nPIlKQKenX6mViBhpdZ8iGL
 e5TRrr1lnCBNITFpj16rFj/PT6QDx6ZZPwvLd95oDWxQLWe7nGblFL3F5PkIgOgRE4
 WWDHfWAye+eJEnHJnhUweI/pziIdgbA7Wy1lIppNKWd9BKWmtrsDKbfw1CrakKaVPD
 JrNmptf9p5QetoVP5IqdtizsuXI07Z+uKR138PaAQ6ZXc+AHSYsjCnR1kEOvvC0tIe
 UC9lmoWJaHDxQ==
Archived-At: http://mailarchive.ietf.org/arch/msg/abnf-discuss/o4O1_guYl77Jj6Wn3PDInPZTNq4
Subject: Re: [abnf-discuss] Case-sensitive string constants in ABNF
X-BeenThere: abnf-discuss@ietf.org
X-Mailman-Version: 2.1.15
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"
Errors-To: abnf-discuss-bounces@ietf.org
Sender: "abnf-discuss" <abnf-discuss-bounces@ietf.org>

On 8/11/14 5:45 AM, Christer Holmberg wrote:
> Hi,
>
>>     If no prefix is present then the string is case-insensitive.
>>
>>     Hence:
>>
>>           rulename = %i"abc"
>>
>>     and:
>>
>>           rulename = "aBc"
>>
>>     will both match "abc", "Abc", "aBc", "abC", "ABc",
>> "aBC", "AbC", and "ABC".
>
> Does that mean that, instead of:
>
> 	mystringrule = [a-zA-Z]
>
> ...I could use:
>
> 	mystringrule = %i[a-z]

No.

I presume that what you wrote above is using regular expression syntax. 
That isn't supported by ABNF, and what I am proposing doesn't change 
that. In ABNF you can only indicate character ranges using numeric 
representation. So your first rule would need to be written as:

	mystringrule = %x61-7A / %x41-5A

There isn't any way to write that using string literals.

	Thanks,
	Paul



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

