Re: [NGO] YANG and identifiers
Martin Bjorklund <mbj@tail-f.com> Thu, 20 December 2007 17:31 UTC
Return-path: <ngo-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1J5PEw-0000rg-JG; Thu, 20 Dec 2007 12:31:22 -0500
Received: from ngo by megatron.ietf.org with local (Exim 4.43) id 1J5PEv-0000ra-7u for ngo-confirm+ok@megatron.ietf.org; Thu, 20 Dec 2007 12:31:21 -0500
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1J5PEu-0000rS-Ty for ngo@ietf.org; Thu, 20 Dec 2007 12:31:20 -0500
Received: from [213.180.94.162] (helo=mail.tail-f.com) by chiedprmail1.ietf.org with esmtp (Exim 4.43) id 1J5PEu-0003Ac-I4 for ngo@ietf.org; Thu, 20 Dec 2007 12:31:20 -0500
Received: from localhost (c213-100-166-13.swipnet.se [213.100.166.13]) by mail.tail-f.com (Postfix) with ESMTP id D0F581B80CB; Thu, 20 Dec 2007 18:31:15 +0100 (CET)
Date: Thu, 20 Dec 2007 18:27:04 +0100
Message-Id: <20071220.182704.122471898.mbj@tail-f.com>
To: johan.rydberg@edgeware.tv
Subject: Re: [NGO] YANG and identifiers
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <476AA3FD.7020300@edgeware.tv>
References: <476AA3FD.7020300@edgeware.tv>
X-Mailer: Mew version 5.1.51 on Emacs 22.1 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.1 (/)
X-Scan-Signature: b19722fc8d3865b147c75ae2495625f2
Cc: ngo@ietf.org
X-BeenThere: ngo@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: NETCONF Goes On - discussions on future work and extensions to NETCONF <ngo.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/ngo>, <mailto:ngo-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/ngo>
List-Post: <mailto:ngo@ietf.org>
List-Help: <mailto:ngo-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/ngo>, <mailto:ngo-request@ietf.org?subject=subscribe>
Errors-To: ngo-bounces@ietf.org
Hi, [A general comment: yang specific questions should be sent to yang@ietf.org.] Johan Rydberg <johan.rydberg@edgeware.tv> wrote: > While reading the YANG I-D one thing struck me as odd: > > Some statements that refer to identifiers take a string as argument, and > not an identifier! Why is this? Example of such statements are 'key', > 'unique' and 'prefix'. This is because a YANG statement is defined as: statement = keyword [argument] (";" / "{" *statement "}") The argument is always a string. A string may or may not be quoted, and the string can be concatenated etc. In the ABNF grammar, you'll see e.g. prefix-stmt = prefix-keyword sep prefix-str optsep stmtend prefix-str = < a string which matches the rule prefix > prefix = identifier Which means that after tokenization (string concatenation etc), the prefix argument must match the 'identifier' rule. /martin _______________________________________________ NGO mailing list NGO@ietf.org https://www1.ietf.org/mailman/listinfo/ngo
- [NGO] YANG and identifiers Johan Rydberg
- Re: [NGO] YANG and identifiers Martin Bjorklund