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)
commite2181ed0ed42891c0db3be4d166ea8ae1129712d
tree16816c800937ed04e07bb1fa92b82e80bd2913b1
parent49085668ea9dcbd79ef71c58548152f158ef8898
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]