Re: [Qemu-devel] [PATCH 0/9] Our QAPI parser is a hack, replace it

2013-07-26 Thread Markus Armbruster
Anthony Liguori writes: > Markus Armbruster writes: > >> Anthony Liguori writes: >> >>> Markus Armbruster writes: >>> If you think I'm exaggerating, check out the list of issues in PATCH 3/9. >>> >>> You are not. >>> >>> However, I think we can drop the whole thing and just use the J

Re: [Qemu-devel] [PATCH 0/9] Our QAPI parser is a hack, replace it

2013-07-26 Thread Anthony Liguori
Markus Armbruster writes: > Anthony Liguori writes: > >> Markus Armbruster writes: >> >>> If you think I'm exaggerating, check out the list of issues in PATCH >>> 3/9. >> >> You are not. >> >> However, I think we can drop the whole thing and just use the JSON >> module in Python. The bit below

Re: [Qemu-devel] [PATCH 0/9] Our QAPI parser is a hack, replace it

2013-07-26 Thread Markus Armbruster
Anthony Liguori writes: > Markus Armbruster writes: > >> If you think I'm exaggerating, check out the list of issues in PATCH >> 3/9. > > You are not. > > However, I think we can drop the whole thing and just use the JSON > module in Python. The bit below seems to work: > > import json.decode

Re: [Qemu-devel] [PATCH 0/9] Our QAPI parser is a hack, replace it

2013-07-26 Thread Anthony Liguori
Markus Armbruster writes: > If you think I'm exaggerating, check out the list of issues in PATCH > 3/9. You are not. However, I think we can drop the whole thing and just use the JSON module in Python. The bit below seems to work: import json.decoder, re from ordereddict import OrderedDic

[Qemu-devel] [PATCH 0/9] Our QAPI parser is a hack, replace it

2013-07-26 Thread Markus Armbruster
If you think I'm exaggerating, check out the list of issues in PATCH 3/9. Markus Armbruster (9): tests: QAPI schema parser tests tests: Use qapi-schema-test.json as schema parser test qapi.py: Restructure lexer and parser qapi.py: Decent syntax error reporting qapi.py: Reject invalid cha