summaryrefslogtreecommitdiff
path: root/json-glib/tests/parser-test.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@linux.intel.com>2010-03-19 15:40:48 +0000
committerEmmanuele Bassi <ebassi@linux.intel.com>2010-03-19 15:40:48 +0000
commit08cec3b7c9202007a5abbf548f8d2f1b54d4d0b4 (patch)
tree4f35992b479e768e267e03795d0af74408184eb4 /json-glib/tests/parser-test.c
parent9ce82f8052290f3956c3d80c8739c214da314d42 (diff)
downloadjson-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