John Snow 6092c3ecc4 scripts: qmp-shell: Expand support for QMP expressions
This includes support for [] expressions, single-quotes in
QMP expressions (which is not strictly a part of JSON), and
the ability to use "True", "False" and "None" literals instead
of JSON's equivalent true, false, and null literals.

qmp-shell currently allows you to describe values as
JSON expressions:
key={"key":{"key2":"val"}}

But it does not currently support arrays, which are needed
for serializing and deserializing transactions:
key=[{"type":"drive-backup","data":{...}}]

qmp-shell also only currently accepts doubly quoted strings
as-per JSON spec, but QMP allows single quotes.

Lastly, python allows you to utilize "True" or "False" as
boolean literals, but JSON expects "true" or "false". Expand
qmp-shell to allow the user to type either, converting to the
correct type.

As a consequence of the above, the key=val parsing is also improved
to give better error messages if a key=val token is not provided.

CAVEAT: The parser is still extremely rudimentary and does not
expect to find spaces in {} nor [] expressions. This patch does
not improve this functionality.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Tested-by: Kashyap Chamarthy <kchamart@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
2015-05-11 08:59:07 -04:00
2015-05-11 08:59:07 -04:00
…
2015-02-06 16:11:38 +00:00
2015-03-19 11:30:37 +03:00
2015-04-30 13:21:42 +02:00
2015-05-11 08:59:07 -04:00
2015-05-11 08:59:07 -04:00
2015-04-30 16:05:48 +03:00
…
2015-04-04 09:45:59 +03:00
2014-06-16 13:24:35 +02:00
…
2015-04-28 15:36:09 +02:00
…
…
…
…
2015-04-26 16:49:24 +01:00
2015-04-30 16:05:48 +03:00
…
2015-02-05 17:16:14 +01:00
2015-04-30 16:55:16 +02:00
2015-02-16 15:07:19 +00:00
2014-05-24 00:07:29 +04:00
…
2015-05-11 08:59:07 -04:00
…
2015-04-26 16:49:24 +01:00
2015-02-12 21:21:38 -08:00
…
2015-03-10 09:26:22 +01:00
2015-04-25 22:05:07 +01:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
S
Description
Original Xbox Emulator for Windows, macOS, and Linux (Active Development)
Readme GPL-2.0
720 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 82.3%
C++ 6.9%
Python 3.5%
Dylan 2.7%
Shell 1.5%
Other 2.9%