Hacker News new | past | comments | ask | show | jobs | submit login

I was particularly interested in building parsers a short while back, and your post rekindled my interest.

So, in the interest of sharing I thought I'd mention a couple of interesting libraries I came across.

In Ruby I think Temple (https://github.com/judofyr/temple) is really quite cool. It's designed to make creating templating languages really easy, and constructs ASTs using user-defined parsers.

And even more interesting in my opinion is Haskell's Parsec (http://www.haskell.org/haskellwiki/Parsec). It uses combinators to build up parsers, and can produce friendly parse error messages "for free."

Thanks for the intersting read.




Applications are open for YC Winter 2022

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: