summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2015-11-25 22:23:26 +0100
committerMarkus Armbruster <armbru@redhat.com>2015-11-26 09:22:54 +0100
commitc54616608af442edf4cfb7397a1909c2653efba0 (patch)
tree6a84404cf40ffad47caed8f12b36b80fc905ff1e /include
parentb8d3b1da3cdbb02e180618d6be346c564723015d (diff)
downloadhqemu-c54616608af442edf4cfb7397a1909c2653efba0.zip
hqemu-c54616608af442edf4cfb7397a1909c2653efba0.tar.gz
qjson: Give each of the six structural chars its own token type
Simplifies things, because we always check for a specific one. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <1448486613-17634-6-git-send-email-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/qapi/qmp/json-lexer.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/qapi/qmp/json-lexer.h b/include/qapi/qmp/json-lexer.h
index 61a143f..f3e8dc7 100644
--- a/include/qapi/qmp/json-lexer.h
+++ b/include/qapi/qmp/json-lexer.h
@@ -19,7 +19,12 @@
typedef enum json_token_type {
JSON_MIN = 100,
- JSON_OPERATOR = JSON_MIN,
+ JSON_LCURLY = JSON_MIN,
+ JSON_RCURLY,
+ JSON_LSQUARE,
+ JSON_RSQUARE,
+ JSON_COLON,
+ JSON_COMMA,
JSON_INTEGER,
JSON_FLOAT,
JSON_KEYWORD,
OpenPOWER on IntegriCloud