Statistics
| Branch: | Revision:

root / json-lexer.c @ a18f844f

History | View | Annotate | Download (7.4 kB)

# Date Author Comment
2c0d4b36 02/10/2010 08:47 pm Roy Tam

json: fix PRId64 on Win32

OK we are fooled by the json lexer and parser. As we use %I64d to
print 'long long' variables in Win32, but lexer and parser only deal
with %lld but not %I64d, this patch add support for %I64d and solve
'info pci', 'powser_reset' and 'power_powerdown' assert failure in...

5ab8558d 11/17/2009 04:49 pm Anthony Liguori

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....