[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: PATCH: help text: presentation of optionally-repeated arguments

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2003-06-26 19:20:03 CEST

On Thu, 2003-06-26 at 13:06, Julian Foad wrote:
> I don't see that "[OPTION]..." is ambiguous. Do you read it as
> "brackets mean zero or more; dots mean one or more" mean that

I read brackets as "zero or one" and dots as "one or more". In extended
regexp notation, "(foo?)+" is an ambiguous grammar--because any number
of empty strings matching "(foo?)" can be inserted into the
sequence--while "(foo+)?" is not. (As I said before, I think some
people find unambiguous grammars more intuitive, all other things being

Thanks for rewriting the patch to my preference.

> My example of a possible reason was that it provides (as a free bonus)
> a convenient way to specify that a group of words may be repeated.
> However, this syntax cannot directly specify a group of words that may
> be repeated ONE OR MORE times. In that case I would need to write
> something like:
> cc -D SYMBOL [-D SYMBOL]...

Understood. I don't think that will ever be a concern for us.

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jun 26 19:27:28 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.