]> git.proxmox.com Git - qemu.git/commit - json-lexer.h
Add a lexer for JSON
authorAnthony Liguori <aliguori@us.ibm.com>
Wed, 11 Nov 2009 16:39:14 +0000 (10:39 -0600)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 17 Nov 2009 14:49:39 +0000 (08:49 -0600)
commit5ab8558d9b7e9a5e4ceb0d86f54df7391af3543d
tree16816c800937ed04e07bb1fa92b82e80bd2913b1
parentf7e6b1927f00631b1a2bf59e597ea4640dbddb31
Add a lexer for JSON

Our JSON parser is a three stage parser.  The first stage tokenizes the stream
into a set of lexical tokens.  Since the lexical grammar is regular, we can
use a finite state machine to model it.  The state machine will emit tokens
as they are identified.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Makefile
json-lexer.c [new file with mode: 0644]
json-lexer.h [new file with mode: 0644]