From: Ian Jackson Subject: Re: [PATCH 10/14] docs: update xl-disk-configuration.txt to describe new syntax Date: Fri, 20 May 2011 11:21:02 +0100 Message-ID: <19926.16526.426215.289046@mariner.uk.xensource.com> References: <1305211004-31687-1-git-send-email-ian.jackson@eu.citrix.com> <1305211004-31687-2-git-send-email-ian.jackson@eu.citrix.com> <1305211004-31687-3-git-send-email-ian.jackson@eu.citrix.com> <1305211004-31687-4-git-send-email-ian.jackson@eu.citrix.com> <1305211004-31687-5-git-send-email-ian.jackson@eu.citrix.com> <1305211004-31687-6-git-send-email-ian.jackson@eu.citrix.com> <1305211004-31687-7-git-send-email-ian.jackson@eu.citrix.com> <1305211004-31687-8-git-send-email-ian.jackson@eu.citrix.com> <1305211004-31687-9-git-send-email-ian.jackson@eu.citrix.com> <1305211004-31687-10-git-send-email-ian.jackson@eu.citrix.com> <1305211004-31687-11-git-send-email-ian.jackson@eu.citrix.com> <1305290747.31488.113.camel@zakaz.uk.xensource.com> <19923.40954.556919.444777@mariner.uk.xensource.com> <1305883643.20576.11.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1305883643.20576.11.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [Xen-devel] [PATCH 10/14] docs: update xl-disk-configuration.txt to describe new syntax"): > I think it would be ok if you correct the * placements etc. Having some > sort of (semi-)formal syntax declaration in addition to the wordy > description is useful IMHO. > > Would the syntax be clearer as a BNF style thing rather than a regexp-y > thing? e.g. this would allow "[, [, [, > []]]]," to be declared as "POSITIONAL_PARAMETERS := ..." making > the syntax a little more self-documenting and "KEY := ..." could be > defined with reference to the relevant following sections etc. The trouble with bnf is that it all comes out of order - self-assembly, so to speak. > Should the second "=" usage also have a "|flag"? Yes. > I presume "key" can also == "target" and can be the non-ultimate key so > long as the value does not contain any problematic characters. In this > case the explicit target= needs to be marked as optional. No, general "key" may not be "target". "target=" always eats the rest of the string. Ian.