mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
b8d3b1da3c
commit
c54616608a
4 changed files with 42 additions and 47 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue