diff options
author | Emmanuele Bassi <ebassi@linux.intel.com> | 2010-03-19 15:40:48 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@linux.intel.com> | 2010-03-19 15:40:48 +0000 |
commit | 08cec3b7c9202007a5abbf548f8d2f1b54d4d0b4 (patch) | |
tree | 4f35992b479e768e267e03795d0af74408184eb4 /json-glib/tests/parser-test.c | |
parent | 9ce82f8052290f3956c3d80c8739c214da314d42 (diff) | |
download | json-glib-08cec3b7c9202007a5abbf548f8d2f1b54d4d0b4.tar.gz |
parser: Refactor the JsonParser logic
The array and object parsing logic in JsonParser has clearly exploded
beyond control: a simple tightening of the JSON validation almost broke
the parser in two. It it is time to...
<cue Christopher Lee voice-over>
REFACTOR THE CODE!
</cue Christopher Lee voice-over>
This time, we should be following the JSON state machine and try to do
more prediction of the next state based on peeking the next token.
The code is fairly cleaner, now; and, most of all, still passes the
validation test suite - which is, you know... nice.
Diffstat (limited to 'json-glib/tests/parser-test.c')
0 files changed, 0 insertions, 0 deletions