monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] monotone automate stdio


From: Timothy Brownawell
Subject: Re: [Monotone-devel] monotone automate stdio
Date: Wed, 18 May 2005 19:13:11 -0500

On 5/18/05, Nathaniel Smith <address@hidden> wrote:
> I also haven't looked at how this parses the strings that are written
> to stdin to get a command out, but I suspect that similar tricks would
> be a good idea.  Maybe make the format the constant "l", then a bunch
> of <decimal length><constant ":"><that many characters> argument
> strings, then the constant "e" to mark the end of the list.
> Semi-arbitrary, but happens to be the same as bencoding :-).
> Definitely better than trying to do real command line parsing, with
> quotes and argument splitting and goodness knows what...

It uses operator>>(istream, string) . So items are whitespace
separated, and whitespace is ignored.

Tim




reply via email to

[Prev in Thread] Current Thread [Next in Thread]