X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
Delivered-To: barryleiba.mailing.lists@gmail.com
Received: by 10.58.181.71 with SMTP id du7csp40521vec;
        Thu, 7 Aug 2014 10:07:02 -0700 (PDT)
X-Received: by 10.70.102.231 with SMTP id fr7mr18576123pdb.113.1407431221832;
        Thu, 07 Aug 2014 10:07:01 -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 fx3si3942605pbb.199.2014.08.07.10.07.01
        for <multiple recipients>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Thu, 07 Aug 2014 10:07:01 -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 D84E61B2E7D;
	Thu,  7 Aug 2014 10:07:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1;
	t=1407431220; bh=4moqy9DSSa/j2WuYsLZzqQB1DzXveLWw6kDBmmxLWaI=;
	h=Message-ID:Date:From:MIME-Version:To:Subject:List-Id:
	 List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
	 Content-Transfer-Encoding:Content-Type:Sender;
	b=x32j0BgIP86mjP0SYpKZz95Kciu+qrZO7E2kO/Bd7FuZbWp6HgudKN46gHNk9kEOY
	 hPwfcmYC0Pcc46JtOvHjEtI+JYhpgf0/8mC/NrF9ZDVzfIOZiWG1Q225yDy5gpodPR
	 222fc/mI5vhG9MqUN3d6hToJlmO41ZakSoDM3bAE=
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 E3F951A0185
 for <abnf-discuss@ietfa.amsl.com>; Thu,  7 Aug 2014 10:06:55 -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 yvzWu5Gd5ghj for <abnf-discuss@ietfa.amsl.com>;
 Thu,  7 Aug 2014 10:06:55 -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 C78EB1A0009
 for <abnf-discuss@ietf.org>; Thu,  7 Aug 2014 10:06:54 -0700 (PDT)
Received: from omta16.westchester.pa.mail.comcast.net ([76.96.62.88])
 by qmta07.westchester.pa.mail.comcast.net with comcast
 id bpPq1o0021uE5Es57t6uW0; Thu, 07 Aug 2014 17:06:54 +0000
Received: from Paul-Kyzivats-MacBook-Pro.local ([50.138.229.164])
 by omta16.westchester.pa.mail.comcast.net with comcast
 id bt6u1o00B3ZTu2S3ct6uHD; Thu, 07 Aug 2014 17:06:54 +0000
Message-ID: <53E3B22E.5000708@alum.mit.edu>
Date: Thu, 07 Aug 2014 13:06:54 -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" <abnf-discuss@ietf.org>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;
 s=q20140121; t=1407431214;
 bh=PL3wcQwU3oW5k9YW3GJ5k+9U3FMunN0m+DH+OcAhIuQ=;
 h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject:
 Content-Type;
 b=n+ETG3LvFhIT6/pUmGuehAL16R5Kx/yNJWDvVoWemUjUvcYDbl0GZBLBkcSoQQxcO
 Uy0W25ix5mskI7fBBnBJmgx9CDRsK/NQdl50V1otMKo2azu476gDko5vVjKVHwwPIT
 XyIuGeEJF5MO+QkIDp/yz923s6vEmPV7RcZtPJ1EZLuAlSaUZV3Il+/+U8xLtmixPp
 tk3C/kUMmLocL0MAo2ATcSeb6FaAMcnOFnacO2cxlzzckFmetyyGNCZAmaHN06KiiS
 doPOd9cWH2VDjuyXr0sK67/Vln7KEXJoMcHoamBitdE+qlwmRCu2+ccl9KdqxYheXI
 vqaK3y9YdLpiw==
Archived-At: http://mailarchive.ietf.org/arch/msg/abnf-discuss/xMJQVz526a1rOGwrWqsktsuNvtY
Subject: [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>

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

