Markus Armbruster
9f5e6b088a
qapi: Use quotes more consistently in frontend error messages
...
Consistently enclose error messages in double quotes. Use single
quotes within, except for one case of "'".
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20190914153506.2151-8-armbru@redhat.com >
Reviewed-by: Eric Blake <eblake@redhat.com >
2019-09-24 14:07:23 +02:00
Markus Armbruster
012b126de2
qapi: Fix a misleading parser error message
...
When choking on a token where an expression is expected, we report
'Expected "{", "[" or string'. Close, but no cigar. Fix it to
Expected '"{", "[", string, boolean or "null"'.
Missed in commit e53188a
.
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Reviewed-by: Eric Blake <eblake@redhat.com >
Message-Id: <1489582656-31133-48-git-send-email-armbru@redhat.com >
2017-03-16 07:13:04 +01:00
Lluís Vilanova
33aaad529e
qapi: Use an explicit input file
...
Use an explicit input file on the command-line instead of reading from standard
input.
It also outputs the proper file name when there's an error.
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu >
Reviewed-by: Eric Blake <eblake@redhat.com >
Reviewed-by: Markus Armbruster <armbru@redhat.com >
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com >
2014-05-08 14:19:58 -04:00
Markus Armbruster
6974ccd542
qapi.py: Fix schema parser to check syntax systematically
...
Fixes at least the following parser bugs:
* accepts any token in place of a colon
* treats comma as optional
* crashes when closing braces or brackets are missing
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Reviewed-by: Eric Blake <eblake@redhat.com >
Message-id: 1374939721-7876-7-git-send-email-armbru@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-07-29 10:37:11 -05:00
Markus Armbruster
98626572f1
tests: QAPI schema parser tests
...
The parser handles erroneous input badly. To be improved shortly.
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-id: 1374939721-7876-2-git-send-email-armbru@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-07-29 10:37:10 -05:00