Re: [Qemu-devel] [PATCH 39/56] json: Leave rejecting invalid interpolation to parser

2018-08-14 Thread Markus Armbruster
Eric Blake writes: > On 08/08/2018 07:03 AM, Markus Armbruster wrote: >> Both lexer and parser reject invalid interpolation specifications. >> The parser's check is useless. >> >> The lexer ends the token right after the first bad character. This >> tends to lead to suboptimal error reporting.

Re: [Qemu-devel] [PATCH 39/56] json: Leave rejecting invalid interpolation to parser

2018-08-13 Thread Eric Blake
On 08/08/2018 07:03 AM, Markus Armbruster wrote: Both lexer and parser reject invalid interpolation specifications. The parser's check is useless. The lexer ends the token right after the first bad character. This tends to lead to suboptimal error reporting. For instance, input [ %11d ]

[Qemu-devel] [PATCH 39/56] json: Leave rejecting invalid interpolation to parser

2018-08-08 Thread Markus Armbruster
Both lexer and parser reject invalid interpolation specifications. The parser's check is useless. The lexer ends the token right after the first bad character. This tends to lead to suboptimal error reporting. For instance, input [ %11d ] produces the tokens JSON_LSQUARE [ JSON_E