Gabriel Gritsch
|
a89501b2fb
|
Integrate changes made by Serge Zaitsev.
|
11 years ago |
Gabriel Gritsch
|
659842c65c
|
- Added possibility to specify the lenght of the input buffer (if not null-terminated).
- Added "extern C" to use it with CPP.
|
11 years ago |
Gabriel Gritsch
|
385b42e740
|
- Added possibility to specify the lenght of the input buffer (if not null-terminated).
- Added "extern C" to use it with CPP.
|
11 years ago |
Serge A. Zaitsev
|
86350f2bb1
|
a proper fix for signed comparison
|
11 years ago |
Serge A. Zaitsev
|
3d6fb06ee9
|
fixed typo
|
12 years ago |
Serge A. Zaitsev
|
37964b40ee
|
added optional parent token pointer support. Increases parsing speed
|
12 years ago |
Serge A. Zaitsev
|
f3b41ae30c
|
fixed: superior node size is now an index, not a pointer (safe to realloc)
|
13 years ago |
Serge A. Zaitsev
|
30f932772e
|
tested partial parser for strings, added primitive string parser test, fixed token allocation
|
13 years ago |
Serge A. Zaitsev
|
443be365f6
|
removed JSON string and token array from parser internals, because they must not be saved between parse() calls
|
13 years ago |
Serge A. Zaitsev
|
bed0a7a3e6
|
changed API: parse now is more flexible, but init jsut resets the parser; added new test macro to compate strings, fixed Makefile
|
13 years ago |
Serge A. Zaitsev
|
4e869f7e9e
|
Complex types (objects and arrays) now have also size - number of child elements
|
14 years ago |
Serge A. Zaitsev
|
c955364a95
|
All objects renamed using jsmn prefix to keep consistency and not be mixed with other json libraries. Demo is now called just demo.
|
14 years ago |
Serge A. Zaitsev
|
7a027a4dd2
|
Token manipulation functions changes. size_t replaced with unsigned int.
|
14 years ago |
Serge A. Zaitsev
|
d0d52f6847
|
Design: primitive type implemented as a replacement to boolean/number/null. String tokens point to the unquoted string
|
14 years ago |
Serge A. Zaitsev
|
60509e2850
|
Design: rewritten using parser structure
|
14 years ago |
Serge A. Zaitsev
|
a2755a7595
|
Design: some error codes added
|
14 years ago |
Serge A. Zaitsev
|
daf93a0ebd
|
Feature: make difference between numbers and other primitives
|
14 years ago |
Serge A. Zaitsev
|
b99663079c
|
Fix: errpos has got a correct type now
|
14 years ago |
Serge A. Zaitsev
|
0568be6e0b
|
Demo separated from the jsmn code. Makefile changed. Some comments added
|
14 years ago |
Serge A. Zaitsev
|
f22c2d30b7
|
Initial commit. Demo program is included in the jsmn.c code. Ugly names and no comments. Please, don't read this changeset
|
14 years ago |