I discovered a bug in v3.0 of the parser, so I took that opportunity to
add more tests; as well as refactor, simplify, and optimize the code
(and fix the bug).

Latest version can be obtained here:

  https://github.com/aw/picolisp-json/blob/master/json.l

Thanks!


AW

On 01/08/2018 10:18 AM, Alexander Williams wrote:
> Hi everyone,
> 
> I've published a significant change to my picolisp-json[1] library. The
> decoder, now at version 3.0, has been completely rewritten to avoid the
> use of a C/ffi library.
> 
> This means it also works on 32-bit systems.
> 
> I've added ~30 unit tests[2] to validate various edge cases, and the
> library now conforms to the "ECMA-404 The JSON Data Interchange
> Standard"[3] (except for floating point/scientific numbers).
> 
> It shouldn't introduce any breaking changes, but validations on
> improperly formatted JSON strings will now output a message to STDERR,
> while still returning NIL as before.
> 
> The code isn't super optimized yet, but so far "it seems to work" ;)
> 
> Feel free to ask me any questions, or submit issues[4] / pull requests
> if you want to contribute.
> 
> [1]: https://github.com/aw/picolisp-json library
> [2]: https://travis-ci.org/aw/picolisp-json/jobs/326289902
> [3]:
> http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf
> [4]: https://github.com/aw/picolisp-json/issues/new
> 
> Cheers,
> 
> AW
> 

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to