diff options
author | Markus Armbruster <armbru@redhat.com> | 2015-11-25 22:23:26 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2015-11-26 09:22:54 +0100 |
commit | c54616608af442edf4cfb7397a1909c2653efba0 (patch) | |
tree | 6a84404cf40ffad47caed8f12b36b80fc905ff1e /include | |
parent | b8d3b1da3cdbb02e180618d6be346c564723015d (diff) |
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.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/qapi/qmp/json-lexer.h b/include/qapi/qmp/json-lexer.h index 61a143f5bf..f3e8dc71bf 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, |