Re:Learn C and Build Your Own Lisp (2014)
by andrepd on Saturday July 07, 2018 @02:08PM
(#17479658)
And then you will write a parser generator with Parsec and you will not want to give up the ease compared to writing your own recursive descent parser :)
[ Parent
| on HN ]
Re:Learn C and Build Your Own Lisp (2014)
by fiddlerwoaroof on Sunday July 08, 2018 @07:10PM
(#17486822)
Yeah, parser combinators are basically magic, and not in an “overly clever code that you’ll regret later” sense.
And, while a Haskell-style type system makes them nicer, they work really well in dynamically typed languages too. (e.g. https://github.com/drewc/smug )