Serge A. Zaitsev
|
958c758f2e
|
fixed: invalid object/arrays were passed successfully in tree mode; added tests for this case
|
12 years ago |
Serge A. Zaitsev
|
3d6fb06ee9
|
fixed typo
|
12 years ago |
Serge A. Zaitsev
|
cf172e71d7
|
fixed tests: missing jsmn_init() before parsing; added tests for empty arrays/objects
|
12 years ago |
Serge A. Zaitsev
|
e0ceee893c
|
fixed strict mode: space symbols are allowed after primitives; added some new tests
|
12 years ago |
Serge A. Zaitsev
|
37964b40ee
|
added optional parent token pointer support. Increases parsing speed
|
12 years ago |
Serge A. Zaitsev
|
cfbb5b5091
|
removed unused variable
|
12 years ago |
Serge A. Zaitsev
|
974133db85
|
tokens array items are now being initialized during allocation, removed redundant code that significantly slowed down the parser
|
12 years ago |
Serge A. Zaitsev
|
e542dea54e
|
changed return value to jsmnerr_t, fixed warning about signed/unsigned values
|
12 years ago |
Serge A. Zaitsev
|
af04595fe2
|
fix: error is returned if brackets are unmatched
|
13 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
|
a983a76061
|
added reading with small number of tokens test, fixed NOMEM issue #2
|
13 years ago |
Serge A. Zaitsev
|
53454e5429
|
added test for partial array reading
|
13 years ago |
Serge A. Zaitsev
|
41171ecd51
|
fixed typo, added JSMN_STRICT mode
|
13 years ago |
Serge A. Zaitsev
|
e395ad562e
|
added one more test case for partial string parser
|
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
|
929e233756
|
added tests for primitive types, primitive types now can be stored outside the objects without braces
|
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
|
4b5c5ed66a
|
switched to C unit-tests instead of bash
|
13 years ago |
Serge A. Zaitsev
|
2928f7ec0e
|
renamed: get_token to alloc_token
|
13 years ago |
Serge A. Zaitsev
|
0c22b772ed
|
using system AR program, build options are moved to config.mk
|
13 years ago |
Serge A. Zaitsev
|
d6209011a5
|
added download links in README
|
13 years ago |
Serge A. Zaitsev
|
d6f48a6a3d
|
fixed: issue #1, thanks to m_einman for his patch
|
14 years ago |
Serge A. Zaitsev
|
42be9208f7
|
README updated
|
14 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
|
c4d9412483
|
Some comments added in json.c
|
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 Zaitsev
|
4e29ee705f
|
Fix: check if no tokens lefs, return error in that case
|
14 years ago |
Serge Zaitsev
|
9924734575
|
Typo in tests fixed. Argument variable quoted
|
14 years ago |
Serge A. Zaitsev
|
3d94cd0a18
|
Removed useless argument from printf
|
14 years ago |
Serge A. Zaitsev
|
2cf5193d64
|
README changed. Now it is a template for the official web page
|
14 years ago |
Serge A. Zaitsev
|
978ea959f4
|
Added test for a large number of tokens
|
14 years ago |
Serge Zaitsev
|
508bf43fa0
|
Test framework implemented
|
14 years ago |
Serge Zaitsev
|
f88240ac2e
|
Simplified demo output format
|
14 years ago |
Serge A. Zaitsev
|
23b8487783
|
Demo: option added to specify buffer size when reading
|
14 years ago |
Serge A. Zaitsev
|
8e31e4d214
|
jsmn: strings start from the first char after quotes
|
14 years ago |
Serge A. Zaitsev
|
b91dee9102
|
Demo: declarations moved to the top of functions.
|
14 years ago |
Serge A. Zaitsev
|
7a027a4dd2
|
Token manipulation functions changes. size_t replaced with unsigned int.
|
14 years ago |
Serge A. Zaitsev
|
3922360800
|
Demo: options added. Number of tokens can be specified now.
|
14 years ago |
Serge A. Zaitsev
|
991ca5dd94
|
Demo: can now read from stdin
|
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
|
470c77fa63
|
Design: added assert macro and return macro.
|
14 years ago |
Serge A. Zaitsev
|
30370e37f8
|
Design: Added asserts in parser. Increased number of tokens in demo.
|
14 years ago |
Serge A. Zaitsev
|
b99663079c
|
Fix: errpos has got a correct type now
|
14 years ago |
Serge A. Zaitsev
|
b0e73ec44d
|
Design: objects and arrays are different types now
|
14 years ago |
Serge A. Zaitsev
|
a70dab5cf9
|
Design: unrolled reference tables. Nested functions moved outside. Got smaller code.
|
14 years ago |
Serge A. Zaitsev
|
aa97d8b599
|
Demo: changed to read from '.js' file
|
14 years ago |