3 ms·
Not a book, but a nice way to start with the task is to build up a simple JSON parser using recursive descent; This [1] is a great tutorial to start with. Pers
by atomicnature 3y ago
Not a book, but a nice way to start with the task is to build up a simple JSON parser using recursive descent;
This [1] is a great tutorial to start with. Personally, I followed up with a standards compliant JSON parser of my own, in Python [2], and later ported it into a larger golang codebase. Practically building up multiple JSON parsers taught me to build my own DSL, using recursive descent parsing. My path admittedly is quite non-standard and idiosyncratic, but was way more fun than going through a textbook :)
[1]: https://www.booleanworld.com/building-recursive-descent-parsers-definitive-guide/ https://www.booleanworld.com/building-recursive-descent-pars...
[2]: https://github.com/HexmosTech/json-rd https://github.com/HexmosTech/json-rd