INTERNET-DRAFT Mykyta Yevstifeyev Intended Status: BCP December 5, 2010 Updates: 5234 (if approved) Expires: June 8, 2011 Augmented Backus-Naur Form (ABNF) Notation for Separated Lists Status of this Memo This Internet-Draft is submitted to IETF in full conformance with the provisions of BCP 78 and BCP 79. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF), its areas, and its working groups. Note that other groups may also distribute working documents as Internet-Drafts. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." The list of current Internet-Drafts can be accessed at http://www.ietf.org/1id-abstracts.html The list of Internet-Draft Shadow Directories can be accessed at http://www.ietf.org/shadow.html Copyright and License Notice Copyright (c) 2010 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License. M. Yevstifeyev Expires June 8, 2011 [Page 1] INTERNET DRAFT ABNF Notation for Separated Lists December 5, 2010 Abstract This document specifies Augmented Backus-Naur Form (ABNF) notation for separated lists. It updates RFC 5234. Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.1. Terminology . . . . . . . . . . . . . . . . . . . . . . . 3 2. Notation Description . . . . . . . . . . . . . . . . . . . . . 4 3. Security Considerations . . . . . . . . . . . . . . . . . . . . 5 4. IANA Considerations . . . . . . . . . . . . . . . . . . . . . . 5 5. Normative References . . . . . . . . . . . . . . . . . . . . . 5 Author's Addresses . . . . . . . . . . . . . . . . . . . . . . . . 5 M. Yevstifeyev Expires June 8, 2011 [Page 2] INTERNET DRAFT ABNF Notation for Separated Lists December 5, 2010 1. Introduction ABNF provides a possibility to express lists of elements, separated by commas (",") via the construction #element. However sometimes it is needed to express list of elements, separated by other characters, such as semicolons, points etc. In this case the following ABNF construction is used: ([*LWS] element [n*([*LWS] separator [*LWS] element)]) It is obvious that this construction is too bulky. This document specifies universal ABNF notation for lists, separated by arbitrary characters. 1.1. Terminology This document uses ABNF and core ABNF rules defined in RFC 5234 [RFC5234]. M. Yevstifeyev Expires June 8, 2011 [Page 3] INTERNET DRAFT ABNF Notation for Separated Lists December 5, 2010 2. Notation Description The ABNF notation for separated lists is ^()element indicating at least and at most elements separated by . The ABNF for this construction is: n^(a)m element = ( n([*LWS] element) [*o([*LWS] a [*LWS] element)]) n = 1*DIGIT ;minimum amount of elements m = 1*DIGIT ;maximum amount of elements o = ;difference between and a = VCHAR ;separator can be omitted indicating that any amount of elements not more than is allowed (including zero). can be omitted indicating that any amount of elements not less than is allowed (including ). and can be omitted indicating that any amount of elements is allowed (including zero). M. Yevstifeyev Expires June 8, 2011 [Page 4] INTERNET DRAFT ABNF Notation for Separated Lists December 5, 2010 3. Security Considerations Security issues are not discussed by this document. 4. IANA Considerations IANA has no actions for this document. 5. Normative References [RFC5234] Crocker, D., Ed., and P. Overell, "Augmented BNF for Syntax Specifications: ABNF", STD 68, RFC 5234, January 2008. Author's Addresses Mykyta Yevstifeyev 8 Kuzovkov St., flat 25, Kotovsk, Ukraine EMail: evnikita2@gmail.com M. Yevstifeyev Expires June 8, 2011 [Page 5]