|
From: | Paolo Bonzini |
Subject: | [Qemu-devel] Re: [PATCH 0/6]: QMP: Fix issues in parser/lexer |
Date: | Thu, 20 May 2010 17:18:23 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc12 Lightning/1.0b2pre Thunderbird/3.0.4 |
On 05/19/2010 11:43 PM, Anthony Liguori wrote:
4. Lexer expects a 'terminal' char to process a token Which means clients must send a sort of end of line char, so that we process their input. Maybe I'm missing something here, but I thought that the whole point of writing our own parser was to avoid this.If the lexer gets: "abc" It has no way of knowing if that's a token or if we're going to get: "abcd"
Only } and ] are valid characters at the end of a JSON object, and neither requires lookahead.
Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |