naters
Joined 12 years ago
Karma
238
Submissions
23
Member since
Apr 29
Joined 12 years ago
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.
[1] https://github.com/nornagon/jonesforth/blob/master/jonesfort...
`pr` is on the last line before the only line break.
It's a pretty dense program to walk through, but not as completely impenetrable as I first thought after taking some time and making notes as I went.