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 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 to validate various edge cases, and the > library now conforms to the "ECMA-404 The JSON Data Interchange > Standard" (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 / pull requests > if you want to contribute. > > : https://github.com/aw/picolisp-json library > : https://travis-ci.org/aw/picolisp-json/jobs/326289902 > : > http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf > : https://github.com/aw/picolisp-json/issues/new > > Cheers, > > AW > -- UNSUBSCRIBE: mailto:firstname.lastname@example.org?subject=Unsubscribe