Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I feel the need to reference Crafting Interpreters design note on parsing here.[1]

To quote an excerpt: "If you’re just trying to get your parser done, pick one of the bog-standard techniques, use it, and move on. Recursive descent, Pratt parsing, and the popular parser generators like ANTLR or Bison are all fine."

In my opinion, parser generators are great if you just want to write a grammar and be done. Especially if that's what you learned in college and it's all you know.

[1]: https://craftinginterpreters.com/compiling-expressions.html#...



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

Search: