4 ms·
I like this tutorial, but it's worth noting that you're building your own lisp with the author's bespoke parser generator.
by EamonnMR 5y ago
I like this tutorial, but it's worth noting that you're building your own lisp with the author's bespoke parser generator.
- ludston 5y agoYes. I followed this tutorial a few years ago and found this to be quite disappointing.
- cellularmitosis 5y agoHere is my take: https://gist.github.com/cellularmitosis/71123906bb6dd5619748e33e8d072594 https://gist.github.com/cellularmitosis/71123906bb6dd5619748...
- okareaman 5y agoPrevious discussion about the parser https://news.ycombinator.com/item?id=17478992 https://news.ycombinator.com/item?id=17478992
- nafizh 5y agoIt seems the author has added an appendix [0] where he replaces the library parser with a hand-rolled one. 0. http://buildyourownlisp.com/appendix_a_hand_rolled_parser http://buildyourownlisp.com/appendix_a_hand_rolled_parser
- zelphirkalt 5y agoI started going through the book, but from the start I deviated to use Rust and Pest PEG grammar to make the parser and the logic. Saved me many times of debugging, but also showed, that you do not have to stick to the library or parser that the book uses.
- juped 5y agoyes, the parser library is definitely the most valuable part of this.