[Top][All Lists]
[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
- Re: [Monotone-devel] monotone automate stdio, (continued)
- Re: [Monotone-devel] monotone automate stdio, Jerome Fisher, 2005/05/18
- Re: [Monotone-devel] monotone automate stdio, Timothy Brownawell, 2005/05/18
- Re: [Monotone-devel] monotone automate stdio, Sebastian Spaeth, 2005/05/19
- Re: [Monotone-devel] monotone automate stdio, Timothy Brownawell, 2005/05/19
- Re: [Monotone-devel] monotone automate stdio, jc007b6093, 2005/05/20
- Re: [Monotone-devel] monotone automate stdio, Matthew A. Nicholson, 2005/05/20
Re: [Monotone-devel] monotone automate stdio, Nathaniel Smith, 2005/05/18
Re: [Monotone-devel] monotone automate stdio, Grahame Bowland, 2005/05/15