X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
Delivered-To: barryleiba.mailing.lists@gmail.com
Received: by 10.107.163.148 with SMTP id m142csp40670ioe;
        Sat, 16 Aug 2014 09:52:03 -0700 (PDT)
X-Received: by 10.70.45.41 with SMTP id j9mr27579899pdm.85.1408207923234;
        Sat, 16 Aug 2014 09:52:03 -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 ag2si13716782pbd.113.2014.08.16.09.51.48
        for <multiple recipients>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Sat, 16 Aug 2014 09:51:49 -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 9257C1A06DD;
	Sat, 16 Aug 2014 09:51:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1;
	t=1408207902; bh=4tM9hOfLgaxu6+GlqYuruTo7pQvfJKHL567X1+/aFqA=;
	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=yHBWv62DwYdijCUkq0h3mVB1NuLGMxXCa1rmn8a+gssaNSxHUIUJg7q+eGUjKtNEO
	 8bHV7HvG+qh18gHUUuGvWGO0OLEU+ytspA0FBYuFLagWcR9kOYzWzwQF20cCs4d0cU
	 dOh8RF7rFa59LYM98KQErE0SxleggUs7PmWXkZA0=
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 354D21A03BA
 for <abnf-discuss@ietfa.amsl.com>; Sat, 16 Aug 2014 09:51:39 -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 mmIx1NBn_pu3 for <abnf-discuss@ietfa.amsl.com>;
 Sat, 16 Aug 2014 09:51:38 -0700 (PDT)
Received: from qmta10.westchester.pa.mail.comcast.net
 (qmta10.westchester.pa.mail.comcast.net [IPv6:2001:558:fe14:43:76:96:62:17])
 by ietfa.amsl.com (Postfix) with ESMTP id C39271A03AB
 for <abnf-discuss@ietf.org>; Sat, 16 Aug 2014 09:51:37 -0700 (PDT)
Received: from omta15.westchester.pa.mail.comcast.net ([76.96.62.87])
 by qmta10.westchester.pa.mail.comcast.net with comcast
 id fUG41o0031swQuc5AUrdtG; Sat, 16 Aug 2014 16:51:37 +0000
Received: from Paul-Kyzivats-MacBook-Pro.local ([50.138.229.151])
 by omta15.westchester.pa.mail.comcast.net with comcast
 id fUrc1o00f3Ge9ey3bUrdeE; Sat, 16 Aug 2014 16:51:37 +0000
Message-ID: <53EF8C18.3030004@alum.mit.edu>
Date: Sat, 16 Aug 2014 12:51:36 -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: abnf-discuss@ietf.org
References: <53E3B22E.5000708@alum.mit.edu>
In-Reply-To: <53E3B22E.5000708@alum.mit.edu>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;
 s=q20140121; t=1408207897;
 bh=PfjfTk+4W5GD3m7IG0E+aFI/5ECTIDMqwaXSYeN7pVM=;
 h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject:
 Content-Type;
 b=DE8iiJRY54xhmJXyw5g9u+37deaaAcrC2qjSEZH+727BkUq6X7jEwpyTt+UZnVmR9
 AmKVgAY+s72dJgqpFMqg0WW/B0JTapv/7T2XX+B6yEGKEkvAv5tevzMsLPPvW1KfFh
 pCZvvDFRe7thMGKqb4UItkF1upBp8BWtaBH9EK6ivVZU3wDcQl9xmKqNZESkyHlyQG
 SfTz23vCF5JE/C7pCxRmXra1iKw3xvZPYVQxYwyl6GS9TohF8M07s8IY5VBFXvEVec
 NDohj4/CzhHbcBB5DHZja/9TrSYGE7lUbEOZNtyVDvdTj5ajExARWvmMhSVbGxc5b0
 ZB3T371vNagIQ==
Archived-At: http://mailarchive.ietf.org/arch/msg/abnf-discuss/wU-FZ-ZRsF0c7JixAYfkZ9I9hzM
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>

Thanks for all the comments. I have now submitted an individual draft, 
following the approach in this email, that is an update to RFC 5234:

http://datatracker.ietf.org/doc/draft-kyzivat-case-sensitive-abnf/

I'm not quite sure what to do with it after this. But I guess we could 
start with comments here.

	Thanks,
	Paul

On 8/7/14 1:06 PM, Paul Kyzivat wrote:
> Here is a concrete proposal for changes to RFC5234 that would add in
> case-sensitive strings using a prefix:
>
> 1) Revise the last half of section 2.3 (beginning with "ABNF permits the
> specification of literal text strings ") as follows:
>
>     ABNF permits the specification of literal text strings directly,
>     enclosed in quotation marks.  Hence:
>
>           command     =  "command string"
>
>     Literal text strings are interpreted as a concatenated set of
>     printable characters. The character set for these strings is
>     US-ASCII.
>
>     Literal text strings in ABNF may be either case sensitive or case
>     insensitive. The form of matching used with a literal text string is
>     denoted by a prefix to the quoted string. The following prefixes are
>     allowed:
>
>          %s          =  case-sensitive
>          %i          =  case-insensitive
>
>     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".
>
>     In contrast:
>
>           rulename = %s"aBc"
>
>     will match only "aBc", and will not match "abc", "Abc", "abC",
>     "ABc", "aBC", "AbC", or "ABC".
> .
>     Another way to define a rule that is case sensitive is to specify
>     the individual characters numerically.
>
>     For example:
>
>           rulename    =  %d97 %d98 %d99
>
>     or
>
>           rulename    =  %x61.62.63
>
>     will match only the string that comprises only the lowercase
>     characters, abc.
>
> 2) Replace the char-val rule in section 4 with the following:
>
>           char-val       =  case-insensitive-string /
>                             case-sensitive-string
>
>           case-insensitive-string =
>                             [ "%i" ] quoted-string
>
>           case-sensitive-string =
>                             "%s" quoted-string
>
>           quoted-string  =  DQUOTE *(%x20-21 / %x23-7E) DQUOTE
>                                  ; quoted string of SP and VCHAR
>                                  ;  without DQUOTE
>
>
> Is there an xml2rfc version of RFC5234?
>
>      Thanks,
>      Paul
>
> _______________________________________________
> abnf-discuss mailing list
> abnf-discuss@ietf.org
> https://www.ietf.org/mailman/listinfo/abnf-discuss
>

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

