Closed ghost closed 5 years ago
So we don't have to re-allocate tokens or do a pre-parse to find out how many we need.
token tok; while (gimme_next_token(&parser,&tok)) { /* do something */ }
As much as that would be interesting it's not going to happen. I don't think systems at which JSMN is aiming will be happy with such a solution.
So we don't have to re-allocate tokens or do a pre-parse to find out how many we need.