Re: [Qemu-devel] [PATCH 4/6] json: Nicer recovery from lexical errors

2018-08-27 Thread Markus Armbruster
Eric Blake writes: > On 08/27/2018 02:00 AM, Markus Armbruster wrote: >> When the lexer chokes on an input character, it consumes the >> character, emits a JSON error token, and enters its start state. This >> can lead to suboptimal error recovery. For instance, input >> >> 0123 , >> >> pr

Re: [Qemu-devel] [PATCH 4/6] json: Nicer recovery from lexical errors

2018-08-27 Thread Eric Blake
On 08/27/2018 02:00 AM, Markus Armbruster wrote: When the lexer chokes on an input character, it consumes the character, emits a JSON error token, and enters its start state. This can lead to suboptimal error recovery. For instance, input 0123 , produces the tokens JSON_ERROR01

[Qemu-devel] [PATCH 4/6] json: Nicer recovery from lexical errors

2018-08-27 Thread Markus Armbruster
When the lexer chokes on an input character, it consumes the character, emits a JSON error token, and enters its start state. This can lead to suboptimal error recovery. For instance, input 0123 , produces the tokens JSON_ERROR01 JSON_INTEGER 23 JSON_COMMA, Make the l