std.data.json formal review
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Wed Aug 19 10:29:24 PDT 2015
On 8/19/15 8:42 AM, Timon Gehr wrote:
> On 08/18/2015 12:21 AM, Andrei Alexandrescu wrote:
>>
>> - JSONValue should offer a byToken range, which offers the contents of
>> the value one token at a time. For example, "[ 1, 2, 3 ]" offers the '['
>> token followed by three numeric tokens with the respective values
>> followed by the ']' token.
>
> What about the comma tokens?
Forgot about those. The invariant is that byToken should return a
sequence of tokens that, when parsed, produces the originating object.
-- Andrei
More information about the Digitalmars-d
mailing list