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