It's only the core (https://github.com/ppelleti/json65/blob/master/src/json65.s) which is written in asm. The rest are C.
Seems neat anyway, let's fire a 6502 emulator :)
It's only the core (https://github.com/ppelleti/json65/blob/master/src/json65.s) which is written in asm. The rest are C.
Seems neat anyway, let's fire a 6502 emulator :)
However, because SAX is a callback-oriented parsing method, you can design your own data structure and write your own callback functions and do without this tree structure.
The additional C code provides similar nice-to-haves, such as string pool interning, a function to print out the aforementioned tree structure, and a wrapper function to parse json from a file.
But, hey! it's still pretty hardcore. Not something I'd be doing.
Yes, it actually contains perl and haskell code [0].
[0]: https://github.com/ppelleti/json65/blob/master/run-tests.pl https://github.com/ppelleti/json65/tree/master/tools