X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
Delivered-To: barryleiba.mailing.lists@gmail.com
Received: by 10.107.163.148 with SMTP id m142csp303374ioe;
        Mon, 11 Aug 2014 12:42:29 -0700 (PDT)
X-Received: by 10.66.129.139 with SMTP id nw11mr6129239pab.16.1407786149112;
        Mon, 11 Aug 2014 12:42:29 -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 tv5si14177569pac.218.2014.08.11.12.42.28
        for <multiple recipients>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Mon, 11 Aug 2014 12:42:29 -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 153A21A064A;
	Mon, 11 Aug 2014 12:42:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1;
	t=1407786148; bh=PT1PWZEVJylcLKZiKjPIzjPT5dWZ1A/4VNdvjNKxkAY=;
	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=W3wQleN7qBc9qikybqZV8/PLlGGOdLGodICHI5HDMbV2+DGDBL9IEjX5Yb6Wz6VKI
	 smMXq/PxlyN4efBXxbJUPd6wNqq81/+1W6FqGLQmBBhFjfU37DUtHeI2tNbx7kOS6y
	 UXq4g2i3CPNHNJC2faQ7tjLLA0mXFtqpHwKAuVb0=
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 BC48F1A064A
 for <abnf-discuss@ietfa.amsl.com>; Mon, 11 Aug 2014 12:42:25 -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 ylIb1sYQL3uB for <abnf-discuss@ietfa.amsl.com>;
 Mon, 11 Aug 2014 12:42:25 -0700 (PDT)
Received: from qmta07.westchester.pa.mail.comcast.net
 (qmta07.westchester.pa.mail.comcast.net [IPv6:2001:558:fe14:43:76:96:62:64])
 by ietfa.amsl.com (Postfix) with ESMTP id E703F1A0457
 for <abnf-discuss@ietf.org>; Mon, 11 Aug 2014 12:42:24 -0700 (PDT)
Received: from omta01.westchester.pa.mail.comcast.net ([76.96.62.11])
 by qmta07.westchester.pa.mail.comcast.net with comcast
 id dUwZ1o0090EZKEL57XiQvU; Mon, 11 Aug 2014 19:42:24 +0000
Received: from Paul-Kyzivats-MacBook-Pro.local ([50.138.229.164])
 by omta01.westchester.pa.mail.comcast.net with comcast
 id dXiQ1o0043ZTu2S3MXiQA7; Mon, 11 Aug 2014 19:42:24 +0000
Message-ID: <53E91C9F.6020202@alum.mit.edu>
Date: Mon, 11 Aug 2014 15:42:23 -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>
 <53E8E1C7.3050807@alum.mit.edu>
 <7594FB04B1934943A5C02806D1A2204B1D3E6201@ESESSMB209.ericsson.se>
In-Reply-To: <7594FB04B1934943A5C02806D1A2204B1D3E6201@ESESSMB209.ericsson.se>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;
 s=q20140121; t=1407786144;
 bh=xBR3OvZRnZVWP0+h9z20G8xfH4g/yTMYvjHAep5RtzE=;
 h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject:
 Content-Type;
 b=ofX3wcial0ZcCkiMe53YEnj8/+AYS5FRy8S8CYjq8/acXRaNTdkBqrTWdwCSIY+9r
 b+hNphdzouJCCu008KnjEh4DHax9OP3048shALXpHXT07i0jLl5v2T0hRbU5HgrOEY
 EYbxoEYB56Rj80CLQAobPoCpYiZKmyCC0kpssTK8qdDk2tSF8kIdYKRkVAbSmv0STx
 0yXvL9ARKPBb4ELCmsPL6AlT/JQeVVysE90moogk+xTjEOxJKRFwyzXUq7eeyv3YEG
 rfHB+jeoC41PZeYrp3JN23TYNKPFNsgtWjHwHnNDE0S68RquGTa43vZmb6rT/BvwNs
 f22hsFimqo2dw==
Archived-At: http://mailarchive.ietf.org/arch/msg/abnf-discuss/CWOCLz6ImPGi3G-09AtZvaQFbNA
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 12:26 PM, 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.
>
> Sorry, my mistake. See below for correction.
>
>> 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.
>
> Correct.
>
> So, my question then is whether I could use:
>
> 	mystringrule = %i(%x61-7A)

I certainly didn't have that in mind. Syntactically it doesn't work, %i 
is a syntactic prefix to a quoted string. What you are showing is a 
freestanding element - some sort of operator.

	Thanks,
	Paul

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

