Re: [Qemu-devel] [RFC PATCH 19/32] qapi: Accept double-quoted strings

2017-10-05 Thread Markus Armbruster
Marc-André Lureau writes: > On Thu, Oct 5, 2017 at 6:41 AM, Markus Armbruster wrote: >> Marc-André Lureau writes: >> >>> On Mon, Oct 2, 2017 at 5:25 PM, Markus Armbruster wrote: The QAPI schema parser has always accepted only single-quoted strings, even though JSON strings are double

Re: [Qemu-devel] [RFC PATCH 19/32] qapi: Accept double-quoted strings

2017-10-05 Thread Markus Armbruster
Eric Blake writes: > On 10/04/2017 11:41 PM, Markus Armbruster wrote: > >> Sadly, the schema language is neither JSON, nor an established extension >> of JSON, nor Python. This commit brings the schema language one step >> closer to a superset of JSON. I feel "homegrown superset" is a slightly

Re: [Qemu-devel] [RFC PATCH 19/32] qapi: Accept double-quoted strings

2017-10-05 Thread Eric Blake
On 10/04/2017 11:41 PM, Markus Armbruster wrote: > Sadly, the schema language is neither JSON, nor an established extension > of JSON, nor Python. This commit brings the schema language one step > closer to a superset of JSON. I feel "homegrown superset" is a slightly > less bad idea than "homeg

Re: [Qemu-devel] [RFC PATCH 19/32] qapi: Accept double-quoted strings

2017-10-05 Thread Marc-André Lureau
On Thu, Oct 5, 2017 at 6:41 AM, Markus Armbruster wrote: > Marc-André Lureau writes: > >> On Mon, Oct 2, 2017 at 5:25 PM, Markus Armbruster wrote: >>> The QAPI schema parser has always accepted only single-quoted strings, >>> even though JSON strings are double-quoted. Accept double-quoted >>>

Re: [Qemu-devel] [RFC PATCH 19/32] qapi: Accept double-quoted strings

2017-10-04 Thread Markus Armbruster
Marc-André Lureau writes: > On Mon, Oct 2, 2017 at 5:25 PM, Markus Armbruster wrote: >> The QAPI schema parser has always accepted only single-quoted strings, >> even though JSON strings are double-quoted. Accept double-quoted >> strings as well, so you can write strings containing single quote

Re: [Qemu-devel] [RFC PATCH 19/32] qapi: Accept double-quoted strings

2017-10-04 Thread Marc-André Lureau
On Mon, Oct 2, 2017 at 5:25 PM, Markus Armbruster wrote: > The QAPI schema parser has always accepted only single-quoted strings, > even though JSON strings are double-quoted. Accept double-quoted > strings as well, so you can write strings containing single quotes > without backslash escapes. >