]> Git Repo - qemu.git/commit
qjson: Convert to parser to recursive descent
authorMarkus Armbruster <[email protected]>
Wed, 25 Nov 2015 21:23:30 +0000 (22:23 +0100)
committerMarkus Armbruster <[email protected]>
Thu, 26 Nov 2015 09:06:57 +0000 (10:06 +0100)
commitd538b25543f4db026bb435066e2403a542522c40
tree0a05e2bc185ea28e613ce0021188903ed597c719
parentd2ca7c0b0d876cf0e219ae7a92252626b0913a28
qjson: Convert to parser to recursive descent

We backtrack in parse_value(), even though JSON is LL(1) and thus can
be parsed by straightforward recursive descent.  Do exactly that.

Based on an almost-correct patch from Paolo Bonzini.

Signed-off-by: Paolo Bonzini <[email protected]>
Signed-off-by: Markus Armbruster <[email protected]>
Message-Id: <1448486613[email protected]>
Reviewed-by: Eric Blake <[email protected]>
qobject/json-parser.c
This page took 0.020528 seconds and 4 git commands to generate.